6c4b75d171de31dce642491a7ad43c79397aef57
[gnulib.git] / ChangeLog
1 2012-04-03  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'ilogbl'.
4         * modules/ilogbl-tests: New file.
5         * tests/test-ilogbl.c: New file.
6
7         New module 'ilogbl'.
8         * lib/math.in.h (ilogbl): New declaration.
9         * lib/ilogbl.c: New file.
10         * m4/ilogbl.m4: New file.
11         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
12         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
13         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
14         Split sed invocation, to avoid the limit of 100 substitutions of
15         HP-UX 'sed'.
16         * modules/ilogbl: New file.
17         * tests/test-math-c++.cc: Check the declaration of ilogbl.
18         * doc/posix-functions/ilogbl.texi: Mention the new module.
19
20 2012-04-03  Bruno Haible  <bruno@clisp.org>
21
22         Tests for module 'ilogbf'.
23         * modules/ilogbf-tests: New file.
24         * tests/test-ilogbf.c: New file.
25
26         New module 'ilogbf'.
27         * lib/math.in.h (ilogbf): New declaration.
28         * lib/ilogbf.c: New file.
29         * m4/ilogbf.m4: New file.
30         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
31         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
32         REPLACE_ILOGBF.
33         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
34         REPLACE_ILOGBF.
35         * modules/ilogbf: New file.
36         * tests/test-math-c++.cc: Check the declaration of ilogbf.
37         * doc/posix-functions/ilogbf.texi: Mention the new module.
38
39 2012-04-03  Bruno Haible  <bruno@clisp.org>
40
41         Tests for module 'ilogb'.
42         * modules/ilogb-tests: New file.
43         * tests/test-ilogb.c: New file.
44         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
45         tests/test-logb-ieee.h.
46
47         New module 'ilogb'.
48         * lib/math.in.h (ilogb): New declaration.
49         * lib/ilogb.c: New file.
50         * m4/ilogb.m4: New file.
51         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
52         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
53         REPLACE_ILOGB.
54         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
55         REPLACE_ILOGB.
56         * modules/ilogb: New file.
57         * tests/test-math-c++.cc: Check the declaration of ilogb.
58         * doc/posix-functions/ilogb.texi: Mention the new module.
59
60 2012-04-03  Bruno Haible  <bruno@clisp.org>
61
62         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
63         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
64         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
65         (main): Check their values.
66         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
67         problem.
68
69 2012-04-03  Bruno Haible  <bruno@clisp.org>
70
71         Tests for module 'logbl-ieee'.
72         * modules/logbl-ieee-tests: New file.
73         * tests/test-logbl-ieee.c: New file.
74
75         New module 'logbl-ieee'.
76         * modules/logbl-ieee: New file.
77
78         Tests for module 'logb-ieee'.
79         * modules/logb-ieee-tests: New file.
80         * tests/test-logb-ieee.c: New file.
81
82         New module 'logb-ieee'.
83         * modules/logb-ieee: New file.
84
85         Tests for module 'logbf-ieee'.
86         * modules/logbf-ieee-tests: New file.
87         * tests/test-logbf-ieee.c: New file.
88         * tests/test-logb-ieee.h: New file.
89
90         New module 'logbf-ieee'.
91         * modules/logbf-ieee: New file.
92
93 2012-04-03  Bruno Haible  <bruno@clisp.org>
94
95         Tests for module 'logbl'.
96         * modules/logbl-tests: New file.
97         * tests/test-logbl.c: New file.
98
99         New module 'logbl'.
100         * lib/math.in.h (logbl): New declaration.
101         * lib/logbl.c: New file.
102         * m4/logbl.m4: New file.
103         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
105         REPLACE_LOGBL.
106         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
107         REPLACE_LOGBL.
108         * modules/logbl: New file.
109         * tests/test-math-c++.cc: Check the declaration of logbl.
110         * doc/posix-functions/logbl.texi: Mention the new module.
111
112 2012-04-02  Bruno Haible  <bruno@clisp.org>
113
114         Tests for module 'logbf'.
115         * modules/logbf-tests: New file.
116         * tests/test-logbf.c: New file.
117
118         New module 'logbf'.
119         * lib/math.in.h (logbf): New declaration.
120         * lib/logbf.c: New file.
121         * m4/logbf.m4: New file.
122         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
124         REPLACE_LOGBF.
125         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
126         REPLACE_LOGBF.
127         * modules/logbf: New file.
128         * tests/test-math-c++.cc: Check the declaration of logbf.
129         * doc/posix-functions/logbf.texi: Mention the new module.
130
131 2012-04-02  Bruno Haible  <bruno@clisp.org>
132
133         logb tests: More tests.
134         * tests/test-logb.h: New file, based on tests/test-logb.c and
135         tests/test-frexp.h.
136         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
137         (main): Just invoke test_function.
138         * modules/logb-tests (Files): Add tests/test-logb.h,
139         tests/minus-zero.h, tests/randomd.c.
140         (Makefile.am): Add randomd.c to test_logb_SOURCES.
141
142         logb: Provide replacement and workarounds.
143         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
144         is 1.
145         * lib/logb.c: New file.
146         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
147         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
149         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
150         * modules/logb (Files): Add lib/logb.c.
151         (Depends-on): Add isfinite, frexp, isnand.
152         (configure.ac): Compile the replacement code logb.c if needed.
153         * tests/test-math-c++.cc: Check the declaration of logb.
154         * doc/posix-functions/logb.texi: Mention the replacement and the bug
155         with subnormal numbers.
156
157 2012-04-02  Bruno Haible  <bruno@clisp.org>
158
159         log10* tests: Speed up.
160         * tests/test-log10.h (test_function): Reduce amount of random numbers
161         to test.
162
163 2012-04-01  Bruno Haible  <bruno@clisp.org>
164
165         logf-ieee: Fix test whether logf works.
166         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
167
168 2012-04-01  Bruno Haible  <bruno@clisp.org>
169
170         log10l: Work around log10l-ieee test failure on IRIX 6.5.
171         * lib/log10l.c: Include <float.h>
172         (log10l): On IRIX, normalize the +Infinity value.
173         * modules/log10l (Depends-on): Add 'float'.
174         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
175         +Infinity.
176
177         log10f-ieee: Work around test failure on NetBSD 5.1.
178         * m4/log10f-ieee.m4: New file.
179         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
180         test whether log10f works with a negative argument. Replace it if not.
181         * lib/log10f.c (log10f): For negative arguments, return NaN.
182         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
183         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
184         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
185
186         log10f-ieee: Work around test failure on Solaris 9.
187         * modules/log10f-ieee (Depends-on): Add log10-ieee.
188         (configure.ac): Require gl_FUNC_LOG10F.
189
190         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
191         * m4/log10-ieee.m4: New file.
192         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
193         whether log10 works with a negative argument. Replace it if not.
194         * lib/log10.c (log10): For negative arguments, return NaN.
195         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
196         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
197         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
198
199         Tests for module 'log10l-ieee'.
200         * modules/log10l-ieee-tests: New file.
201         * tests/test-log10l-ieee.c: New file.
202
203         New module 'log10l-ieee'.
204         * modules/log10l-ieee: New file.
205
206         Tests for module 'log10-ieee'.
207         * modules/log10-ieee-tests: New file.
208         * tests/test-log10-ieee.c: New file.
209
210         New module 'log10-ieee'.
211         * modules/log10-ieee: New file.
212
213         Tests for module 'log10f-ieee'.
214         * modules/log10f-ieee-tests: New file.
215         * tests/test-log10f-ieee.c: New file.
216         * tests/test-log10-ieee.h: New file.
217
218         New module 'log10f-ieee'.
219         * modules/log10f-ieee: New file.
220
221 2012-04-01  Bruno Haible  <bruno@clisp.org>
222
223         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
224         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
225         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
226         workaround.
227         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
228         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
230         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
231         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
232         (Depends-on): Update conditions.
233         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
234         IRIX 6.5, OSF/1 5.1 problems.
235
236 2012-04-01  Bruno Haible  <bruno@clisp.org>
237
238         log10f: Work around OSF/1 5.1 bug.
239         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
240         * lib/log10f.c (log10f): If logf exists, use it and provide just the
241         workaround.
242         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
243         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
245         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
246         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
247         (Depends-on): Update conditions.
248         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
249
250 2012-04-01  Bruno Haible  <bruno@clisp.org>
251
252         log10: Work around OSF/1 5.1 bug.
253         * lib/math.in.h (log10): New declaration.
254         * lib/log10.c: New file.
255         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
256         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
257         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
259         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
260         * modules/log10 (Files): Add lib/log10.c.
261         (Depends-on): Add math.
262         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
263         * tests/test-math-c++.cc: Check the declaration of log10.
264         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
265
266 2012-03-31  Bruno Haible  <bruno@clisp.org>
267
268         log10l tests: More tests.
269         * modules/log10l-tests (Files): Add tests/test-log10l.h,
270         tests/minus-zero.h, tests/randoml.c.
271         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
272         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
273         (main): Invoke test_function.
274
275         log10f tests: More tests.
276         * modules/log10f-tests (Files): Add tests/test-log10.h,
277         tests/minus-zero.h, tests/randomf.c.
278         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
279         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
280         (main): Invoke test_function.
281
282         log10 tests: More tests.
283         * tests/test-log10.h: New file.
284         * modules/log10-tests (Files): Add tests/test-log10.h,
285         tests/minus-zero.h, tests/randomd.c.
286         (Makefile.am): Add randomd.c to test_log10_SOURCES.
287         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
288         (main): Invoke test_function.
289
290 2012-03-31  Simon Josefsson  <simon@josefsson.org>
291
292         fflush: Fix syntax error.
293         * lib/fflush.c: Include unused-parameter.h, needed for
294         _GL_UNUSED_PARAMETER.
295         * modules/fflush (Depends-on): Add snippet/unused-parameter.
296
297 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
298
299         regex: pacify GCC when compiling GRUB
300         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
301         a diagnostic.  Reported by Vladimir Serbinenko in
302         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
303
304 2012-03-29  Eric Blake  <eblake@redhat.com>
305
306         stdio: don't assume gets any more
307         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
308         support.
309         * modules/stdio (Makefile.am): Likewise.
310         * lib/stdio-read.c (gets): Likewise.
311         * tests/test-stdio-c++.cc: Likewise.
312         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
313         * lib/stdio.in.h (gets): Make warning occur in more places.
314         * doc/posix-functions/gets.texi (gets): Update documentation.
315         Reported by Christer Solskogen.
316
317         maint.mk: fix syntax checks without exclusions
318         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
319         Reported by Daniel P. Berrange.
320
321         strerror_r: avoid compiler warning
322         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
323         level.
324
325         fflush: avoid compiler warning
326         * lib/fflush.c (update_fpos_cache): Mark variables that are
327         potentially unused.
328
329 2012-03-25  Bruno Haible  <bruno@clisp.org>
330
331         Tests for module 'localeconv'.
332         * modules/localeconv-tests: New file.
333         * tests/test-localeconv.c: New file.
334
335         New module 'localeconv'.
336         * lib/locale.in.h (localeconv): New declaration.
337         * lib/localeconv.c: New file.
338         * m4/localeconv.m4: New file.
339         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
340         REPLACE_LOCALECONV.
341         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
342         REPLACE_LOCALECONV.
343         * modules/localeconv: New file.
344         * modules/nl_langinfo (Depends-on): Add localeconv.
345         * modules/human (Depends-on): Likewise.
346         * doc/posix-functions/localeconv.texi: Mention the new module.
347
348 2012-03-25  Bruno Haible  <bruno@clisp.org>
349
350         locale: Provide a complete 'struct lconv'.
351         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
352         'struct lconv' does not contain int_p_cs_precedes.
353         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
354         * doc/posix-headers/locale.texi: Update.
355
356         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
357         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
358         * doc/posix-headers/locale.texi: Update.
359
360         locale: Provide a working 'struct lconv'.
361         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
362         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
363         'struct lconv' does not even contain decimal_point.
364         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
365         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
366         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
367         * doc/posix-headers/locale.texi: Mention the problems with
368         'struct lconv'.
369         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
370
371 2012-03-24  Bruno Haible  <bruno@clisp.org>
372
373         Enable common subexpression optimization in GCC.
374         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
375         macros.
376         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
377         GCC attribute 'const'.
378         (uc_locale_language): Declare with GCC attribute 'pure'.
379         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
380         with GCC attribute 'const'.
381         * lib/unictype.in.h (uc_is_general_category_withtable,
382         uc_combining_class, uc_combining_class_name,
383         uc_combining_class_long_name, uc_bidi_class_name,
384         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
385         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
386         uc_decimal_value, uc_digit_value, uc_numeric_value,
387         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
388         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
389         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
390         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
391         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
392         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
393         Declare with GCC attribute 'const'.
394         (uc_general_category_name, uc_general_category_long_name,
395         uc_general_category_byname, uc_general_category,
396         uc_is_general_category, uc_combining_class_byname,
397         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
398         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
399         Declare with GCC attribute 'pure'.
400         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
401         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
402         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
403         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
404         with GCC attribute 'pure'.
405         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
406         'const'.
407         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
408         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
409         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
410         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
411         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
412         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
413         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
414         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
415         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
416         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
417         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
418         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
419         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
420         GCC attribute 'pure'.
421         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
422         'const'.
423         * lib/uniwidth.in.h (uc_width): Simplify declaration.
424         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
425         u32_strwidth): Declare with GCC attribute 'pure'.
426
427         Enable common subexpression optimization in GCC.
428         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
429         (alphasort): Declare with GCC attribute 'pure'.
430         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
431         (atoll): Declare with GCC attribute 'pure'.
432         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
433         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
434         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
435         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
436         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
437         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
438         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
439
440 2012-03-24  Bruno Haible  <bruno@clisp.org>
441
442         gnulib-tool: Avoid unintended error output from 'cmp'.
443         * gnulib-tool (func_add_file, func_update_file, func_import): Use
444         "cmp -s", not "cmp > /dev/null".
445
446 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
447
448         gnulib-tool: fix imprecise comments w.r.t. an automake bug
449
450         It's not just Automake versions < 1.9b that creates an empty
451         pkgdatadir at installation time if pkgdata_DATA is specified
452         to empty; modern automake versions do this as well, at least
453         until automake 1.11.4 (not yet released at the moment of writing,
454         but soon to appear).  That behaviour was generally considered a
455         feature rather than a bug, at least until this discussion:
456         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
457
458         See also automake bugs #10997 and #11030.
459
460         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
461         reference to relevant automake bug numbers.
462         (func_emit_tests_Makefile_am): Likewise.
463
464 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
465
466         announce-gen: use Digest::SHA when possible
467         * build-aux/announce-gen: Use Digest::SHA when possible, falling
468         back to Digest::SHA1 if necessary.
469
470 2012-03-20  Jim Meyering  <meyering@redhat.com>
471
472         tests: avoid gcc warnings about argv vs. const initializers
473         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
474         warnings about discarding 'const' qualifier from pointer target type.
475         * tests/test-posix_spawn2.c (main): Likewise.
476
477 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
478
479         README-release: simplify slightly
480         * top/README-release: Run "git checkout master" only once.
481
482 2012-03-15  Mark Wielaard  <mark@klomp.org>
483
484         git-merge-changelog: add specific example on how to use with hg.
485         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
486
487 2012-03-18  Mark Wielaard  <mark@klomp.org>
488
489         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
490
491 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
492
493         git-version-gen: don't let "prefix" envvar cause trouble
494         * build-aux/git-version-gen (prefix): Initialize properly,
495         so as not to use a value specified via the environment.
496         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
497
498 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
499
500         regex: diagnose too-large repeat counts in EREs
501         Previously, the code did not diagnose the too-large repeat count
502         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
503         as if it were 'b\{1000000000}', which is unexpected.
504         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
505         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
506         is a reasonable one for this problem.  Another option would be to
507         create a new REG_OVERFLOW error for repeat counts that are too large.
508         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
509         count is too large, so that the caller can distinguish the two cases.
510         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
511         "Too large" return code, and that repeat counts are one example of this.
512
513 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
514
515         doc: some glibc x32 integer width issues
516         * doc/posix-headers/sys_types.texi (sys/types.h):
517         * doc/posix-headers/time.texi (time.h):
518         Mention that glibc x32 does not conform to POSIX in a couple of
519         areas related to integer widths.
520
521 2012-03-15  Bruno Haible  <bruno@clisp.org>
522
523         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
524         * lib/fma.c (VOLATILE): New macro.
525         (FUNC): Use it to work around a GCC compiler bug.
526
527 2012-03-13  Bruno Haible  <bruno@clisp.org>
528
529         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
530         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
531         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
532         REPLACE_HYPOTL to 1.
533         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
534
535 2012-03-13  Bruno Haible  <bruno@clisp.org>
536
537         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
538         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
539         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
540         REPLACE_REMAINDERL to 1.
541         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
542         bug.
543
544 2012-03-13  Bruno Haible  <bruno@clisp.org>
545
546         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
547         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
548         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
549         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
550         too big rounding errors.
551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
552         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
553         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
554         (Depends-on): Update conditions.
555         * tests/test-sqrtl.c (my_ldexpl): New function.
556         (main): Add test of a particular value.
557         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
558
559 2012-03-13  Pádraig Brady  <P@draigBrady.com>
560
561         doc: Update timer_* platform portability notes.
562         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
563         that always return ENOSYS.
564         * doc/posix-functions/timer_delete.texi: Likewise.
565         * doc/posix-functions/timer_gettime.texi: Likewise.
566         * doc/posix-functions/timer_settime.texi: Likewise.
567
568 2012-03-13  Bruno Haible  <bruno@clisp.org>
569
570         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
571         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
572         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
573         REPLACE_CBRTL to 1.
574         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
575
576 2012-03-13  Bruno Haible  <bruno@clisp.org>
577
578         remainderl: Avoid compilation error on AIX >= 5.2.
579         * lib/math.in.h (remainderl): Undefine macro from the system header.
580
581 2012-03-13  Bruno Haible  <bruno@clisp.org>
582
583         Avoid compilation errors with MSVC option -fp:strict.
584         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
585         * lib/cbrtf.c: Likewise.
586         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
587
588 2012-03-12  Bruno Haible  <bruno@clisp.org>
589
590         uninorm: Don't crash in out-of-memory conditions.
591         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
592         gracefully.
593         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
594         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
595
596 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
597
598         quote: fix syntax-check
599         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
600         also exports quote_quoting_options.
601
602 2012-03-12  Simon Josefsson  <simon@josefsson.org>
603
604         Collapse list of copyright years to ranges.  See
605         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
606         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
607         build-aux/csharpexec.sh.in, build-aux/gnupload,
608         build-aux/install-reloc, build-aux/javacomp.sh.in,
609         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
610         build-aux/move-if-change, build-aux/reloc-ldflags,
611         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
612
613 2012-03-11  Bruno Haible  <bruno@clisp.org>
614
615         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
616         * m4/log2f-ieee.m4: New file.
617         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
618         whether log2f works with a minus zero argument. Replace it if not.
619         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
620         (Depends-on): Add log2-ieee.
621         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
622         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
623
624         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
625         * m4/log2-ieee.m4: New file.
626         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
627         whether log2 works with a minus zero argument. Replace it if not.
628         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
629         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
630         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
631
632         Tests for module 'log2l-ieee'.
633         * modules/log2l-ieee-tests: New file.
634         * tests/test-log2l-ieee.c: New file.
635
636         New module 'log2l-ieee'.
637         * modules/log2l-ieee: New file.
638
639         Tests for module 'log2-ieee'.
640         * modules/log2-ieee-tests: New file.
641         * tests/test-log2-ieee.c: New file.
642
643         New module 'log2-ieee'.
644         * modules/log2-ieee: New file.
645
646         Tests for module 'log2f-ieee'.
647         * modules/log2f-ieee-tests: New file.
648         * tests/test-log2f-ieee.c: New file.
649         * tests/test-log2-ieee.h: New file.
650
651         New module 'log2f-ieee'.
652         * modules/log2f-ieee: New file.
653
654 2012-03-11  Bruno Haible  <bruno@clisp.org>
655
656         Tests for module 'log2l'.
657         * modules/log2l-tests: New file.
658         * tests/test-log2l.c: New file.
659
660         New module 'log2l'.
661         * lib/math.in.h (log2l): New declaration.
662         * lib/log2l.c: New file.
663         * m4/log2l.m4: New file.
664         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
666         REPLACE_LOG2L.
667         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
668         REPLACE_LOG2L.
669         * modules/log2l: New file.
670         * tests/test-math-c++.cc: Check the declaration of log2l.
671         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
672         and OSF/1 problems.
673
674 2012-03-11  Bruno Haible  <bruno@clisp.org>
675
676         Tests for module 'log2f'.
677         * modules/log2f-tests: New file.
678         * tests/test-log2f.c: New file.
679
680         New module 'log2f'.
681         * lib/math.in.h (log2f): New declaration.
682         * lib/log2f.c: New file.
683         * m4/log2f.m4: New file.
684         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
685         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
686         REPLACE_LOG2F.
687         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
688         REPLACE_LOG2F.
689         * modules/log2f: New file.
690         * tests/test-math-c++.cc: Check the declaration of log2f.
691         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
692         and OSF/1 and Cygwin problems.
693
694 2012-03-11  Bruno Haible  <bruno@clisp.org>
695
696         Tests for module 'log2'.
697         * modules/log2-tests: New file.
698         * tests/test-log2.c: New file.
699         * tests/test-log2.h: New file.
700
701         New module 'log2'.
702         * lib/math.in.h (log2): New declaration.
703         * lib/log2.c: New file.
704         * m4/log2.m4: New file.
705         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
707         REPLACE_LOG2.
708         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
709         REPLACE_LOG2.
710         * modules/log2: New file.
711         * tests/test-math-c++.cc: Check the declaration of log2.
712         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
713         and OSF/1 and Cygwin problems.
714
715 2012-03-11  Bruno Haible  <bruno@clisp.org>
716
717         exp2* tests: More tests.
718         * tests/test-exp2.h (test_function): Test all integral arguments that
719         don't need to overflow or denormalized numbers.
720         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
721         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
722         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
723
724 2012-03-10  Bruno Haible  <bruno@clisp.org>
725
726         log1pl-ieee: Work around test failure on AIX 7.1.
727         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
728
729         log1pl-ieee: Work around test failure on IRIX 6.5.
730         * m4/log1pl-ieee.m4: New file.
731         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
732         test whether log1pl works with a minus zero argument. Replace it if
733         not.
734         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
736         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
737         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
738         (Depends-on): Update conditions.
739         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
740         m4/signbit.m4.
741         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
742         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
743
744         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
745         * m4/log1pf-ieee.m4: New file.
746         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
747         test whether log1pf works with a minus zero argument. Replace it if
748         not.
749         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
750         m4/signbit.m4.
751         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
752         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
753
754         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
755         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
756         (configure.ac): Require gl_FUNC_LOG1PF.
757
758         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
759         * m4/log1p-ieee.m4: New file.
760         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
761         whether log1p works with a minus zero argument. Replace it if not.
762         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
764         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
765         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
766         (Depends-on): Update conditions.
767         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
768         m4/signbit.m4.
769         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
770         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
771
772         Tests for module 'log1pl-ieee'.
773         * modules/log1pl-ieee-tests: New file.
774         * tests/test-log1pl-ieee.c: New file.
775
776         New module 'log1pl-ieee'.
777         * modules/log1pl-ieee: New file.
778
779         Tests for module 'log1p-ieee'.
780         * modules/log1p-ieee-tests: New file.
781         * tests/test-log1p-ieee.c: New file.
782
783         New module 'log1p-ieee'.
784         * modules/log1p-ieee: New file.
785
786         Tests for module 'log1pf-ieee'.
787         * modules/log1pf-ieee-tests: New file.
788         * tests/test-log1pf-ieee.c: New file.
789         * tests/test-log1p-ieee.h: New file.
790
791         New module 'log1pf-ieee'.
792         * modules/log1pf-ieee: New file.
793
794 2012-03-10  Bruno Haible  <bruno@clisp.org>
795
796         Tests for module 'log1pl'.
797         * modules/log1pl-tests: New file.
798         * tests/test-log1pl.c: New file.
799
800         New module 'log1pl'.
801         * lib/math.in.h (log1pl): New declaration.
802         * lib/log1pl.c: New file.
803         * m4/log1pl.m4: New file.
804         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
806         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
807         * modules/log1pl: New file.
808         * tests/test-math-c++.cc: Check the declaration of log1pl.
809         * doc/posix-functions/log1pl.texi: Mention the new module.
810
811 2012-03-10  Bruno Haible  <bruno@clisp.org>
812
813         Tests for module 'log1pf'.
814         * modules/log1pf-tests: New file.
815         * tests/test-log1pf.c: New file.
816
817         New module 'log1pf'.
818         * lib/math.in.h (log1pf): New declaration.
819         * lib/log1pf.c: New file.
820         * m4/log1pf.m4: New file.
821         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
823         REPLACE_LOG1PF.
824         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
825         REPLACE_LOG1PF.
826         * modules/log1pf: New file.
827         * tests/test-math-c++.cc: Check the declaration of log1pf.
828         * doc/posix-functions/log1pf.texi: Mention the new module.
829
830 2012-03-10  Bruno Haible  <bruno@clisp.org>
831
832         log1p tests: More tests.
833         * tests/test-log1p.h: New file.
834         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
835         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
836         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
837         (main): Invoke test_function.
838
839         log1p: Provide replacement for Minix and MSVC.
840         * lib/math.in.h (log1p): New declaration.
841         * lib/log1p.c: New file.
842         * m4/log1p.m4: New file.
843         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
845         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
846         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
847         (Depends-on): Add math, isnand, log, round.
848         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
849         HAVE_LOG1P is 0.
850         * tests/test-math-c++.cc: Check the declaration of log1p.
851         * doc/posix-functions/log1p.texi: Mention the replacement.
852
853 2012-03-10  Bruno Haible  <bruno@clisp.org>
854
855         math tests: Small simplification.
856         * tests/test-exp.h (test_function): Use the same err_bound for
857         'double' on platforms with sizeof (long double) == sizeof (double)
858         than on platforms with sizeof (long double) > sizeof (double).
859         * tests/test-exp2.h (test_function): Likewise.
860         * tests/test-expm1.h (test_function): Likewise.
861         * tests/test-log.h (test_function): Likewise.
862
863 2012-03-10  Bruno Haible  <bruno@clisp.org>
864
865         Fix some comments.
866         * lib/expl.c: Fix an ambiguous comment.
867         * lib/expm1.c: Likewise.
868         * lib/expm1l.c: Likewise.
869         * lib/exp2.c: Likewise.
870         * lib/exp2l.c: Likewise.
871
872 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
873
874         regex: allow inclusion of <regex.h> before <limits.h>
875         Without this patch, portable programs had to include <limits.h> before
876         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
877         I ran into this problem with a test version of GNU grep on Solaris 8.
878         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
879         This is done conditionally so that this change can be merged
880         back to glibc.
881         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
882         using the included regex.
883
884         fts: depend on fdopendir
885         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
886         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
887         problem was introduced when fdopendir was split out.
888
889 2012-03-10  Bruno Haible  <bruno@clisp.org>
890
891         Remove unused variables.
892         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
893         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
894
895 2012-03-10  Bruno Haible  <bruno@clisp.org>
896
897         isnanf-nolibm: Fix last commit.
898         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
899
900         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
901         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
902
903 2012-03-10  Bruno Haible  <bruno@clisp.org>
904
905         logf-ieee: Work around test failure on NetBSD 5.1.
906         * m4/logf-ieee.m4: New file.
907         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
908         whether logf works with a negative argument. Replace it if not.
909         * lib/logf.c (logf): For negative arguments, return NaN.
910         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
911         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
912         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
913
914         logf-ieee: Work around test failure on Solaris 9.
915         * modules/logf-ieee (Depends-on): Add log-ieee.
916         (configure.ac): Require gl_FUNC_LOGF.
917
918         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
919         * m4/log-ieee.m4: New file.
920         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
921         log works with a negative argument. Replace it if not.
922         * lib/log.c (log): For negative arguments, return NaN.
923         * modules/log-ieee (Files): Add m4/log-ieee.m4.
924         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
925         * doc/posix-functions/log.texi: Mention the log-ieee module.
926
927         Tests for module 'logl-ieee'.
928         * modules/logl-ieee-tests: New file.
929         * tests/test-logl-ieee.c: New file.
930
931         New module 'logl-ieee'.
932         * modules/logl-ieee: New file.
933
934         Tests for module 'log-ieee'.
935         * modules/log-ieee-tests: New file.
936         * tests/test-log-ieee.c: New file.
937
938         New module 'log-ieee'.
939         * modules/log-ieee: New file.
940
941         Tests for module 'logf-ieee'.
942         * modules/logf-ieee-tests: New file.
943         * tests/test-logf-ieee.c: New file.
944         * tests/test-log-ieee.h: New file.
945
946         New module 'logf-ieee'.
947         * modules/logf-ieee: New file.
948
949 2012-03-10  Bruno Haible  <bruno@clisp.org>
950
951         log: Fix bug introduced on 2012-03-09.
952         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
953
954 2012-03-10  Pádraig Brady  <P@draigBrady.com>
955
956         timer-time: link explicitly with pthreads on glibc
957         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
958         to support static linking, when newer glibc is
959         detected, as that contains pthread emulation of
960         POSIX timer functions where required.
961         * modules/timer-time: Depend on threadlib to
962         pull in the appropriate library to link.
963
964 2012-03-10  Bruno Haible  <bruno@clisp.org>
965
966         log* tests: More tests.
967         * tests/test-log.h: New file.
968         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
969         (main): Invoke test_function.
970         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
971         (main): Invoke test_function.
972         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
973         (main): Invoke test_function.
974         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
975         tests/randomd.c.
976         (Makefile.am): Add randomd.c to test_log_SOURCES.
977         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
978         tests/randomf.c.
979         (Makefile.am): Add randomf.c to test_logf_SOURCES.
980         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
981         tests/randoml.c.
982         (Depends-on): Add 'float'.
983         (Makefile.am): Add randoml.c to test_logl_SOURCES.
984
985 2012-03-09  Bruno Haible  <bruno@clisp.org>
986
987         logl: Work around OSF/1 5.1 bug.
988         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
989         * lib/logl.c (logl): If logl exists, use it and provide just the
990         workaround.
991         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
992         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
994         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
995         * modules/logl (configure.ac): Consider REPLACE_LOGL.
996         (Depends-on): Update conditions.
997         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
998
999 2012-03-09  Bruno Haible  <bruno@clisp.org>
1000
1001         logf: Work around OSF/1 5.1 bug.
1002         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1003         * lib/logf.c (logf): If logf exists, use it and provide just the
1004         workaround.
1005         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1006         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1008         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1009         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1010         (Depends-on): Update conditions.
1011         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1012
1013 2012-03-09  Bruno Haible  <bruno@clisp.org>
1014
1015         log: Work around OSF/1 5.1 bug.
1016         * lib/math.in.h (log): New declaration.
1017         * lib/log.c: New file.
1018         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1019         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1020         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1022         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1023         * modules/log (Files): Add lib/log.c.
1024         (Depends-on): Add math.
1025         (configure.ac): If REPLACE_LOG is 1, compile an override.
1026         * tests/test-math-c++.cc: Check the declaration of log.
1027         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1028
1029 2012-03-09  Jim Meyering  <meyering@redhat.com>
1030
1031         readtokens.c: adjust wording in a comment
1032         * lib/readtokens.c: Insert omitted "that" in a comment.
1033
1034 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1035
1036         modechange: add notations +40, 00440, etc.
1037         * lib/modechange.c (mode_compile): Support new notations
1038         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1039
1040 2012-03-08  Bruno Haible  <bruno@clisp.org>
1041
1042         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1043         * m4/exp2l-ieee.m4: New file.
1044         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1045         test whether exp2l works with a NaN argument and with a negative
1046         infinity argument. Replace it if not.
1047         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1049         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1050         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1051         (Depends-on): Update conditions.
1052         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1053         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1054         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1055
1056         Tests for module 'exp2l-ieee'.
1057         * modules/exp2l-ieee-tests: New file.
1058         * tests/test-exp2l-ieee.c: New file.
1059
1060         New module 'exp2l-ieee'.
1061         * modules/exp2l-ieee: New file.
1062
1063         Tests for module 'exp2-ieee'.
1064         * modules/exp2-ieee-tests: New file.
1065         * tests/test-exp2-ieee.c: New file.
1066
1067         New module 'exp2-ieee'.
1068         * modules/exp2-ieee: New file.
1069
1070         Tests for module 'exp2f-ieee'.
1071         * modules/exp2f-ieee-tests: New file.
1072         * tests/test-exp2f-ieee.c: New file.
1073         * tests/test-exp2-ieee.h: New file.
1074
1075         New module 'exp2f-ieee'.
1076         * modules/exp2f-ieee: New file.
1077
1078 2012-03-08  Bruno Haible  <bruno@clisp.org>
1079
1080         Tests for module 'exp2l'.
1081         * modules/exp2l-tests: New file.
1082         * tests/test-exp2l.c: New file.
1083
1084         New module 'exp2l'.
1085         * lib/math.in.h (exp2l): New declaration.
1086         * lib/exp2l.c: New file.
1087         * lib/expl-table.c: New file, extracted from lib/expl.c.
1088         * lib/expl.c (gl_expl_table): New declaration.
1089         (expl): Remove expl_table. Update reference.
1090         * m4/exp2l.m4: New file.
1091         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1093         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1094         * modules/exp2l: New file.
1095         * modules/expl (Files): Add lib/expl-table.c.
1096         (configure.ac): Compile also expl-table.c.
1097         * tests/test-math-c++.cc: Check the declaration of exp2l.
1098         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1099         problem.
1100
1101 2012-03-08  Bruno Haible  <bruno@clisp.org>
1102
1103         Tests for module 'exp2f'.
1104         * modules/exp2f-tests: New file.
1105         * tests/test-exp2f.c: New file.
1106
1107         New module 'exp2f'.
1108         * lib/math.in.h (exp2f): New declaration.
1109         * lib/exp2f.c: New file.
1110         * m4/exp2f.m4: New file.
1111         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1113         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1114         * modules/exp2f: New file.
1115         * tests/test-math-c++.cc: Check the declaration of exp2f.
1116         * doc/posix-functions/exp2f.texi: Mention the new module and the
1117         IRIX problem.
1118
1119 2012-03-08  Bruno Haible  <bruno@clisp.org>
1120
1121         Tests for module 'exp2'.
1122         * modules/exp2-tests: New file.
1123         * tests/test-exp2.c: New file.
1124         * tests/test-exp2.h: New file.
1125
1126         New module 'exp2'.
1127         * lib/math.in.h (exp2): New declaration.
1128         * lib/exp2.c: New file.
1129         * m4/exp2.m4: New file.
1130         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1132         REPLACE_EXP2.
1133         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1134         REPLACE_EXP2.
1135         * modules/exp2: New file.
1136         * tests/test-math-c++.cc: Check the declaration of exp2.
1137         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1138         and OpenBSD problems.
1139
1140 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1141
1142         savedir: fix comment typo
1143         * lib/savedir.c (savedirstream): Fix typo in comment.
1144
1145 2012-03-08  Bruno Haible  <bruno@clisp.org>
1146
1147         test-readtokens.c: use const; remove unwarranted cast
1148         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1149
1150 2012-03-08  Bruno Haible  <bruno@clisp.org>
1151
1152         fmal: Avoid compilation error on AIX.
1153         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1154         AIX 5.2..7.1.
1155
1156 2012-03-08  Bruno Haible  <bruno@clisp.org>
1157
1158         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1159         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1160         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1161         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1162         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1163         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1164         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1165
1166 2012-03-08  Bruno Haible  <bruno@clisp.org>
1167
1168         remainderf: Override buggy system function on IRIX 6.5.
1169         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1170         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1171         when it exists.
1172         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1173
1174 2012-03-08  Jim Meyering  <meyering@redhat.com>
1175
1176         test-readtokens.c: avoid const-related compilation warnings
1177         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1178
1179 2012-03-07  Jim Meyering  <meyering@redhat.com>
1180             Bruno Haible  <bruno@clisp.org>
1181
1182         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1183         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1184         tests/randomd.c.
1185         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1186         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1187         tests/randoml.c.
1188         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1189
1190 2012-03-07  Bruno Haible  <bruno@clisp.org>
1191
1192         expm1l: Avoid compilation error on AIX.
1193         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1194         AIX 5.2..7.1.
1195
1196 2012-03-07  Bruno Haible  <bruno@clisp.org>
1197
1198         expm1l: Don't override undeclared system function on IRIX 6.5.
1199         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1200         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1201         it exists. Set HAVE_DECL_EXPM1L.
1202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1203         HAVE_EXPM1L.
1204         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1205         HAVE_EXPM1L.
1206         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1207
1208 2012-03-07  Bruno Haible  <bruno@clisp.org>
1209
1210         remainderl: Don't override undeclared system function on IRIX 6.5.
1211         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1212         HAVE_REMAINDERL.
1213         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1214         declared when it exists. Set HAVE_DECL_REMAINDERL.
1215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1216         not HAVE_REMAINDERL.
1217         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1218         HAVE_REMAINDERL.
1219         * doc/posix-functions/remainderl.texi: Mention missing declaration
1220         problem.
1221
1222 2012-03-07  Bruno Haible  <bruno@clisp.org>
1223
1224         rintf: Don't override undeclared system function on IRIX 6.5.
1225         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1226         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1227         exists. Set HAVE_DECL_RINTF.
1228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1229         HAVE_RINTF.
1230         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1231         HAVE_RINTF.
1232         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1233
1234 2012-03-07  Bruno Haible  <bruno@clisp.org>
1235
1236         roundl: Avoid compilation error on AIX.
1237         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1238         AIX 5.2..7.1.
1239
1240 2012-03-07  Bruno Haible  <bruno@clisp.org>
1241
1242         roundl: Don't override undeclared system function on IRIX 6.5.
1243         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1244         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1245         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1246         * modules/roundl (configure.ac): For replacement code, test
1247         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1248         (Depends-on): Update conditions.
1249         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1250
1251 2012-03-07  Bruno Haible  <bruno@clisp.org>
1252
1253         roundf: Don't override undeclared system function on IRIX 6.5.
1254         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1255         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1256         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1257         * modules/roundf (configure.ac): For replacement code, test
1258         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1259         (Depends-on): Update conditions.
1260         * modules/roundf-ieee (Depends-on): Update conditions.
1261         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1262
1263 2012-03-07  Bruno Haible  <bruno@clisp.org>
1264
1265         round: Don't override undeclared system function on IRIX 6.5.
1266         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1267         argument.
1268         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1269         also when it is not declared. Set HAVE_ROUND. For replacement code,
1270         test HAVE_ROUND, not HAVE_DECL_ROUND.
1271         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1272         not HAVE_DECL_ROUND.
1273         (Depends-on): Update conditions.
1274         * modules/round-ieee (Depends-on): Update conditions.
1275         * doc/posix-functions/round.texi: Mention the IRIX problem.
1276
1277 2012-03-07  Bruno Haible  <bruno@clisp.org>
1278
1279         copysignf: Don't override undeclared system function on IRIX 6.5.
1280         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1281         HAVE_COPYSIGNF.
1282         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1283         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1285         not HAVE_COPYSIGNF.
1286         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1287         HAVE_COPYSIGNF.
1288         * doc/posix-functions/copysignf.texi: Mention missing declaration
1289         problem.
1290
1291 2012-03-07  Jim Meyering  <meyering@redhat.com>
1292
1293         readtokens: add tests
1294         * modules/readtokens-tests: New file.
1295         * tests/test-readtokens.c: New file.
1296
1297 2012-03-07  Jim Meyering  <meyering@redhat.com>
1298
1299         quotearg: the module must now include quote.h
1300         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1301         So must the module.
1302         * modules/quotearg (Files): Add quote.h.
1303
1304 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1305
1306         readtokens: avoid core dumps with unusual calling patterns
1307         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1308         * lib/readtokens.c: Include limits.h.
1309         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1310         (readtoken): Don't cache the delimiters; the cache code was buggy
1311         if !delim && saved_delim, or if the new n_delim differs from the old.
1312         Also, it wasn't thread-safe.
1313
1314 2012-03-07  Bruno Haible  <bruno@clisp.org>
1315
1316         quote: Adhere to common module description layout.
1317         * modules/quote (Makefile.am): Add back empty section.
1318
1319 2012-03-06  Akim Demaille  <demaille@gostai.com>
1320
1321         quote: fuse into quotearg
1322         This patch is made for the benefit of Bison.
1323         quote does not leave the choice of the quoting style to the user.
1324         quoting_style provides poor customizability, yet quoting_options,
1325         which is very rich, is hidden inside quotearg.c.  So in order to
1326         allow quote customization, move its implementation to quotearg.c.
1327         * lib/quote.c: Remove.
1328         * modules/quote: Adjust.
1329         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1330         warning: provide all the members of literal structs.
1331         (quote_quoting_options): New.
1332         (quote, quote_n): Import implementation from quote.c.
1333         * lib/quote.h: Import the comments from quote.c.
1334         (quote_quoting_options): New.
1335
1336 2012-03-06  Bruno Haible  <bruno@clisp.org>
1337
1338         Tests for module 'expm1l-ieee'.
1339         * modules/expm1l-ieee-tests: New file.
1340         * tests/test-expm1l-ieee.c: New file.
1341
1342         New module 'expm1l-ieee'.
1343         * modules/expm1l-ieee: New file.
1344
1345         Tests for module 'expm1f-ieee'.
1346         * modules/expm1f-ieee-tests: New file.
1347         * tests/test-expm1f-ieee.c: New file.
1348
1349         New module 'expm1f-ieee'.
1350         * modules/expm1f-ieee: New file.
1351
1352         Tests for module 'expm1-ieee'.
1353         * modules/expm1-ieee-tests: New file.
1354         * tests/test-expm1-ieee.c: New file.
1355         * tests/test-expm1-ieee.h: New file.
1356
1357         New module 'expm1-ieee'.
1358         * modules/expm1-ieee: New file.
1359         * m4/expm1-ieee.m4: New file.
1360         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1361         whether expm1 works with a minus zero argument. Replace it if not.
1362         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1364         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1365         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1366         (Depends-on): Update conditions.
1367         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1368         AIX problem.
1369
1370 2012-03-06  Bruno Haible  <bruno@clisp.org>
1371
1372         Work around expm1f bug on IRIX 6.5.
1373         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1374         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1375         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1376         not work.
1377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1378         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1379         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1380         (Depends-on): Update conditions.
1381         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1382
1383 2012-03-06  Bruno Haible  <bruno@clisp.org>
1384
1385         Tests for module 'expm1l'.
1386         * modules/expm1l-tests: New file.
1387         * tests/test-expm1l.c: New file.
1388
1389         New module 'expm1l'.
1390         * lib/math.in.h (expm1l): New declaration.
1391         * lib/expm1l.c: New file.
1392         * m4/expm1l.m4: New file.
1393         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1394         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1395         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1396         * modules/expm1l: New file.
1397         * tests/test-math-c++.cc: Check the declaration of expm1l.
1398         * doc/posix-functions/expm1l.texi: Mention the new module.
1399
1400 2012-03-06  Bruno Haible  <bruno@clisp.org>
1401
1402         Tests for module 'expm1f'.
1403         * modules/expm1f-tests: New file.
1404         * tests/test-expm1f.c: New file.
1405
1406         New module 'expm1f'.
1407         * lib/math.in.h (expm1f): New declaration.
1408         * lib/expm1f.c: New file.
1409         * m4/expm1f.m4: New file.
1410         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1412         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1413         * modules/expm1f: New file.
1414         * tests/test-math-c++.cc: Check the declaration of expm1f.
1415         * doc/posix-functions/expm1f.texi: Mention the new module.
1416
1417 2012-03-06  Bruno Haible  <bruno@clisp.org>
1418
1419         Tests for module 'expm1'.
1420         * modules/expm1-tests: New file.
1421         * tests/test-expm1.c: New file.
1422         * tests/test-expm1.h: New file.
1423
1424         New module 'expm1'.
1425         * lib/math.in.h (expm1): New declaration.
1426         * lib/expm1.c: New file.
1427         * m4/expm1.m4: New file.
1428         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1430         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1431         * modules/expm1: New file.
1432         * tests/test-math-c++.cc: Check the declaration of expm1.
1433         * doc/posix-functions/expm1.texi: Mention the new module.
1434
1435 2012-03-06  Bruno Haible  <bruno@clisp.org>
1436
1437         math: Ensure declarations of math functions.
1438         * modules/acosf (Depends-on): Add 'extensions'.
1439         * modules/asinf (Depends-on): Likewise.
1440         * modules/atan2f (Depends-on): Likewise.
1441         * modules/atanf (Depends-on): Likewise.
1442         * modules/cbrt (Depends-on): Likewise.
1443         * modules/cbrtf (Depends-on): Likewise.
1444         * modules/cbrtl (Depends-on): Likewise.
1445         * modules/copysignf (Depends-on): Likewise.
1446         * modules/copysignl (Depends-on): Likewise.
1447         * modules/cosf (Depends-on): Likewise.
1448         * modules/coshf (Depends-on): Likewise.
1449         * modules/expf (Depends-on): Likewise.
1450         * modules/fabsf (Depends-on): Likewise.
1451         * modules/fabsl (Depends-on): Likewise.
1452         * modules/fmaf (Depends-on): Likewise.
1453         * modules/fmal (Depends-on): Likewise.
1454         * modules/fmodf (Depends-on): Likewise.
1455         * modules/fmodl (Depends-on): Likewise.
1456         * modules/frexpf (Depends-on): Likewise.
1457         * modules/frexpl (Depends-on): Likewise.
1458         * modules/hypot (Depends-on): Likewise.
1459         * modules/hypotf (Depends-on): Likewise.
1460         * modules/hypotl (Depends-on): Likewise.
1461         * modules/ldexpf (Depends-on): Likewise.
1462         * modules/ldexpl (Depends-on): Likewise.
1463         * modules/log10f (Depends-on): Likewise.
1464         * modules/log10l (Depends-on): Likewise.
1465         * modules/log1p (Depends-on): Likewise.
1466         * modules/logb (Depends-on): Likewise.
1467         * modules/logf (Depends-on): Likewise.
1468         * modules/modff (Depends-on): Likewise.
1469         * modules/modfl (Depends-on): Likewise.
1470         * modules/powf (Depends-on): Likewise.
1471         * modules/remainderf (Depends-on): Likewise.
1472         * modules/remainderl (Depends-on): Likewise.
1473         * modules/rintf (Depends-on): Likewise.
1474         * modules/rintl (Depends-on): Likewise.
1475         * modules/sinf (Depends-on): Likewise.
1476         * modules/sinhf (Depends-on): Likewise.
1477         * modules/sqrtf (Depends-on): Likewise.
1478         * modules/tanf (Depends-on): Likewise.
1479         * modules/tanhf (Depends-on): Likewise.
1480         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1481         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1482         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1483         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1484         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1485         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1486         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1487         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1488         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1489         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1490         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1491         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1492         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1493         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1494         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1495         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1496         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1497         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1498         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1499         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1500         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1501         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1502         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1503         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1505         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1506         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1507         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1508         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1509         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1510         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1511         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1512         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1513         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1514         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1515         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1516         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1517         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1518         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1519         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1520         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1521
1522 2012-03-06  Bruno Haible  <bruno@clisp.org>
1523
1524         math: Update module names in warnings.
1525         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1526         tanl): Use specific module name in warn-on-use warning.
1527
1528 2012-03-06  Bruno Haible  <bruno@clisp.org>
1529
1530         expl: Simplify computation.
1531         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1532
1533 2012-03-05  Bruno Haible  <bruno@clisp.org>
1534
1535         exp* tests: More tests.
1536         * tests/test-exp.h: New file.
1537         * tests/test-exp.c: Include <float.h> and test-exp.h.
1538         (main): Invoke test_function.
1539         * tests/test-expf.c: Include <float.h> and test-exp.h.
1540         (main): Invoke test_function.
1541         * tests/test-expl.c: Include <float.h> and test-exp.h.
1542         (main): Invoke test_function.
1543         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1544         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1545         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1546         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1547         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1548         (Depends-on): Add 'float'.
1549         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1550
1551         expl: Fix precision of computed result.
1552         * lib/expl.c: Completely rewritten.
1553         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1554         (Maintainer): Add me.
1555         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1556
1557 2012-03-05  Bruno Haible  <bruno@clisp.org>
1558
1559         cbrt* tests: More tests.
1560         * tests/test-cbrt.h: New file.
1561         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1562         (main): Invoke test_function.
1563         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1564         (main): Invoke test_function.
1565         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1566         (main): Invoke test_function.
1567         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1568         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1569         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1570         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1571         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1572         (Depends-on): Add 'float'.
1573         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1574
1575 2012-03-05  Bruno Haible  <bruno@clisp.org>
1576
1577         hypot* tests: More tests.
1578         * tests/test-hypot.h: New file, partially extracted from
1579         tests/test-hypotl.c.
1580         * tests/test-hypot.c: Include test-hypot.h.
1581         (main): Invoke test_function.
1582         * tests/test-hypotf.c: Include test-hypot.h.
1583         (main): Invoke test_function.
1584         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1585         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1586         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1587         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1588         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1589         tests/randomf.c.
1590         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1591         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1592         tests/randoml.c.
1593         (Depends-on): Add 'fpucw', 'float'.
1594         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1595
1596 2012-03-05  Bruno Haible  <bruno@clisp.org>
1597
1598         fpucw: Doc about FreeBSD.
1599         * lib/fpucw.h: Mention FreeBSD in comments.
1600
1601 2012-03-04  Bruno Haible  <bruno@clisp.org>
1602
1603         sqrt* tests: More tests.
1604         * tests/test-sqrt.h: New file.
1605         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1606         (main): Invoke test_function.
1607         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1608         (main): Invoke test_function.
1609         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1610         (main): Invoke test_function.
1611         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1612         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1613         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1614         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1615         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1616         (Depends-on): Add 'float'.
1617         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1618
1619 2012-03-04  Bruno Haible  <bruno@clisp.org>
1620
1621         remainder* tests: More tests.
1622         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1623         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1624         (main): Invoke test_function.
1625         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1626         (main): Invoke test_function.
1627         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1628         (main): Invoke test_function.
1629         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1630         tests/randomd.c.
1631         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1632         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1633         tests/randomf.c.
1634         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1635         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1636         tests/randoml.c.
1637         (Depends-on): Add 'float'.
1638         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1639
1640 2012-03-04  Bruno Haible  <bruno@clisp.org>
1641
1642         remainder, remainderf, remainderl: Fix computation for large quotients.
1643         * lib/remainder.c: Completely rewritten.
1644         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1645         USE_FLOAT.
1646         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1647         USE_LONG_DOUBLE.
1648         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1649         isnand, isinf. Remove round, fma.
1650         * modules/remainderf (Files): Add lib/remainder.c.
1651         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1652         Remove roundf, fmaf.
1653         * modules/remainderl (Files): Add lib/remainder.c.
1654         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1655         isinf. Remove roundl, fmal.
1656         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1657         REMAINDER_LIBM.
1658         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1659         REMAINDERF_LIBM.
1660         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1661         REMAINDERL_LIBM.
1662
1663 2012-03-04  Bruno Haible  <bruno@clisp.org>
1664
1665         fmod* tests: More tests.
1666         * tests/test-fmod.h (my_ldexp): New function.
1667         (test_function): Reduce amount of random numbers to test. Add tests
1668         of very large quotients x / y.
1669         * tests/test-fmod.c (MAX_EXP): New macro.
1670         * tests/test-fmodf.c (MAX_EXP): Likewise.
1671         * tests/test-fmodl.c (MAX_EXP): Likewise.
1672
1673 2012-03-04  Bruno Haible  <bruno@clisp.org>
1674
1675         fmod, fmodl: Fix computation for large quotients x / y.
1676         * lib/fmod.c: Completely rewritten.
1677         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1678         USE_LONG_DOUBLE.
1679         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1680         isnand. Remove fma.
1681         * modules/fmodl (Files): Add lib/fmod.c.
1682         (Depends-on): Add float, isfinite, signbit, fabsl,
1683         frexpl, ldexpl, isnanl. Remove fma.
1684         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1685         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1686
1687 2012-03-03  Bruno Haible  <bruno@clisp.org>
1688
1689         fmod* tests: More tests.
1690         * tests/test-fmod.h: New file.
1691         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1692         (main): Invoke test_function.
1693         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1694         (main): Invoke test_function.
1695         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1696         (main): Invoke test_function.
1697         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1698         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1699         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1700         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1701         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1702         (Depends-on): Add 'float'.
1703         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1704
1705 2012-03-03  Bruno Haible  <bruno@clisp.org>
1706
1707         rint* tests: More tests.
1708         * tests/test-rint.h: New file, partially extracted from
1709         tests/test-rintl.c.
1710         * tests/test-rint.c: Include test-rint.h.
1711         (main): Invoke test_function.
1712         * tests/test-rintf.c: Include test-rint.h.
1713         (main): Invoke test_function.
1714         * tests/test-rintl.c: Include test-rint.h.
1715         (main): Invoke test_function.
1716         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1717         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1718         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1719         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1720         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1721         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1722
1723 2012-03-03  Bruno Haible  <bruno@clisp.org>
1724
1725         modf* tests: More tests.
1726         * tests/test-modf.h: New file.
1727         * tests/test-modf.c: Include <float.h> and test-modf.h.
1728         (main): Invoke test_function.
1729         * tests/test-modff.c: Include <float.h> and test-modf.h.
1730         (main): Invoke test_function.
1731         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1732         (main): Invoke test_function.
1733         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1734         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1735         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1736         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1737         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1738         (Depends-on): Add 'float'.
1739         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1740
1741 2012-03-03  Bruno Haible  <bruno@clisp.org>
1742
1743         fabs* tests: More tests.
1744         * tests/test-fabs.h: New file, partially extracted from
1745         tests/test-fabsl.c.
1746         * tests/test-fabs.c (RANDOM): New macro.
1747         * tests/test-fabsf.c (RANDOM): New macro.
1748         * tests/test-fabsl.c (RANDOM): New macro.
1749         * modules/fabs-tests (Files): Add tests/randomd.c.
1750         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1751         * modules/fabsf-tests (Files): Add tests/randomf.c.
1752         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1753         * modules/fabsl-tests (Files): Add tests/randoml.c.
1754         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1755
1756 2012-03-03  Bruno Haible  <bruno@clisp.org>
1757
1758         ldexp* tests: More tests.
1759         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1760         * tests/test-ldexp.c (RANDOM): New macro.
1761         * tests/test-ldexpf.c (RANDOM): New macro.
1762         * tests/test-ldexpl.c (RANDOM): New macro.
1763         * modules/ldexp-tests (Files): Add tests/randomd.c.
1764         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1765         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1766         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1767         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1768         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1769
1770 2012-03-03  Bruno Haible  <bruno@clisp.org>
1771
1772         frexp* tests: More tests.
1773         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1774         * tests/test-frexp.c (RANDOM): New macro.
1775         * tests/test-frexpf.c (RANDOM): New macro.
1776         * tests/test-frexpl.c (RANDOM): New macro.
1777         * modules/frexp-tests (Files): Add tests/randomd.c.
1778         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1779         * modules/frexpf-tests (Files): Add tests/randomf.c.
1780         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1781         * modules/frexpl-tests (Files): Add tests/randoml.c.
1782         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1783
1784 2012-03-03  Bruno Haible  <bruno@clisp.org>
1785
1786         Support for pseudo-random numbers in tests.
1787         * tests/randomf.c: New file.
1788         * tests/randomd.c: New file.
1789         * tests/randoml.c: New file.
1790         * tests/macros.h (randomf, randomd, randoml): New declarations.
1791
1792 2012-03-03  Bruno Haible  <bruno@clisp.org>
1793
1794         frexp* tests: Refactor.
1795         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1796         * tests/test-frexp.c: Include and use it.
1797         * tests/test-frexpf.c: Likewise.
1798         * tests/test-frexpl.c: Likewise.
1799         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1800         * modules/frexpf-tests (Files): Likewise.
1801         * modules/frexpl-tests (Files): Likewise.
1802
1803 2012-03-02  Jim Meyering  <meyering@redhat.com>
1804
1805         maint: don't specify XZ_OPT=-9ev in dist-related rule
1806         Using xz's -9 option is warranted only if you have a very large
1807         tarball (see xz's documentation for the sizes vs. presets), and
1808         requires 64MiB of memory at decompression time.
1809         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1810         Automake's default of just "-e" is fine.  Override on a
1811         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1812
1813 2012-03-01  Eric Blake  <eblake@redhat.com>
1814
1815         maint.mk: allow announcement for non-gnulib project
1816         * maint.mk (announcement): Skip gnulib version if not used.
1817
1818 2012-03-01  Jim Meyering  <meyering@redhat.com>
1819
1820         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1821         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1822         envvar settings cannot interfere.  Otherwise, setting envvars like
1823         prohibit=foo require=bar, etc. would cause spurious test failures.
1824
1825 2012-03-01  Eric Blake  <eblake@redhat.com>
1826
1827         maint.mk: add per-line exclusions to prohibitions
1828         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1829         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1830         (sc_const_long_option): Use it.
1831
1832 2012-03-01  Bruno Haible  <bruno@clisp.org>
1833
1834         Tests for module 'expl-ieee'.
1835         * modules/expl-ieee-tests: New file.
1836         * tests/test-expl-ieee.c: New file.
1837
1838         New module 'expl-ieee'.
1839         * modules/expl-ieee: New file.
1840
1841         Tests for module 'exp-ieee'.
1842         * modules/exp-ieee-tests: New file.
1843         * tests/test-exp-ieee.c: New file.
1844
1845         New module 'exp-ieee'.
1846         * modules/exp-ieee: New file.
1847
1848         Tests for module 'expf-ieee'.
1849         * modules/expf-ieee-tests: New file.
1850         * tests/test-expf-ieee.c: New file.
1851         * tests/test-exp-ieee.h: New file.
1852
1853         New module 'expf-ieee'.
1854         * modules/expf-ieee: New file.
1855
1856 2012-02-29  Bruno Haible  <bruno@clisp.org>
1857
1858         cbrtl-ieee: Work around test failure on IRIX 6.5.
1859         * m4/cbrtl-ieee.m4: New file.
1860         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1861         test whether cbrtl works with a minus zero argument. Replace it if not.
1862         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1864         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1865         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1866         (Depends-on): Update conditions.
1867         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1868         m4/signbit.m4.
1869         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1870         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1871         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1872
1873         Tests for module 'cbrtl-ieee'.
1874         * modules/cbrtl-ieee-tests: New file.
1875         * tests/test-cbrtl-ieee.c: New file.
1876
1877         New module 'cbrtl-ieee'.
1878         * modules/cbrtl-ieee: New file.
1879
1880         Tests for module 'cbrt-ieee'.
1881         * modules/cbrt-ieee-tests: New file.
1882         * tests/test-cbrt-ieee.c: New file.
1883
1884         New module 'cbrt-ieee'.
1885         * modules/cbrt-ieee: New file.
1886
1887         Tests for module 'cbrtf-ieee'.
1888         * modules/cbrtf-ieee-tests: New file.
1889         * tests/test-cbrtf-ieee.c: New file.
1890         * tests/test-cbrt-ieee.h: New file.
1891
1892         New module 'cbrtf-ieee'.
1893         * modules/cbrtf-ieee: New file.
1894
1895 2012-02-29  Bruno Haible  <bruno@clisp.org>
1896
1897         cbrtf: Work around bug in IRIX 6.5 system function.
1898         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1899         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1900         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1901         work.
1902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1903         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1904         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1905         (Depends-on): Update conditions.
1906         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1907
1908 2012-02-29  Bruno Haible  <bruno@clisp.org>
1909
1910         Tests for module 'cbrtl'.
1911         * modules/cbrtl-tests: New file.
1912         * tests/test-cbrtl.c: New file.
1913
1914         New module 'cbrtl'.
1915         * lib/math.in.h (cbrtl): New declaration.
1916         * lib/cbrtl.c: New file.
1917         * m4/cbrtl.m4: New file.
1918         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1920         HAVE_DECL_CBRTL.
1921         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1922         HAVE_DECL_CBRTL.
1923         * modules/cbrtl: New file.
1924         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1925         * doc/posix-functions/cbrtl.texi: Mention the new module.
1926
1927 2012-02-29  Bruno Haible  <bruno@clisp.org>
1928
1929         Tests for module 'cbrtf'.
1930         * modules/cbrtf-tests: New file.
1931         * tests/test-cbrtf.c: New file.
1932
1933         New module 'cbrtf'.
1934         * lib/math.in.h (cbrtf): New declaration.
1935         * lib/cbrtf.c: New file.
1936         * m4/cbrtf.m4: New file.
1937         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1939         HAVE_DECL_CBRTF.
1940         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1941         HAVE_DECL_CBRTF.
1942         * modules/cbrtf: New file.
1943         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1944         * doc/posix-functions/cbrtf.texi: Mention the new module.
1945
1946 2012-02-29  Bruno Haible  <bruno@clisp.org>
1947
1948         cbrt: Provide replacement on MSVC and Minix.
1949         * lib/math.in.h (cbrt): New declaration.
1950         * lib/cbrt.c: New file.
1951         * m4/cbrt.m4: New file.
1952         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1954         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1955         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1956         (Depends-on): Add dependencies.
1957         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1958         * tests/test-math-c++.cc: Check the declaration of cbrt.
1959         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1960         replacement.
1961
1962 2012-02-29  Bruno Haible  <bruno@clisp.org>
1963
1964         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1965         * m4/hypotl-ieee.m4: New file.
1966         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1967         test whether hypotl works with mixed NaN and Infinity arguments.
1968         Replace it if not.
1969         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1971         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1972         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1973         (Depends-on): Update conditions.
1974         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1975         (Depends-on): Add hypot-ieee.
1976         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1977         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1978
1979         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1980         * m4/hypotf-ieee.m4: New file.
1981         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1982         test whether hypotf works with mixed NaN and Infinity arguments.
1983         Replace it if not.
1984         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1985         (Depends-on): Add hypot-ieee.
1986         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1987         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1988
1989         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1990         * lib/math.in.h (hypot): New declaration.
1991         * lib/hypot.c: New file.
1992         * m4/hypot-ieee.m4: New file.
1993         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1994         whether hypot works with mixed NaN and Infinity arguments. Replace it
1995         if not.
1996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1997         REPLACE_HYPOT.
1998         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1999         * modules/hypot (Files): Add lib/hypot.c.
2000         (Depends-on): Add dependencies.
2001         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2002         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2003         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2004         * tests/test-math-c++.cc: Check the declaration of hypot.
2005         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2006
2007         Tests for module 'hypotl-ieee'.
2008         * modules/hypotl-ieee-tests: New file.
2009         * tests/test-hypotl-ieee.c: New file.
2010
2011         New module 'hypotl-ieee'.
2012         * modules/hypotl-ieee: New file.
2013
2014         Tests for module 'hypot-ieee'.
2015         * modules/hypot-ieee-tests: New file.
2016         * tests/test-hypot-ieee.c: New file.
2017
2018         New module 'hypot-ieee'.
2019         * modules/hypot-ieee: New file.
2020
2021         Tests for module 'hypotf-ieee'.
2022         * modules/hypotf-ieee-tests: New file.
2023         * tests/test-hypotf-ieee.c: New file.
2024         * tests/test-hypot-ieee.h: New file.
2025
2026         New module 'hypotf-ieee'.
2027         * modules/hypotf-ieee: New file.
2028
2029 2012-02-29  Bruno Haible  <bruno@clisp.org>
2030
2031         Remove unused variables.
2032         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2033         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2034         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2035         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2036
2037 2012-02-29  Eric Blake  <eblake@redhat.com>
2038
2039         termios: fix pid_t always, not just for tcgetsid
2040         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2041         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2042         just when building tcgetsid.
2043
2044 2012-02-29  Bruno Haible  <bruno@clisp.org>
2045
2046         Tests for module 'hypotl'.
2047         * modules/hypotl-tests: New file.
2048         * tests/test-hypotl.c: New file.
2049
2050         New module 'hypotl'.
2051         * lib/math.in.h (hypotl): New declaration.
2052         * lib/hypotl.c: New file.
2053         * m4/hypotl.m4: New file.
2054         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2055         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2056         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2057         * modules/hypotl: New file.
2058         * tests/test-math-c++.cc: Check the hypotl declaration.
2059         * doc/posix-functions/hypotl.texi: Mention the new module.
2060
2061 2012-02-29  Eric Blake  <eblake@redhat.com>
2062
2063         tcgetsid: fix cygwin header bug
2064         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2065
2066         docs: update cygwin progress
2067         * doc/posix-functions/llround.texi (llround): Added in cygwin
2068         1.7.8.
2069         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2070         * doc/glibc-functions/program_invocation_name.texi
2071         (program_invocation_name): Likewise.
2072         * doc/glibc-functions/program_invocation_short_name.texi
2073         (program_invocation_short_name): Likewise.
2074         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2075         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2076         Likewise.
2077         * doc/posix-functions/pthread_spin_destroy.texi
2078         (pthread_spin_destroy): Added in cygwin 1.7.10.
2079         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2080         Likewise.
2081         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2082         Likewise.
2083         * doc/posix-functions/pthread_spin_trylock.texi
2084         (pthread_spin_trylock): Likewise.
2085         * doc/posix-functions/pthread_spin_unlock.texi
2086         (pthread_spin_unlock): Likewise.
2087         * doc/posix-functions/pthread_setschedprio.texi
2088         (pthread_setschedprio): Likewise.
2089         * doc/posix-functions/pthread_attr_getstack.texi
2090         (pthread_attr_getstack): Likewise.
2091         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2092         (pthread_attr_getstackaddr): Likewise.
2093         * doc/glibc-functions/pthread_getattr_np.texi
2094         (pthread_getattr_np): Likewise.
2095         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2096         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2097         * doc/posix-functions/clock_settime.texi (clock_settime):
2098         Likewise.
2099         * doc/posix-functions/pthread_attr_getguardsize.texi
2100         (pthread_attr_getguardsize): Likewise.
2101         * doc/posix-functions/pthread_attr_setguardsize.texi
2102         (pthread_attr_setguardsize): Likewise.
2103         * doc/posix-functions/pthread_attr_setstack.texi
2104         (pthread_attr_setstack): Likewise.
2105         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2106         (pthread_attr_setstackaddr): Likewise.
2107         * doc/posix-functions/clock_getcpuclockid.texi
2108         (clock_getcpuclockid): Likewise.
2109         * doc/posix-functions/pthread_getcpuclockid.texi
2110         (pthread_getcpuclockid): Likewise.
2111         * doc/glibc-functions/error.texi (error): Likewise.
2112         * doc/glibc-functions/error_at_line.texi (error_at_line):
2113         Likewise.
2114         * doc/glibc-functions/error_message_count.texi
2115         (error_message_count): Likewise.
2116         * doc/glibc-functions/error_one_per_line.texi
2117         (error_one_per_line): Likewise.
2118         * doc/glibc-functions/error_print_progname.texi
2119         (error_print_progname): Likewise.
2120         * doc/posix-functions/pthread_condattr_getclock.texi
2121         (pthread_condattr_getclock): Likewise.
2122         * doc/posix-functions/pthread_condattr_setclock.texi
2123         (pthread_condattr_setclock): Likewise.
2124         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2125         Likewise.
2126         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2127         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2128         * doc/glibc-functions/get_current_dir_name.texi
2129         (get_current_dir_name): Likewise.
2130         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2131         Likewise.
2132         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2133         wrong return type.
2134         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2135         1.7.11.
2136
2137 2012-02-29  Bruno Haible  <bruno@clisp.org>
2138
2139         Tests for module 'hypotf'.
2140         * modules/hypotf-tests: New file.
2141         * tests/test-hypotf.c: New file.
2142
2143         New module 'hypotf'.
2144         * lib/math.in.h (hypotf): New declaration.
2145         * lib/hypotf.c: New file.
2146         * m4/hypotf.m4: New file.
2147         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2149         REPLACE_HYPOTF.
2150         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2151         REPLACE_HYPOTF.
2152         * modules/hypotf: New file.
2153         * tests/test-math-c++.cc: Check the hypotf declaration.
2154         * doc/posix-functions/hypotf.texi: Mention the new module.
2155
2156         hypot: Prepare for hypotf module.
2157         * m4/hypot.m4: New file.
2158         * modules/hypot (Files): Add m4/hypot.m4.
2159         (configure.ac): Invoke gl_FUNC_HYPOT.
2160
2161 2012-02-29  Bruno Haible  <bruno@clisp.org>
2162
2163         hypot tests: More tests.
2164         * tests/test-hypot.c: Include <float.h>.
2165         (main): Add tests about overflow and underflow.
2166
2167 2012-02-29  Bruno Haible  <bruno@clisp.org>
2168
2169         math code: Add comments.
2170         * lib/acosl.c: Add comment about related glibc source files.
2171         * lib/asinl.c: Likewise.
2172         * lib/atanl.c: Likewise.
2173         * lib/expl.c: Likewise.
2174         * lib/logl.c: Likewise.
2175         * lib/sincosl.c: Likewise.
2176         * lib/sinl.c: Likewise.
2177         * lib/tanl.c: Likewise.
2178         * lib/trigl.c: Likewise.
2179         * lib/cosl.c: Likewise. Fix comments.
2180
2181 2012-02-28  Bruno Haible  <bruno@clisp.org>
2182
2183         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2184         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2185         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2186         HUGE_VALL are defined.
2187         (numeric_equald): Renamed from numeric_equal.
2188         (numeric_equalf, numeric_equall): New functions.
2189         (main): Check also HUGE_VALF, HUGE_VALL.
2190         * modules/math-tests (Files): Add tests/macros.h.
2191         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2192         HUGE_VALL.
2193
2194 2012-02-28  Bruno Haible  <bruno@clisp.org>
2195
2196         doc: Move ISO C11 feature notes into POSIX chapters.
2197         * doc/posix-functions/aligned_alloc.texi: Renamed from
2198         doc/glibc-functions/aligned_alloc.texi.
2199         * doc/posix-functions/quick_exit.texi: Renamed from
2200         doc/glibc-functions/quick_exit.texi.
2201         * doc/posix-headers/uchar.texi: Renamed from
2202         doc/glibc-headers/uchar.texi.
2203         * doc/posix-functions/c16rtomb.texi: Renamed from
2204         doc/glibc-functions/c16rtomb.texi.
2205         * doc/posix-functions/c32rtomb.texi: Renamed from
2206         doc/glibc-functions/c32rtomb.texi.
2207         * doc/posix-functions/mbrtoc16.texi: Renamed from
2208         doc/glibc-functions/mbrtoc16.texi.
2209         * doc/posix-functions/mbrtoc32.texi: Renamed from
2210         doc/glibc-functions/mbrtoc32.texi.
2211         * doc/gnulib.texi: Update.
2212         (Glibc uchar.h): Remove section.
2213         Suggested by Eric Blake.
2214
2215 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2216
2217         stdnoreturn: port to MSVC better
2218         MSVC standard headers use __declspec(noreturn), so #define noreturn
2219         to empty on that platform.  Reported by Bruno Haible in
2220         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2221         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2222         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2223
2224 2012-02-28  Bruno Haible  <bruno@clisp.org>
2225
2226         doc: Mention new glibc headers and functions.
2227         * doc/glibc-headers/uchar.texi: New file.
2228         * doc/glibc-functions/aligned_alloc.texi: New file.
2229         * doc/glibc-functions/c16rtomb.texi: New file.
2230         * doc/glibc-functions/c32rtomb.texi: New file.
2231         * doc/glibc-functions/clock_adjtime.texi: New file.
2232         * doc/glibc-functions/fanotify_init.texi: New file.
2233         * doc/glibc-functions/fanotify_mark.texi: New file.
2234         * doc/glibc-functions/inet6_opt_append.texi: New file.
2235         * doc/glibc-functions/inet6_opt_find.texi: New file.
2236         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2237         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2238         * doc/glibc-functions/inet6_opt_init.texi: New file.
2239         * doc/glibc-functions/inet6_opt_next.texi: New file.
2240         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2241         * doc/glibc-functions/inet6_rth_add.texi: New file.
2242         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2243         * doc/glibc-functions/inet6_rth_init.texi: New file.
2244         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2245         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2246         * doc/glibc-functions/inet6_rth_space.texi: New file.
2247         * doc/glibc-functions/login.texi: New file.
2248         * doc/glibc-functions/mbrtoc16.texi: New file.
2249         * doc/glibc-functions/mbrtoc32.texi: New file.
2250         * doc/glibc-functions/name_to_handle_at.texi: New file.
2251         * doc/glibc-functions/ntp_gettimex.texi: New file.
2252         * doc/glibc-functions/open_by_handle_at.texi: New file.
2253         * doc/glibc-functions/prlimit.texi: New file.
2254         * doc/glibc-functions/process_vm_readv.texi: New file.
2255         * doc/glibc-functions/process_vm_writev.texi: New file.
2256         * doc/glibc-functions/recvmmsg.texi: New file.
2257         * doc/glibc-functions/scandirat.texi: New file.
2258         * doc/glibc-functions/sendmmsg.texi: New file.
2259         * doc/glibc-functions/setns.texi: New file.
2260         * doc/glibc-functions/timespec_get.texi: New file.
2261         * doc/gnulib.texi: Include them.
2262         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2263         sections.
2264         Reported by Eric Blake.
2265
2266 2012-02-28  Bruno Haible  <bruno@clisp.org>
2267
2268         Avoid compilation errors with MSVC option -fp:strict.
2269         * lib/floor.c: Use MSVC specific pragma fenv_access.
2270         * lib/ceil.c: Likewise.
2271         * lib/trunc.c: Likewise.
2272         * lib/round.c: Likewise.
2273         * lib/rint.c: Likewise.
2274         * lib/fma.c: Likewise.
2275         * lib/integer_length.c: Likewise.
2276         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2278         * tests/test-floor2.c: Likewise.
2279         * tests/test-floorf2.c: Likewise.
2280         * tests/test-ceil2.c: Likewise.
2281         * tests/test-ceilf2.c: Likewise.
2282         * tests/test-trunc2.c: Likewise.
2283         * tests/test-truncf2.c: Likewise.
2284         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2285
2286 2012-02-27  Bruno Haible  <bruno@clisp.org>
2287
2288         Tests for module 'sqrtl-ieee'.
2289         * modules/sqrtl-ieee-tests: New file.
2290         * tests/test-sqrtl-ieee.c: New file.
2291
2292         New module 'sqrtl-ieee'.
2293         * modules/sqrtl-ieee: New file.
2294
2295         Tests for module 'sqrt-ieee'.
2296         * modules/sqrt-ieee-tests: New file.
2297         * tests/test-sqrt-ieee.c: New file.
2298
2299         New module 'sqrt-ieee'.
2300         * modules/sqrt-ieee: New file.
2301
2302         Tests for module 'sqrtf-ieee'.
2303         * modules/sqrtf-ieee-tests: New file.
2304         * tests/test-sqrtf-ieee.c: New file.
2305         * tests/test-sqrt-ieee.h: New file.
2306
2307         New module 'sqrtf-ieee'.
2308         * modules/sqrtf-ieee: New file.
2309
2310 2012-02-27  Bruno Haible  <bruno@clisp.org>
2311
2312         remainderl-ieee: Work around test failure on OSF/1.
2313         * m4/remainderl-ieee.m4: New file.
2314         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2315         present, test whether remainderl works with a zero second argument.
2316         Replace it if not.
2317         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2319         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2320         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2321         (Depends-on): Update conditions.
2322         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2323         (Depends-on): Add remainder-ieee.
2324         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2325         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2326         module.
2327
2328         remainderf-ieee: Work around test failure on OSF/1.
2329         * m4/remainderf-ieee.m4: New file.
2330         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2331         present, test whether remainderf works with a zero second argument.
2332         Replace it if not.
2333         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2335         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2336         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2337         (Depends-on): Update conditions.
2338         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2339         (Depends-on): Add remainder-ieee.
2340         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2341         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2342         module.
2343
2344         remainder-ieee: Work around test failure on OSF/1.
2345         * m4/remainder-ieee.m4: New file.
2346         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2347         present, test whether remainder works with a zero second argument.
2348         Replace it if not.
2349         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2351         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2352         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2353         (Depends-on): Update dependencies.
2354         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2355         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2356         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2357
2358         Tests for module 'remainderl-ieee'.
2359         * modules/remainderl-ieee-tests: New file.
2360         * tests/test-remainderl-ieee.c: New file.
2361
2362         New module 'remainderl-ieee'.
2363         * modules/remainderl-ieee: New file.
2364
2365         Tests for module 'remainder-ieee'.
2366         * modules/remainder-ieee-tests: New file.
2367         * tests/test-remainder-ieee.c: New file.
2368
2369         New module 'remainder-ieee'.
2370         * modules/remainder-ieee: New file.
2371
2372         Tests for module 'remainderf-ieee'.
2373         * modules/remainderf-ieee-tests: New file.
2374         * tests/test-remainderf-ieee.c: New file.
2375         * tests/test-remainder-ieee.h: New file.
2376
2377         New module 'remainderf-ieee'.
2378         * modules/remainderf-ieee: New file.
2379
2380 2012-02-27  Bruno Haible  <bruno@clisp.org>
2381
2382         modff, modfl: Fix configure syntax error.
2383         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2384         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2385
2386 2012-02-27  Bruno Haible  <bruno@clisp.org>
2387
2388         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2389         * m4/fmodl-ieee.m4: New file.
2390         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2391         whether fmodl works with zero arguments. Replace it if not.
2392         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2393         (Depends-on): Add fmod-ieee.
2394         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2395         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2396
2397         fmodf-ieee: Work around test failure on OSF/1.
2398         * m4/fmodf-ieee.m4: New file.
2399         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2400         whether fmodf works with zero arguments. Replace it if not.
2401         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2403         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2404         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2405         (Depends-on): Update dependencies.
2406         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2407         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2408         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2409
2410         fmodf-ieee: Work around test failure on MSVC 9.
2411         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2412         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2413
2414         fmod-ieee: Work around test failures on OSF/1, mingw.
2415         * m4/fmod-ieee.m4: New file.
2416         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2417         whether fmod works with zero arguments. Replace it if not.
2418         * lib/math.in.h (fmod): New declaration.
2419         * lib/fmod.c: New file.
2420         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2422         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2423         * modules/fmod (Files): Add lib/fmod.c.
2424         (Depends-on): Add math, isinf, trunc, fma.
2425         (configure.ac): Arrange to compile lib/fmod.c if needed.
2426         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2427         m4/signbit.m4.
2428         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2429         * tests/test-math-c++.cc: Check the declaration of fmod.
2430         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2431
2432         fmodl-ieee: Fix test failures.
2433         * lib/fmodl.c (fmodl): Treat Inf specially.
2434         * modules/fmodl (Depends-on): Add isinf.
2435
2436         Tests for module 'fmodl-ieee'.
2437         * modules/fmodl-ieee-tests: New file.
2438         * tests/test-fmodl-ieee.c: New file.
2439
2440         New module 'fmodl-ieee'.
2441         * modules/fmodl-ieee: New file.
2442
2443         Tests for module 'fmod-ieee'.
2444         * modules/fmod-ieee-tests: New file.
2445         * tests/test-fmod-ieee.c: New file.
2446
2447         New module 'fmod-ieee'.
2448         * modules/fmod-ieee: New file.
2449
2450         Tests for module 'fmodf-ieee'.
2451         * modules/fmodf-ieee-tests: New file.
2452         * tests/test-fmodf-ieee.c: New file.
2453         * tests/test-fmod-ieee.h: New file.
2454
2455         New module 'fmodf-ieee'.
2456         * modules/fmodf-ieee: New file.
2457
2458 2012-02-27  Bruno Haible  <bruno@clisp.org>
2459
2460         Tests for module 'rintl-ieee'.
2461         * modules/rintl-ieee-tests: New file.
2462         * tests/test-rintl-ieee.c: New file.
2463
2464         New module 'rintl-ieee'.
2465         * modules/rintl-ieee: New file.
2466
2467         Tests for module 'rint-ieee'.
2468         * modules/rint-ieee-tests: New file.
2469         * tests/test-rint-ieee.c: New file.
2470
2471         New module 'rint-ieee'.
2472         * modules/rint-ieee: New file.
2473
2474         Tests for module 'rintf-ieee'.
2475         * modules/rintf-ieee-tests: New file.
2476         * tests/test-rintf-ieee.c: New file.
2477         * tests/test-rint-ieee.h: New file.
2478
2479         New module 'rintf-ieee'.
2480         * modules/rintf-ieee: New file.
2481
2482 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2483
2484         regex: re_search etc. should return -2 when memory exhausted
2485         This bug was uncovered when testing 'grep'.  Without the fix,
2486         re_search and friends return -1 when memory is exhausted, but -1
2487         means no match, and this causes grep to falsely report no-match
2488         instead of memory-exhaustion.  See
2489         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2490         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2491         trouble; this can occur if re_search_internal ran out of memory.
2492
2493 2012-02-26  Bruno Haible  <bruno@clisp.org>
2494
2495         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2496         * m4/modfl-ieee.m4: New file.
2497         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2498         whether modfl works with Inf. Replace it if not.
2499         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2501         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2502         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2503         (Depends-on): Update dependencies.
2504         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2505         m4/signbit.m4.
2506         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2507         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2508
2509         modfl-ieee: Fix dependencies.
2510         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2511
2512         modfl-ieee: Fix test failures.
2513         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2514         * modules/modfl (Depends-on): Add isfinite, isinf.
2515
2516         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2517         * m4/modff-ieee.m4: New file.
2518         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2519         whether modff works with NaN and Inf. Replace it if not.
2520         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2522         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2523         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2524         (Depends-on): Update dependencies.
2525         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2526         m4/signbit.m4.
2527         (Depends-on): Add modf-ieee.
2528         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2529         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2530
2531         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2532         * m4/modf-ieee.m4: New file.
2533         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2534         whether modf works with NaN and Inf. Replace it if not.
2535         * lib/math.in.h (modf): New declaration.
2536         * lib/modf.c: New file.
2537         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2539         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2540         * modules/modf (Files): Add lib/modf.c.
2541         (Depends-on): Add math, isfinite, trunc, isinf.
2542         (configure.ac): Addrange to compile lib/modf.c if needed.
2543         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2544         m4/signbit.m4.
2545         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2546         * tests/test-math-c++.cc: Check the declaration of modf.
2547         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2548
2549         Tests for module 'modfl-ieee'.
2550         * modules/modfl-ieee-tests: New file.
2551         * tests/test-modfl-ieee.c: New file.
2552
2553         New module 'modfl-ieee'.
2554         * modules/modfl-ieee: New file.
2555
2556         Tests for module 'modf-ieee'.
2557         * modules/modf-ieee-tests: New file.
2558         * tests/test-modf-ieee.c: New file.
2559
2560         New module 'modf-ieee'.
2561         * modules/modf-ieee: New file.
2562
2563         Tests for module 'modff-ieee'.
2564         * modules/modff-ieee-tests: New file.
2565         * tests/test-modff-ieee.c: New file.
2566         * tests/test-modf-ieee.h: New file.
2567
2568         New module 'modff-ieee'.
2569         * modules/modff-ieee: New file.
2570
2571 2012-02-26  Bruno Haible  <bruno@clisp.org>
2572
2573         Tests for module 'fabsl-ieee'.
2574         * modules/fabsl-ieee-tests: New file.
2575         * tests/test-fabsl-ieee.c: New file.
2576
2577         New module 'fabsl-ieee'.
2578         * modules/fabsl-ieee: New file.
2579
2580         Tests for module 'fabs-ieee'.
2581         * modules/fabs-ieee-tests: New file.
2582         * tests/test-fabs-ieee.c: New file.
2583
2584         New module 'fabs-ieee'.
2585         * modules/fabs-ieee: New file.
2586
2587         Tests for module 'fabsf-ieee'.
2588         * modules/fabsf-ieee-tests: New file.
2589         * tests/test-fabsf-ieee.c: New file.
2590         * tests/test-fabs-ieee.h: New file.
2591
2592         New module 'fabsf-ieee'.
2593         * modules/fabsf-ieee: New file.
2594
2595 2012-02-26  Bruno Haible  <bruno@clisp.org>
2596
2597         Tests for module 'fmal-ieee'.
2598         * modules/fmal-ieee-tests: New file.
2599         * tests/test-fmal-ieee.c: New file.
2600
2601         New module 'fmal-ieee'.
2602         * modules/fmal-ieee: New file.
2603
2604         Tests for module 'fma-ieee'.
2605         * modules/fma-ieee-tests: New file.
2606         * tests/test-fma-ieee.c: New file.
2607
2608         New module 'fma-ieee'.
2609         * modules/fma-ieee: New file.
2610
2611         Tests for module 'fmaf-ieee'.
2612         * modules/fmaf-ieee-tests: New file.
2613         * tests/test-fmaf-ieee.c: New file.
2614         * tests/test-fma-ieee.h: New file.
2615
2616         New module 'fmaf-ieee'.
2617         * modules/fmaf-ieee: New file.
2618
2619 2012-02-26  Bruno Haible  <bruno@clisp.org>
2620
2621         Tests for module 'ldexpl-ieee'.
2622         * modules/ldexpl-ieee-tests: New file.
2623         * tests/test-ldexpl-ieee.c: New file.
2624
2625         New module 'ldexpl-ieee'.
2626         * modules/ldexpl-ieee: New file.
2627
2628         Tests for module 'ldexp-ieee'.
2629         * modules/ldexp-ieee-tests: New file.
2630         * tests/test-ldexp-ieee.c: New file.
2631
2632         New module 'ldexp-ieee'.
2633         * modules/ldexp-ieee: New file.
2634
2635         Tests for module 'ldexpf-ieee'.
2636         * modules/ldexpf-ieee-tests: New file.
2637         * tests/test-ldexpf-ieee.c: New file.
2638         * tests/test-ldexp-ieee.h: New file.
2639
2640         New module 'ldexpf-ieee'.
2641         * modules/ldexpf-ieee: New file.
2642
2643 2012-02-26  Bruno Haible  <bruno@clisp.org>
2644
2645         Refactor frexp*-ieee tests.
2646         * tests/test-frexp-ieee.h: New file.
2647         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2648         (main): Just call test_function.
2649         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2650         (main): Just call test_function.
2651         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2652         (main): Just call test_function.
2653         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2654         * modules/frexp-ieee-tests (Files): Likewise.
2655         * modules/frexpl-ieee-tests (Files): Likewise.
2656
2657         Tests for module 'frexpl-ieee'.
2658         * modules/frexpl-ieee-tests: New file.
2659         * tests/test-frexpl-ieee.c: New file.
2660
2661         New module 'frexpl-ieee'.
2662         * modules/frexpl-ieee: New file.
2663
2664         Tests for module 'frexp-ieee'.
2665         * modules/frexp-ieee-tests: New file.
2666         * tests/test-frexp-ieee.c: New file.
2667
2668         New module 'frexp-ieee'.
2669         * modules/frexp-ieee: New file.
2670
2671         Tests for module 'frexpf-ieee'.
2672         * modules/frexpf-ieee-tests: New file.
2673         * tests/test-frexpf-ieee.c: New file.
2674
2675         New module 'frexpf-ieee'.
2676         * modules/frexpf-ieee: New file.
2677
2678 2012-02-26  Bruno Haible  <bruno@clisp.org>
2679
2680         roundl-ieee tests: More tests.
2681         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2682         (main): Add tests for [MX] shaded specification in POSIX.
2683         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2684         (Depends-on): Add isnanl-nolibm.
2685
2686         round-ieee tests: More tests.
2687         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2688         (main): Add tests for [MX] shaded specification in POSIX.
2689         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2690         (Depends-on): Add isnand-nolibm.
2691
2692         roundf-ieee tests: More tests.
2693         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2694         (main): Add tests for [MX] shaded specification in POSIX.
2695         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2696         (Depends-on): Add isnanf-nolibm.
2697
2698         truncl-ieee tests: More tests.
2699         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2700         (main): Add tests for [MX] shaded specification in POSIX.
2701         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2702         (Depends-on): Add isnanl-nolibm.
2703
2704         trunc-ieee tests: More tests.
2705         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2706         (main): Add tests for [MX] shaded specification in POSIX.
2707         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2708         (Depends-on): Add isnand-nolibm.
2709
2710         truncf-ieee tests: More tests.
2711         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2712         (main): Add tests for [MX] shaded specification in POSIX.
2713         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2714         (Depends-on): Add isnanf-nolibm.
2715
2716         ceill-ieee tests: More tests.
2717         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2718         (main): Add tests for [MX] shaded specification in POSIX.
2719         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2720         (Depends-on): Add isnanl-nolibm.
2721
2722         ceil-ieee tests: More tests.
2723         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2724         (main): Add tests for [MX] shaded specification in POSIX.
2725         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2726         (Depends-on): Add isnand-nolibm.
2727
2728         ceilf-ieee tests: More tests.
2729         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2730         (main): Add tests for [MX] shaded specification in POSIX.
2731         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2732         (Depends-on): Add isnanf-nolibm.
2733
2734         floorl-ieee tests: More tests.
2735         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2736         (main): Add tests for [MX] shaded specification in POSIX.
2737         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2738         (Depends-on): Add isnanl-nolibm.
2739
2740         floor-ieee tests: More tests.
2741         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2742         (main): Add tests for [MX] shaded specification in POSIX.
2743         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2744         (Depends-on): Add isnand-nolibm.
2745
2746         floorf-ieee tests: More tests.
2747         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2748         (main): Add tests for [MX] shaded specification in POSIX.
2749         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2750         (Depends-on): Add isnanf-nolibm.
2751
2752 2012-02-26  Bruno Haible  <bruno@clisp.org>
2753
2754         fpieee: More comments.
2755         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2756
2757 2012-02-25  Bruno Haible  <bruno@clisp.org>
2758
2759         Tests for module 'log10l'.
2760         * modules/log10l-tests: New file.
2761         * tests/test-log10l.c: New file.
2762         * tests/test-math-c++.cc: Check the declaration of log10l.
2763
2764         New module 'log10l'.
2765         * lib/math.in.h (log10l): New declaration.
2766         * lib/log10l.c: New file.
2767         * m4/log10l.m4: New file.
2768         * modules/log10l: New file.
2769         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2771         HAVE_DECL_LOG10L.
2772         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2773         HAVE_DECL_LOG10L.
2774         * doc/posix-functions/log10l.texi: Mention the new module.
2775
2776 2012-02-25  Bruno Haible  <bruno@clisp.org>
2777
2778         fmodl, remainder*: Avoid wrong results due to rounding errors.
2779         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2780         expected bounds.
2781         * lib/remainderf.c (remainderf): Likewise.
2782         * lib/remainder.c (remainder): Likewise.
2783         * lib/remainderl.c (remainderl): Likewise.
2784
2785 2012-02-25  Bruno Haible  <bruno@clisp.org>
2786
2787         Tests for module 'remainderl'.
2788         * modules/remainderl-tests: New file.
2789         * tests/test-remainderl.c: New file.
2790         * tests/test-math-c++.cc: Check the declaration of remainderl.
2791
2792         New module 'remainderl'.
2793         * lib/math.in.h (remainderl): New declaration.
2794         * lib/remainderl.c: New file.
2795         * m4/remainderl.m4: New file.
2796         * modules/remainderl: New file.
2797         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2799         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2800         HAVE_REMAINDERL.
2801         * doc/posix-functions/remainderl.texi: Mention the new module.
2802
2803 2012-02-25  Bruno Haible  <bruno@clisp.org>
2804
2805         Tests for module 'remainderf'.
2806         * modules/remainderf-tests: New file.
2807         * tests/test-remainderf.c: New file.
2808         * tests/test-math-c++.cc: Check the declaration of remainderf.
2809
2810         New module 'remainderf'.
2811         * lib/math.in.h (remainderf): New declaration.
2812         * lib/remainderf.c: New file.
2813         * m4/remainderf.m4: New file.
2814         * modules/remainderf: New file.
2815         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2817         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2818         HAVE_REMAINDERF.
2819         * doc/posix-functions/remainderf.texi: Mention the new module.
2820
2821 2012-02-25  Bruno Haible  <bruno@clisp.org>
2822
2823         remainder: Support for MSVC.
2824         * lib/math.in.h (remainder): New declaration.
2825         * lib/remainder.c: New file.
2826         * m4/remainder.m4: New file.
2827         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2828         (Depends-on): Add math, round, fma.
2829         (configure.ac): Use results of gl_FUNC_REMAINDER.
2830         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2832         HAVE_DECL_REMAINDER.
2833         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2834         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2835         * tests/test-math-c++.cc: Check the declaration of remainder.
2836         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2837         problems are fixed.
2838
2839 2012-02-25  Bruno Haible  <bruno@clisp.org>
2840
2841         Tests for module 'fmodl'.
2842         * modules/fmodl-tests: New file.
2843         * tests/test-fmodl.c: New file.
2844         * tests/test-math-c++.cc: Check the declaration of fmodl.
2845
2846         New module 'fmodl'.
2847         * lib/math.in.h (fmodl): New declaration.
2848         * lib/fmodl.c: New file.
2849         * m4/fmodl.m4: New file.
2850         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2852         REPLACE_FMODL.
2853         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2854         REPLACE_FMODL.
2855         * modules/fmodl: New file.
2856         * doc/posix-functions/fmodl.texi: Mention the new module.
2857
2858 2012-02-25  Bruno Haible  <bruno@clisp.org>
2859
2860         Tests for module 'modfl'.
2861         * modules/modfl-tests: New file.
2862         * tests/test-modfl.c: New file.
2863         * tests/test-math-c++.cc: Check the declaration of modfl.
2864
2865         New module 'modfl'.
2866         * lib/math.in.h (modfl): New declaration.
2867         * lib/modfl.c: New file.
2868         * m4/modfl.m4: New file.
2869         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2871         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2872         * modules/modfl: New file.
2873         * doc/posix-functions/modfl.texi: Mention the new module.
2874
2875 2012-02-25  Bruno Haible  <bruno@clisp.org>
2876
2877         Tests for module 'fabsl'.
2878         * modules/fabsl-tests: New file.
2879         * tests/test-fabsl.c: New file.
2880         * tests/test-math-c++.cc: Check the declaration of fabsl.
2881
2882         New module 'fabsl'.
2883         * lib/math.in.h (fabsl): New declaration.
2884         * lib/fabsl.c: New file.
2885         * m4/fabsl.m4: New file.
2886         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2888         REPLACE_FABSL.
2889         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2890         REPLACE_FABSL.
2891         * modules/fabsl: New file.
2892         * doc/posix-functions/fabsl.texi: Mention the new module.
2893
2894 2012-02-25  Bruno Haible  <bruno@clisp.org>
2895
2896         fabs tests: More tests.
2897         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2898         (zero): New variable.
2899         (main): Add tests for signed zero.
2900         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2901
2902         fabsf tests: More tests.
2903         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2904         (zero): New variable.
2905         (main): Add tests for signed zero.
2906         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2907
2908 2012-02-24  Bruno Haible  <bruno@clisp.org>
2909
2910         atanl: Provide function definition on MSVC.
2911         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2912         function pointer.
2913         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2914
2915 2012-02-24  Bruno Haible  <bruno@clisp.org>
2916
2917         acosl: Provide function definition on MSVC.
2918         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2919         function pointer.
2920         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2921
2922 2012-02-24  Bruno Haible  <bruno@clisp.org>
2923
2924         asinl: Provide function definition on MSVC.
2925         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2926         function pointer.
2927         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2928
2929 2012-02-24  Bruno Haible  <bruno@clisp.org>
2930
2931         tanl: Provide function definition on MSVC.
2932         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2933         function pointer.
2934         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2935
2936 2012-02-24  Bruno Haible  <bruno@clisp.org>
2937
2938         cosl: Provide function definition on MSVC.
2939         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2940         function pointer.
2941         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2942
2943 2012-02-24  Bruno Haible  <bruno@clisp.org>
2944
2945         sinl: Provide function definition on MSVC.
2946         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2947         function pointer.
2948         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2949
2950 2012-02-24  Bruno Haible  <bruno@clisp.org>
2951
2952         logl: Provide function definition on MSVC.
2953         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2954         function pointer.
2955         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2956
2957 2012-02-24  Bruno Haible  <bruno@clisp.org>
2958
2959         expl: Provide function definition on MSVC.
2960         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2961         function pointer.
2962         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2963
2964 2012-02-24  Bruno Haible  <bruno@clisp.org>
2965
2966         sqrtl: Provide function definition on MSVC.
2967         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2968         a function pointer.
2969         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2970
2971 2012-02-24  Bruno Haible  <bruno@clisp.org>
2972
2973         ceill: Provide function definition on MSVC.
2974         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2975         used as a function pointer.
2976         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2977
2978 2012-02-24  Bruno Haible  <bruno@clisp.org>
2979
2980         floorl: Provide function definition on MSVC.
2981         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2982         used as a function pointer.
2983         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2984
2985 2012-02-24  Bruno Haible  <bruno@clisp.org>
2986
2987         ceilf: Provide function definition on MSVC.
2988         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2989         used as a function pointer.
2990         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2991
2992 2012-02-24  Bruno Haible  <bruno@clisp.org>
2993
2994         floorf: Provide function definition on MSVC.
2995         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2996         used as a function pointer.
2997         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2998
2999 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3000
3001         stdnoreturn: new module
3002         This implements a replacement for C11's <stdnoreturn.h>.
3003         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3004         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3005         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3006         * tests/test-stdnoreturn.c: New files.
3007
3008 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3009
3010         regex: fix false multibyte matches in some regular expressions
3011         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3012         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3013         * lib/regex_internal.c (re_string_skip_chars):
3014         Fix miscomputation of remain_len that may cause incomplete
3015         multi-byte character and false match.
3016
3017 2012-02-24  Jim Meyering  <meyering@redhat.com>
3018
3019         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3020         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3021         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3022         Remove now-unnecessary str''cmp obfuscation.
3023         Suggested by Akim Demaille.
3024
3025 2012-02-24  Bruno Haible  <bruno@clisp.org>
3026
3027         streq: Rename macro.
3028         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3029         * NEWS: Mention the change.
3030         * lib/mbrtowc.c (mbrtowc): Update.
3031         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3032         * lib/wcwidth.c (wcwidth): Update.
3033         Suggested by Akim Demaille and Jim Meyering.
3034
3035 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3036
3037         regex: fix typo in definition of MIN
3038         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3039         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3040
3041 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3042             Bruno Haible  <bruno@clisp.org>
3043
3044         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3045         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3046         entries into a stack-allocated buffer directly.
3047         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3048
3049 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3050             Bruno Haible  <bruno@clisp.org>
3051
3052         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3053
3054          - There were several instances of this pattern:
3055
3056              for (;;) {
3057                n = acl (f, GETACLCNT, 0, NULL);
3058                [ allocate an array A of size N ]
3059                if (acl (f, GETACL, n, a) == n)
3060                  break;
3061              }
3062
3063            This loop might never terminate if some other process is constantly
3064            manipulating the file's ACL.  The loop should be rewritten to
3065            terminate.
3066
3067          - The acl (... GETACLNT ...) call is merely an optimization; its value
3068            is merely a hint as to how big to make the array.  A better
3069            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3070            and just guess a reasonably-big size, growing the size and trying
3071            again if it's not large enough.  This guarantees termination, and
3072            saves a system call.
3073
3074         * lib/acl-internal.h: Include <limits.h>.
3075         (MIN, SIZE_MAX): New macros.
3076         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3077         a stack-allocated buffer, and use malloc if it does not fit. Don't
3078         use GETACLCNT.
3079         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3080
3081 2012-02-19  Bruno Haible  <bruno@clisp.org>
3082
3083         acl: Fix endless loop on Solaris with vxfs.
3084         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3085         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3086         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3087         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3088         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3089         Reported by Bill Jones in
3090         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3091
3092 2012-02-19  Bruno Haible  <bruno@clisp.org>
3093
3094         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3095         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3096         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3097         that this function returns 0 in some more cases.
3098
3099 2012-02-19  Bruno Haible  <bruno@clisp.org>
3100
3101         acl: Update doc references.
3102         * doc/acl-resources.txt: Update links to Solaris documentation.
3103
3104 2012-02-19  Bruno Haible  <bruno@clisp.org>
3105
3106         Fix test failure in many locales on Solaris 11.
3107         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3108         'tr' arguments.
3109         * tests/test-pipe-filter-ii1.c (main): Likewise.
3110         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3111         expressions in the C locale.
3112         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3113         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3114
3115 2012-02-19  Bruno Haible  <bruno@clisp.org>
3116
3117         gnulib-tool: Improve usage message.
3118         * gnulib-tool (func_usage): Move doc of --help and --version to the
3119         section "Operation modes".
3120
3121 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3122
3123         README-release: make it easier to execute commands
3124         * top/README-release: break commands out on to separate lines.
3125
3126 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3127
3128         GNUmakefile: simplify detection of unconfigured trees
3129         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3130         whether the tree make is being run from is already configured or
3131         not.  Related simplifications.
3132
3133 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3134
3135         * gnulib-tool (func_usage): Document --help and --version.
3136
3137 2012-02-11  Jim Meyering  <meyering@redhat.com>
3138
3139         bootstrap: don't exit 0 upon gnulib-tool failure
3140         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3141         its exit status, not 0.
3142
3143 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3144
3145         README-release: various improvements
3146         * top/README-release: Give a command to push changes for the
3147         release.  Add "distcheck" to list of other pre-release checks.
3148         Fix instance of "make stable" which should be "make TYPE".
3149
3150 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3151
3152         maint: replace FSF snail-mail addresses with URLs
3153         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3154         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3155         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3156         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3157         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3158         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3159         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3160         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3161         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3162         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3163         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3164         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3165         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3166         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3167         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3168         * lib/glthread/thread.c, lib/glthread/thread.h:
3169         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3170         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3171         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3172         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3173         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3174         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3175         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3176         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3177         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3178         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3179         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3180         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3181         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3182         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3183         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3184         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3185         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3186         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3187         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3188         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3189         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3190         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3191         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3192         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3193         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3194         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3195         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3196         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3197         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3198         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3199         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3200         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3201         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3202         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3203         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3204         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3205         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3206         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3207         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3208         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3209         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3210         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3211         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3212         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3213         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3214         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3215         * tests/test-poll.c, tests/test-quotearg-simple.c:
3216         * tests/test-quotearg.c, tests/test-quotearg.h:
3217         * tests/test-round-ieee.c, tests/test-round1.c:
3218         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3219         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3220         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3221         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3222         * tests/test-strerror.c, tests/test-strerror_r.c:
3223         * tests/test-strsignal.c, tests/test-strverscmp.c:
3224         * tests/test-xmemdup0.c:
3225         Replace FSF snail mail addresses with URLs, as per GNU coding
3226         standards.  See glibc bug
3227         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3228
3229 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3230
3231         README-release: capitalize a word and split a line
3232         * top/README-release: Fix punctuation and spacing.
3233
3234 2012-02-08  Akim Demaille  <demaille@gostai.com>
3235
3236         fatal-signal: use C prototypes (with explicit void).
3237         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3238         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3239
3240 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         regex: spelling fix
3243         * lib/regexec.c: spelling fix
3244
3245         regex: rely on stdint.h for SIZE_MAX
3246         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3247
3248 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3249
3250         regex: merge glibc changes
3251
3252         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3253         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3254         (init_word_char): Work even if bitset words are not exactly 32 or
3255         64 bits wide.  Don't assume there are no padding bits.
3256         * lib/regex.c [_LIBC]: Do not include <config.h>.
3257         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3258         and -Wtype-limits.
3259         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3260         needless disagreement with glibc.  All uses changed.  Define it to
3261         1 only if _GNU_SOURCE, to match glibc.
3262         (_REG_RM_NAME): Remove; no longer needed, since the names in
3263         question are now all protected by __USE_GNU.
3264         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3265         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3266         * lib/regex_internal.h (MIN): New macro.
3267
3268         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3269         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3270
3271         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3272         * lib/regex_internal.c (re_string_fetch_byte_case):
3273         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3274         is miscompiled, and it turns out it is because of an incorrect
3275         attribute on re_string_fetch_byte_case.  Unlike
3276         re_string_peek_byte_case, this one is really not pure, it modifies
3277         memory (increments pstr->cur_idx), and with the pure attribute GCC
3278         assumed it doesn't and it cached the presumed value of
3279         regexp->cur_idx in a variable across the
3280          for (;; ++i)
3281            {
3282              if (i >= BRACKET_NAME_BUF_SIZE)
3283                return REG_EBRACK;
3284              if (token->type == OP_OPEN_CHAR_CLASS)
3285                ch = re_string_fetch_byte_case (regexp);
3286              else
3287                ch = re_string_fetch_byte (regexp);
3288              if (re_string_eoi(regexp))
3289                return REG_EBRACK;
3290              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3291                break;
3292              elem->opr.name[i] = ch;
3293            }
3294
3295         2011-11-29 Andreas Schwab <schwab@redhat.com>
3296         * lib/regcomp.c (build_equiv_class):
3297         Fix access after end of search string in regex matcher.
3298
3299         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3300         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3301
3302         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3303         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3304
3305         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3306         * lib/regcomp.c (parse_branch, parse_sub_exp):
3307         More regex memory leak fixes and tests.
3308         (parse_sub_exp, parse_bracket_exp):
3309         Fix memory leak for some invalid regular expressions.
3310
3311         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3312         * lib/regex_internal.c, lib/regexec.c:
3313         Fix unnecessary overallocation due to incomplete character.  When
3314         incomplete characters are found at the end of a string the code
3315         ran amok and allocated lots of memory.  Stricter limits are now in
3316         place.
3317
3318         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3319         * lib/regex.h: Update documentation.
3320
3321         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3322         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3323
3324         2010-05-05 Andreas Schwab <schwab@redhat.com>
3325         * lib/regexec.c (find_collation_sequence_value):
3326         Fix lookup of collation sequence value during regexp matching.
3327
3328         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3329         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3330
3331         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3332         * lib/regex.h: Cleanup namespace.
3333
3334         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3335         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3336
3337         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3338         * lib/regex_internal.h: Prevent some declarations and definitions
3339         to be seen when used in tests.
3340
3341         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3342         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3343         __libc_lock_* macros if not _LIBC.
3344         (struct re_dfa_t): Add lock.
3345
3346 2012-02-07  Eric Blake  <eblake@redhat.com>
3347
3348         maint.mk: also prohibit lower-case @var@
3349         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3350         lower case, like @top_srcdir@.
3351
3352 2012-02-04  Eric Blake  <eblake@redhat.com>
3353
3354         canonicalize: avoid uninitialized memory use
3355         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3356         random '/' left in dest.
3357         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3358
3359 2012-02-04  Bruno Haible  <bruno@clisp.org>
3360
3361         isatty: Fix test failure of ptsname_r on native Windows.
3362         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3363         and don't set errno.
3364         (isatty): Test first whether fd is valid. Set errno when returning 0.
3365
3366 2012-02-04  Bruno Haible  <bruno@clisp.org>
3367
3368         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3369         * tests/test-spawn-pipe-main.c: Include progname.h.
3370         (main): Invoke set_program_name.
3371         * modules/spawn-pipe-tests (Depends-on): Add progname.
3372
3373         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3374         * tests/test-nonblocking-socket-main.c: Include progname.h.
3375         (main): Invoke set_program_name.
3376         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3377
3378         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3379         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3380         (main): Invoke set_program_name.
3381         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3382
3383 2012-02-04  Eric Blake  <eblake@redhat.com>
3384
3385         canonicalize-lgpl: fix // handling
3386         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3387
3388         canonicalize: fix // handling
3389         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3390         /// to //, since only // is special.
3391
3392 2012-02-04  Bruno Haible  <bruno@clisp.org>
3393
3394         ioctl: Fix test failure on native Windows.
3395         * lib/ioctl.c: Include msvc-nothrow.h.
3396         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3397
3398 2012-02-04  Bruno Haible  <bruno@clisp.org>
3399
3400         fsync: Avoid test failure on native Windows.
3401         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3402         read-only.
3403
3404 2012-02-04  Bruno Haible  <bruno@clisp.org>
3405
3406         sys_select: Avoid syntax error on OpenBSD 5.0.
3407         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3408         currently being included, just include the system's <sys/select.h>.
3409
3410 2012-02-04  Bruno Haible  <bruno@clisp.org>
3411
3412         sys_select: Avoid syntax error on OpenBSD 5.0.
3413         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3414         <sys/select.h>, not before.
3415         Reported by Jiri B <jirib@devio.us>.
3416
3417 2012-02-04  Bruno Haible  <bruno@clisp.org>
3418
3419         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3420         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3421         global variables.
3422         * tests/test-get-rusage-data.c (main): Likewise.
3423         Reported by Jim Meyering.
3424
3425 2012-02-04  Bruno Haible  <bruno@clisp.org>
3426
3427         stdioext: Fix last commit.
3428         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3429
3430 2012-02-03  Bruno Haible  <bruno@clisp.org>
3431
3432         stdioext: Add tentative support for Plan9.
3433         * lib/stdio-impl.h: Include <errno.h>.
3434         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3435         * lib/freadable.c (freadable): Likewise.
3436         * lib/fwritable.c (fwritable): Likewise.
3437         * lib/fbufmode.c (fbufmode): Likewise.
3438         * lib/freading.c (freading): Likewise.
3439         * lib/fwriting.c (fwriting): Likewise.
3440         * lib/freadptr.c (freadptr): Likewise.
3441         * lib/freadseek.c (freadptrinc): Likewise.
3442         * lib/freadahead.c (freadahead): Likewise.
3443         * lib/fpurge.c (fpurge): Likewise.
3444         * lib/fseeko.c (rpl_fseeko): Likewise.
3445         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3446         Reported by Jens Staal <staal1978@gmail.com>.
3447
3448 2012-02-02  Jim Meyering  <meyering@redhat.com>
3449
3450         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3451         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3452         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3453         not even to try to add the attribute.  Instead, add a pragma to suppress
3454         the suggestion/warning.
3455
3456 2012-01-31  Karl Berry  <karl@gnu.org>
3457
3458         setstate doc: typo.
3459         * doc/posix-functions/setstate.texi (setstate): { not (.
3460
3461 2012-01-31  Bruno Haible  <bruno@clisp.org>
3462
3463         popen: Make more robust on Windows.
3464         * lib/popen.c: On native Windows, use the _popen based code even if
3465         HAVE_POPEN is set.
3466         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3467         environment variable on native Windows.
3468
3469 2012-01-30  Bruno Haible  <bruno@clisp.org>
3470
3471         pclose: Fix typo.
3472         * lib/stdio.in.h (pclose): Fix typo in warning message.
3473
3474 2012-01-30  Bruno Haible  <bruno@clisp.org>
3475
3476         doc about getlogin_r, setstate.
3477         * doc/posix-functions/getlogin_r.texi: List the incompatible
3478         declaration problem under "not fixed by gnulib".
3479         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3480         problem on Solaris 11 and other platforms.
3481
3482 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3483             Bruno Haible  <bruno@clisp.org>
3484
3485         poll tests: Make test more robust.
3486         * tests/test-poll.c: Include macros.h.
3487         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3488         return value of various I/O operations.
3489         * modules/poll-tests (Files): Add tests/macros.h.
3490
3491 2012-01-30  Bruno Haible  <bruno@clisp.org>
3492
3493         sys_stat: Fix support for mingw64 and MSVC.
3494         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3495         header files already do it.
3496         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3497         stat itself.
3498         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3499
3500 2012-01-30  Bruno Haible  <bruno@clisp.org>
3501
3502         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3503         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3504         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3505
3506 2012-01-29  Bruno Haible  <bruno@clisp.org>
3507
3508         quotearg: Fix test failure on MacOS X 10.5.
3509         * tests/test-quotearg-simple.c: Include localcharset.h.
3510         (main): If the locale encoding is not ASCII, bypass the tests of
3511         locale_quoting_style and clocale_quoting_style.
3512         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3513
3514 2012-01-29  Jim Meyering  <meyering@redhat.com>
3515
3516         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3517         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3518         detect uses of canonicalize_file_name.
3519
3520 2012-01-28  Bruno Haible  <bruno@clisp.org>
3521
3522         test-framework-sh: Fix test failure with AIX 7.1 diff.
3523         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3524         in column 1, like 'diff -c' does.
3525         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3526         whether 'diff -u' is used. Instead, test whether the output contains
3527         some '@' character.
3528
3529 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3530
3531         strtoimax: eliminate need for stdint.h, inttypes.h checks
3532         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3533         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3534         the prerequisites for a recently-introduced strtoimax test.
3535         I guess this might cause strtoimax to be replaced when not
3536         strictly necessary on older hosts, but this shouldn't introduce
3537         any bugs and it should make Emacs 'configure' faster on typical
3538         modern hosts.  Problem discovered when importing the latest gnulib
3539         to an Emacs test version.
3540         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3541
3542 2012-01-28  Bruno Haible  <bruno@clisp.org>
3543
3544         sys_time: Override 'struct timeval' on some native Windows platforms.
3545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3546         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3547         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3548         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3549         needs to be overridden.
3550         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3551         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3552         * tests/test-sys_select.c: Check that the tv_sec member has the same
3553         size as a 'time_t'.
3554         * tests/test-sys_time.c: Likewise.
3555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3556         is set, set also REPLACE_GETTIMEOFDAY.
3557         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3558         convert the resulting 'struct timeval' before returning.
3559         * lib/select.c: Include <sys/time.h>.
3560         (select, timeval): Undefine at the right place.
3561         * modules/select (Depends-on): Add sys_time.
3562         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3563         some Windows platforms.
3564         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3565
3566 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3567
3568         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3569         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3570         an integer.
3571         * lib/fcntl.c (dupfd): Likewise.
3572         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3573
3574 2012-01-28  Bruno Haible  <bruno@clisp.org>
3575
3576         fcntl: Avoid compilation error on native Windows.
3577         * modules/fcntl (Depends-on): Add 'close'.
3578
3579 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3580
3581         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3582         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3583         pointer to an integer.
3584         * lib/poll.c (IsConsoleHandle): Likewise.
3585         * lib/isatty.c (IsConsoleHandle): Likewise.
3586
3587 2012-01-28  Jim Meyering  <meyering@redhat.com>
3588
3589         doc: clarify README-release
3590         * top/README-release: Clarify: you should make a point to have
3591         the latest stable versions of build tools in your PATH, and the
3592         reference to buildreq is solely for its list of tool names, not
3593         for its minimal-functional version numbers.
3594         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3595
3596         maint.mk: use more readable (yet functionally equivalent) quoting
3597         It is common to quote a single quote in a single quoted string like
3598         this:  '...'\''...'.  Unless you know the idiom, that looks like
3599         gibberish, so prefer to double-quote the string when possible.
3600         Then you can use a more readable, lone single quote: "...'..."
3601         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3602         "don't" is more readable than the equivalent 'don'\''t'.
3603         (sc_cast_of_x_alloc_return_value): Likewise.
3604         (sc_cast_of_alloca_return_value): Likewise.
3605         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3606         rather than '\'':'\''.
3607
3608 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3609
3610         stdalign: relax _Alignof and tighten _Alignas test
3611         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3612         as it was too strict: alignof must divide offsetof, but it need
3613         not equal offsetof.  Inspired by Joseph S. Myers's comment
3614         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3615         Conversely, tighten the _Alignas test a bit, as the resulting
3616         alignment must be exactly 8.
3617
3618 2012-01-27  Bruno Haible  <bruno@clisp.org>
3619
3620         stdalign: Document the last change.
3621         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3622
3623 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3624
3625         stdalign: check that alignof and offsetof are consistent
3626         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3627         Problem reported for gnulib by Richard W.M. Jones in
3628         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3629
3630 2012-01-27  Jim Meyering  <meyering@redhat.com>
3631
3632         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3633         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3634         convert a sequence with gaps to the minimal containing range.
3635         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3636         * tests/test-update-copyright.sh: Test for this.
3637         The FSF confirmed it is ok to do this, assuming there is at
3638         least one significant change per year in the affected range:
3639         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3640
3641 2012-01-26  Bruno Haible  <bruno@clisp.org>
3642
3643         pipe2: refine doc about thread-safety
3644         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3645         multithread-safety problem.
3646         * doc/glibc-functions/accept4.texi: Likewise.
3647
3648 2012-01-26  Bruno Haible  <bruno@clisp.org>
3649
3650         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3651         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3652         In the test program, include <fcntl.h>, for O_RDONLY.
3653
3654 2012-01-26  Eric Blake  <eblake@redhat.com>
3655
3656         pipe2: document lack of thread-safety in replacement
3657         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3658         issue in replacement.
3659         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3660         Based on a report by Eric Wong.
3661
3662 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3663             Bruno Haible  <bruno@clisp.org>
3664
3665         malloca: Avoid warnings on x86_64 mingw64.
3666         * lib/malloca.c: Include <stdint.h>.
3667         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3668         * modules/malloca (Depends-on): Add stdint.
3669         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3670
3671 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3672
3673         obstack: remove __STDC__ conditionals
3674         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3675         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3676         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3677         m4/include_next.m4 as the only gnulib-maintained places that still
3678         refer to __STDC__.
3679
3680 2012-01-24  Bruno Haible  <bruno@clisp.org>
3681
3682         havelib: Modern quoting.
3683         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3684         the recent change to the GNU coding standards.
3685
3686 2012-01-24  Bruno Haible  <bruno@clisp.org>
3687
3688         stdint: Improve support for Android.
3689         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3690         Reported by Simon Josefsson <simon@josefsson.org>.
3691
3692 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         doc: omit trailing empty lines from INSTALL etc.
3695         * doc/Makefile (INSTALL): Omit trailing empty lines.
3696         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3697         omit trailing empty lines.  This simplifies the build procedure.
3698
3699 2012-01-23  Jim Meyering  <meyering@redhat.com>
3700
3701         tests: avoid spurious warnings about gl_sockets_startup
3702         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3703         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3704         reporting a "statement with no effect".
3705         * tests/test-accept.c (main): Mark as "(void)".
3706         * tests/test-accept4.c (main): Likewise.
3707         * tests/test-bind.c (main): Likewise.
3708         * tests/test-connect.c (main): Likewise.
3709         * tests/test-getpeername.c (main): Likewise.
3710         * tests/test-getsockname.c (main): Likewise.
3711         * tests/test-getsockopt.c (main): Likewise.
3712         * tests/test-listen.c (main): Likewise.
3713         * tests/test-recv.c (main): Likewise.
3714         * tests/test-recvfrom.c (main): Likewise.
3715         * tests/test-send.c (main): Likewise.
3716         * tests/test-sendto.c (main): Likewise.
3717         * tests/test-setsockopt.c (main): Likewise.
3718         * tests/test-shutdown.c (main): Likewise.
3719
3720 2012-01-21  Bruno Haible  <bruno@clisp.org>
3721
3722         locale-fr.m4: Fix for Android.
3723         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3724         failure of the test program on Bionic libc.
3725
3726 2012-01-21  Jim Meyering  <meyering@redhat.com>
3727
3728         bootstrap: fail when bootstrap_post_import_hook fails
3729         Otherwise, it's far too easy to miss diagnostics emitted
3730         between gnulib-tool's output and that of running configure.
3731         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3732
3733 2012-01-17  Jim Meyering  <meyering@redhat.com>
3734
3735         maint: enable sc_trailing_blank
3736         * build-aux/pmccabe.css: Remove trailing blanks.
3737         * doc/acl-cygwin.txt: Likewise.
3738         * doc/gnu-oids.texi: Likewise
3739         * cfg.mk: Enable sc_trailing_blank.
3740         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3741
3742 2012-01-17  Jim Meyering  <meyering@redhat.com>
3743
3744         maint: enable sc_prohibit_openat_without_use
3745         * cfg.mk: Enable sc_prohibit_openat_without_use.
3746         Exempt lib/selinux-at.c.
3747
3748 2012-01-17  Jim Meyering  <meyering@redhat.com>
3749
3750         maint: enable sc_prohibit_cloexec_without_use
3751         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3752         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3753
3754 2012-01-17  Jim Meyering  <meyering@redhat.com>
3755
3756         maint: enable sc_prohibit_intprops_without_use
3757         * cfg.mk: Enable sc_prohibit_intprops_without_use
3758         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3759
3760 2012-01-17  Jim Meyering  <meyering@redhat.com>
3761
3762         maint: enable sc_prohibit_hash_pjw_without_use
3763         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3764         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3765         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3766         following " (".
3767
3768 2012-01-17  Jim Meyering  <meyering@redhat.com>
3769
3770         maint: enable double-word-prohibiting rule
3771         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3772         Exempt three files.
3773
3774 2012-01-17  Jim Meyering  <meyering@redhat.com>
3775
3776         maint: remove empty lines at EOF, but excluding modules/*
3777         Apply syntax rules at home as well as abroad.  Most changes
3778         were induced by running this:
3779           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3780             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3781             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3782         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3783         Exempt modules/* and two binary files.
3784         Also exempt doc/INSTALL*, per request from Bruno Haible.
3785         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3786         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3787         * doc/Copyright/request-assign.future: Likewise.
3788         * doc/Copyright/request-disclaim.changes: Likewise.
3789         * doc/INSTALL: Likewise.
3790         * doc/INSTALL.ISO: Likewise.
3791         * doc/INSTALL.UTF-8: Likewise.
3792         * doc/acl-cygwin.txt: Likewise.
3793         * doc/acl-resources.txt: Likewise.
3794         * doc/fdl-1.2.texi: Likewise.
3795         * doc/fdl-1.3.texi: Likewise.
3796         * doc/fdl.texi: Likewise.
3797         * lib/argp-pin.c: Likewise.
3798         * lib/round.c: Likewise.
3799         * lib/unicase/u16-totitle.c: Likewise.
3800         * lib/unictype/block_test.c: Likewise.
3801         * lib/uninorm/canonical-decomposition.c: Likewise.
3802         * m4/README: Likewise.
3803         * m4/relocatable-lib.m4: Likewise.
3804         * tests/test-isnand-nolibm.c: Likewise.
3805         * tests/test-isnand.c: Likewise.
3806         * tests/uninorm/NormalizationTest.txt: Likewise.
3807
3808 2012-01-17  Jim Meyering  <meyering@redhat.com>
3809
3810         maint: add framework to run syntax-check rules against gnulib sources
3811         * cfg.mk: New file, to disable all currently-failing tests.
3812         We'll enable them one by one, as they are made to pass.
3813         * Makefile (sc_maint): New rule.
3814
3815 2012-01-21  Bruno Haible  <bruno@clisp.org>
3816
3817         stdint: Add support for Android.
3818         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3819         include the system's <stdint.h>.
3820         Reported by Simon Josefsson <simon@josefsson.org>.
3821
3822 2012-01-19  Jim Meyering  <meyering@redhat.com>
3823
3824         bootstrap: add bootstrap_post_import_hook
3825         Bison does still need something like the gnulib_mk_hook whose
3826         invocation I had to remove along with slurp in commit 767ccd40.
3827         Technically, we could get along without it, but doing so would
3828         have required living with a warning and a mandatory post-bootstrap
3829         automake rerun.
3830         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3831         (bootstrap_post_import_hook): New function.
3832         Invoke it after gnulib-tool --import and before autoreconf.
3833
3834 2012-01-18  Jim Meyering  <meyering@redhat.com>
3835
3836         gitlog-to-changelog: don't use "no_"-prefixed variable name
3837         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3838         to enable both --cluster and --no-cluster.  Change variable name,
3839         s/\$no_cluster/$cluster/, and reverse usage to match.
3840
3841         gitlog-to-changelog: use "||", not "or" in expressions
3842         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3843         expressions.
3844
3845 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3846
3847         gitlog-to-changelog: new option --no-cluster
3848         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3849         clustering of adjacent commit messages.
3850
3851 2012-01-17  Jim Meyering  <meyering@redhat.com>
3852
3853         maint: spell file systems with two words, not one
3854         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3855         two words, not one.
3856
3857 2012-01-16  Jim Meyering  <meyering@redhat.com>
3858
3859         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3860         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3861
3862 2012-01-16  Eric Blake  <eblake@redhat.com>
3863
3864         bootstrap: cater to autoconf 2.59
3865         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3866         is not available.
3867
3868         bootstrap: properly check for libtool
3869         * build-aux/bootstrap (libtoolize): Also run libtool when older
3870         usage is detected.
3871
3872 2012-01-15  Bruno Haible  <bruno@clisp.org>
3873
3874         Improve support for MSVC 9.
3875         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3876         clashes on MSVC.
3877         * lib/fcntl.in.h: Likewise.
3878         * lib/stdlib.in.h: Likewise.
3879         * lib/sys_stat.in.h: Likewise.
3880
3881 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3882
3883         gnupload: we hold the master copy of this script now
3884         For motivation and more information, see:
3885         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3886         * build-aux/gnupload: Make it clear in the heading comments that the
3887         master copy of this file is maintained by gnulib.  Since we are at
3888         it, bump its copyright year and ...
3889         ($scriptversion): ... the date in its version.
3890         ($usage): Patches and bug reports should be sent to the gnulib list,
3891         not the automake one.
3892         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3893         anymore.
3894
3895 2012-01-15  Bruno Haible  <bruno@clisp.org>
3896
3897         Fix module 'random'.
3898         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3899         initstate, setstate are declared.
3900
3901 2012-01-14  Bruno Haible  <bruno@clisp.org>
3902
3903         Tests for module 'random'.
3904         * modules/random-tests: New file.
3905         * tests/test-random.c: New file, based on tests/test-random_r.c.
3906
3907         New module 'random'.
3908         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3909         declarations.
3910         * lib/random.c: New file, based on glibc/stdlib/random.c.
3911         * m4/random.m4: New file.
3912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3913         HAVE_RANDOM.
3914         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3915         * modules/random: New file.
3916         * config/srclist.txt: Add an entry for random.c.
3917         * doc/posix-functions/random.texi: Mention the 'random' module.
3918         * doc/posix-functions/initstate.texi: Likewise.
3919         * doc/posix-functions/setstate.texi: Likewise.
3920         * doc/posix-functions/srandom.texi: Likewise.
3921
3922 2012-01-12  Bruno Haible  <bruno@clisp.org>
3923
3924         random_r: Use common idioms.
3925         * lib/random_r.c: Include <stdlib.h> first.
3926
3927         random_r: Override incompatible API on AIX, OSF/1.
3928         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3929         Override the system function if REPLACE_RANDOM_R is 1.
3930         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3931         and OSF/1, set REPLACE_RANDOM_R.
3932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3933         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3934         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3935         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3936         * doc/glibc-functions/random_r.texi: Likewise.
3937         * doc/glibc-functions/setstate_r.texi: Likewise.
3938
3939         random_r: Support for MSVC 9.
3940         * lib/random_r.c: Include stdint.h, not inttypes.h.
3941
3942 2012-01-12  Eric Blake  <eblake@redhat.com>
3943
3944         inet_ntop: guard extra work by IF_LINT
3945         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3946         better code generation when not checking for warnings.
3947         Suggested by Paul Eggert and Jim Meyering.
3948
3949         strptime: fix regression on mingw
3950         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3951         Fix regression.  Reported by Bruno Haible.
3952
3953 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3954             Bruno Haible  <bruno@clisp.org>
3955
3956         copy-file: add error-code-returning variant.
3957         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3958         (qcopy_file_preserving): New declaration.
3959         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3960         copy_file_preserving. Change return type to 'int'. Don't emit an error
3961         message here.
3962         (copy_file_preserving): New function.
3963         * tests/test-copy-file.c: Include <stdlib.h>.
3964         (main): Test qcopy_file_preserving if the environment variable
3965         NO_STDERR_OUTPUT is set.
3966         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3967         with NO_STDERR_OUTPUT
3968         * tests/test-copy-file-2.sh: Likewise.
3969
3970 2012-01-10  Bruno Haible  <bruno@clisp.org>
3971
3972         copy-file: Use 'quote' module consistently.
3973         * lib/copy-file.c (copy_file_preserving): Use quote().
3974
3975         copy-file: Refactor.
3976         * lib/copy-file.c: Include quote.h.
3977         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3978         message here.
3979         * modules/copy-file (Depends-on): Add quote.
3980
3981         acl: Export qcopy_acl.
3982         * lib/acl.h (qcopy_acl): New declaration.
3983         * lib/copy-acl.c (qcopy_acl): Make non-static.
3984
3985         acl: Rename a local variable.
3986         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3987
3988         acl: Align return values of copy_acl and qcopy_acl.
3989         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3990         maybe < -1.
3991
3992 2012-01-11  Eric Blake  <eblake@redhat.com>
3993
3994         strptime: silence gcc warnings
3995         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3996         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3997         Reported by Daniel P. Berrange.
3998
3999         inet_ntop: silence gcc warning
4000         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4001         Reported by Daniel P. Berrange.
4002
4003 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4004
4005         getloadavg test: skip the test on GNU/Linux without /proc mounted
4006         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4007         file.  When /proc is not mounted, it always fails with ENOENT.
4008         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4009         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4010
4011 2012-01-10  Bruno Haible  <bruno@clisp.org>
4012
4013         regex: Avoid link error on MSVC 9.
4014         * modules/regex (Depends-on): Add wctype.
4015
4016 2012-01-10  Bruno Haible  <bruno@clisp.org>
4017
4018         doc: Mention --with-tests option.
4019         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4020         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4021         --with-tests.
4022         Reported by Reuben Thomas.
4023
4024 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4025
4026         users.txt: order package names lexicographically.
4027         * users.txt: Order package names lexicographically.
4028
4029 2012-01-10  Jim Meyering  <meyering@redhat.com>
4030
4031         maint.mk: fix description in comment
4032         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4033
4034         ignore-value: remove deprecated ignore_ptr function
4035         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4036         * NEWS: Note this.
4037
4038 2012-01-09  Jim Meyering  <meyering@redhat.com>
4039
4040         test-init.sh: avoid a subshell
4041         * tests/test-init.sh: Remove protective subshell.
4042         Suggested by Bernhard Voelker.  While a subshell is normally
4043         required to protect against older shells (Solaris, FreeBSD) that
4044         warn about a missing program before performing redirection, the
4045         shell-selection tests performed by init.sh probably exclude any
4046         offending shell.
4047
4048 2012-01-08  Bruno Haible  <bruno@clisp.org>
4049
4050         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4051         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4052         variable.
4053
4054 2012-01-08  Bruno Haible  <bruno@clisp.org>
4055
4056         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4057         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4058         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4059         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4060         macro.
4061         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4062         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4063         * lib/spawn_faction_addopen.c: Add workaround implementation if
4064         HAVE_WORKING_POSIX_SPAWN.
4065         * modules/spawn (Makefile): Substitute
4066         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4067         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4068         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4069         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4070         (Depends-on): Update conditions.
4071         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4072         the Solaris 11 bug.
4073
4074 2012-01-08  Bruno Haible  <bruno@clisp.org>
4075
4076         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4077         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4078         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4079         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4080         macro.
4081         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4082         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4083         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4084         HAVE_WORKING_POSIX_SPAWN.
4085         * modules/spawn (Makefile): Substitute
4086         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4087         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4088         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4089         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4090         (Depends-on): Update conditions.
4091         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4092         the Solaris 11 bug.
4093
4094 2012-01-08  Bruno Haible  <bruno@clisp.org>
4095
4096         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4097         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4098         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4099         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4100         HAVE_WORKING_POSIX_SPAWN.
4101         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4102         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4103         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4104         * lib/spawn_faction_addclose.c: Add workaround implementation if
4105         HAVE_WORKING_POSIX_SPAWN.
4106         * modules/spawn (Makefile): Substitute
4107         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4108         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4109         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4110         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4111         (Depends-on): Update conditions.
4112         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4113         the Solaris 11 bug.
4114
4115 2012-01-08  Bruno Haible  <bruno@clisp.org>
4116
4117         doc: Update for Solaris 11 2011-11.
4118         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4119         * m4/printf.m4: Update comments.
4120
4121 2012-01-08  Bruno Haible  <bruno@clisp.org>
4122
4123         mktime: Avoid compilation error on Solaris 11.
4124         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4125
4126 2012-01-08  Bruno Haible  <bruno@clisp.org>
4127
4128         doc: Small fix.
4129         * doc/posix-headers/nl_types.texi: Correct platforms list.
4130
4131 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4132
4133         Add lgpl-3.0 module.
4134         * MODULES.html.sh (Support for building documentation): Add
4135         lgpl-3.0.
4136         * modules/lgpl-3.0: New file.
4137
4138 2012-01-08  Jim Meyering  <meyering@redhat.com>
4139
4140         select.c: indent with spaces, not TABs
4141         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4142
4143 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4144
4145         quotearg: do not use grave accent for left quote
4146         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4147         locale_quoting_style.
4148         (quotearg_buffer_restyled): Fix example.
4149         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4150
4151 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4152
4153         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4154         Most programs do not have translation catalogs for English and much
4155         less separate catalogs for British and American English.  Drop the
4156         suggestion to translators about these two, and provide it
4157         automatically for Unicode locales.  Like most programs, even those
4158         using American English, we use single quotation marks.  This conflicts
4159         with the American typographic convention, but works better when you
4160         cite the entire error message within double quotes.  It also tries not
4161         to clash with established practice and with what non-gnulib programs
4162         will usually do.
4163         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4164         using an UTF-8 or GB-18030 locale.  The list of other locales with
4165         quotes was provided by Bruno Haible.
4166         (quotearg_buffer_restyled): Adjust instructions to translators.
4167         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4168         text, since this would be wrong when using Unicode.
4169         * modules/quotearg: Depend on c-strcaseeq.
4170
4171 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4172
4173         quotearg: fix Wikipedia link
4174         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4175
4176 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4177
4178         Fix for mingw with MSVC9.
4179         * m4/ld-version-script.m4: Check that compiler rejects version
4180         scripts with syntax errors.  Reported by Bruno Haible
4181         <bruno@clisp.org>.
4182
4183 2012-01-06  Bruno Haible  <bruno@clisp.org>
4184
4185         Talk about "native Windows API", not "Woe32".
4186         * lib/accept4.c: Update comments to mention native Windows.
4187         * lib/execute.c: Likewise.
4188         * lib/fatal-signal.c: Likewise.
4189         * lib/localcharset.c: Likewise.
4190         * lib/nanosleep.c: Likewise.
4191         * lib/nl_langinfo.c: Likewise.
4192         * lib/pclose.c: Likewise.
4193         * lib/pipe-filter-gi.c: Likewise.
4194         * lib/pipe-filter-ii.c: Likewise.
4195         * lib/pipe.c: Likewise.
4196         * lib/pipe2.c: Likewise.
4197         * lib/popen.c: Likewise.
4198         * lib/progreloc.c: Likewise.
4199         * lib/relocatable.c: Likewise.
4200         * lib/sigaction.c: Likewise.
4201         * lib/sigprocmask.c: Likewise.
4202         * lib/spawn-pipe.h: Likewise.
4203         * lib/spawn-pipe.c: Likewise.
4204         * lib/spawni.c: Likewise.
4205         * lib/stat-time.h: Likewise.
4206         * lib/w32spawn.h: Likewise.
4207         * tests/test-isatty.c: Likewise.
4208         * lib/config.charset: More comments.
4209         * doc/gnulib-intro.texi: Mention native Windows.
4210         * doc/posix-functions/_Exit_C99.texi: Likewise.
4211         * doc/posix-headers/fcntl.texi: Likewise.
4212
4213 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4214
4215         argp: Avoid crash if translator uses % characters in a translation.
4216         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4217         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4218
4219 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         doc: C11 and C++11 are now official
4222         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4223         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4224         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4225         * modules/stdalign:
4226         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4227
4228 2012-01-06  Bruno Haible  <bruno@clisp.org>
4229
4230         uc-is-grapheme-break tests: Tweak.
4231         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4232         message.
4233
4234 2012-01-06  Bruno Haible  <bruno@clisp.org>
4235
4236         test-init.sh: correct the test for diff -u
4237         * tests/test-init.sh: Also redirect stdout to /dev/null.
4238
4239 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4240
4241         Use ', not `, for quoting output.
4242         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4243         (print_changelog_deltas, get_tool_versions, main program):
4244         * build-aux/git-version-gen:
4245         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4246         * build-aux/move-if-change (help):
4247         * build-aux/useless-if-before-free (usage, main program):
4248         * check-module (parse_module_file, usage)
4249         (find_included_lib_files, check_module):
4250         * lib/argmatch.c (main) [TEST]:
4251         * lib/argp-help.c (_help):
4252         * lib/getopt1.c (main) [TEST]:
4253         * lib/git-merge-changelog.c (usage):
4254         * lib/xstrtol-error.c (xstrtol_error):
4255         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4256         * m4/argz.m4 (gl_FUNC_ARGZ):
4257         * m4/bison.m4 (gl_BISON):
4258         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4259         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4260         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4261         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4262         * m4/gc-random.m4 (gl_GC_RANDOM):
4263         * m4/intl.m4 (gt_CHECK_DECL):
4264         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4265         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4266         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4267         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4268         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4269         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4270         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4271         * tests/test-dirname.c (main):
4272         * tests/test-getpass.c (main):
4273         * tests/test-iconvme.c (main):
4274         * tests/test-parse-datetime.c (LOG):
4275         * tests/test-xstrtoimax.sh:
4276         * tests/test-xstrtol.sh:
4277         * tests/test-xstrtoll.sh:
4278         * tests/test-xstrtoumax.sh:
4279         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4280         * top/GNUmakefile (abort-due-to-no-makefile):
4281         Quote 'like this', not `like this', as per the recent change to
4282         the GNU coding standards.
4283
4284 2012-01-05  Bruno Haible  <bruno@clisp.org>
4285
4286         strtoimax: Don't force a replacement on systems where intmax_t is int.
4287         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4288         'intmax_t' is not larger than 'int'.
4289         Reported by Pádraig Brady <P@draigBrady.com>.
4290
4291 2012-01-05  Bruno Haible  <bruno@clisp.org>
4292
4293         doc: Mention NetBSD bugs.
4294         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4295         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4296
4297 2012-01-05  Bruno Haible  <bruno@clisp.org>
4298
4299         strtoumax tests: Enhance tests.
4300         * tests/test-strtoumax.c (main): Add tests for large values.
4301
4302 2012-01-05  Bruno Haible  <bruno@clisp.org>
4303
4304         strtoimax: Work around AIX 5.1 bug.
4305         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4306         definition.
4307         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4308         Set HAVE_STRTOIMAX.
4309         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4310         REPLACE_STRTOIMAX.
4311         * modules/inttypes-incomplete (Makefile.am): Substitute
4312         REPLACE_STRTOIMAX.
4313         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4314         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4315         (Depends-on): Update conditions.
4316         * tests/test-strtoimax.c (main): Add tests for large values.
4317         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4318
4319 2012-01-05  Bruno Haible  <bruno@clisp.org>
4320
4321         inttypes: Modernize.
4322         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4323         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4324         (Makefile.am): Update inttypes.h rule.
4325
4326 2012-01-05  Jim Meyering  <meyering@redhat.com>
4327
4328         init.sh: don't waste a subshell just to redirect stderr
4329         * tests/init.sh: In testing for diff -u and diff -c, use a
4330         stderr-redirecting exec inside `...` rather than a subshell.
4331
4332         test-init.sh: avoid failure on HP-UX 11.00
4333         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4334         resolves to diff -c or cmp.  Reported by Bruno Haible.
4335
4336 2012-01-05  Bruno Haible  <bruno@clisp.org>
4337
4338         Tests for module 'strtoull'.
4339         * modules/strtoull-tests: New file.
4340         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4341
4342 2012-01-05  Bruno Haible  <bruno@clisp.org>
4343
4344         Tests for module 'strtoll'.
4345         * modules/strtoll-tests: New file.
4346         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4347
4348 2012-01-05  Bruno Haible  <bruno@clisp.org>
4349
4350         Tests for module 'strtoul'.
4351         * modules/strtoul-tests: New file.
4352         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4353
4354 2012-01-05  Bruno Haible  <bruno@clisp.org>
4355
4356         Tests for module 'strtol'.
4357         * modules/strtol-tests: New file.
4358         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4359
4360 2012-01-04  Jim Meyering  <meyering@redhat.com>
4361
4362         test-init.sh: accommodate Solaris 5.10's different diff -u output
4363         * tests/test-init.sh: Also exempt @@ lines from the comparison
4364         of diff output, since Solaris 5.10 and GNU diff formats differ.
4365         Reported by Stefano Lattarini.
4366
4367 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4368
4369         test-posixtm: don't assume signed integer wraparound
4370         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4371         after signed integer overflow.  Inspired by (though it may not
4372         fix) Bruno Haible's bug report in
4373         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4374
4375         Spell out "Windows 9x" and "Windows XP".
4376         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4377         "Windows 9x" and "WinXP" with "Windows XP".
4378
4379 2012-01-04  Jim Meyering  <meyering@redhat.com>
4380
4381         test-vc-list-files-cvs.sh: remove obsolete comment
4382         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4383         double exit.  Now that's all encapsulated via skip_ and Exit.
4384
4385 2012-01-04  Bruno Haible  <bruno@clisp.org>
4386
4387         Talk about "native Windows API", not "Win32".
4388         * lib/classpath.c: Update comments to mention native Windows.
4389         * lib/csharpexec.c: Likewise.
4390         * lib/dup2.c: Likewise.
4391         * lib/error.c: Likewise.
4392         * lib/fcntl.c: Likewise.
4393         * lib/filename.h: Likewise.
4394         * lib/findprog.c: Likewise.
4395         * lib/get-rusage-as.c: Likewise.
4396         * lib/get-rusage-data.c: Likewise.
4397         * lib/getpagesize.c: Likewise.
4398         * lib/javaexec.c: Likewise.
4399         * lib/msvc-inval.c: Likewise.
4400         * lib/msvc-nothrow.c: Likewise.
4401         * lib/nanosleep.c: Likewise.
4402         * lib/nonblocking.c: Likewise.
4403         * lib/printf-parse.c: Likewise.
4404         * lib/setlocale.c: Likewise.
4405         * lib/sigaction.c: Likewise.
4406         * lib/strerror_r.c: Likewise.
4407         * lib/tmpdir.c: Likewise.
4408         * lib/vasnprintf.c: Likewise.
4409         * lib/w32spawn.h: Likewise.
4410         * lib/waitpid.c: Likewise.
4411         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4412         * m4/locale-ar.m4: Likewise.
4413         * m4/locale-fr.m4: Likewise.
4414         * m4/locale-ja.m4: Likewise.
4415         * m4/locale-tr.m4: Likewise.
4416         * m4/locale-zh.m4: Likewise.
4417         * m4/printf.m4: Likewise.
4418         * tests/test-cloexec.c: Likewise.
4419         * tests/test-copy-acl.sh: Likewise.
4420         * tests/test-copy-file.sh: Likewise.
4421         * tests/test-file-has-acl.sh: Likewise.
4422         * tests/test-set-mode-acl.sh: Likewise.
4423         * tests/test-dup-safer.c: Likewise.
4424         * tests/test-dup2.c: Likewise.
4425         * tests/test-dup3.c: Likewise.
4426         * tests/test-fcntl.c: Likewise.
4427         * tests/test-nonblocking-pipe.h: Likewise.
4428         * tests/test-nonblocking-socket.h: Likewise.
4429         * tests/test-pipe.c: Likewise.
4430         * tests/test-pipe2.c: Likewise.
4431         * tests/test-spawn-pipe-child.c: Likewise.
4432         * doc/acl-resources.txt: Likewise.
4433         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4434         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4435         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4436         * lib/localcharset.c: Update comments to mention native Windows.
4437         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4438         * lib/localename.c: Likewise.
4439         * lib/progreloc.c: Likewise.
4440         * lib/relocatable.c: Likewise.
4441         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4442         (windows_compute_revents): Renamed from win32_compute_revents.
4443         (windows_compute_revents_socket): Renamed from
4444         win32_compute_revents_socket.
4445         * lib/select.c: Update comments to mention native Windows.
4446         (windows_poll_handle): Renamed from win32_poll_handle.
4447         * m4/threadlib.m4: Update comments to mention native Windows.
4448         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4449         --enable-threads=windows instead of --enable-threads=win32. Set
4450         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4451         * lib/glthread/lock.h: Update comments to mention native Windows.
4452         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4453         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4454         USE_WIN32_THREADS.
4455         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4456         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4457         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4458         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4459         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4460         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4461         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4462         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4463         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4464         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4465         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4466         * tests/test-tls.c: Likewise.
4467         Rationale:
4468         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4469         on both 32-bit and 64-bit Windows systems.
4470         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4471         line of distinction is between "native Windows" on one side and Unix/
4472         POSIX systems on the other side. More details in
4473         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4474         Suggested by Paul Eggert.
4475
4476 2012-01-03  Bruno Haible  <bruno@clisp.org>
4477
4478         isatty: Support for MSVC 9.
4479         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4480         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4481         (_isatty_nothrow): New function.
4482         (isatty): Use it instead of _isatty.
4483         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4484         * lib/poll.c (IsConsoleHandle): Likewise.
4485         * lib/select.c (IsConsoleHandle): Likewise.
4486         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4487         (gl_PREREQ_ISATTY): New macro.
4488         * modules/isatty (Depends-on): Add msvc-inval.
4489         (configure.ac): Invoke gl_PREREQ_ISATTY.
4490
4491 2012-01-03  Jim Meyering  <meyering@redhat.com>
4492
4493         maint.mk: remove temporary transition aid from over 1.5 years ago
4494         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4495         purpose was to aid in the transition (avoiding silent malfunction)
4496         from that old name to the new _sc_search_regexp.  This shim was
4497         added by commit 219c504b.
4498
4499         init.sh: do not try to accommodate compare arguments starting with "-"
4500         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4501         compare arguments that start with "-".  Besides, we do not worry
4502         about this when invoking diff or cmp; why start now with sed?
4503         Using "--" to separate options from argument would trigger sed
4504         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4505         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4506
4507 2012-01-02  Bruno Haible  <bruno@clisp.org>
4508
4509         Enhance tests for module 'isatty'.
4510         * modules/isatty-tests (Depends-on): Add pipe-posix.
4511         * tests/test-isatty.c: Include <fcntl.h>.
4512         (DEV_NULL): New macro.
4513         (main): Test the resut of isatty() also on regular files, pipes, and
4514         /dev/null.
4515
4516         New module 'isatty'.
4517         * lib/unistd.in.h (isatty): New declaration.
4518         * lib/isatty.c: New file, based on an idea of
4519         Bastien Roucariès <roucaries.bastien@gmail.com>.
4520         * m4/isatty.m4: New file.
4521         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4522         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4523         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4524         REPLACE_ISATTY.
4525         * modules/isatty: New file.
4526         * doc/posix-functions/isatty.texi: Mention the new module.
4527         Suggested by Paolo Bonzini.
4528
4529 2012-01-02  Bruno Haible  <bruno@clisp.org>
4530
4531         canonicalize: Tweak 2011-12-29 commit.
4532         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4533         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4534
4535 2012-01-02  Jim Meyering  <meyering@redhat.com>
4536
4537         gitlog-to-changelog: describe input syntax in --help output
4538         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4539
4540         gitlog-to-changelog: fix typo in --help: show backslash before email @
4541         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4542         in sources, but not in actual output.
4543
4544 2011-12-30  Jim Meyering  <meyering@redhat.com>
4545
4546         gitlog-to-changelog: don't malfunction when name contains %-directive
4547         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4548         in a name string cause trouble.  E.g., with a user name of "%s",
4549         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4550
4551 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4552
4553         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4554         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4555         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4556         the "  (tiny change)" notation that is appended to the standard
4557         ChangeLog "date  name  email" header line.
4558
4559 2012-01-01  Jim Meyering  <meyering@redhat.com>
4560
4561         test-framework-sh: init.sh: fix "make dist" failure
4562         When using gnulib-tool's --with-tests option and any module that
4563         depends on test-framework-sh, "make dist" would fail due to the
4564         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4565         in the gltests directory, and not in the gllib/ directory.
4566         One way to work around that is to move the EXTRA_DIST += init.sh
4567         from the primary module to the -tests one:
4568         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4569         * modules/test-framework-sh (Makefile.am): ...not here.
4570         Reported by Tom G. Christensen in
4571         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4572
4573         version-etc: update copyright year reported by --version
4574         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4575
4576 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4577
4578         canonicalize: only stat() if required
4579         * lib/canonicalize.c (canonicalize_filename_mode):
4580         Avoid calling l?stat() when both CAN_MISSING,
4581         and CAN_NOLINKS are set, as we neither need
4582         to resolve symlinks or test component existence.
4583
4584 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4585
4586         doc: cover st_ino issues once; add OpenVMS etc.
4587         * doc/posix-functions/stat.texi (stat):
4588         * doc/posix-functions/lstat.texi (lstat):
4589         * doc/posix-functions/fstatat.texi (fstatat):
4590         * doc/posix-functions/fstat.texi (fstat):
4591         Move general 'struct stat' stuff to sys_stat.texi,
4592         leaving behind a pointer.
4593         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4594         Merge duplicate info about 'struct stat' problems into here.
4595         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4596         and suggest partial workarounds.
4597
4598         same-inode: port to OpenVMS
4599         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4600         three st_ino values.
4601
4602 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4603
4604         canonicalize: fix references to stat() and lstat()
4605         * lib/canonicalize.c (canonicalize_filename_mode):
4606         Ensure references always resolve to a replacement
4607         function if required (even via a macro).
4608
4609 2011-12-30  Jim Meyering  <meyering@redhat.com>
4610
4611         gitlog-to-changelog: remove a little duplication
4612         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4613         rather than twice.
4614
4615 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4616
4617         canonicalize: add support for not resolving symlinks
4618         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4619         indicate we don't want to follow symlinks.  Also
4620         provide CAN_MODE_MASK to aid setting these existing
4621         mutually exclusive values.
4622         * lib/canonicalize.c (canonicalize_filename_mode):
4623         Extract the flags from can_mode parameter, which
4624         are currently just used to select between stat()
4625         and lstat().  Also ensure that mutually exclusive
4626         values are flagged immediately as invalid.
4627         * tests/test-canonicalize.c: Verify symlinks are
4628         not followed, and that invalid flag combinations
4629         are diagnosed.
4630
4631 2011-12-25  Jim Meyering  <meyering@redhat.com>
4632
4633         gitlog-to-changelog: do not clump multi-paragraph entries
4634         Identical header lines (date,name,email+coauthors) are suppressed,
4635         thus putting all entries with those same characteristics under
4636         a single header.  However, when a log entry consists of two or
4637         more paragraphs, it may not be clear where it starts and ends.
4638         This change makes it so that such an entry is always separated
4639         from others by a header line, even when that header would
4640         otherwise be suppressed.
4641         * build-aux/gitlog-to-changelog: Implement the above.
4642         Inspired by a related request from Stefano Lattarini in
4643         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4644
4645 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4646
4647         announce-gen: fix `cmd' typo in diagnostic
4648         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4649         diagnostic: a missing '$' meant that the command was not output.
4650
4651 2011-12-23  Jim Meyering  <meyering@redhat.com>
4652
4653         test-framework-sh: distribute init.sh
4654         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4655         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4656         fail due to the lack of init.sh.
4657
4658         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4659         * modules/atexit-tests: Rather than listing tests/init.sh,
4660         now that there's a module for it, simply depend on that new module.
4661         * modules/closein-tests: Likewise.
4662         * modules/exclude-tests: Likewise.
4663         * modules/getcwd-tests: Likewise.
4664         * modules/perror-tests: Likewise.
4665         * modules/pread-tests: Likewise.
4666         * modules/pwrite-tests: Likewise.
4667         * modules/vc-list-files-tests: Likewise.
4668         * modules/verify-tests: Likewise.
4669         * modules/xalloc-die-tests: Likewise.
4670         * modules/xstrtoimax-tests: Likewise.
4671         * modules/xstrtol-tests: Likewise.
4672         * modules/xstrtoll-tests: Likewise.
4673         * modules/xstrtoumax-tests: Likewise.
4674         * modules/yesno-tests: Likewise.
4675
4676 2011-12-22  Jim Meyering  <meyering@redhat.com>
4677
4678         test-framework-sh: add minimal tests of init.sh's compare function
4679         * modules/test-framework-sh-tests: New file.
4680         * tests/test-init.sh: New file.
4681
4682         test-framework-sh: new module
4683         * modules/test-framework-sh: New file.
4684         * MODULES.html.sh (Support for maintaining and releasing projects):
4685         List it.
4686
4687         init.sh: do not emit simulated diff output to stderr
4688         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4689
4690 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4691
4692         .gitignore: ignore gnulib.dvi and regex.info
4693         * doc/.gitignore:add gnulib.dvi and regex.info
4694
4695 2011-12-22  Jim Meyering  <meyering@redhat.com>
4696
4697         init.sh: correct previous change
4698         * tests/init.sh (compare): My previous change was wrong.
4699         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4700
4701         init.sh: avoid unwarranted test failure when using "set -e"
4702         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4703         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4704         a use like "compare exp out" would get evoke an unconditional failure.
4705
4706 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4707
4708         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4709         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4710         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4711         autoreconf that did not.
4712         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4713         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4714
4715 2011-12-17  Jim Meyering  <meyering@redhat.com>
4716
4717         bootstrap: remove some now-unneeded code
4718         This script arose back when gnulib-tool was young.
4719         Since then, it has seen improvements that render much of this
4720         script unnecessary.  In particular, it can now make symlinks
4721         to the files it uses.  Also, I no longer see as much value in
4722         marking files as read-only via comments.
4723         If you relied on the symlink-creation feature of the preceding
4724         version of this script, you can get most of that functionality
4725         by adding the --symlink option to the definition of
4726         gnulib_tool_option_extras in your bootstrap.conf file.
4727         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4728         Run autopoint and libtoolize *before* gnulib-tool.
4729         After it, run an abbreviated autoreconf, rather than a loop around
4730         all tools.
4731         (slirp, bt_mark_as_generated): Remove functions.
4732
4733 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4734
4735         ftoastr: fix typo
4736         * lib/ftoastr.h: Fix misspelling in comment.
4737
4738 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4739
4740         * top/README-release: fix punctuation.
4741
4742 2011-12-17  Jim Meyering  <meyering@redhat.com>
4743
4744         bootstrap: correct the recent buildreq change
4745         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4746         had no effect.
4747         * build-aux/bootstrap (buildreq): Bracket each search term with
4748         "*...*", so that the shell "case" statement works as intended.
4749         Add comments.
4750
4751 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4752
4753         build: let bootstrap resort to wget when downloading .po files
4754         * build-aux/bootstrap (download_po_files): Fallback to wget when
4755         downloading the .po files via rsync fails.  This is necessary to
4756         bootstrap from behind a strict firewall.
4757
4758 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4759
4760         stdint: don't assume C++11 when compiling with g++
4761         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4763         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4764         work also in C++ before C++11, as that improperly inhibits
4765         generating a substitute stdint.h for that case.
4766
4767 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4768
4769         alloca: protect comment from gnulib-tool
4770         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4771         that gnulib-tool doesn't think it's a license, and munge it to
4772         say "GCC version 3".
4773
4774 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4775
4776         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4777         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4778         $(abs_top_builddir) instead of $(top_builddir).
4779
4780 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4781
4782         strftime-tests: also test nanoseconds
4783         * tests/test-strftime.c (T): Add a test of %N.
4784
4785 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4786
4787         inttypes, stdint: add C++11 support
4788         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4789         when including inttypes.h and stdint.h.  Support this change to
4790         the standard.
4791         * doc/posix-headers/inttypes.texi (inttypes.h):
4792         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4793         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4794         Define if not defined already, for the benefit of pre-C++11 hosts.
4795         Define the standard format macros (e.g., PRId8) always.
4796         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4797         Likewise, if __cpluspus.  Define the standard constant and limit
4798         macros (e.g., INT8_C, INT8_MAX) always.
4799         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4800         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4801         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4802         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4803         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4804         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4805         Likewise.
4806
4807 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         nonblocking tests: Fix test failure on Linux/PPC.
4810         Suggested by Prerna Saxena in
4811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4812         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4813         Set to 1100000.
4814
4815 2011-12-12  Jim Meyering  <meyering@redhat.com>
4816
4817         argmatch: don't hard-code `' when listing valid option arguments
4818         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4819         use the quote function to add quotes.  Use fputs rather than
4820         fprintf for the format string with no format directive.
4821
4822 2011-12-07  Eric Blake  <eblake@redhat.com>
4823
4824         bootstrap: detect tools required by gnulib-tool
4825         * build-aux/bootstrap (buildreq): Provide minimum implicit
4826         dependencies.
4827         * DEPENDENCIES: Mention patch as a prereq.
4828
4829 2011-12-04  Bruno Haible  <bruno@clisp.org>
4830
4831         sethostname: Port to Windows platforms.
4832         * lib/sethostname.c: Provide an alternate implementation for Windows
4833         platforms.
4834         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4835         (main): Skip the test if sethostname() fails with EPERM. On Windows
4836         platforms, don't check the result of gethostname().
4837
4838 2011-12-04  Bruno Haible  <bruno@clisp.org>
4839             Jim Meyering  <meyering@redhat.com>
4840
4841         tests: Avoid spurious error message on platforms without mktemp program.
4842         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4843
4844 2011-12-04  Bruno Haible  <bruno@clisp.org>
4845
4846         sethostname: Fix documentation.
4847         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4848         "not fixed" section.
4849
4850 2011-12-03  Bruno Haible  <bruno@clisp.org>
4851
4852         gnulib-tool: Verify that the License field is present and non-empty.
4853         * gnulib-tool (func_get_license_raw): New function, extracted from
4854         func_get_license.
4855         (func_get_license): Use it. Warn if the module is not a test module and
4856         has no license.
4857         Suggested by Jim Meyering.
4858
4859 2011-12-03  Bruno Haible  <bruno@clisp.org>
4860
4861         sethostname tests: Fix link error on mingw.
4862         * tests/test-sethostname1.c: New file, extracted from
4863         tests/test-sethostname.c.
4864         * tests/test-sethostname2.c: New file, extracted from
4865         tests/test-sethostname.c.
4866         * tests/test-sethostname.c: Remove file.
4867         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4868         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4869         (Depends-on): Add gethostname.
4870         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4871         Link the latter with $(GETHOSTNAME_LIB).
4872
4873         sethostname tests: Fix compilation error on mingw.
4874         * tests/test-sethostname.c: Don't include <sys/types.h>.
4875         (geteuid): Use a dummy value without uid_t.
4876         * modules/sethostname-tests (Depends-on): Remove sys_types.
4877
4878         sethostname tests: Avoid a gcc warning.
4879         * tests/test-sethostname.c (main): Remove an unused variable.
4880
4881         Tweak last commit.
4882         * modules/sethostname-tests (Files): Sort by decreasing importance.
4883         (configure.ac): Check for geteuid.
4884         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4885         the test when there's nothing to test. Drop an unnecessary cast.
4886         Improve an error message. Verify that the final sethostname() call
4887         succeeds.
4888
4889 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4890
4891         Add a test suite for the sethostname module.
4892         * modules/sethostname-tests: New file.  A test program
4893         for the sethostname module.
4894         * tests/test-sethostname.c: Likewise.
4895
4896 2011-12-03  Bruno Haible  <bruno@clisp.org>
4897
4898         Tweak last commit.
4899         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4900         Fix preprocessor directives indentation. Fix typos.
4901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4902         * modules/unistd (Makefile): Likewise.
4903
4904 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4905
4906         Integrate the sethostname module into unistd.
4907         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4908         into the unistd.h header.
4909         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4910         preprocessor directives.
4911         * modules/unistd: Setup the Makefile substitutions of the
4912         SETHOSTNAME preprocessor directives.
4913
4914 2011-12-03  Bruno Haible  <bruno@clisp.org>
4915
4916         Tweak last commit.
4917         * lib/sethostname.c: Don't include <string.h>.
4918         (sethostname): No need to copy the argument string to the stack. Don't
4919         call clearerr. Preserve errno when fprintf failed.
4920         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4921         Don't invoke AC_REPLACE_FUNCS.
4922         * modules/sethostname (Link): Remove empty section.
4923         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4924         failure problem.
4925
4926 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4927
4928         New module 'sethostname'.
4929         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4930         for systems that lack it.
4931         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4932         sethostname declaration and function.
4933         * modules/sethostname: New file.  Define the sethostname module.
4934
4935 2011-12-03  Bruno Haible  <bruno@clisp.org>
4936
4937         Tweak last commit.
4938         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4939
4940 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4941
4942         Split the HOST_NAME_MAX detection into a separate m4 macro.
4943         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4944         macro so it can be used by the pending sethostname module.
4945
4946 2011-12-03  Bruno Haible  <bruno@clisp.org>
4947
4948         Fix module descriptions syntax.
4949         * modules/argv-iter (License): Fix syntax.
4950         * modules/di-set (License): Likewise.
4951         * modules/ino-map (License): Likewise.
4952         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4953
4954 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4955
4956         stdalign: port to Clang 3.0
4957         Problem reported by Simon Josefsson in
4958         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4959         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4960         which has <stdalign.h> but which does not define alignof.
4961         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4962
4963 2011-12-01  Eric Blake  <eblake@redhat.com>
4964
4965         mktempd: silence dd usage
4966         * build-aux/mktempd (rand_bytes): Silence dd.
4967
4968 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4969
4970         manywarnings: Don't mention gcc version in docstring.
4971         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4972         Jim Meyering <meyering@redhat.com>.
4973
4974 2011-11-30  Jim Meyering  <meyering@redhat.com>
4975
4976         hash: mark a few floating point constants with "f" suffix
4977         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4978         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4979         floating point constants with "f", since they're destined to be
4980         saved/used as "float"s.
4981
4982 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4983
4984         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4985         * tests/test-float.c (test_long_double): Correct and re-enable the
4986         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4987
4988 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4989
4990         Avoid subtracting two pointers that don't point into the same block.
4991         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4992         only pointers into the same memory block are subtracted. We cannot
4993         assume that sizeof (ptrdiff_t) == sizeof (void *).
4994
4995 2011-11-29  Eric Blake  <eblake@redhat.com>
4996
4997         maint.mk: add syntax check for use of compare from init.sh
4998         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4999         moved here from coreutils.
5000
5001         manywarnings: drop -Wunsuffixed-float-constants
5002         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5003         '1.0D', which is the only way to silence this warning for 'double'.
5004
5005 2011-11-29  Jim Meyering  <meyering@redhat.com>
5006
5007         hash: mark compute_bucket_size with the pure attribute
5008         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5009
5010         quotearg, propername: correct pragma guard expression
5011         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5012         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5013
5014 2011-11-28  Jim Meyering  <meyering@redhat.com>
5015
5016         propername: do not mark proper_name with the const attribute
5017         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5018         since it examines data pointed to by its parameter.
5019         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5020         the suggestion from -Wsuggest-attribute=const.
5021
5022         propername: mark one more function as const
5023         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5024
5025 2011-11-27  Jim Meyering  <meyering@redhat.com>
5026
5027         mark functions with const and pure attributes
5028
5029         Mark functions per suggestions from gcc-4.6 when using these options:
5030         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5031         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5032         Follow these guidelines: when possible, apply the attribute to
5033         an extern declaration, not to its definition.  Apply it to the
5034         definition only when the definition is static.
5035         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5036         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5037         * lib/base64.h (isbase64): Likewise.
5038         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5039         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5040         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5041         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5042         (c_tolower, c_toupper): Likewise.
5043         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5044         * lib/chdir-long.c (find_non_slash): Likewise.
5045         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5046         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5047         * lib/file-type.h (file_type): Likewise.
5048         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5049         * lib/filevercmp.c (verrevcmp): Likewise.
5050         * lib/freadahead.h (freadahead): Likewise.
5051         * lib/fts.c (fts_maxarglen): Likewise.
5052         * lib/hash-pjw.h (hash_pjw): Likewise.
5053         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5054         * lib/hash.c (is_prime, next_prime): Likewise.
5055         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5056         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5057         (hash_table_ok, hash_get_first, hash_string): Likewise.
5058         (compute_bucket_size): Likewise.
5059         * lib/i-ring.h (i_ring_empty): Likewise.
5060         * lib/isnan.c (isnanl): Likewise.
5061         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5062         * lib/memcasecmp.h (memcasecmp): Likewise.
5063         * lib/memchr2.h (memchr2): Likewise.
5064         * lib/memcmp2.h (memcmp2): Likewise.
5065         * lib/parse-datetime.y (lookup_zone): Likewise.
5066         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5067         [!WINDOWS_SOCKETS]: Likewise.
5068         * lib/strnlen1.h (strnlen1): Likewise.
5069         * lib/uniwidth.in.h (uc_width): Likewise.
5070         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5071         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5072         (quoting_options_from_style): Add a comment.
5073         * lib/propername.h (proper_name): Add a comment.
5074
5075 2011-11-27  Bruno Haible  <bruno@clisp.org>
5076
5077         Remove unused macros from !_LIBC code in glibc-borrowed files.
5078         * lib/fnmatch.c (STRCOLL): Remove macro.
5079         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5080         * lib/glob.c (__stat, __readdir64): Remove macros.
5081         * lib/tempname.c (__open64, __xstat64): Remove macros.
5082         Suggested by Paul Eggert.
5083
5084 2011-11-27  Bruno Haible  <bruno@clisp.org>
5085
5086         getcwd: Fix link error on MSVC 9.
5087         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5088
5089 2011-11-27  Bruno Haible  <bruno@clisp.org>
5090
5091         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5092         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5093         HAVE_OPENDIR is 0.
5094         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5095         HAVE_CLOSEDIR is 0.
5096         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5097         is 0.
5098         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5099
5100 2011-11-27  Bruno Haible  <bruno@clisp.org>
5101
5102         getcwd: Fix bug from 2011-08-17.
5103         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5104         platforms that need it.
5105         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5106         code of 4 to be a failure, not a success. This ensures that
5107         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5108
5109 2011-11-27  Bruno Haible  <bruno@clisp.org>
5110
5111         binary-io tests: Avoid test failure on mingw when libtool is used.
5112         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5113         Don't verify the size of t-bin-out1.tmp here.
5114         * tests/test-binary-io.sh: Verify it here.
5115         Reported by Simon Josefsson.
5116
5117 2011-11-26  Bruno Haible  <bruno@clisp.org>
5118
5119         Fix conflict between two instantiations of module 'unistd'.
5120         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5121         ${include_guard_prefix} also in the autoconf snippet.
5122         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5124         GNULIB_UNISTD_H_GETOPT.
5125         * modules/getopt-posix (configure.ac): Set the
5126         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5127         * modules/getopt-gnu (configure.ac): Likewise.
5128         * modules/unistd (Makefile.am): Change the substitution value of
5129         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5130         Reported by Simon Josefsson.
5131
5132 2011-11-25  Bruno Haible  <bruno@clisp.org>
5133
5134         pagealign_alloc: Doc and comments.
5135         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5136         module.
5137         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5138
5139 2011-11-25  Jim Meyering  <meyering@redhat.com>
5140
5141         test-update-copyright.sh: avoid false-positive failure
5142         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5143         around false positive failure on Cygwin/Windows.  The latter was
5144         matching erroneously-created files with names like
5145         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5146
5147 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5148
5149         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5150         * m4/valgrind-tests.m4: Check that the parameters that will be
5151         used works, not just a subset of them.  Reported by Bruno Haible
5152         <bruno@clisp.org>.
5153
5154 2011-11-24  Jim Meyering  <meyering@redhat.com>
5155
5156         test-stdalign.c: comment out long double tests
5157         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5158         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5159         error: '_Alignas' specifiers cannot reduce alignment of \
5160         'static_longdouble_alignas'.
5161
5162 2011-11-22  Jim Meyering  <meyering@redhat.com>
5163
5164         init.sh: make "compare /dev/null FILE" output more readable
5165         * tests/init.sh (compare_): Document the preferred order of arguments.
5166         (emit_diff_u_header_): New function.
5167         (compare_dev_null_): Emit a simulated diff, rather than just the
5168         contents of the unexpected file.  Suggestion from Bruno Haible.
5169
5170 2011-11-21  Jim Meyering  <meyering@redhat.com>
5171             Eric Blake  <eblake@redhat.com>
5172
5173         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5174         * tests/init.sh: Make our compare function slightly more portable.
5175         Reported by Bruno Haible in
5176         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5177
5178 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5179
5180         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5181         before using it, in code that ends up in config.h.
5182
5183 2011-11-20  Bruno Haible  <bruno@clisp.org>
5184
5185         getcwd: Work around getcwd bug on AIX 5..7.
5186         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5187         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5188         Use a different value for gl_cv_func_getcwd_path_max. Move the
5189         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5190         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5191         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5192         Define HAVE_MINIMALLY_WORKING_GETCWD.
5193         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5194         where it is not even minimally working, that is, on AIX.
5195         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5196         m4/getcwd-path-max.m4.
5197         (main): Update exit code computation.
5198         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5199         getcwd does not handle long file names.
5200
5201 2011-11-20  Bruno Haible  <bruno@clisp.org>
5202
5203         getcwd: Fix bug from 2009-09-10.
5204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5205         like "no".
5206
5207 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5208
5209         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5210
5211 2011-11-20  Bruno Haible  <bruno@clisp.org>
5212
5213         fma tests: Avoid shadowing local variables.
5214         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5215         expected.
5216
5217 2011-11-20  Bruno Haible  <bruno@clisp.org>
5218
5219         copysignf tests: Fix.
5220         * tests/test-copysignf.c: Fix signature check.
5221
5222 2011-11-20  Bruno Haible  <bruno@clisp.org>
5223
5224         fma: Remove unused code.
5225         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5226         unused macros.
5227
5228 2011-11-20  Bruno Haible  <bruno@clisp.org>
5229
5230         sethostname: Fix doc about AIX.
5231         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5232         sethostname; it has it.
5233
5234         sethostname: Mention more portability problems.
5235         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5236         problem.
5237         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5238
5239 2011-11-19  Bruno Haible  <bruno@clisp.org>
5240
5241         Depend on module fcntl-h when AT_FDCWD is used.
5242         * modules/utimens (Depends-on): Add fcntl-h.
5243         * modules/areadlinkat (Depends-on): Likewise.
5244         * modules/areadlinkat-with-size (Depends-on): Likewise.
5245         * modules/faccessat (Depends-on): Likewise.
5246         * modules/fchmodat (Depends-on): Likewise.
5247         * modules/fchownat (Depends-on): Likewise.
5248         * modules/getcwd (Depends-on): Likewise.
5249         * modules/mkdirat (Depends-on): Likewise.
5250         * modules/mkfifoat (Depends-on): Likewise.
5251         * modules/readlinkat (Depends-on): Likewise.
5252         * modules/symlinkat (Depends-on): Likewise.
5253         * modules/dup2-tests (Depends-on): Likewise.
5254         * modules/fdutimensat-tests (Depends-on): Likewise.
5255         * modules/futimens-tests (Depends-on): Likewise.
5256
5257 2011-11-19  Bruno Haible  <bruno@clisp.org>
5258
5259         euidaccess: Update a comment.
5260         * lib/euidaccess.c: Update comment about platforms with faccessat.
5261
5262 2011-11-19  Bruno Haible  <bruno@clisp.org>
5263
5264         openat: Fix file list.
5265         * modules/openat (Files): Remove lib/at-func.c.
5266
5267 2011-11-19  Bruno Haible  <bruno@clisp.org>
5268
5269         fstatat: Simplify.
5270         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5271         gnulib should define rpl_fstatat, there is a
5272         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5273
5274 2011-11-19  Bruno Haible  <bruno@clisp.org>
5275
5276         Ensure 'inline' can be used in tests/test-utimens-common.h.
5277         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5278         * modules/futimens-tests (configure.ac): Likewise.
5279         * modules/utimens-tests (configure.ac): Likewise.
5280         * modules/utimensat-tests (configure.ac): Likewise.
5281
5282 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5283
5284         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5285         not hash_insert0.
5286         (hash_insert_if_absent): Doc fix.
5287
5288 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5289
5290         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5291
5292 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5293
5294         test-getcwd: disambiguate exit status
5295         * tests/test-getcwd.c (test_long_name): Return 0..7.
5296         (main): Exit with an unambiguous exit status.  The old
5297         code yielded a mysterious mixture of two failure codes.
5298
5299         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5300         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5301         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5302         rpl_fstatat or fstatat.  This should fix the other problem
5303         reported by Kai Habel in
5304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5305         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5306         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5307         and I reproduced it on a Solaris 8 host we still have in production.
5308
5309 2011-11-18  Jim Meyering  <meyering@redhat.com>
5310
5311         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5312         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5313         Add a sentence to the comment.
5314         (hash_insert0): New function that simply calls hash_insert_if_absent.
5315         * lib/hash.h (hash_insert_if_absent): Declare it.
5316         (hash_insert0): Add deprecation attribute.
5317         (_GL_ATTRIBUTE_DEPRECATED): Define.
5318         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5319         not hash_insert0.
5320         * NEWS: Mention it, even though it's not really an incompatible change.
5321
5322 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5323
5324         openat: avoid compilation failure due to lack of <errno.h> inclusion
5325         * lib/openat.c: Include <errno.h>.
5326
5327 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5328
5329         * modules/getcwd (Depends-on): Add fdopendir.
5330         This fixes one of the two problems reported by Kai Habel in
5331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5332
5333         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5334         stdalign problem reported by Ian Beckwith in
5335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5336         * modules/crypto/gc-arcfour (Depends-on):
5337         Depend conditionally on crypto/arcfour.
5338         * modules/crypto/gc-arctwo (Depends-on):
5339         Depend conditionally on crypto/arctwo.
5340         * modules/crypto/gc-des (Depends-on):
5341         Depend conditionally on crypto/des.
5342         * modules/crypto/gc-hmac-md5 (Depends-on):
5343         Depend conditionally on crypto/hmac-md5.
5344         * modules/crypto/gc-hmac-sha1 (Depends-on):
5345         Depend conditionally on crypto/hmac-sha1.
5346         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5347         * modules/crypto/gc-md4 (Depends-on):
5348         Depend conditionally on crypto/md4.
5349         * modules/crypto/gc-md5 (Depends-on):
5350         Depend conditionally on crypto/md5.
5351         * modules/crypto/gc-rijndael (Depends-on):
5352         Depend conditionally on crypto/rijndael.
5353         * modules/crypto/gc-sha1 (Depends-on):
5354         Depend conditionally on crypto/sha1.
5355         * modules/crypto/gc-arcfour:
5356         * modules/crypto/gc-arctwo:
5357         * modules/crypto/gc-des:
5358         * modules/crypto/gc-hmac-md5:
5359         * modules/crypto/gc-hmac-sha1:
5360         * modules/crypto/gc-md2:
5361         * modules/crypto/gc-md4:
5362         * modules/crypto/gc-md5:
5363         * modules/crypto/gc-rijndael:
5364         * modules/crypto/gc-sha1:
5365         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5366         now that the conditional dependencies do the work for us.
5367
5368 2011-11-17  Jim Meyering  <meyering@redhat.com>
5369
5370         tests: factor st_ctime-comparison out of two headers
5371         * tests/test-utimens-common.h (ctime_compare): Define.
5372         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5373         * tests/test-lutimens.h (test_lutimens): Likewise.
5374         * tests/test-utimens.h (test_utimens): Likewise.
5375
5376         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5377         Invoke the test program via an init.sh-using wrapper.
5378         * tests/test-getcwd.sh: New file.
5379         * modules/getcwd-tests (Files): Add it.
5380         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5381
5382 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5383
5384         gitlog-to-changelog: support multi-author commits.
5385         The FSF cares about keeping track of all authors of patches to its
5386         projects, but Git doesn't provide obvious support for multi-author
5387         changesets. Consensus seems to be forming around the use of extra
5388         Signed-off-by inspired lines in the log message formatted as
5389         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5390         multi-author commits between version control systems.
5391         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5392         log message and output in standard ChangeLog multi-author format.
5393         Reported by Peter Rosin <peda@lysator.liu.se>
5394
5395 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5396             Bruno Haible  <bruno@clisp.org>
5397
5398         Fix some modules' file list.
5399         * modules/fstatat (Files): Add m4/lstat.m4.
5400         * modules/openat (Files): Likewise.
5401         * modules/unlinkat (Files): Likewise.
5402
5403 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5404
5405         maint.mk: fix tight-scope.mk generation in VPATH builds.
5406         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5407         reference with $(srcdir) so that the file is found correctly even
5408         when running `make syntax-check' in a VPATH build.
5409
5410 2011-11-13  Bruno Haible  <bruno@clisp.org>
5411             Jim Meyering  <meyering@redhat.com>
5412
5413         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5414         * tests/init.sh (compare): Remove "No differences encountered" or
5415         synonymous output from the 'diff' program.
5416
5417 2011-11-13  Bruno Haible  <bruno@clisp.org>
5418
5419         Makefile: Tweak indentation.
5420         * Makefile: Use tab as first character in every line that contains rule
5421         commands.
5422
5423 2011-11-13  Bruno Haible  <bruno@clisp.org>
5424
5425         Syntax check for copyright statements.
5426         * check-copyright: New file.
5427         * Makefile (sc_check_copyright): New rule.
5428
5429 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5430
5431         * build-aux/git-version-gen: Add --prefix to configure the tag
5432         match string.
5433
5434 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5435
5436         * build-aux/git-version-gen: Add --help and --version.
5437
5438 2011-11-12  Jim Meyering  <meyering@redhat.com>
5439
5440         revamp the other test-exclude?.sh scripts to use init.sh, too
5441         * tests/test-exclude1.sh: Use init.sh.
5442         * tests/test-exclude2.sh: Likewise.
5443         * tests/test-exclude3.sh: Likewise.
5444         * tests/test-exclude4.sh: Likewise.
5445         * tests/test-exclude5.sh: Likewise.
5446         * tests/test-exclude6.sh: Likewise.
5447         * tests/test-exclude7.sh: Likewise.
5448         * tests/test-exclude8.sh: Likewise.
5449         * modules/exclude-tests (Files): List init.sh.
5450
5451         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5452         These shell scripts ignored failure of the binary test-exclude,
5453         so making the latter return 77 didn't cause them to be skipped.
5454         * tests/test-exclude5.sh: Exit with test-exclude's error status
5455         when that program fails.  Revamp to use init.sh.
5456         * tests/test-exclude2.sh: Likewise.
5457
5458         test-exclude: fix a typo
5459         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5460
5461 2011-11-11  Bruno Haible  <bruno@clisp.org>
5462
5463         obstack: Fix compilation error on MSVC 9.
5464         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5465
5466 2011-11-11  Jim Meyering  <meyering@redhat.com>
5467
5468         test-exclude: skip tests rather than failing on deficient systems
5469         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5470         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5471         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5472         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5473
5474 2011-11-10  Bruno Haible  <bruno@clisp.org>
5475
5476         ptsname_r test: Avoid gcc warning on glibc systems.
5477         * tests/test-ptsname_r.c (null_ptr): New function.
5478         (test_errors): Use it.
5479
5480 2011-11-10  Bruno Haible  <bruno@clisp.org>
5481
5482         ptsname_r: Avoid compilation error on OSF/1 5.1.
5483         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5485         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5486         function is not declared or incompatibly declared.
5487         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5488         * modules/ptsname_r (Depends-on, configure.ac): Update.
5489         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5490
5491 2011-11-10  Bruno Haible  <bruno@clisp.org>
5492
5493         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5494         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5495         When cross-compiling, guess yes on all platforms except AIX.
5496         Reported by Ludovic Courtès <ludo@gnu.org>.
5497
5498 2011-11-09  Bruno Haible  <bruno@clisp.org>
5499
5500         ptsname_r tests: Fix bugs.
5501         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5502         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5503
5504 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5505
5506         fstatat: work with cross-compilation
5507         Problem reported by Ludovic Courtès in
5508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5509         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5510         "cross-compiling" and assume the bug is present.  Replace
5511         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5512         an inverted sense, to be more conservative about our assumptions.
5513         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5514
5515 2011-11-09  Bruno Haible  <bruno@clisp.org>
5516
5517         Improve MODULES.html output.
5518         * modules/mkfifoat (Description): Use the word "function".
5519         * modules/readlinkat (Description): Likewise.
5520         * modules/symlinkat (Description): Likewise.
5521
5522 2011-11-09  Eric Blake  <eblake@redhat.com>
5523
5524         ptsname_r-tests: new test module
5525         * modules/ptsname_r-tests: New module.
5526         * tests/test-ptsname_r.c: New file.
5527
5528         ptsname_r: new module
5529         * modules/ptsname_r: New module.
5530         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5531         * lib/ptsname.c (__ptsname_r): Split...
5532         * lib/ptsname_r.c: ...into new file.
5533         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5534         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5535         * modules/stdlib (Makefile.am): Substitute witnesses.
5536         * lib/stdlib.in.h (ptsname_r): Declare it.
5537         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5538         * MODULES.html.sh (Misc): Likewise.
5539         * modules/ptsname (Depends-on): Alter dependency.
5540         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5541
5542 2011-11-09  Jim Meyering  <meyering@redhat.com>
5543
5544         announce-gen: be more concise when there's only one URL+tarball
5545         * build-aux/announce-gen (get_tool_versions): When you distribute
5546         only one type of tarball, combine the first two "Here are..."
5547         sections and make the key-checking grammar independent of
5548         how many tarballs there are.
5549
5550 2011-11-09  Eric Blake  <eblake@redhat.com>
5551
5552         openpty: provide a stub on mingw
5553         * lib/pty.in.h (includes): Provide forward declarations.
5554         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5555
5556         raise: fix mingw handling of SIGPIPE
5557         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5558
5559 2011-11-08  Bruno Haible  <bruno@clisp.org>
5560
5561         More conditional dependencies.
5562         * modules/faccessat (Depends-on): Add conditions.
5563         * modules/fchmodat (Depends-on): Likewise.
5564         * modules/fchownat (Depends-on): Likewise.
5565         * modules/fstatat (Depends-on): Likewise.
5566         * modules/mkfifoat (Depends-on): Likewise.
5567         * modules/readlinkat (Depends-on): Likewise.
5568         * modules/symlinkat (Depends-on): Likewise.
5569         * modules/unlinkat (Depends-on): Likewise.
5570         * modules/utimensat (Depends-on): Likewise.
5571         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5572         * modules/linkat (Depends-on): Refine the conditions.
5573         * modules/renameat (Depends-on): Likewise.
5574
5575 2011-11-08  Bruno Haible  <bruno@clisp.org>
5576
5577         faccessat: Move AC_LIBOBJ invocation to module description.
5578         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5579         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5580         invocation from here...
5581         * modules/faccessat (configure.ac): ... to here. Invoke
5582         gl_PREREQ_FACCESSAT.
5583
5584 2011-11-08  Bruno Haible  <bruno@clisp.org>
5585
5586         faccessat: Simplify autoconf macro.
5587         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5588         gl_FUNC_EUIDACCESS.
5589
5590 2011-11-08  Bruno Haible  <bruno@clisp.org>
5591
5592         renameat: Fix dependencies.
5593         * modules/renameat (Depends-on): Add stdbool.
5594
5595 2011-11-08  Bruno Haible  <bruno@clisp.org>
5596
5597         mkfifoat: Fix module description.
5598         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5599         not gl_UNISTD_MODULE_INDICATOR.
5600
5601 2011-11-08  Bruno Haible  <bruno@clisp.org>
5602
5603         fstatat: Remove unused dependency.
5604         * modules/fstatat (Depends-on): Remove fstat.
5605
5606 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5607
5608         GNUmakefile: behave when Makefile is missing.
5609         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5610
5611 2011-11-08  Bruno Haible  <bruno@clisp.org>
5612
5613         openat: Conditionalize dependencies.
5614         * lib/openat.c: Reduce the scope of some #includes.
5615         * modules/openat (Depends-on): Add conditions.
5616
5617 2011-11-07  Jim Meyering  <meyering@redhat.com>
5618
5619         maint.mk: extract GPG key ID without using a temporary file
5620         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5621         without using a temporary file.  Based on a suggestion from Werner Koch
5622         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5623
5624 2011-11-07  Eric Blake  <eblake@redhat.com>
5625
5626         grantpt: fix typo
5627         * lib/stdlib.in.h (grantpt): Check correct function.
5628
5629         maint.mk: silence new syntax check
5630         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5631
5632 2011-11-06  Bruno Haible  <bruno@clisp.org>
5633
5634         Doc about floating-point and math API.
5635         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5636         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5637
5638 2011-11-06  Bruno Haible  <bruno@clisp.org>
5639
5640         stdalign tests: Skip the test when compiled by Sun C.
5641         * tests/test-stdalign.c (main): Skip the test on Sun C.
5642
5643 2011-11-06  Bruno Haible  <bruno@clisp.org>
5644
5645         ansi-c++-opt: Complete the 2011-06-05 change.
5646         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5647         does not support namespaces, set the variable to "no", not to ":".
5648
5649 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5650
5651         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5652
5653 2011-11-06  Bruno Haible  <bruno@clisp.org>
5654
5655         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5656         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5657         (minus_zerol) [HP-UX]: New macro.
5658         (unary_minus) [HP-UX]: New function.
5659         (copysignl) [HP-UX]: Use unary_minus function.
5660
5661 2011-11-06  Bruno Haible  <bruno@clisp.org>
5662
5663         ldexp, ldexpf, ldexpl: Enhance tests.
5664         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5665         and tests/test-ldexpl.c.
5666         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5667         LDEXP, MIN_EXP, MAX_EXP): New macros.
5668         Include test-ldexp.h.
5669         (main): Just call test_function.
5670         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5671         infinity.h, nan.h.
5672         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5673         MAX_EXP): New macros.
5674         Include test-ldexp.h.
5675         (x, y): Remove variables.
5676         (main): Just call test_function.
5677         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5678         infinity.h, nan.h.
5679         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5680         MAX_EXP): New macros.
5681         Include test-ldexp.h.
5682         (x, y): Remove variables.
5683         (main): Just call test_function.
5684         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5685         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5686         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5687         (Depends-on): Add isnand-nolibm, signbit, float.
5688         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5689         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5690         (Depends-on): Add isnanf-nolibm, signbit, float.
5691
5692 2011-11-06  Bruno Haible  <bruno@clisp.org>
5693
5694         math tests: Cosmetics.
5695         * tests/test-math-c++.cc: Reorder declarations.
5696
5697 2011-11-05  Bruno Haible  <bruno@clisp.org>
5698
5699         fma*: Simplify test.
5700         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5701         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5702
5703         Tests for module 'fmal'.
5704         * modules/fmal-tests: New file.
5705         * tests/test-fmal1.c: New file.
5706         * tests/test-fmal2.c: New file.
5707
5708         New module 'fmal'.
5709         * lib/math.in.h (fmal): New declaration.
5710         * lib/fmal.c: New file.
5711         * m4/fmal.m4: New file.
5712         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5714         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5715         REPLACE_FMAL.
5716         * modules/fmal: New file.
5717         * doc/posix-functions/fmal.texi: Mention the new module and the various
5718         bugs.
5719
5720         Tests for module 'fmaf'.
5721         * modules/fmaf-tests: New file.
5722         * tests/test-fmaf1.c: New file.
5723         * tests/test-fmaf2.c: New file.
5724
5725         New module 'fmaf'.
5726         * lib/math.in.h (fmaf): New declaration.
5727         * lib/fmaf.c: New file.
5728         * m4/fmaf.m4: New file.
5729         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5731         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5732         REPLACE_FMAF.
5733         * modules/fmaf: New file.
5734         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5735         bugs.
5736
5737         Tests for module 'fma'.
5738         * modules/fma-tests: New file.
5739         * tests/test-fma1.c: New file.
5740         * tests/test-fma1.h: New file.
5741         * tests/test-fma2.c: New file.
5742         * tests/test-fma2.h: New file.
5743
5744         New module 'fma'.
5745         * lib/math.in.h (fma): New declaration.
5746         * lib/fma.c: New file.
5747         * m4/fma.m4: New file.
5748         * m4/fegetround.m4: New file.
5749         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5751         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5752         REPLACE_FMA.
5753         * modules/fma: New file.
5754         * doc/posix-functions/fma.texi: Mention the new module and the various
5755         bugs.
5756
5757         Extend gl_MATHFUNC.
5758         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5759         Support 'void' as argument type.
5760         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5761
5762 2011-11-05  Jim Meyering  <meyering@redhat.com>
5763
5764         maint.mk: also prohibit inclusion of dirent.h without use
5765         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5766
5767 2011-11-05  Bruno Haible  <bruno@clisp.org>
5768
5769         ldexpl tests: Avoid test failure on MSVC 9.
5770         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5771         value. Needed in order to enforce the conversion from a value greater
5772         than LDBL_MAX to Infinity.
5773
5774 2011-11-05  Bruno Haible  <bruno@clisp.org>
5775
5776         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5777         * modules/at-internal: New file, extracted from modules/openat.
5778         * modules/openat-h: New file.
5779         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5780         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5781         * modules/openat (Description): Add reference to POSIX function.
5782         (Files): Remove lib/openat.h, lib/openat-proc.c.
5783         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5784         intprops, unistd.
5785         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5786         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5787         gl_FCNTL_MODULE_INDICATOR.
5788         (Include): Remove unistd.h, openat.h.
5789         * modules/areadlinkat (Files): Add lib/at-func.c.
5790         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5791         openat-die, openat-h, save-cwd.
5792         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5793         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5794         openat-die, openat-h, save-cwd, unistd.
5795         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5796         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5797         openat-h, save-cwd. Remove fcntl-h, openat.
5798         * modules/fchmodat (Files): Remove lib/openat.h.
5799         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5800         openat, stdbool, unistd.
5801         * modules/fchownat (Files): Remove lib/openat.h.
5802         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5803         openat, stdbool, sys_stat.
5804         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5805         lib/openat-proc.c.
5806         (Depends-on): Add at-internal.
5807         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5808         * modules/fstatat (Files): Remove lib/openat.h.
5809         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5810         stdbool, unistd.
5811         * modules/fts (Depends-on): Add openat-h.
5812         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5813         openat.
5814         * modules/mkdirat (Files): Remove lib/openat.h.
5815         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5816         openat, stdbool, sys_stat.
5817         * modules/mkfifoat (Files): Add lib/at-func.c.
5818         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5819         openat-h, save-cwd. Remove fcntl-h, openat.
5820         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5821         * modules/readlinkat (Files): Add lib/at-func.c.
5822         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5823         openat-h, save-cwd. Remove fcntl-h, openat.
5824         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5825         openat.
5826         * modules/selinux-at (Files): Add lib/at-func.c.
5827         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5828         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5829         * modules/symlinkat (Files): Add lib/at-func.c.
5830         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5831         openat-h, save-cwd. Remove fcntl-h, openat.
5832         * modules/unlinkat (Files): Remove lib/openat.h.
5833         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5834         stdbool.
5835         * modules/utimensat (Files): Add lib/at-func.c.
5836         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5837         openat-die, openat-h, save-cwd.
5838         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5839         * modules/fdutimensat-tests (Depends-on): Add openat.
5840         * modules/fstatat-tests (Depends-on): Add openat-h.
5841         * modules/readlinkat-tests (Depends-on): Add openat.
5842         * modules/symlinkat-tests (Depends-on): Add openat.
5843
5844 2011-11-05  Bruno Haible  <bruno@clisp.org>
5845
5846         openat: Include <stdbool.h>.
5847         * lib/openat.c: Include <stdbool.h>.
5848
5849 2011-11-04  Bruno Haible  <bruno@clisp.org>
5850
5851         fchownat, renameat, unlinkat: Fix dependencies.
5852         * modules/fchownat (Depends-on): Add fstatat.
5853         * modules/renameat (Depends-on): Likewise.
5854         * modules/unlinkat (Depends-on): Likewise.
5855
5856 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5857
5858         openat: remove direct dependency on dirent
5859         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5860         and hasn't been needed ever since fdopendir was split into its own
5861         module on 2009-08-31.
5862         * modules/openat (Depends-on): Remove dirent.
5863
5864 2011-11-04  Bruno Haible  <bruno@clisp.org>
5865
5866         renameat: Optimize code size.
5867         * modules/renameat (configure.ac): Don't compile at-func2.c if
5868         REPLACE_RENAMEAT is 1.
5869
5870 2011-11-04  Bruno Haible  <bruno@clisp.org>
5871
5872         openat tests: Fix file list.
5873         * modules/openat-tests (Files): Add tests/test-open.h.
5874
5875 2011-11-04  Bruno Haible  <bruno@clisp.org>
5876
5877         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5878         * modules/fchmodat (Depends-on): Add openat-die.
5879         * modules/fchownat (Depends-on): Likewise.
5880         * modules/linkat (Depends-on): Likewise.
5881         * modules/renameat (Depends-on): Likewise.
5882         * modules/openat (Depends-on): Add dirent.
5883
5884 2011-11-04  Jim Meyering  <meyering@redhat.com>
5885
5886         at-func*.c: fix comments
5887         * lib/at-func2.c: Correct/improve first-line comment.
5888         * lib/at-func.c: Correct grammar in first-line comment.
5889
5890 2011-11-04  Bruno Haible  <bruno@clisp.org>
5891
5892         New module 'mkdirat', split off from module 'openat'.
5893         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5894         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5895         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5896         * modules/mkdirat: New file, extracted from modules/openat.
5897         * modules/openat (Files): Remove lib/mkdirat.c.
5898         (Depends-on): Remove mkdir.
5899         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5900         (Include): Remove <sys/stat.h>.
5901         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5902         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5903         tests/test-mkdir.h.
5904         (Depends-on): Remove ignore-value.
5905         (Makefile.am): Remove rules for test-mkdirat.
5906         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5907         of module 'openat'.
5908         * NEWS: Mention the change.
5909
5910 2011-11-04  Bruno Haible  <bruno@clisp.org>
5911
5912         closedir: Avoid warning on mingw.
5913         * lib/closedir.c: Include <unistd.h>.
5914
5915 2011-11-04  Bruno Haible  <bruno@clisp.org>
5916
5917         New module 'fstatat', split off from module 'openat'.
5918         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5919         defined.
5920         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5921         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5922         gl_FUNC_FSTATAT.
5923         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5924         * modules/fstatat: New file, extracted from modules/openat.
5925         * modules/openat (Files): Remove lib/fstatat.c.
5926         (Depends-on): Remove lstat.
5927         (configure.ac): Remove AC_LIBOBJ of fstatat.
5928         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5929         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5930         tests/test-lstat.h, tests/test-stat.h.
5931         (Depends-on): Remove getcwd-lgpl.
5932         (Makefile.am): Remove rules for test-fstatat.
5933         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5934         of module 'openat'.
5935         * NEWS: Mention the change.
5936         * modules/getcwd (Depends-on): Add fstatat.
5937         * modules/linkat (Depends-on): Likewise.
5938         * modules/mkfifoat-tests (Depends-on): Likewise.
5939         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5940
5941 2011-11-03  Bruno Haible  <bruno@clisp.org>
5942
5943         New module 'unlinkat', split off from module 'openat'.
5944         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5945         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5946         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5947         * modules/unlinkat: New file, extracted from modules/openat. Correct
5948         the dependency conditions.
5949         * modules/openat (Files): Remove lib/unlinkat.c.
5950         (Depends-on): Remove rmdir, unlink.
5951         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5952         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5953         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5954         tests/test-rmdir.h, tests/test-unlink.h.
5955         (Depends-on): Remove unlinkdir.
5956         (Makefile.am): Remove rules for test-unlinkat.
5957         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5958         of module 'openat'.
5959         * NEWS: Mention the change.
5960         * modules/linkat-tests (Depends-on): Add unlinkat.
5961         * modules/mkfifoat-tests (Depends-on): Likewise.
5962         * modules/readlinkat-tests (Depends-on): Likewise.
5963
5964 2011-11-02  Bruno Haible  <bruno@clisp.org>
5965
5966         New module 'fchmodat', split off from module 'openat'.
5967         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5968         defined.
5969         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5970         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5971         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5972         * modules/fchmodat: New file, extracted from modules/openat.
5973         * modules/openat (Files): Remove lib/fchmodat.c.
5974         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5975         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5976         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5977         (Makefile.am): Remove rules for test-fchmodat.
5978         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5979         of module 'openat'.
5980         * NEWS: Mention the change.
5981
5982 2011-11-02  Jim Meyering  <meyering@redhat.com>
5983
5984         putenv: indent #definition of "environ" to placate cppi
5985         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5986
5987         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5988         Git logs are often treated as immutable, because editing them
5989         changes the SHA1 checksums of all descendants.  Thus, errors in
5990         git logs tend to stay there forever.  However, when we generate
5991         a ChangeLog file -- typically for distribution -- from that git log,
5992         we can actually make corrections in the generated file.  The key
5993         lies in recording in machine-readable/applicable form the desired
5994         corrections.  See --help for description and an example.
5995         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5996         (usage): Describe it; alphabetize option descriptions.
5997         (main): Honor the new option, carefully.
5998
5999 2011-11-01  Jim Meyering  <meyering@redhat.com>
6000
6001         gitlog-to-changelog: avoid an infloop
6002         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6003         that ends up being empty.
6004
6005 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6006
6007         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6008         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6009         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6010         contains (possibly-quoted) backslashes.  This should avoid
6011         all-too-common shell bugs if COMPLICATED contains backslashes in
6012         the "wrong" places.  Reported by David Evans in
6013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6014         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6015         because we want ASCII ranges.  Is there some reason we don't use
6016         the C locale everywhere in this script?
6017         (func_module, top level): Avoid unwanted pathname expansion when
6018         $repo_url_prefix or $repo_url_suffix_repl contain shell
6019         metacharacters like '?' and '*'.
6020
6021 2011-11-01  Bruno Haible  <bruno@clisp.org>
6022
6023         fchownat: Improve description.
6024         * modules/fchownat (Description): Add link to function.
6025
6026 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6029         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6031         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6032
6033 2011-11-01  Bruno Haible  <bruno@clisp.org>
6034
6035         alignof: Avoid collision with stdalign module.
6036         * lib/alignof.h (alignof): Remove macro.
6037         * NEWS: Mention the change.
6038         Reported by Paul Eggert.
6039
6040 2011-11-01  Bruno Haible  <bruno@clisp.org>
6041
6042         New module 'fchownat', split off from module 'openat'.
6043         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6044         defined.
6045         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6047         invoke gl_FUNC_FCHOWNAT.
6048         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6049         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6050         * modules/fchownat: New file, extracted from modules/openat.
6051         * modules/openat (Files): Remove lib/fchownat.c.
6052         (Depends-on): Remove lchown.
6053         (configure.ac): Remove AC_LIBOBJ of fchownat.
6054         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6055         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6056         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6057         (Depends-on): Remove mgetgroups, usleep, stat-time.
6058         (configure.ac): Remove test for getegid.
6059         (Makefile.am): Remove rules for test-fchownat.
6060         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6061         of module 'openat'.
6062         * NEWS: Mention the change.
6063
6064 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6065
6066         stdalign: port better to MSVC and to Sun C 5.11
6067         This fixes some of the problems reported by Bruno Haible in
6068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6069         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6070         shortcomings of MSVC and of Sun C 5.11.
6071         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6072         around __declspec arg.
6073         * modules/stdalign-tests (Files): Add tests/macros.h.
6074         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6075         Include macros.h, for ASSERT.
6076         (DECLARE_ALIGNED): Remove.
6077         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6078         to catch bug), and to 1 if not (simplifies the rest of the code).
6079         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6080         (CHECK_AUTO): Remove.
6081         (CHECK_ALIGNED): Check only the alignment of the static vars,
6082         since auto var alignment isn't supported by Sun C 5.11.
6083         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6084         ASSERT failures are easier to diagnose.
6085
6086 2011-10-31  Bruno Haible  <bruno@clisp.org>
6087
6088         doc about some IRIX 5.3 problems.
6089         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6090         on IRIX 5.3.
6091         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6092         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6093         5.3.
6094         * doc/posix-functions/grantpt.texi: Likewise.
6095         * doc/posix-functions/unlockpt.texi: Likewise.
6096         * doc/posix-functions/lgamma.texi: Likewise.
6097         * doc/posix-functions/nextafter.texi: Likewise.
6098         * doc/posix-functions/remainder.texi: Likewise.
6099         * doc/posix-functions/select.texi: Mention misplaced declaration on
6100         IRIX 5.3.
6101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6102
6103 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6104
6105         gitlog-to-changelog: fix git-log invocation.
6106         git-log mishandles date strings before 1970-01-01 UTC, and there is
6107         no use to specify --since=1970-01-01 by default anyway.
6108         * build-aux/gitlog-to-changelog: By default, when no --since option
6109         was given, do not specify explicit --since option to git-log.
6110
6111 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6112
6113         gitlog-to-changelog: new option --append-dot.
6114         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6115         first non-blank line of each commit message terminated with a dot.
6116
6117 2011-10-30  Bruno Haible  <bruno@clisp.org>
6118
6119         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6120         * lib/ffsl.h: Include <config.h>.
6121         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6122
6123 2011-10-30  Jim Meyering  <meyering@redhat.com>
6124
6125         GNUmakefile: reenable "make syntax-check" for most projects
6126         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6127         build-aux variable", "syntax-check" would do nothing but succeed with
6128         the "No version control files detected..." diagnostic (unless you
6129         happened to override _build-aux via cfg.mk).
6130         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6131         to precede inclusion of maint.mk.  Otherwise, these variables would
6132         be used undefined in any project that does not override the default.
6133
6134 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6135
6136         gitlog-to-changelog: treat a message with only blank lines as empty.
6137         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6138         trailing blank lines before the code that issues a warning about an
6139         empty commit message.
6140
6141 2011-10-30  Jim Meyering  <meyering@redhat.com>
6142
6143         test-parse-datetime.c: avoid new DST-related false positive test failure
6144         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6145         based on the time/date we'll convert, not the current time.
6146         Otherwise, the moment we cross a DST boundary like today's in
6147         Europe, (CEST to CET), that offset ends up being one hour off.
6148
6149 2011-10-27  Bruno Haible  <bruno@clisp.org>
6150
6151         fstat: Tweak documentation.
6152         * modules/fstat (Description): More precise description.
6153
6154 2011-10-27  Bruno Haible  <bruno@clisp.org>
6155
6156         Update documentation regarding 'largefile' module.
6157         * doc/posix-functions/fstat.texi: Tweak wording.
6158         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6159         problems with huge directories and/or small ino_t types.
6160         * doc/posix-functions/readdir.texi: Likewise.
6161         * doc/posix-functions/rewinddir.texi: Likewise.
6162
6163 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6164
6165         maint.mk: don't maintain a second build-aux variable.
6166         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6167         depends on GNUmakefile, which already maintains a cfg.mk
6168         overridable $(_build-aux) for projects with a non-standard
6169         build-aux directory location, although without the $(srcdir)
6170         prefix.  Use that variable consistently instead of introducing a
6171         second one.  Adjust all call sites.
6172
6173 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         Add stdalign module and use it in other modules.
6176         This is based on a previous proposal by Bruno Haible
6177         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6178
6179         stdalign: new module
6180         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6181         * modules/stdalign: New files.
6182         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6183         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6184
6185         stdalign-tests: new module
6186         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6187
6188         argp: use stdalign
6189         * lib/argp-parse.c: Include <stdalign.h>.
6190         (alignof): Remove.
6191         * modules/argp (Depends-on): Add stdalign.
6192
6193         crypto libraries: use stdalign
6194         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6195         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6196         Do not include <stdlib.h> twice, in md4.c.
6197         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6198         because we are accessing a pointer's bit-pattern, not a size.
6199         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6200         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6201         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6202         * modules/crypto/sha512: Likewise.
6203
6204         sys_socket: use stdalign, not alignof
6205         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6206         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6207
6208 2011-10-27  Bruno Haible  <bruno@clisp.org>
6209
6210         raise test: Avoid a test failure on Linux/MIPS.
6211         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6212         because 99 is a valid signal on Linux/MIPS.
6213
6214 2011-10-27  Bruno Haible  <bruno@clisp.org>
6215
6216         nonblocking tests: Fix test failure on Linux/MIPS.
6217         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6218         Set to 270000.
6219
6220 2011-10-27  Bruno Haible  <bruno@clisp.org>
6221
6222         utimensat: Work around problem on Linux/hppa.
6223         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6224         values.
6225         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6226
6227 2011-10-25  Jim Meyering  <meyering@redhat.com>
6228
6229         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6230         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6231         after symbols like NULL, size_t, etc.
6232         Reported by Alfred M. Szmidt.
6233
6234         maint.mk: exempt ENODATA from a syntax-check rule
6235         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6236         from the sc_prohibit_always-defined_macros syntax-check rule.
6237         Add a comment.  See this for more details:
6238         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6239
6240 2011-10-23  Jim Meyering  <meyering@redhat.com>
6241
6242         fts: close parent dir FD before returning from post-traversal fts_read
6243         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6244         unlink A, even though an FD open on A remained.  This is suboptimal
6245         (holding a file descriptor open longer than needed), but otherwise not
6246         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6247         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6248         that represents a real problem: it causes the removal of A to fail
6249         with e.g., "rm: cannot remove `A': Device or resource busy"
6250
6251         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6252         directory file descriptors.  After completing the final, FTS_DP,
6253         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6254         cache, but then proceeded to add a new FD to it via the subsequent
6255         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6256         final file descriptor would be closed only via fts_close's call to
6257         fd_ring_clear.  Now, it is usually closed earlier, via the final
6258         FTS_DP-returning fts_read call.
6259         * lib/fts.c (restore_initial_cwd): New function, converted from
6260         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6261         Update callers.
6262         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6263         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6264
6265 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6266             Bruno Haible  <bruno@clisp.org>
6267             Jim Meyering  <jim@meyering.net>
6268
6269         readme-release: improve safety of release prep instructions.
6270         * README-release: Don't git pull all branches when only master
6271         is needed for the release process.
6272         Run make maintainer-clean before changing trees and merging.
6273         Don't try to run ./configure right after git pull in case files
6274         that influence the bootstrap process have changed, move the
6275         ./configure step to after running ./bootstrap.
6276         Don't bootstrap "one last time"... it's the first time!
6277
6278 2011-10-22  Bruno Haible  <bruno@clisp.org>
6279
6280         errno, strerror-override: Support for MSVC 10.
6281         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6282         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6283         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6284         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6285         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6286         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6287         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6288         Assign values compatible with MSVC 10.
6289         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6290         New macros.
6291         (GNULIB_defined_EWINSOCK): New macro.
6292         * lib/strerror-override.c (strerror_override): Update accordingly.
6293         * lib/strerror-override.h: Likewise.
6294         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6295         longer equal to the corresponding errno value.
6296         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6297
6298 2011-10-22  Bruno Haible  <bruno@clisp.org>
6299
6300         perror: Recognize when test program crashes.
6301         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6302         strerror, set gl_cv_func_perror_works to no.
6303         Reported by Daniel Richard G. <skunk@iskunk.org>.
6304
6305         perror: Fix indentation.
6306         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6307
6308 2011-10-22  Bruno Haible  <bruno@clisp.org>
6309
6310         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6311         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6312         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6313         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6314         functions, not as a macro.
6315         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6316         macros.
6317         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6318         absence of macro.
6319         Suggested by Eric Blake.
6320         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6321
6322 2011-10-21  Bruno Haible  <bruno@clisp.org>
6323
6324         relocatable-prog-wrapper: Don't leave object files behind.
6325         * build-aux/install-reloc: Re-synchronize list of .o files to be
6326         removed with list of compilation units.
6327
6328 2011-10-20  Bruno Haible  <bruno@clisp.org>
6329
6330         openpty, posix_openpt: Remove code duplication.
6331         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6332         * lib/openpty.c: Include <stdlib.h>.
6333         (openpty): Use posix_openpt on all platforms except IRIX.
6334         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6335
6336 2011-10-20  Bruno Haible  <bruno@clisp.org>
6337
6338         unlockpt: Detect invalid argument.
6339         * lib/unlockpt.c: Include <fcntl.h>.
6340         (unlockpt): Check whether fd is valid, using fcntl().
6341         * modules/unlockpt (Depends-on): Add fcntl-h.
6342
6343 2011-10-20  Bruno Haible  <bruno@clisp.org>
6344
6345         openpty: Avoid compilation error on AIX 6.1.
6346         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6347
6348 2011-10-20  Bruno Haible  <bruno@clisp.org>
6349
6350         posix_openpt: Support for OpenBSD.
6351         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6352         (posix_openpt) [OpenBSD]: New code.
6353         * lib/grantpt.c: Include <fcntl.h>.
6354         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6355         * modules/grantpt (Depends-on): Add fcntl-h.
6356
6357 2011-10-20  Bruno Haible  <bruno@clisp.org>
6358
6359         posix_openpt test: Coding style.
6360         * tests/test-posix_openpt.c: Use GNU coding style.
6361
6362 2011-10-20  Bruno Haible  <bruno@clisp.org>
6363
6364         grantpt: Support --avoid=pt_chown.
6365         * modules/grantpt (Files): Add lib/pty-private.h.
6366
6367 2011-10-20  Bruno Haible  <bruno@clisp.org>
6368
6369         posix_openpt: Fix autoconf macro.
6370         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6371         unneeded check for _getpty.
6372
6373 2011-10-20  Bruno Haible  <bruno@clisp.org>
6374
6375         openpty: Update comments.
6376         * lib/openpty.c: Add comments about Minix.
6377
6378 2011-10-19  Eric Blake  <eblake@redhat.com>
6379
6380         openpty: relax license
6381         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6382
6383         pt_chown: use configmake to simplify build
6384         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6385
6386         ptsname and others: relax license
6387         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6388         * modules/unlockpt (License): Likewise.
6389         * modules/pt_chown (License): Likewise.
6390         * modules/ptsname (License): Likewise.
6391         * modules/ttyname_r (License): Likewise.
6392
6393 2011-10-19  Jim Meyering  <meyering@redhat.com>
6394
6395         posix_openpt: remove spurious #endif
6396         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6397
6398 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6399
6400         maint.mk: Respect $(build_aux) in web-manual rule.
6401         * top/maint.mk (web-manual): Find gen-announce script in user's
6402         $(build_aux) directory instead of hard-coding 'build-aux'.
6403
6404 2011-10-19  Bruno Haible  <bruno@clisp.org>
6405
6406         posix_openpt: Fix compilation error.
6407         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6408         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6409         Mention the openpty module as an alternative.
6410
6411 2011-10-19  Bruno Haible  <bruno@clisp.org>
6412
6413         Support for old NeXTstep 3.3 frexp().
6414         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6415         execution time of the test to 5 seconds.
6416         Reported by Daniel Richard G. <skunk@iskunk.org>.
6417
6418 2011-10-19  Bruno Haible  <bruno@clisp.org>
6419
6420         Support for old NeXTstep 3.3 sed.
6421         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6422         part, use /.../, not \|...|. Escape periods in the header file name.
6423         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6424         Reported by Daniel Richard G. <skunk@iskunk.org>.
6425
6426 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6427
6428         Support for old NeXTstep 3.3 gcc.
6429         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6430         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6431         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6432         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6433         * lib/regex.h (_Restrict_arr_): Likewise.
6434         * lib/regex_internal.h (re_token_t): Likewise.
6435         * lib/regexec.c (check_node_accept_bytes): Likewise.
6436         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6437
6438 2011-10-18  Eric Blake  <eblake@redhat.com>
6439
6440         posix_openpt: new module
6441         * modules/posix_openpt: New module.
6442         * m4/posix_openpt.m4: New file.
6443         * lib/posix_openpt.c: Likewise.
6444         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6445         (gl_STDLIB_H_DEFAULTS): Set defaults.
6446         * modules/stdlib (Makefile.am): Substitute macros.
6447         * lib/stdlib.in.h (posix_openpt): Declare.
6448         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6449         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6450         * modules/posix_openpt-tests: New test module.
6451         * tests/test-posix_openpt.c: New test.
6452
6453 2011-10-15  Bruno Haible  <bruno@clisp.org>
6454
6455         xstrtoll: Fix compilation failure.
6456         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6457         from lib/strtol.c.
6458         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6459         some platforms.
6460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6461
6462 2011-10-15  Bruno Haible  <bruno@clisp.org>
6463
6464         vasnprintf: Optimize bit search operation.
6465         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6466         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6467         gl_DOUBLE_EXPONENT_LOCATION.
6468         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6469         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6470         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6471         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6472         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6473         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6474         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6475         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6476         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6477
6478 2011-10-15  Bruno Haible  <bruno@clisp.org>
6479
6480         vasnprintf: Fix comments.
6481         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6482
6483 2011-10-14  Bruno Haible  <bruno@clisp.org>
6484
6485         Tests for module 'integer_length_ll'.
6486         * modules/integer_length_ll-tests: New file.
6487         * tests/test-integer_length_ll.c: New file.
6488
6489         New module 'integer_length_ll'.
6490         * lib/integer_length_ll.c: New file.
6491         * modules/integer_length_ll: New file.
6492
6493 2011-10-14  Bruno Haible  <bruno@clisp.org>
6494
6495         Tests for module 'integer_length_l'.
6496         * modules/integer_length_l-tests: New file.
6497         * tests/test-integer_length_l.c: New file.
6498
6499         New module 'integer_length_l'.
6500         * lib/integer_length_l.c: New file.
6501         * modules/integer_length_l: New file.
6502
6503 2011-10-14  Bruno Haible  <bruno@clisp.org>
6504
6505         Tests for module 'integer_length'.
6506         * modules/integer_length-tests: New file.
6507         * tests/test-integer_length.c: New file.
6508
6509         New module 'integer_length'.
6510         * lib/integer_length.h: New file.
6511         * lib/integer_length.c: New file.
6512         * modules/integer_length: New file.
6513
6514 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6515
6516         popen: Fix dependency conditions.
6517         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6518
6519 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6520
6521         perror: Fix autoconf test.
6522         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6523         <stdlib.h> and <string.h>.
6524
6525 2011-10-14  Bruno Haible  <bruno@clisp.org>
6526
6527         ffsl: Optimize on 64-bit platforms.
6528         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6529         unrolling.
6530
6531 2011-10-13  Bruno Haible  <bruno@clisp.org>
6532
6533         ffsl: Optimize on 32-bit platforms.
6534         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6535         use ffs() without a loop.
6536
6537         ffsl, ffsll: Optimize for GCC.
6538         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6539         * lib/ffsl.c (GCC_BUILTIN): New macro.
6540         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6541
6542 2011-10-13  Bruno Haible  <bruno@clisp.org>
6543
6544         ffs, bcopy, memset: Support symbol renaming via config.h.
6545         * lib/ffs.c: Include <config.h>.
6546         * lib/bcopy.c: Likewise.
6547         * lib/memset.c: Likewise.
6548
6549 2011-10-10  Bruno Haible  <bruno@clisp.org>
6550
6551         atanl: Simplify for platforms where 'long double' == 'double'.
6552         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6553         alternative implementation.
6554         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6555         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6556         * modules/atanl (Depends-on): Add atan. Update conditions.
6557
6558 2011-10-10  Bruno Haible  <bruno@clisp.org>
6559
6560         acosl: Simplify for platforms where 'long double' == 'double'.
6561         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6562         alternative implementation.
6563         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6564         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6565         * modules/acosl (Depends-on): Add acos. Update conditions.
6566
6567 2011-10-10  Bruno Haible  <bruno@clisp.org>
6568
6569         asinl: Simplify for platforms where 'long double' == 'double'.
6570         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6571         alternative implementation.
6572         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6573         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6574         * modules/asinl (Depends-on): Add asin. Update conditions.
6575
6576 2011-10-10  Bruno Haible  <bruno@clisp.org>
6577
6578         tanl: Simplify for platforms where 'long double' == 'double'.
6579         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6580         implementation.
6581         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6582         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6583         * modules/tanl (Depends-on): Add tan. Update conditions.
6584         (configure.ac): Don't compile trigl.c if
6585         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6586
6587 2011-10-10  Bruno Haible  <bruno@clisp.org>
6588
6589         cosl: Simplify for platforms where 'long double' == 'double'.
6590         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6591         implementation.
6592         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6593         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6594         * modules/cosl (Depends-on): Add cos. Update conditions.
6595         (configure.ac): Don't compile sincosl.c and trigl.c if
6596         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6597
6598 2011-10-10  Bruno Haible  <bruno@clisp.org>
6599
6600         sinl: Simplify for platforms where 'long double' == 'double'.
6601         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6602         implementation.
6603         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6604         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6605         * modules/sinl (Depends-on): Add sin. Update conditions.
6606         (configure.ac): Don't compile sincosl.c and trigl.c if
6607         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6608
6609 2011-10-10  Bruno Haible  <bruno@clisp.org>
6610
6611         logl: Simplify for platforms where 'long double' == 'double'.
6612         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6613         implementation.
6614         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6615         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6616         * modules/logl (Depends-on): Add log. Update conditions.
6617
6618 2011-10-10  Bruno Haible  <bruno@clisp.org>
6619
6620         expl: Simplify for platforms where 'long double' == 'double'.
6621         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6622         implementation.
6623         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6624         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6625         * modules/expl (Depends-on): Add exp. Update conditions.
6626
6627 2011-10-10  Bruno Haible  <bruno@clisp.org>
6628
6629         sqrtl: Simplify for platforms where 'long double' == 'double'.
6630         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6631         alternative implementation.
6632         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6633         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6634         * modules/sqrtl (Depends-on): Update conditions.
6635
6636 2011-10-10  Bruno Haible  <bruno@clisp.org>
6637
6638         ldexpl: Simplify for platforms where 'long double' == 'double'.
6639         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6640         alternative implementation.
6641         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6642         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6643         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6644
6645 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6646
6647         ffsll: set correct witness
6648         * modules/ffsll (configure.ac): Fix typo.
6649
6650 2011-10-10  Bruno Haible  <bruno@clisp.org>
6651
6652         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6653         * lib/printf-frexpl.c: Include <config.h>.
6654         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6655         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6656         second time.
6657         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6658         gl_LONG_DOUBLE_VS_DOUBLE.
6659         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6660         conditions.
6661
6662 2011-10-10  Bruno Haible  <bruno@clisp.org>
6663
6664         frexpl: Simplify for platforms where 'long double' == 'double'.
6665         * lib/frexpl.c: Include <config.h>.
6666         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6667         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6668         time.
6669         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6670         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6671         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6672         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6673         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6674         conditions.
6675
6676 2011-10-10  Jim Meyering  <meyering@redhat.com>
6677
6678         test-renameat: don't leave behind a temporary file
6679         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6680           ERROR: files left in build directory after distclean:
6681           ./gltests/test-renameat.too
6682           make[1]: *** [distcleancheck] Error 1
6683         Reported by Tom G. Christensen.
6684
6685 2011-10-09  Bruno Haible  <bruno@clisp.org>
6686
6687         rint: Determine RINT_LIBM correctly on AIX 7.
6688         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6689         directly, not only through a function pointer. Also accept an optional
6690         4th argument with extra code.
6691         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6692         rintf() call by gcc when optimizing.
6693
6694         mathfunc.m4: Refactor.
6695         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6696         m4 variable.
6697
6698 2011-10-09  Bruno Haible  <bruno@clisp.org>
6699
6700         rintl: Simplify for platforms where 'long double' == 'double'.
6701         * lib/rintl.c: Include <config.h>.
6702         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6703         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6704         time.
6705         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6706         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6707         * modules/rintl (Depends-on): Add rint. Update conditions.
6708
6709 2011-10-09  Bruno Haible  <bruno@clisp.org>
6710
6711         roundl: Simplify for platforms where 'long double' == 'double'.
6712         * lib/roundl.c: Include <config.h>.
6713         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6714         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6715         time.
6716         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6717         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6718         * modules/roundl (Depends-on): Add round. Update conditions.
6719
6720 2011-10-09  Bruno Haible  <bruno@clisp.org>
6721
6722         truncl: Simplify for platforms where 'long double' == 'double'.
6723         * lib/truncl.c: Include <config.h>.
6724         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6725         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6726         time.
6727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6728         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6729         * modules/truncl (Depends-on): Add trunc. Update conditions.
6730
6731 2011-10-09  Bruno Haible  <bruno@clisp.org>
6732
6733         ceill: Simplify for platforms where 'long double' == 'double'.
6734         * lib/ceill.c: Include <config.h>.
6735         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6736         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6737         time.
6738         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6739         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6740         * modules/ceill (Depends-on): Add ceil. Update conditions.
6741
6742 2011-10-09  Bruno Haible  <bruno@clisp.org>
6743
6744         floorl: Simplify for platforms where 'long double' == 'double'.
6745         * lib/floorl.c: Include <config.h>.
6746         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6747         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6748         time.
6749         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6750         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6751         * modules/floorl (Depends-on): Add floor. Update conditions.
6752
6753 2011-10-09  Bruno Haible  <bruno@clisp.org>
6754
6755         rint: Fix ordering constraints.
6756         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6757         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6758         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6759
6760 2011-10-09  Bruno Haible  <bruno@clisp.org>
6761
6762         copysignl: Simplify for platforms where 'long double' == 'double'.
6763         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6764         alternative.
6765         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6766         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6767         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6768
6769 2011-10-09  Bruno Haible  <bruno@clisp.org>
6770
6771         Tests for module 'rintl'.
6772         * modules/rintl-tests: New file.
6773         * tests/test-rintl.c: New file.
6774
6775         New module 'rintl'.
6776         * lib/math.in.h (rintl): New declaration.
6777         * lib/rintl.c: New file.
6778         * m4/rintl.m4: New file.
6779         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6781         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6782         * modules/rintl: New file.
6783         * tests/test-math-c++.cc: Check the declaration of rintl.
6784         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6785         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6786         * doc/posix-functions/rintl.texi: Mention the new module.
6787
6788 2011-10-09  Bruno Haible  <bruno@clisp.org>
6789
6790         Tests for module 'rintf'.
6791         * modules/rintf-tests: New file.
6792         * tests/test-rintf.c: New file.
6793
6794         New module 'rintf'.
6795         * lib/math.in.h (rintf): New declaration.
6796         * lib/rintf.c: New file.
6797         * m4/rintf.m4: New file.
6798         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6800         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6801         * modules/rintf: New file.
6802         * tests/test-math-c++.cc: Check the declaration of rintf.
6803         * doc/posix-functions/rintf.texi: Mention the new module.
6804
6805 2011-10-09  Bruno Haible  <bruno@clisp.org>
6806
6807         rint: Support for MSVC.
6808         * lib/math.in.h (rint): New declaration.
6809         * lib/rint.c: New file.
6810         * m4/rint.m4: New file.
6811         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6813         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6814         * modules/rint (Description): Fix.
6815         (Files): Add lib/rint.c, m4/rint.m4.
6816         (Depends-on): Add math.
6817         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6818         gl_MATH_MODULE_INDICATOR.
6819         * tests/test-math-c++.cc: Check the declaration of rint.
6820         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6821         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6822         * doc/posix-functions/rint.texi: Mention the replacement provided by
6823         the module.
6824
6825         rint tests: More tests.
6826         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6827         minus-zero.h, infinity.h, nan.h.
6828         (main): Skip the test if the current rounding mode is not standard. Add
6829         tests for negative numbers, minus zero, infinity, NaN.
6830         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6831         tests/nan.h.
6832         (Depends-on): Add isnand-nolibm.
6833
6834 2011-10-09  Bruno Haible  <bruno@clisp.org>
6835
6836         Tests for module 'copysignl'.
6837         * modules/copysignl-tests: New file.
6838         * tests/test-copysignl.c: New file.
6839
6840         New module 'copysignl'.
6841         * lib/math.in.h (copysignl): New declaration.
6842         * lib/copysignl.c: New file.
6843         * m4/copysignl.m4: New file.
6844         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6846         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6847         HAVE_COPYSIGNL.
6848         * modules/copysignl: New file.
6849         * tests/test-math-c++.cc: Check the declaration of copysignl.
6850         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6851         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6852         * doc/posix-functions/copysignl.texi: Mention the new module.
6853
6854 2011-10-09  Bruno Haible  <bruno@clisp.org>
6855
6856         Tests for module 'copysignf'.
6857         * modules/copysignf-tests: New file.
6858         * tests/test-copysignf.c: New file.
6859
6860         New module 'copysignf'.
6861         * lib/math.in.h (copysignf): New declaration.
6862         * lib/copysignf.c: New file.
6863         * m4/copysignf.m4: New file.
6864         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6866         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6867         HAVE_COPYSIGNF.
6868         * modules/copysignf: New file.
6869         * tests/test-math-c++.cc: Check the declaration of copysignf.
6870         * doc/posix-functions/copysignf.texi: Mention the new module.
6871
6872 2011-10-09  Bruno Haible  <bruno@clisp.org>
6873
6874         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6875         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6876         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6877         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6879         gl_SIGNAL_H_DEFAULTS.
6880
6881 2011-10-09  Bruno Haible  <bruno@clisp.org>
6882
6883         poll: Make macro safer.
6884         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6885         ac_cv_header_poll_h is not set.
6886
6887 2011-10-09  Bruno Haible  <bruno@clisp.org>
6888
6889         copysign: Provide replacement.
6890         * lib/math.in.h (copysign): New declaration.
6891         * lib/copysign.c: New file.
6892         * m4/copysign.m4: New file.
6893         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6895         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6896         HAVE_COPYSIGN.
6897         * modules/copysign (Description): Clarify.
6898         (Files): Add lib/copysign.c, m4/copysign.m4.
6899         (Depends-on): Add math, signbit.
6900         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6901         gl_MATH_MODULE_INDICATOR.
6902         * tests/test-math-c++.cc: Check the declaration of copysign.
6903         * doc/posix-functions/copysign.texi: Mention the effects of the module
6904         on Minix and MSVC.
6905
6906 2011-10-09  Bruno Haible  <bruno@clisp.org>
6907
6908         isinf: Ensure macro on AIX 5.1.
6909         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6910         macro.
6911         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6912
6913 2011-10-09  Bruno Haible  <bruno@clisp.org>
6914
6915         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6916         * modules/snprintf-posix-tests (configure.ac): Require
6917         gl_LONG_DOUBLE_VS_DOUBLE.
6918         * modules/sprintf-posix-tests (configure.ac): Likewise.
6919         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6920         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6921         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6922         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6923         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6924         tests on platforms where 'long double' is the same as 'double'.
6925         * tests/test-sprintf-posix.h (test_function): Likewise.
6926         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6927         * tests/test-vasprintf-posix.c (test_function): Likewise.
6928
6929         *printf: Fix for platforms where 'long double' == 'double'.
6930         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6931         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6932         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6933         * modules/fprintf-posix (Files): Likewise.
6934         * modules/obstack-printf-posix (Files): Likewise.
6935         * modules/snprintf-posix (Files): Likewise.
6936         * modules/sprintf-posix (Files): Likewise.
6937         * modules/vasnprintf (Files): Likewise.
6938         * modules/vasnprintf-posix (Files): Likewise.
6939         * modules/vasprintf-posix (Files): Likewise.
6940         * modules/vdprintf-posix (Files): Likewise.
6941         * modules/vfprintf-posix (Files): Likewise.
6942         * modules/vsnprintf-posix (Files): Likewise.
6943         * modules/vsprintf-posix (Files): Likewise.
6944         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6945         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6946         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6947         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6948         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6949         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6950         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6951
6952         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6953         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6954         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6955         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6956         'long double'.
6957         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6958
6959         isinf: Fix for platforms where 'long double' == 'double'.
6960         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6961         Don't blindly assume 80-bit 'long double'.
6962
6963         isfinite: Fix for platforms where 'long double' == 'double'.
6964         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6965         Don't blindly assume 80-bit 'long double'.
6966
6967         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6968         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6969         * modules/isfinite-tests (configure.ac): Require
6970         gl_LONG_DOUBLE_VS_DOUBLE.
6971         * modules/isinf-tests (configure.ac): Likewise.
6972         * modules/isnan-tests (configure.ac): Likewise.
6973         * modules/isnanl-tests (configure.ac): Likewise.
6974         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6975         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6976         tests on platforms where 'long double' is the same as 'double'.
6977         * tests/test-isinf.c (test_isinfl): Likewise.
6978         * tests/test-isnan.c (test_long_double): Likewise.
6979         * tests/test-isnanl.h (main): Likewise.
6980
6981 2011-10-08  Bruno Haible  <bruno@clisp.org>
6982
6983         Tests for module 'tanhf'.
6984         * modules/tanhf-tests: New file.
6985         * tests/test-tanhf.c: New file.
6986
6987         New module 'tanhf'.
6988         * lib/math.in.h (tanhf): New declaration.
6989         * lib/tanhf.c: New file.
6990         * m4/tanhf.m4: New file.
6991         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6993         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6994         * modules/tanhf: New file.
6995         * tests/test-math-c++.cc: Check the declaration of tanhf.
6996         * doc/posix-functions/tanhf.texi: Mention the new module.
6997
6998         tanh: Use a .m4 file.
6999         * m4/tanh.m4: New file.
7000         * modules/tanh (Files): Add it.
7001         (configure.ac): Just invoke gl_FUNC_TANH.
7002
7003 2011-10-08  Bruno Haible  <bruno@clisp.org>
7004
7005         Tests for module 'coshf'.
7006         * modules/coshf-tests: New file.
7007         * tests/test-coshf.c: New file.
7008
7009         New module 'coshf'.
7010         * lib/math.in.h (coshf): New declaration.
7011         * lib/coshf.c: New file.
7012         * m4/coshf.m4: New file.
7013         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7015         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7016         * modules/coshf: New file.
7017         * tests/test-math-c++.cc: Check the declaration of coshf.
7018         * doc/posix-functions/coshf.texi: Mention the new module.
7019
7020         cosh: Use a .m4 file.
7021         * m4/cosh.m4: New file.
7022         * modules/cosh (Files): Add it.
7023         (configure.ac): Just invoke gl_FUNC_COSH.
7024
7025 2011-10-08  Bruno Haible  <bruno@clisp.org>
7026
7027         Tests for module 'sinhf'.
7028         * modules/sinhf-tests: New file.
7029         * tests/test-sinhf.c: New file.
7030
7031         New module 'sinhf'.
7032         * lib/math.in.h (sinhf): New declaration.
7033         * lib/sinhf.c: New file.
7034         * m4/sinhf.m4: New file.
7035         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7037         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7038         * modules/sinhf: New file.
7039         * tests/test-math-c++.cc: Check the declaration of sinhf.
7040         * doc/posix-functions/sinhf.texi: Mention the new module.
7041
7042         sinh: Use a .m4 file.
7043         * m4/sinh.m4: New file.
7044         * modules/sinh (Files): Add it.
7045         (configure.ac): Just invoke gl_FUNC_SINH.
7046
7047 2011-10-08  Bruno Haible  <bruno@clisp.org>
7048
7049         Tests for module 'atan2f'.
7050         * modules/atan2f-tests: New file.
7051         * tests/test-atan2f.c: New file.
7052
7053         New module 'atan2f'.
7054         * lib/math.in.h (atan2f): New declaration.
7055         * lib/atan2f.c: New file.
7056         * m4/atan2f.m4: New file.
7057         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7059         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7060         * modules/atan2f: New file.
7061         * tests/test-math-c++.cc: Check the declaration of atan2f.
7062         * doc/posix-functions/atan2f.texi: Mention the new module.
7063
7064         atan2: Use a .m4 file.
7065         * m4/atan2.m4: New file.
7066         * modules/atan2 (Files): Add it.
7067         (configure.ac): Just invoke gl_FUNC_ATAN2.
7068
7069 2011-10-08  Bruno Haible  <bruno@clisp.org>
7070
7071         Tests for module 'atanf'.
7072         * modules/atanf-tests: New file.
7073         * tests/test-atanf.c: New file.
7074
7075         New module 'atanf'.
7076         * lib/math.in.h (atanf): New declaration.
7077         * lib/atanf.c: New file.
7078         * m4/atanf.m4: New file.
7079         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7080         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7081         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7082         * modules/atanf: New file.
7083         * tests/test-math-c++.cc: Check the declaration of atanf.
7084         * doc/posix-functions/atanf.texi: Mention the new module.
7085
7086         atan: Use a .m4 file.
7087         * m4/atan.m4: New file.
7088         * modules/atan (Files): Add it.
7089         (configure.ac): Just invoke gl_FUNC_ATAN.
7090
7091 2011-10-08  Bruno Haible  <bruno@clisp.org>
7092
7093         Tests for module 'acosf'.
7094         * modules/acosf-tests: New file.
7095         * tests/test-acosf.c: New file.
7096
7097         New module 'acosf'.
7098         * lib/math.in.h (acosf): New declaration.
7099         * lib/acosf.c: New file.
7100         * m4/acosf.m4: New file.
7101         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7103         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7104         * modules/acosf: New file.
7105         * tests/test-math-c++.cc: Check the declaration of acosf.
7106         * doc/posix-functions/acosf.texi: Mention the new module.
7107
7108         acos: Use a .m4 file.
7109         * m4/acos.m4: New file.
7110         * modules/acos (Files): Add it.
7111         (configure.ac): Just invoke gl_FUNC_ACOS.
7112
7113 2011-10-08  Bruno Haible  <bruno@clisp.org>
7114
7115         Tests for module 'asinf'.
7116         * modules/asinf-tests: New file.
7117         * tests/test-asinf.c: New file.
7118
7119         New module 'asinf'.
7120         * lib/math.in.h (asinf): New declaration.
7121         * lib/asinf.c: New file.
7122         * m4/asinf.m4: New file.
7123         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7125         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7126         * modules/asinf: New file.
7127         * tests/test-math-c++.cc: Check the declaration of asinf.
7128         * doc/posix-functions/asinf.texi: Mention the new module.
7129
7130         asin: Use a .m4 file.
7131         * m4/asin.m4: New file.
7132         * modules/asin (Files): Add it.
7133         (configure.ac): Just invoke gl_FUNC_ASIN.
7134
7135 2011-10-08  Bruno Haible  <bruno@clisp.org>
7136
7137         Tests for module 'tanf'.
7138         * modules/tanf-tests: New file.
7139         * tests/test-tanf.c: New file.
7140
7141         New module 'tanf'.
7142         * lib/math.in.h (tanf): New declaration.
7143         * lib/tanf.c: New file.
7144         * m4/tanf.m4: New file.
7145         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7147         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7148         * modules/tanf: New file.
7149         * tests/test-math-c++.cc: Check the declaration of tanf.
7150         * doc/posix-functions/tanf.texi: Mention the new module.
7151
7152         tan: Use a .m4 file.
7153         * m4/tan.m4: New file.
7154         * modules/tan (Files): Add it.
7155         (configure.ac): Just invoke gl_FUNC_TAN.
7156
7157 2011-10-08  Bruno Haible  <bruno@clisp.org>
7158
7159         Tests for module 'cosf'.
7160         * modules/cosf-tests: New file.
7161         * tests/test-cosf.c: New file.
7162
7163         New module 'cosf'.
7164         * lib/math.in.h (cosf): New declaration.
7165         * lib/cosf.c: New file.
7166         * m4/cosf.m4: New file.
7167         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7169         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7170         * modules/cosf: New file.
7171         * tests/test-math-c++.cc: Check the declaration of cosf.
7172         * doc/posix-functions/cosf.texi: Mention the new module.
7173
7174         cos: Use a .m4 file.
7175         * m4/cos.m4: New file.
7176         * modules/cos (Files): Add it.
7177         (configure.ac): Just invoke gl_FUNC_COS.
7178
7179 2011-10-08  Bruno Haible  <bruno@clisp.org>
7180
7181         Tests for module 'sinf'.
7182         * modules/sinf-tests: New file.
7183         * tests/test-sinf.c: New file.
7184
7185         New module 'sinf'.
7186         * lib/math.in.h (sinf): New declaration.
7187         * lib/sinf.c: New file.
7188         * m4/sinf.m4: New file.
7189         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7191         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7192         * modules/sinf: New file.
7193         * tests/test-math-c++.cc: Check the declaration of sinf.
7194         * doc/posix-functions/sinf.texi: Mention the new module.
7195
7196         sin: Use a .m4 file.
7197         * m4/sin.m4: New file.
7198         * modules/sin (Files): Add it.
7199         (configure.ac): Just invoke gl_FUNC_SIN.
7200
7201 2011-10-08  Bruno Haible  <bruno@clisp.org>
7202
7203         Tests for module 'powf'.
7204         * modules/powf-tests: New file.
7205         * tests/test-powf.c: New file.
7206
7207         New module 'powf'.
7208         * lib/math.in.h (powf): New declaration.
7209         * lib/powf.c: New file.
7210         * m4/powf.m4: New file.
7211         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7213         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7214         * modules/powf: New file.
7215         * tests/test-math-c++.cc: Check the declaration of powf.
7216         * doc/posix-functions/powf.texi: Mention the new module.
7217
7218         pow: Use a .m4 file.
7219         * m4/pow.m4: New file.
7220         * modules/pow (Files): Add it.
7221         (configure.ac): Just invoke gl_FUNC_POW.
7222
7223 2011-10-08  Bruno Haible  <bruno@clisp.org>
7224
7225         Tests for module 'log10f'.
7226         * modules/log10f-tests: New file.
7227         * tests/test-log10f.c: New file.
7228
7229         New module 'log10f'.
7230         * lib/math.in.h (log10f): New declaration.
7231         * lib/log10f.c: New file.
7232         * m4/log10f.m4: New file.
7233         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7235         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7236         * modules/log10f: New file.
7237         * tests/test-math-c++.cc: Check the declaration of log10f.
7238         * doc/posix-functions/log10f.texi: Mention the new module.
7239
7240         log10: Use a .m4 file.
7241         * m4/log10.m4: New file.
7242         * modules/log10 (Files): Add it.
7243         (configure.ac): Just invoke gl_FUNC_LOG10.
7244
7245 2011-10-08  Bruno Haible  <bruno@clisp.org>
7246
7247         Tests for module 'logf'.
7248         * modules/logf-tests: New file.
7249         * tests/test-logf.c: New file.
7250
7251         New module 'logf'.
7252         * lib/math.in.h (logf): New declaration.
7253         * lib/logf.c: New file.
7254         * m4/logf.m4: New file.
7255         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7257         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7258         * modules/logf: New file.
7259         * tests/test-math-c++.cc: Check the declaration of logf.
7260         * doc/posix-functions/logf.texi: Mention the new module.
7261
7262         log: Use a .m4 file.
7263         * m4/log.m4: New file.
7264         * modules/log (Files): Add it.
7265         (configure.ac): Just invoke gl_FUNC_LOG.
7266
7267 2011-10-08  Bruno Haible  <bruno@clisp.org>
7268
7269         Tests for module 'expf'.
7270         * modules/expf-tests: New file.
7271         * tests/test-expf.c: New file.
7272
7273         New module 'expf'.
7274         * lib/math.in.h (expf): New declaration.
7275         * lib/expf.c: New file.
7276         * m4/expf.m4: New file.
7277         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7279         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7280         * modules/expf: New file.
7281         * tests/test-math-c++.cc: Check the declaration of expf.
7282         * doc/posix-functions/expf.texi: Mention the new module.
7283
7284         exp: Use a .m4 file.
7285         * m4/exp.m4: New file.
7286         * modules/exp (Files): Add it.
7287         (configure.ac): Just invoke gl_FUNC_EXP.
7288
7289 2011-10-08  Bruno Haible  <bruno@clisp.org>
7290
7291         Tests for module 'sqrtf'.
7292         * modules/sqrtf-tests: New file.
7293         * tests/test-sqrtf.c: New file.
7294
7295         New module 'sqrtf'.
7296         * lib/math.in.h (sqrtf): New declaration.
7297         * lib/sqrtf.c: New file.
7298         * m4/sqrtf.m4: New file.
7299         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7301         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7302         * modules/sqrtf: New file.
7303         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7304         * doc/posix-functions/sqrtf.texi: Mention the new module.
7305
7306 2011-10-08  Bruno Haible  <bruno@clisp.org>
7307
7308         Tests: Avoid link failures w.r.t. libintl.
7309         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7310         $(LIBINTL).
7311         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7312         $(LIBINTL).
7313         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7314         against $(LIBINTL).
7315         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7316         $(LIBINTL).
7317         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7318         $(LIBINTL).
7319         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7320
7321 2011-10-08  Bruno Haible  <bruno@clisp.org>
7322
7323         pow tests: Defeat compiler optimizations.
7324         * tests/test-pow.c (main): Assign arguments to x and y before use.
7325
7326 2011-10-08  Bruno Haible  <bruno@clisp.org>
7327
7328         gnulib-tool: Improve last commit.
7329         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7330         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7331         ignore dependencies that are not among the modules list.
7332
7333 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7334
7335         gnulib-tool: don't follow dependencies to avoided modules
7336         This fixes a bug that is related to the previous one.
7337         * gnulib-tool (func_modules_transitive_closure)
7338         (func_emit_autoconf_snippets):
7339         Check whether a dependency is acceptable before using it.
7340         (--extract-dependencies): Report an error if --avoid is also used,
7341         since this combination of options is not yet supported.
7342
7343         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7344         Problem reported by Peter Dyballa in
7345         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7346         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7347         when echoing "$condition".
7348
7349 2011-10-07  Bruno Haible  <bruno@clisp.org>
7350
7351         Fix documentation about math functions on MacOS X.
7352         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7353         MacOS X 10.5.
7354         * doc/posix-functions/fdim.texi: Likewise.
7355         * doc/posix-functions/feclearexcept.texi: Likewise.
7356         * doc/posix-functions/fegetenv.texi: Likewise.
7357         * doc/posix-functions/fegetround.texi: Likewise.
7358         * doc/posix-functions/feholdexcept.texi: Likewise.
7359         * doc/posix-functions/feraiseexcept.texi: Likewise.
7360         * doc/posix-functions/fesetenv.texi: Likewise.
7361         * doc/posix-functions/fesetround.texi: Likewise.
7362         * doc/posix-functions/fetestexcept.texi: Likewise.
7363         * doc/posix-functions/feupdateenv.texi: Likewise.
7364         * doc/posix-functions/fmax.texi: Likewise.
7365         * doc/posix-functions/fmin.texi: Likewise.
7366         * doc/posix-functions/log2.texi: Likewise.
7367         * doc/posix-functions/modff.texi: Likewise.
7368         * doc/posix-functions/nan.texi: Likewise.
7369         * doc/posix-functions/nanf.texi: Likewise.
7370         * doc/posix-functions/nextafterf.texi: Likewise.
7371         * doc/posix-functions/remquo.texi: Likewise.
7372
7373 2011-10-07  Bruno Haible  <bruno@clisp.org>
7374
7375         modff: Drop assumption about library that defines modff.
7376         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7377         AC_CHECK_FUNCS.
7378         * modules/modff (Files): Add m4/mathfunc.m4.
7379
7380 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7381
7382         raise tests: Avoid a GCC warning.
7383         * tests/test-raise.c (handler): Use _Noreturn.
7384
7385 2011-10-07  Bruno Haible  <bruno@clisp.org>
7386
7387         Tests for module 'ldexpf'.
7388         * modules/ldexpf-tests: New file.
7389         * tests/test-ldexpf.c: New file.
7390
7391         New module 'ldexpf'.
7392         * lib/math.in.h (ldexpf): New declaration.
7393         * lib/ldexpf.c: New file.
7394         * m4/ldexpf.m4: New file.
7395         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7397         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7398         * modules/ldexpf: New file.
7399         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7400         * doc/posix-functions/ldexpf.texi: Mention the new module.
7401
7402 2011-10-06  Bruno Haible  <bruno@clisp.org>
7403
7404         frexpf: Work around problems on IRIX and mingw.
7405         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7407         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7408         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7409         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7410         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7411         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7412
7413 2011-10-06  Bruno Haible  <bruno@clisp.org>
7414
7415         fabsf: Drop assumption about library that defines fabsf.
7416         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7417         AC_CHECK_FUNCS.
7418         * modules/fabsf (Files): Add m4/mathfunc.m4.
7419
7420 2011-10-06  Bruno Haible  <bruno@clisp.org>
7421
7422         frexpf: Drop assumption about library that defines frexpf.
7423         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7424         'int *', 'float *', 'long double *', 'float', 'long double'.
7425         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7426         AC_CHECK_FUNCS.
7427         * modules/frexpf (Files): Add m4/mathfunc.m4.
7428
7429         Tests for module 'frexpf'.
7430         * modules/frexpf-tests: New file.
7431         * tests/test-frexpf.c: New file.
7432
7433         New module 'frexpf'.
7434         * lib/math.in.h (frexpf): New declaration.
7435         * lib/frexpf.c: New file.
7436         * m4/frexpf.m4: New file.
7437         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7439         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7440         * modules/frexpf: New file.
7441         * tests/test-math-c++.cc: Check the declaration of frexpf.
7442         * doc/posix-functions/frexpf.texi: Mention the new module.
7443
7444 2011-10-06  Bruno Haible  <bruno@clisp.org>
7445
7446         math: Sort function declarations of math.in.h.
7447         * lib/math.in.h (frexp, logb): Move declarations.
7448
7449 2011-10-05  Bruno Haible  <bruno@clisp.org>
7450
7451         Tests for module 'modff'.
7452         * modules/modff-tests: New file.
7453         * tests/test-modff.c: New file.
7454
7455         New module 'modff'.
7456         * lib/math.in.h (modff): New declaration.
7457         * lib/modff.c: New file.
7458         * m4/modff.m4: New file.
7459         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7461         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7462         * modules/modff: New file.
7463         * tests/test-math-c++.cc: Check the declaration of modff.
7464         * doc/posix-functions/modff.texi: Mention the new module.
7465
7466         modf tests: Make test sharper.
7467         * tests/test-modf.c (main): Strengthen upper bound.
7468
7469         modf: Use a .m4 file.
7470         * m4/modf.m4: New file.
7471         * modules/modf (Files): Add it.
7472         (configure.ac): Just invoke gl_FUNC_MODF.
7473
7474 2011-10-05  Bruno Haible  <bruno@clisp.org>
7475
7476         Tests for module 'fmodf'.
7477         * modules/fmodf-tests: New file.
7478         * tests/test-fmodf.c: New file.
7479
7480         New module 'fmodf'.
7481         * lib/math.in.h (fmodf): New declaration.
7482         * lib/fmodf.c: New file.
7483         * m4/fmodf.m4: New file.
7484         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7486         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7487         * modules/fmodf: New file.
7488         * tests/test-math-c++.cc: Check the declaration of fmodf.
7489         * doc/posix-functions/fmodf.texi: Mention the new module.
7490
7491         fmod: Use a .m4 file.
7492         * m4/fmod.m4: New file.
7493         * modules/fmod (Files): Add it.
7494         (configure.ac): Just invoke gl_FUNC_FMOD.
7495
7496 2011-10-05  Bruno Haible  <bruno@clisp.org>
7497
7498         Tests for module 'fabsf'.
7499         * modules/fabsf-tests: New file.
7500         * tests/test-fabsf.c: New file.
7501
7502         New module 'fabsf'.
7503         * lib/math.in.h (fabsf): New declaration.
7504         * lib/fabsf.c: New file.
7505         * m4/fabsf.m4: New file.
7506         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7507         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7508         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7509         * modules/fabsf: New file.
7510         * tests/test-math-c++.cc: Check the declaration of fabsf.
7511         * doc/posix-functions/fabsf.texi: Mention the new module.
7512
7513         fabs: Use a .m4 file.
7514         * m4/fabs.m4: New file.
7515         * modules/fabs (Files): Add it.
7516         (configure.ac): Just invoke gl_FUNC_FABS.
7517
7518 2011-10-05  Jim Meyering  <meyering@redhat.com>
7519
7520         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7521         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7522         ls -lL regression introduced in coreutils-8.12, it does so at the
7523         cost of an additional stat call in the common case.  Besides, now
7524         that the kernel change that prompted commit 95f7c57f has been reverted
7525         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7526         we have no use for commit 95f7c57f, "file-has-acl: use
7527         acl_extended_file_nofollow if available".
7528
7529 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7530
7531         file-has-acl: revert unintended change in behavior of ls -L
7532         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7533         derived from...
7534         (file_has_acl): ...code here.  Call it.
7535         This problem was introduced with 2011-07-22 commit 95f7c57f,
7536         "file-has-acl: use acl_extended_file_nofollow if available".
7537         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7538
7539 2011-10-03  Bruno Haible  <bruno@clisp.org>
7540
7541         poll: Avoid link errors on MSVC.
7542         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7543         * modules/poll (Depends-on): Add sockets.
7544         (Link): New section.
7545         * NEWS: Mention the change.
7546         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7547         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7548         $(LIB_POLL) instead of $(LIBSOCKET).
7549
7550 2011-10-03  Bruno Haible  <bruno@clisp.org>
7551
7552         sys_select tests: Fix link error on MSVC 9.
7553         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7554         with $(LIB_SELECT) instead of $(LIBSOCKET).
7555
7556 2011-10-03  Bruno Haible  <bruno@clisp.org>
7557
7558         sys_select: Fix compilation error on mingw.
7559         * lib/sys_select.in.h: On native Windows, include <io.h>.
7560
7561 2011-10-03  Bruno Haible  <bruno@clisp.org>
7562
7563         wmemset: Support for MSVC.
7564         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7565         whether wmemset() exists.
7566
7567 2011-10-03  Bruno Haible  <bruno@clisp.org>
7568
7569         wmemmove: Support for MSVC.
7570         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7571         whether wmemmove() exists.
7572
7573 2011-10-03  Bruno Haible  <bruno@clisp.org>
7574
7575         wmemcpy: Support for MSVC.
7576         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7577         whether wmemcpy() exists.
7578
7579 2011-10-03  Bruno Haible  <bruno@clisp.org>
7580
7581         wmemcmp: Support for MSVC.
7582         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7583         whether wmemcmp() exists.
7584
7585 2011-10-03  Bruno Haible  <bruno@clisp.org>
7586
7587         wmemchr: Support for MSVC.
7588         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7589         whether wmemchr() exists.
7590
7591 2011-10-03  Bruno Haible  <bruno@clisp.org>
7592
7593         glthread/*, strsignal: Support for MSVC.
7594         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7595         including <winsock.h> on MSVC 9.
7596         * lib/glthread/lock.h: Likewise.
7597         * lib/glthread/thread.h: Likewise.
7598         * lib/glthread/tls.h: Likewise.
7599         * lib/glthread/yield.h: Likewise.
7600         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7601         if HAVE_UNISTD_H is false.
7602         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7603
7604 2011-10-03  Bruno Haible  <bruno@clisp.org>
7605
7606         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7607         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7608         Set to 100000.
7609
7610 2011-10-03  Bruno Haible  <bruno@clisp.org>
7611
7612         acl: Fix specification.
7613         * lib/file-has-acl.c (file_has_acl): Fix specification.
7614
7615 2011-10-03  Bruno Haible  <bruno@clisp.org>
7616
7617         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7618         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7619         (compute_curr_prefix, shared_library_fullname,
7620         find_shared_library_fullname, get_shared_library_fullname, relocate):
7621         Use it together with PIC && INSTALLDIR.
7622         Reported by <jojelino@gmail.com>
7623         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7624
7625 2011-10-01  Jim Meyering  <meyering@redhat.com>
7626
7627         maint.mk: adjust a release-related rule not to require use of gzip
7628         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7629         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7630         projects that build only .tar.xz files.  Also fix an erroneous test.
7631
7632         test-linkat: don't leave behind a temporary file
7633         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7634         Otherwise, coreutils' "make distcheck" would fail with this:
7635           Only in /c/cu/tests/torture/coreutils/test/\
7636             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7637           make[2]: *** [my-distcheck] Error 1
7638
7639         float, math: add omitted file
7640         * lib/itold.c: Add file, required for yesterday's float change.
7641
7642 2011-10-01  Bruno Haible  <bruno@clisp.org>
7643
7644         isinf: Fix for OpenBSD/x86.
7645         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7646         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7647         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7648
7649 2011-10-01  Bruno Haible  <bruno@clisp.org>
7650
7651         isfinite: Fix syntax error in configure test.
7652         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7653
7654         isfinite: Fix typo.
7655         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7656         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7657
7658 2011-10-01  Bruno Haible  <bruno@clisp.org>
7659
7660         nonblocking tests: Fix test failure on Linux/IA-64.
7661         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7662         Set to 270000.
7663
7664 2011-10-01  Bruno Haible  <bruno@clisp.org>
7665
7666         mkfifoat tests: Fix a test failure on mingw.
7667         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7668         with error ENOSYS.
7669
7670 2011-09-30  Bruno Haible  <bruno@clisp.org>
7671
7672         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7673         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7674         'long double'. Set REPLACE_ITOLD.
7675         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7676         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7677         * lib/itold.c: New file.
7678         * modules/float (Files): Add lib/itold.c.
7679         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7680         (Makefile.am): Substitute REPLACE_ITOLD.
7681         * modules/math (Depends-on): Add float.
7682         (Makefile.am): Substitute REPLACE_ITOLD.
7683         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7684         * doc/posix-headers/math.texi: Likewise.
7685         * doc/posix-functions/logl.texi: Likewise.
7686
7687 2011-09-30  Bruno Haible  <bruno@clisp.org>
7688
7689         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7690         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7691         Set to 140000.
7692
7693 2011-09-30  Bruno Haible  <bruno@clisp.org>
7694
7695         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7696         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7697         invocation, say "right after AC_PROG_CC_STDC", not "right after
7698         AC_PROG_CC".
7699         Reported by Gary V. Vaughan <gary@gnu.org>.
7700
7701 2011-09-30  Bruno Haible  <bruno@clisp.org>
7702
7703         Centralize C99 requirement.
7704         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7705         * modules/stdarg (configure.ac-early): Invoke it instead of
7706         AC_PROG_CC_STDC.
7707         Reported by Gary V. Vaughan and Paul Eggert.
7708
7709 2011-09-29  Bruno Haible  <bruno@clisp.org>
7710
7711         float: Fix LDBL_MAX value on Linux/PowerPC.
7712         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7713         on Linux/PowerPC.
7714         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7715         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7716         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7717         platform.
7718         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7719
7720 2011-09-29  Bruno Haible  <bruno@clisp.org>
7721
7722         doc: Improve doc about gl_EARLY.
7723         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7724         AC_PROG_CC_STDC invocation.
7725         Reported by Gary V. Vaughan <gary@gnu.org>.
7726
7727 2011-09-28  Bruno Haible  <bruno@clisp.org>
7728
7729         fgetc, fputc, fread, fwrite tests: Fix link error.
7730         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7731         on non-MSVC platforms.
7732         * tests/test-fputc.c (main): Likewise.
7733         * tests/test-fread.c (main): Likewise.
7734         * tests/test-fwrite.c (main): Likewise.
7735         Reported by Jim Meyering.
7736
7737 2011-09-27  Bruno Haible  <bruno@clisp.org>
7738
7739         fputc, fwrite tests: Avoid test failure on MSVC.
7740         * tests/test-fgetc.c: Include msvc-inval.h.
7741         (main): Invoke gl_msvc_inval_ensure_handler.
7742         * tests/test-fputc.c: Include msvc-inval.h.
7743         (main): Invoke gl_msvc_inval_ensure_handler.
7744         * tests/test-fread.c: Include msvc-inval.h.
7745         (main): Invoke gl_msvc_inval_ensure_handler.
7746         * tests/test-fwrite.c: Include msvc-inval.h.
7747         (main): Invoke gl_msvc_inval_ensure_handler.
7748         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7749         * modules/fputc-tests (Depends-on): Likewise.
7750         * modules/fread-tests (Depends-on): Likewise.
7751         * modules/fwrite-tests (Depends-on): Likewise.
7752
7753 2011-09-27  Bruno Haible  <bruno@clisp.org>
7754
7755         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7756         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7757         (raise): Remove older, duplicated declaration.
7758         (_gl_raise_SIGPIPE): New declaration.
7759         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7760         (rpl_raise): Remove function.
7761         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7762         a gnulib-defined SIGPIPE here.
7763         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7764         'sigprocmask' has detected missing signal-blocking and the module
7765         'sigpipe' is enabled.
7766         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7767
7768 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7769
7770         base64-tests: avoid memory leak
7771         * tests/test-base64.c (main): Plug memory leak.
7772
7773         base32: new module
7774         * modules/base32: New module.
7775         * lib/base32.c: New file.
7776         * lib/base32.h: Likewise.
7777         * m4/base32.m4: Likewise.
7778         * modules/base32-tests: New test.
7779         * tests/test-base32.c: Likewise.
7780         * MODULES.html.sh (Misc): Mention it.
7781
7782 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7783
7784         gnulib: use more-standard license notice wording
7785         * gnulib-tool (func_emit_copyright_notice): When emitting a
7786         license notice into a file, use the standard wording as suggested
7787         by the current information for GNU maintainers, except say "file"
7788         rather than "program".  The new wording gives a license version
7789         number, which addresses an issue raised by Glenn Morris in
7790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7791         * m4/onceonly.m4: Use that same wording here, too.
7792
7793         dup2: minor simplification
7794         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7795         as lib/dup2.c no longer uses 'inline'.
7796
7797 2011-09-25  Bruno Haible  <bruno@clisp.org>
7798
7799         strings: Fix compilation error on MSVC.
7800         * lib/strings.in.h: Include <stddef.h> for size_t.
7801
7802 2011-09-25  Bruno Haible  <bruno@clisp.org>
7803
7804         fflush et al.: Document limitation on MSVC.
7805         * doc/posix-functions/fflush.texi: Document possible crash in handling
7806         mode other than DEFAULT_HANDLING.
7807         * doc/posix-functions/fgetc.texi: Likewise.
7808         * doc/posix-functions/fputc.texi: Likewise.
7809         * doc/posix-functions/fread.texi: Likewise.
7810         * doc/posix-functions/fwrite.texi: Likewise.
7811
7812 2011-09-25  Bruno Haible  <bruno@clisp.org>
7813
7814         msvc-inval: Allow three invalid parameter handling modes.
7815         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7816         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7817         macros.
7818         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7819         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7820         SANE_LIBRARY_HANDLING as a no-op.
7821         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7822         <stdlib.h>.
7823         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7824
7825 2011-09-25  Bruno Haible  <bruno@clisp.org>
7826
7827         msvc-inval: Make handler multithread-safe.
7828         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7829         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7830         declarations.
7831         (gl_msvc_inval_current): New declaration.
7832         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7833         Operate on the structure returned by gl_msvc_inval_current().
7834         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7835         Remove varaiables.
7836         (tls_index, tls_initialized): New variables.
7837         (not_per_thread): New variable.
7838         (gl_msvc_inval_current): New function.
7839         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7840         returned by gl_msvc_inval_current().
7841
7842 2011-09-25  Bruno Haible  <bruno@clisp.org>
7843
7844         msvc-inval: Install handler globally.
7845         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7846         !_MSC_VER.
7847         (gl_msvc_invalid_parameter_handler): Remove declaration.
7848         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7849         declarations.
7850         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7851         Install the handler globally, don't uninstall it.
7852         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7853         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7854         currently valid, call RaiseException instead.
7855         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7856         for !_MSC_VER.
7857
7858 2011-09-25  Bruno Haible  <bruno@clisp.org>
7859
7860         strerror_r-posix: Fix for MSVC 9.
7861         * lib/strerror_r.c (local_snprintf): New function.
7862         (snprintf): Define to local_snprintf, not to _snprintf.
7863
7864 2011-09-25  Bruno Haible  <bruno@clisp.org>
7865
7866         ftruncate: Support for MSVC 9.
7867         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7868         (chsize_nothrow): New function.
7869         (chsize): Redefine as a macro.
7870         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7871         * modules/ftruncate (Depends-on): Add msvc-inval.
7872
7873 2011-09-25  Bruno Haible  <bruno@clisp.org>
7874
7875         New module 'fstat'.
7876         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7877         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7878         * lib/fchdir.c (rpl_fstat): Remove function.
7879         * m4/fstat.m4: New file.
7880         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7881         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7882         declared.
7883         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7884         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7885         * modules/fstat: New file.
7886         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7887         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7888         is set.
7889         * doc/posix-functions/fstat.texi: Mention the new module and the
7890         problem on MSVC.
7891         * NEWS: Mention the change.
7892         * modules/acl (Depends-on): Add fstat.
7893         * modules/chdir-safer (Depends-on): Likewise.
7894         * modules/chown (Depends-on): Likewise.
7895         * modules/copy-file (Depends-on): Likewise.
7896         * modules/fchdir (Depends-on): Likewise.
7897         * modules/fdopendir (Depends-on): Likewise.
7898         * modules/fopen (Depends-on): Likewise.
7899         * modules/fts (Depends-on): Likewise.
7900         * modules/getcwd (Depends-on): Likewise.
7901         * modules/isapipe (Depends-on): Likewise.
7902         * modules/linkat (Depends-on): Likewise.
7903         * modules/lseek (Depends-on): Likewise.
7904         * modules/mkdir-p (Depends-on): Likewise.
7905         * modules/open (Depends-on): Likewise.
7906         * modules/openat (Depends-on): Likewise.
7907         * modules/read-file (Depends-on): Likewise.
7908         * modules/renameat (Depends-on): Likewise.
7909         * modules/utimens (Depends-on): Likewise.
7910
7911 2011-09-25  Bruno Haible  <bruno@clisp.org>
7912
7913         linkat: Fix compilation on MSVC 9.
7914         * lib/linkat.c: Don't include <stdint.h>.
7915
7916 2011-09-25  Bruno Haible  <bruno@clisp.org>
7917
7918         fclose: Support for MSVC 9.
7919         * lib/fclose.c: Include msvc-inval.h.
7920         (fclose_nothrow): New function.
7921         (rpl_fclose): Use it.
7922         * modules/fclose (Depends-on): Add msvc-inval.
7923         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7924
7925 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7926
7927         dup2: minor simplifications
7928         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7929         that it's a performance win.
7930         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7931         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7932
7933 2011-09-24  Jim Meyering  <meyering@redhat.com>
7934
7935         test-futimens: avoid a warning from gcc -Wshadow
7936         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7937         to avoid a shadowing warning.
7938
7939 2011-09-24  Bruno Haible  <bruno@clisp.org>
7940
7941         fdopen: Support for MSVC 9.
7942         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7943         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7944         * lib/fdopen.c: Include msvc-inval.h.
7945         (fdopen_nothrow): New function.
7946         (rpl_fdopen): Use it.
7947         * modules/fdopen (Depends-on): Add msvc-inval.
7948         * modules/fclose-tests (Depends-on): Add fdopen.
7949         * modules/fflush-tests (Depends-on): Likewise.
7950         * modules/fgetc-tests (Depends-on): Likewise.
7951         * modules/fputc-tests (Depends-on): Likewise.
7952         * modules/fread-tests (Depends-on): Likewise.
7953         * modules/freopen-tests (Depends-on): Likewise.
7954         * modules/fseeko-tests (Depends-on): Likewise.
7955         * modules/ftello-tests (Depends-on): Likewise.
7956         * modules/fwrite-tests  (Depends-on): Likewise.
7957         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7958
7959 2011-09-24  Bruno Haible  <bruno@clisp.org>
7960
7961         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7962         * modules/fgetc-tests (Depends-on): Add unistd.
7963         * modules/fputc-tests (Depends-on): Likewise.
7964         * modules/fread-tests (Depends-on): Likewise.
7965         * modules/fwrite-tests (Depends-on): Likewise.
7966
7967 2011-09-24  Bruno Haible  <bruno@clisp.org>
7968
7969         dup: Simplify autoconf test.
7970         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7971         on gl_MSVC_INVAL's result.
7972
7973 2011-09-24  Bruno Haible  <bruno@clisp.org>
7974
7975         Tests for function fwrite().
7976         * modules/fwrite-tests: New file.
7977         * tests/test-fwrite.c: New file.
7978         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7979
7980         Tests for function fread().
7981         * modules/fread-tests: New file.
7982         * tests/test-fread.c: New file.
7983         * modules/stdio-tests (Depends-on): Add fread-tests.
7984
7985         Activate fputc tests.
7986         * modules/stdio-tests (Depends-on): Add fputc-tests.
7987
7988         Enhance fgetc, fputc tests.
7989         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7990         * tests/test-fputc.c (main): Likewise.
7991
7992 2011-09-24  Bruno Haible  <bruno@clisp.org>
7993
7994         write: Support for MSVC 9.
7995         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7996         is not 1.
7997         * lib/write.c (write_nothrow): New function.
7998         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7999         not 1. Use write_nothrow.
8000         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8001         invalid parameter handler.
8002         (gl_PREREQ_WRITE): New macro.
8003         * modules/write (Depends-on): Add msvc-inval.
8004         (configure.ac): Invoke gl_PREREQ_WRITE.
8005         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8006
8007 2011-09-24  Bruno Haible  <bruno@clisp.org>
8008
8009         read: Fix last commit.
8010         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8011
8012 2011-09-24  Bruno Haible  <bruno@clisp.org>
8013
8014         dup2: Fix last commit.
8015         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8016         (rpl_dup2): Disable fcntl workaround on native Windows.
8017
8018         sigprocmask: Make code safer.
8019         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8020         section that changes macro definitions for this compilation unit.
8021
8022 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8023
8024         dup2: clarify by coalescing Windows-specific material
8025         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8026         "msvc-nothrow.h"' to the Windows-specific section, so that the
8027         Emacs source need not contain these include files.
8028         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8029         Windows-specific fixes into this function rather than just the
8030         nothrow fix, as this shortens and clarifies the code.  Always
8031         define as a function, as that's a bit cleaner than having it be
8032         sometimes a function and sometimes a macro.
8033         (rpl_dup2): Move the Windows-specific stuff out of here and into
8034         ms_windows_dup2.  Don't protect the Haiku-related fix with
8035         "#if !defined __linux__", as the same code also works around
8036         a Linux kernel bug, and it doesn't add any system calls on any
8037         platform.  Add comment about FreeBSD 6.1.
8038
8039         sigprocmask: move #include directive
8040         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8041         Windows-specific section, so that the Emacs source need not
8042         contain msvc-inval.h.
8043
8044 2011-09-23  Bruno Haible  <bruno@clisp.org>
8045
8046         read: Support for MSVC 9.
8047         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8048         is not 1.
8049         * lib/read.c (read_nothrow): New function.
8050         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8051         read_nothrow.
8052         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8053         invalid parameter handler.
8054         (gl_PREREQ_READ): New macro.
8055         * modules/read (Depends-on): Add msvc-inval.
8056         (configure.ac): Invoke gl_PREREQ_READ.
8057         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8058
8059 2011-09-23  Bruno Haible  <bruno@clisp.org>
8060
8061         close: Support for MSVC 9.
8062         * lib/close.c: Include <errno.h>, msvc-inval.h.
8063         (close_nothrow): New function.
8064         (rpl_close): Use it.
8065         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8066         invalid parameter handler.
8067         * modules/close (Depends-on): Add msvc-inval.
8068         * modules/dup2-tests (Depends-on): Add close.
8069         * modules/dup3-tests (Depends-on): Likewise.
8070         * modules/fcntl-tests (Depends-on): Likewise.
8071         * modules/spawn-pipe-tests (Depends-on): Likewise.
8072         * modules/unistd-safer-tests (Depends-on): Likewise.
8073         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8074
8075 2011-09-23  Bruno Haible  <bruno@clisp.org>
8076
8077         New module 'dup'.
8078         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8079         Allow replacement.
8080         * lib/dup.c: New file.
8081         * lib/fchdir.c (rpl_dup): Remove function.
8082         * m4/dup.m4: New file.
8083         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8084         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8085         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8086         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8087         * modules/dup: New file.
8088         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8089         'dup' module is in use.
8090         * modules/fdopendir (Depends-on): Add dup.
8091         * modules/fdutimensat-tests (Depends-on): Likewise.
8092         * modules/fts (Depends-on): Likewise.
8093         * modules/futimens-tests (Depends-on): Likewise.
8094         * modules/posix_spawnp-tests (Depends-on): Likewise.
8095         * modules/unistd-safer-tests (Depends-on): Likewise.
8096         * modules/utimens-tests (Depends-on): Likewise.
8097         * doc/posix-functions/dup.texi: Mention the new module and the problem
8098         on MSVC.
8099
8100 2011-09-23  Bruno Haible  <bruno@clisp.org>
8101
8102         getdtablesize: Support for MSVC 9.
8103         * lib/getdtablesize.c: Include msvc-inval.h.
8104         (_setmaxstdio_nothrow): New function.
8105         (_setmaxstdio): Redefine it.
8106         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8107         * modules/getdtablesize (Depends-on): Add msvc-inval.
8108         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8109
8110 2011-09-23  Bruno Haible  <bruno@clisp.org>
8111
8112         signal-h: Rename from signal.
8113         * modules/signal-h: Renamed from modules/signal.
8114         * modules/pthread_sigmask (Depends-on): Update.
8115         * modules/raise (Depends-on): Likewise.
8116         * modules/sigaction (Depends-on): Likewise.
8117         * modules/sigpipe (Depends-on): Likewise.
8118         * modules/sigprocmask (Depends-on): Likewise.
8119         * modules/sys_select (Depends-on): Likewise.
8120         * modules/signal-h-tests: Renamed from modules/signal-tests.
8121         (Files, Depends-on, Makefile.am): Update.
8122         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8123         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8124         (Files, Makefile.am): Update.
8125         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8126         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8127         * modules/signal: New placeholder file.
8128         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8129         * doc/posix-headers/signal.texi: Update.
8130         * NEWS: Mention the change.
8131
8132 2011-09-23  Bruno Haible  <bruno@clisp.org>
8133
8134         sigprocmask: Avoid crashes through signal() on MSVC 9.
8135         * lib/sigprocmask.c: Include msvc-inval.h.
8136         (signal_nothrow): New function.
8137         (signal): Redefine it.
8138         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8139         * modules/sigprocmask (Depends-on): Add msvc-inval.
8140         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8141
8142 2011-09-23  Bruno Haible  <bruno@clisp.org>
8143
8144         Tests for module 'raise'.
8145         * modules/raise-tests: New file.
8146         * tests/test-raise.c: New file.
8147
8148         raise: Support for MSVC.
8149         * lib/signal.in.h (raise): New declaration.
8150         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8151         for native Windows platforms.
8152         * m4/raise.m4: New file.
8153         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8154         HAVE_RAISE, REPLACE_RAISE.
8155         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8156         REPLACE_RAISE.
8157         * modules/raise (Status, Notice): Remove fields.
8158         (Files): Add m4/raise.m4.
8159         (Depends-on): Add signal, msvc-inval.
8160         (configure.ac): Use the common idioms.
8161         (Maintainer): Add me.
8162         * tests/test-signal-c++.cc: Check the signature of raise.
8163         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8164
8165 2011-09-23  Bruno Haible  <bruno@clisp.org>
8166
8167         pipe2: Fix compilation on pre-C99 compilers.
8168         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8169
8170 2011-09-23  Bruno Haible  <bruno@clisp.org>
8171
8172         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8173         * lib/msvc-nothrow.h: New file.
8174         * lib/msvc-nothrow.c: New file.
8175         * m4/msvc-nothrow.m4: New file.
8176         * modules/msvc-nothrow: New file.
8177         * lib/dup2.c: Include msvc-nothrow.h.
8178         (rpl_dup2): No need to protect _get_osfhandle call here.
8179         * lib/accept4.c: Include msvc-nothrow.h.
8180         * lib/error.c: Likewise.
8181         * lib/fcntl.c: Likewise.
8182         * lib/lseek.c: Likewise.
8183         * lib/nonblocking.c: Likewise.
8184         * lib/poll.c: Likewise.
8185         * lib/read.c: Likewise.
8186         * lib/select.c: Likewise.
8187         * lib/sockets.h: Likewise.
8188         * lib/sockets.c: Likewise.
8189         * lib/stdio-read.c: Likewise.
8190         * lib/stdio-write.c: Likewise.
8191         * lib/write.c: Likewise.
8192         * lib/w32sock.h: Likewise.
8193         * lib/w32spawn.h: Likewise.
8194         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8195         * lib/fsync.c: Likewise.
8196         * lib/isapipe.c: Likewise.
8197         * modules/dup2 (Depends-on): Add msvc-nothrow.
8198         * modules/accept4 (Depends-on): Likewise.
8199         * modules/error (Depends-on): Likewise.
8200         * modules/fcntl (Depends-on): Likewise.
8201         * modules/lseek (Depends-on): Likewise.
8202         * modules/nonblocking (Depends-on): Likewise.
8203         * modules/poll (Depends-on): Likewise.
8204         * modules/read (Depends-on): Likewise.
8205         * modules/select (Depends-on): Likewise.
8206         * modules/sockets (Depends-on): Likewise.
8207         * modules/sigpipe (Depends-on): Likewise.
8208         * modules/write (Depends-on): Likewise.
8209         * modules/accept (Depends-on): Likewise.
8210         * modules/bind (Depends-on): Likewise.
8211         * modules/connect (Depends-on): Likewise.
8212         * modules/gethostname (Depends-on): Likewise.
8213         * modules/getpeername (Depends-on): Likewise.
8214         * modules/getsockname (Depends-on): Likewise.
8215         * modules/getsockopt (Depends-on): Likewise.
8216         * modules/ioctl (Depends-on): Likewise.
8217         * modules/listen (Depends-on): Likewise.
8218         * modules/recv (Depends-on): Likewise.
8219         * modules/recvfrom (Depends-on): Likewise.
8220         * modules/send (Depends-on): Likewise.
8221         * modules/sendto (Depends-on): Likewise.
8222         * modules/setsockopt (Depends-on): Likewise.
8223         * modules/shutdown (Depends-on): Likewise.
8224         * modules/socket (Depends-on): Likewise.
8225         * modules/execute (Depends-on): Likewise.
8226         * modules/spawn-pipe (Depends-on): Likewise.
8227         * modules/flock (Depends-on): Likewise.
8228         * modules/fsync (Depends-on): Likewise.
8229         * modules/isapipe (Depends-on): Likewise.
8230         * tests/test-cloexec.c: Include msvc-nothrow.h.
8231         * tests/test-dup-safer.c: Likewise.
8232         * tests/test-dup2.c: Likewise.
8233         * tests/test-dup3.c: Likewise.
8234         * tests/test-fcntl.c: Likewise.
8235         * tests/test-pipe.c: Likewise.
8236         * tests/test-pipe2.c: Likewise.
8237         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8238         * modules/unistd-safer-tests (Depends-on): Likewise.
8239         * modules/dup2-tests (Depends-on): Likewise.
8240         * modules/dup3-tests (Depends-on): Likewise.
8241         * modules/fcntl-tests (Depends-on): Likewise.
8242         * modules/pipe-posix-tests (Depends-on): Likewise.
8243         * modules/pipe2-tests (Depends-on): Likewise.
8244
8245 2011-09-23  Bruno Haible  <bruno@clisp.org>
8246
8247         dup2: Make code more maintainable.
8248         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8249         (rpl_dup2): Use it.
8250         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8251         * modules/dup2 (configure.ac): Invoke it.
8252         Reported by Paul Eggert.
8253
8254 2011-09-23  Bruno Haible  <bruno@clisp.org>
8255
8256         msvc-inval: Fix compilation error.
8257         * lib/msvc-inval.h: Include <excpt.h>.
8258
8259 2011-09-23  Bruno Haible  <bruno@clisp.org>
8260
8261         mkdir: Tweak for MSVC 9.
8262         * lib/sys_stat.in.h: Update comments.
8263         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8264
8265         Tests for module 'chdir'.
8266         * modules/chdir-tests: New file.
8267         * tests/test-chdir.c: New file.
8268
8269         New module 'chdir'.
8270         * modules/chdir: New file.
8271         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8272         (chdir): New declaration.
8273         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8274         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8275         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8276         * tests/test-unistd-c++.cc: Check signature of chdir.
8277         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8278         * modules/chdir-long (Depends-on): Add chdir.
8279         * modules/fchdir (Depends-on): Likewise.
8280         * modules/rename (Depends-on): Likewise.
8281         * modules/savewd (Depends-on): Likewise.
8282
8283         rmdir: Support for mingw, MSVC 9.
8284         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8285         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8286
8287         getcwd: Tweak for MSVC 9.
8288         * lib/unistd.in.h: Update comments.
8289         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8290
8291 2011-09-22  Bruno Haible  <bruno@clisp.org>
8292
8293         strerror_r-posix: Avoid a link error on MSVC.
8294         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8295         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8296
8297 2011-09-22  Bruno Haible  <bruno@clisp.org>
8298
8299         select: Avoid link errors on MSVC.
8300         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8301         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8302         * modules/pselect (Link): Likewise.
8303         * NEWS: Mention the change.
8304         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8305         test-select-stdin against $(LIB_SELECT).
8306         * modules/pselect-tests (Makefile.am): Link test-pselect against
8307         $(LIB_SELECT).
8308
8309 2011-09-22  Bruno Haible  <bruno@clisp.org>
8310
8311         select: Avoid compilation error on MSVC.
8312         * lib/select.c: Don't include <stdbool.h>.
8313
8314 2011-09-21  Bruno Haible  <bruno@clisp.org>
8315
8316         Consolidate all uses of PATH_MAX in *.m4 files.
8317         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8318         macros.
8319         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8320         and gl_PATHMAX_SNIPPET.
8321         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8322         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8323         * modules/chdir-long (Files): Add m4/pathmax.m4.
8324         * modules/getcwd (Files): Likewise.
8325
8326 2011-09-21  Bruno Haible  <bruno@clisp.org>
8327
8328         ftruncate: Un-deprecate, concentrate on Win32 support.
8329         * modules/ftruncate (Status, Notice): Remove sections.
8330         (Depends-on): Add largefile.
8331         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8332         non-mingw platforms.
8333         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8334         include <io.h>.
8335         * modules/perror-tests (Depends-on): Add ftruncate.
8336         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8337         'ftruncate' module.
8338
8339 2011-09-21  Bruno Haible  <bruno@clisp.org>
8340
8341         Add dependencies to new dirent related modules.
8342         * modules/opendir (Depends-on): Add closedir.
8343         * modules/getcwd (Depends-on): Add opendir, closedir.
8344         * modules/dirent-safer-tests (Depends-on): Likewise.
8345         * modules/fdopendir-tests (Depends-on): Likewise.
8346         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8347         * modules/renameat-tests (Depends-on): Likewise.
8348
8349 2011-09-21  Bruno Haible  <bruno@clisp.org>
8350
8351         opendir: Avoid compilation error on mingw.
8352         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8353         * modules/opendir (Depends-on): Add unistd.
8354
8355 2011-09-21  Bruno Haible  <bruno@clisp.org>
8356
8357         ftruncate tests: Avoid a test failure on mingw.
8358         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8359
8360 2011-09-21  Bruno Haible  <bruno@clisp.org>
8361
8362         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8363         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8364         native Windows.
8365
8366 2011-09-21  Bruno Haible  <bruno@clisp.org>
8367
8368         New module 'fdopen'.
8369         * lib/stdio.in.h (fdopen): New declaration.
8370         * lib/fdopen.c: New file.
8371         * m4/fdopen.m4: New file.
8372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8373         REPLACE_FDOPEN.
8374         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8375         REPLACE_FDOPEN.
8376         * modules/fdopen: New file.
8377         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8378         * tests/test-stdio-c++.cc: Check signature of fdopen.
8379         * doc/posix-functions/fdopen.texi: Mention the new module.
8380
8381 2011-09-21  Bruno Haible  <bruno@clisp.org>
8382
8383         unlockpt tests: Avoid test failure on NetBSD 5.1.
8384         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8385         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8386
8387 2011-09-21  Bruno Haible  <bruno@clisp.org>
8388
8389         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8390         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8391         * tests/test-getlogin_r.c (main): Likewise.
8392
8393 2011-09-20  Bruno Haible  <bruno@clisp.org>
8394
8395         time tests: Don't require pid_t.
8396         * doc/posix-headers/time.texi: Revert last change.
8397         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8398         * tests/test-time.c: Comment out the check for pid_t.
8399
8400 2011-09-20  Bruno Haible  <bruno@clisp.org>
8401
8402         fsync tests: Avoid a test failure on mingw.
8403         * tests/test-fsync.c (main): Allow a failure with EIO.
8404
8405 2011-09-20  Bruno Haible  <bruno@clisp.org>
8406
8407         euidaccess: Update comments.
8408         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8409
8410 2011-09-20  Bruno Haible  <bruno@clisp.org>
8411
8412         Ensure EBADF returns for socket functions on mingw.
8413         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8414         descriptor is invalid.
8415         * lib/bind.c (rpl_bind): Likewise.
8416         * lib/connect.c (rpl_connect): Likewise.
8417         * lib/getpeername.c (rpl_getpeername): Likewise.
8418         * lib/getsockname.c (rpl_getsockname): Likewise.
8419         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8420         * lib/listen.c (rpl_listen): Likewise.
8421         * lib/recv.c (rpl_recv): Likewise.
8422         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8423         * lib/send.c (rpl_send): Likewise.
8424         * lib/sendto.c (rpl_sendto): Likewise.
8425         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8426         * lib/shutdown.c (rpl_shutdown): Likewise.
8427
8428 2011-09-20  Bruno Haible  <bruno@clisp.org>
8429
8430         select tests: EBADF tests.
8431         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8432         test_bad_fd): New functions.
8433         (test_function): Invoke also test_bad_fd.
8434
8435 2011-09-20  Bruno Haible  <bruno@clisp.org>
8436
8437         Tests for module 'posix_spawn_file_actions_addopen.
8438         * modules/posix_spawn_file_actions_addopen-tests: New file.
8439         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8440
8441         Tests for module 'posix_spawn_file_actions_adddup2'.
8442         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8443         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8444
8445         Tests for module 'posix_spawn_file_actions_addclose'.
8446         * modules/posix_spawn_file_actions_addclose-tests: New file.
8447         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8448
8449 2011-09-20  Bruno Haible  <bruno@clisp.org>
8450
8451         Tests for module 'unlockpt'.
8452         * modules/unlockpt-tests: New file.
8453         * tests/test-unlockpt.c: New file.
8454         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8455
8456         Tests for module 'grantpt'.
8457         * modules/grantpt-tests: New file.
8458         * tests/test-grantpt.c: New file.
8459         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8460
8461 2011-09-20  Bruno Haible  <bruno@clisp.org>
8462
8463         freopen tests: EBADF tests.
8464         * tests/test-freopen.c: Include errno.h, unistd.h.
8465         (main): Add tests for EBADF, commented out for the moment.
8466
8467         fclose tests: EBADF tests.
8468         * tests/test-fclose.c (main): Add tests for EBADF.
8469
8470         fflush tests: EBADF tests.
8471         * tests/test-fflush.c: Include errno.h, macros.h.
8472         (main): Add tests for EBADF.
8473
8474         ftello tests: EBADF tests.
8475         * tests/test-ftello4.sh: New file.
8476         * tests/test-ftello4.c: New file.
8477         * modules/ftello-tests (Files): Add them.
8478         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8479
8480         fseeko tests: EBADF tests.
8481         * tests/test-fseeko4.sh: New file.
8482         * tests/test-fseeko4.c: New file.
8483         * modules/fseeko-tests (Files): Add them.
8484         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8485
8486         Tests for function fputc().
8487         * modules/fputc-tests: New file.
8488         * tests/test-fputc.c: New file.
8489         * modules/stdio-tests (Depends-on): Add fputc-tests.
8490
8491         Tests for function fgetc().
8492         * modules/fgetc-tests: New file.
8493         * tests/test-fgetc.c: New file.
8494         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8495
8496         Tests for function fdopen().
8497         * modules/fdopen-tests: New file.
8498         * tests/test-fdopen.c: New file.
8499         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8500
8501         Tests for module 'vdprintf'.
8502         * modules/vdprintf-tests: New file.
8503         * tests/test-vdprintf.c: New file.
8504
8505         Tests for module 'dprintf'.
8506         * modules/dprintf-tests: New file.
8507         * tests/test-dprintf.c: New file.
8508
8509 2011-09-20  Bruno Haible  <bruno@clisp.org>
8510
8511         Tests for module 'ioctl'.
8512         * modules/ioctl-tests: New file.
8513         * tests/test-ioctl.c: New file.
8514
8515 2011-09-20  Bruno Haible  <bruno@clisp.org>
8516
8517         fcntl tests: EBADF tests.
8518         * tests/test-fcntl.c (main): Add more tests for EBADF.
8519
8520 2011-09-20  Bruno Haible  <bruno@clisp.org>
8521
8522         utimensat tests: EBADF tests.
8523         * tests/test-utimensat.c (main): Add tests for EBADF.
8524
8525         renameat tests: EBADF tests.
8526         * tests/test-renameat.c (main): Add tests for EBADF.
8527
8528         mkfifoat tests: EBADF tests.
8529         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8530
8531         readlinkat tests: EBADF tests.
8532         * tests/test-readlinkat.c (main): Add tests for EBADF.
8533
8534         symlinkat tests: EBADF tests.
8535         * tests/test-symlinkat.c (main): Add tests for EBADF.
8536
8537         linkat tests: EBADF tests.
8538         * tests/test-linkat.c (main): Add tests for EBADF.
8539
8540         Tests for module 'faccessat'.
8541         * modules/faccessat-tests: New file.
8542         * tests/test-faccessat.c: New file.
8543
8544         fdopendir tests: EBADF tests.
8545         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8546
8547         openat tests: EBADF tests.
8548         * tests/test-fchownat.c (main): Add tests for EBADF.
8549         * tests/test-fstatat.c (main): Likewise.
8550         * tests/test-mkdirat.c (main): Likewise.
8551         * tests/test-openat.c (main): Likewise.
8552         * tests/test-unlinkat.c (main): Likewise.
8553         * tests/test-fchmodat.c: New file.
8554         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8555         (Makefile.am): Also run 'test-fchmodat'.
8556
8557 2011-09-20  Bruno Haible  <bruno@clisp.org>
8558
8559         utimens, futimens, fdutimensat tests: EBADF tests.
8560         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8561
8562         Tests for function fstat().
8563         * modules/fstat-tests: New file.
8564         * tests/test-fstat.c: New file.
8565         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8566
8567 2011-09-20  Bruno Haible  <bruno@clisp.org>
8568
8569         test-ttyname_r tests: EBADF tests.
8570         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8571
8572         Tests for module 'isatty'.
8573         * modules/isatty-tests: New file.
8574         * tests/test-isatty.c: New file.
8575
8576         Tests for module 'write'.
8577         * modules/write-tests: New file.
8578         * tests/test-write.c: New file.
8579
8580         Tests for module 'read'.
8581         * modules/read-tests: New file.
8582         * tests/test-read.c: New file.
8583
8584         pwrite tests: EBADF tests.
8585         * tests/test-pwrite.c (main): Add tests for EBADF.
8586
8587         pread tests: EBADF tests.
8588         * tests/test-pread.c (main): Add tests for EBADF.
8589
8590         lseek tests: EBADF tests.
8591         * tests/test-lseek.c (main): Add more tests for EBADF.
8592
8593         Tests for module 'ftruncate'.
8594         * modules/ftruncate-tests: New file.
8595         * tests/test-ftruncate.sh: New file.
8596         * tests/test-ftruncate.c: New file.
8597
8598         fsync tests: EBADF tests.
8599         * tests/test-fsync.c (main): Add more tests for EBADF.
8600
8601         fdatasync tests: EBADF tests.
8602         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8603
8604         Tests for module 'fchown'.
8605         * modules/fchown-tests: New file.
8606         * tests/test-fchown.c: New file.
8607
8608         Tests for module 'fchmod'.
8609         * modules/fchmod-tests: New file.
8610         * tests/test-fchmod.c: New file.
8611
8612         fchdir tests: EBADF tests.
8613         * tests/test-fchdir.c (main): Add more tests for EBADF.
8614
8615         dup2 tests: EBADF tests.
8616         * tests/test-dup2.c (main): Add more tests for EBADF.
8617
8618         Tests for module 'dup'.
8619         * modules/dup-tests: New file.
8620         * tests/test-dup.c: New file.
8621
8622         Tests for module 'close'.
8623         * modules/close-tests: New file.
8624         * tests/test-close.c: New file.
8625
8626 2011-09-20  Bruno Haible  <bruno@clisp.org>
8627
8628         Tests for module 'shutdown'.
8629         * modules/shutdown-tests: New file.
8630         * tests/test-shutdown.c: New file.
8631
8632         Tests for module 'setsockopt'.
8633         * modules/setsockopt-tests: New file.
8634         * tests/test-setsockopt.c: New file.
8635
8636         Tests for module 'sendto'.
8637         * modules/sendto-tests: New file.
8638         * tests/test-sendto.c: New file.
8639
8640         Tests for module 'send'.
8641         * modules/send-tests: New file.
8642         * tests/test-send.c: New file.
8643
8644         Tests for module 'recvfrom'.
8645         * modules/recvfrom-tests: New file.
8646         * tests/test-recvfrom.c: New file.
8647
8648         Tests for module 'recv'.
8649         * modules/recv-tests: New file.
8650         * tests/test-recv.c: New file.
8651
8652         Tests for module 'listen'.
8653         * modules/listen-tests: New file.
8654         * tests/test-listen.c: New file.
8655
8656         Tests for module 'getsockopt'.
8657         * modules/getsockopt-tests: New file.
8658         * tests/test-getsockopt.c: New file.
8659
8660         Tests for module 'getsockname'.
8661         * modules/getsockname-tests: New file.
8662         * tests/test-getsockname.c: New file.
8663
8664         Tests for module 'getpeername'.
8665         * modules/getpeername-tests: New file.
8666         * tests/test-getpeername.c: New file.
8667
8668         Tests for module 'connect'.
8669         * modules/connect-tests: New file.
8670         * tests/test-connect.c: New file.
8671
8672         Tests for module 'bind'.
8673         * modules/bind-tests: New file.
8674         * tests/test-bind.c: New file.
8675
8676         accept4 tests: Fix for native Windows.
8677         * tests/test-accept4.c: Include sockets.h.
8678         (main): Invoke gl_sockets_startup.
8679         * modules/accept4-tests (Depends-on): Add sockets.
8680
8681         accept tests: Fix for native Windows.
8682         * tests/test-accept.c: Include sockets.h.
8683         (main): Invoke gl_sockets_startup.
8684         * modules/accept-tests (Depends-on): Add sockets.
8685
8686 2011-09-19  Bruno Haible  <bruno@clisp.org>
8687
8688         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8689         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8690         do...while(0).
8691         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8692         Suggested by Paul Eggert.
8693
8694 2011-09-19  Bruno Haible  <bruno@clisp.org>
8695
8696         sched: Ensure pid_t is defined.
8697         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8698         not define pid_t.
8699         * lib/sched.in.h: Include <sys/types.h>.
8700         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8702
8703 2011-09-19  Bruno Haible  <bruno@clisp.org>
8704
8705         msvc-inval: Ensure the entire expansion is a single statement.
8706         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8707         of braces.
8708
8709 2011-09-19  Jim Meyering  <meyering@redhat.com>
8710
8711         tests: use printf, not echo in init.sh's warn_ function
8712         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8713         misbehave when given strings containing a backslash or starting
8714         with e.g., -n.  James Youngman suggested setting IFS.
8715
8716 2011-09-19  Eric Blake  <eblake@redhat.com>
8717
8718         futimens: enhance test
8719         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8720         closed non-negative fd.
8721
8722         date: accept 'hence' as opposite of 'ago'
8723         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8724         * tests/test-parse-datetime.c (main): Enhance test.
8725         Suggested by Jesse Wilson.
8726
8727 2011-09-19  Jim Meyering  <meyering@redhat.com>
8728
8729         getcwd: don't fail in a deep directory on a system without openat
8730         Before this change, getcwd would fail when called from a directory
8731         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8732         the non-openat implementation used "..", "../..", "../../..", etc.
8733         to access ancestor directories.  With too many, that string would
8734         be longer than PATH_MAX.
8735         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8736         using gnulib's openat replacement.
8737         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8738         we're using the replacement function.
8739
8740 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8741
8742         maint.mk: avoid warnings from perl about missing files
8743         * top/maint.mk (def_sym_regex): Ignore files listed in
8744         $(gl_other_headers_) that do not exist, say because a project
8745         does not use a corresponding module.
8746
8747 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8748
8749         stat: use pathmax.h only if needed
8750         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8751         This is better for Emacs, which does not have a mingw port and
8752         therefore can avoid the pathmax module.
8753
8754         utimens: remove dependency on dup2
8755         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8756         to work around the Linux kernel bug.
8757         * modules/utimens (Depends-on): Remove dup2.
8758
8759 2011-09-18  Bruno Haible  <bruno@clisp.org>
8760
8761         inet_ntop, inet_pton: Look for it also in libresolv.
8762         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8763         libnsl, search for it in libresolv.
8764         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8765         Needed on Solaris 7.
8766
8767 2011-09-18  Bruno Haible  <bruno@clisp.org>
8768
8769         accept, accept4 tests: Avoid link error on Solaris.
8770         * modules/accept-tests (Makefile.am): Link test-accept against
8771         $(LIBSOCKET).
8772         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8773         $(LIBSOCKET).
8774
8775         accept4: Avoid link error on Solaris.
8776         * modules/accept4 (Link): New section.
8777
8778         socket functions: Avoid link errors on Solaris.
8779         * modules/accept (Depends-on): Add socketlib.
8780         (Link): New section.
8781         * modules/bind (Depends-on): Add socketlib.
8782         (Link): New section.
8783         * modules/connect (Depends-on): Add socketlib.
8784         (Link): New section.
8785         * modules/getpeername (Depends-on): Add socketlib.
8786         (Link): New section.
8787         * modules/getsockname (Depends-on): Add socketlib.
8788         (Link): New section.
8789         * modules/getsockopt (Depends-on): Add socketlib.
8790         (Link): New section.
8791         * modules/listen (Depends-on): Add socketlib.
8792         (Link): New section.
8793         * modules/recv (Depends-on): Add socketlib.
8794         (Link): New section.
8795         * modules/recvfrom (Depends-on): Add socketlib.
8796         (Link): New section.
8797         * modules/send (Depends-on): Add socketlib.
8798         (Link): New section.
8799         * modules/sendto (Depends-on): Add socketlib.
8800         (Link): New section.
8801         * modules/setsockopt (Depends-on): Add socketlib.
8802         (Link): New section.
8803         * modules/shutdown (Depends-on): Add socketlib.
8804         (Link): New section.
8805         * modules/socket (Depends-on): Add socketlib.
8806         (Link): New section.
8807
8808 2011-09-18  Bruno Haible  <bruno@clisp.org>
8809
8810         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8811         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8812         than 5 seconds.
8813         * modules/ptsname-tests (configure.ac): Test for alarm.
8814
8815 2011-09-18  Bruno Haible  <bruno@clisp.org>
8816
8817         posix_spawn_file_actions_add*: Fix module dependencies.
8818         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8819         posix_spawn_file_actions_init.
8820         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8821         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8822
8823 2011-09-18  Bruno Haible  <bruno@clisp.org>
8824
8825         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8826         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8827         * tests/test-renameat.c (main): Likewise.
8828
8829 2011-09-18  Bruno Haible  <bruno@clisp.org>
8830
8831         Tests for module 'accept4'.
8832         * modules/accept4-tests: New file.
8833         * tests/test-accept4.c: New file.
8834
8835 2011-09-18  Bruno Haible  <bruno@clisp.org>
8836
8837         Tests for module 'accept'.
8838         * modules/accept-tests: New file.
8839         * tests/test-accept.c: New file.
8840
8841 2011-09-18  Bruno Haible  <bruno@clisp.org>
8842
8843         dup2: Support for MSVC.
8844         * lib/dup2.c: Include msvc-inval.h.
8845         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8846         _get_osfhandle calls.
8847         * modules/dup2 (Depends-on): Add msvc-inval.
8848         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8849
8850         New module 'msvc-inval'.
8851         * lib/msvc-inval.h: New file.
8852         * lib/msvc-inval.c: New file.
8853         * m4/msvc-inval.m4: New file.
8854         * modules/msvc-inval: New file.
8855
8856 2011-09-17  Bruno Haible  <bruno@clisp.org>
8857
8858         Tests for module 'pclose'.
8859         * modules/pclose-tests: New file.
8860
8861         New module 'pclose'.
8862         * lib/stdio.in.h (pclose): New declaration.
8863         * lib/pclose.c: New file.
8864         * m4/pclose.m4: New file.
8865         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8866         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8867         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8868         * modules/pclose: New file.
8869         * modules/popen-tests (Depends-on): Add pclose.
8870         * modules/popen-safer-tests (Depends-on): Likewise.
8871         * doc/posix-functions/pclose.texi: Mention the new module.
8872
8873 2011-09-17  Bruno Haible  <bruno@clisp.org>
8874
8875         popen: Support for MSVC.
8876         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8877         * lib/popen.c (popen): Provide alternate definition for native Windows.
8878         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8880         * modules/popen (Depends-on, configure.ac): Update condition.
8881         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8882         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8883         fixed.
8884
8885 2011-09-17  Bruno Haible  <bruno@clisp.org>
8886
8887         isnanl, isnand, isnanf: Work around MSVC bug.
8888         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8889
8890 2011-09-17  Bruno Haible  <bruno@clisp.org>
8891
8892         sys_socket tests: Fix recent mistake.
8893         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8894
8895 2011-09-17  Bruno Haible  <bruno@clisp.org>
8896
8897         putenv: Support for MSVC.
8898         * modules/putenv (Depends-on): Add environ.
8899         * lib/putenv.c (environ): Disable declaration.
8900         * lib/unistd.in.h: Update comment.
8901
8902 2011-09-17  Bruno Haible  <bruno@clisp.org>
8903
8904         math: Avoid macro redefinition warnings on MSVC.
8905         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8906         Undefine before redefining.
8907
8908 2011-09-17  Bruno Haible  <bruno@clisp.org>
8909
8910         doc: Mention functions which are declared as macros.
8911         * doc/posix-functions/*[fl].texi: Mention that some functions are
8912         defined as macros with arguments only.
8913
8914 2011-09-17  Bruno Haible  <bruno@clisp.org>
8915
8916         Add dependencies to new dirent related modules.
8917         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8918         * modules/fts (Depends-on): Likewise.
8919         * modules/glob (Depends-on): Likewise.
8920         * modules/savedir (Depends-on): Likewise.
8921         * modules/scandir (Depends-on): Likewise.
8922         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8923         * modules/fdopendir (Depends-on): Add opendir.
8924
8925 2011-09-17  Bruno Haible  <bruno@clisp.org>
8926
8927         inet_pton: Support for MSVC on Windows Vista or newer.
8928         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8929         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8930         HAVE_DECL_INET_PTON is defined.
8931         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8932         On platforms with <winsock2.h>, test whether inet_pton is declared in
8933         <ws2tcpip.h>. If so, arrange to replace it.
8934         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8935         REPLACE_INET_PTON.
8936         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8937         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8938         (Depends-on, configure.ac): Update condition.
8939         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8940
8941 2011-09-17  Bruno Haible  <bruno@clisp.org>
8942
8943         inet_ntop: Support for MSVC on Windows Vista or newer.
8944         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8945         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8946         HAVE_DECL_INET_NTOP is defined.
8947         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8948         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8949         <ws2tcpip.h>. If so, arrange to replace it.
8950         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8951         REPLACE_INET_NTOP.
8952         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8953         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8954         (Depends-on, configure.ac): Update condition.
8955         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8956
8957 2011-09-16  Eric Blake  <eblake@redhat.com>
8958
8959         test-fsync: yet another enhancement
8960         * tests/test-fsync.c (main): Also test behavior on read-only text
8961         file.
8962
8963 2011-09-16  Bruno Haible  <bruno@clisp.org>
8964
8965         Enhance fsync, fdatasync tests.
8966         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8967         * tests/test-fdatasync.c (main): Likewise.
8968
8969 2011-09-16  Bruno Haible  <bruno@clisp.org>
8970
8971         Support for MSVC compiler: Ensure mode_t gets defined.
8972         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8973         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8975         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8976         * tests/test-fcntl-h.c: Check that mode_t is defined.
8977         * tests/test-sys_stat.c: Likewise.
8978         * tests/test-sys_types.c: Likewise.
8979         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8980         * doc/posix-headers/sys_stat.texi: Likewise.
8981         * doc/posix-headers/sys_types.texi: Likewise.
8982
8983 2011-09-16  Bruno Haible  <bruno@clisp.org>
8984
8985         sys_stat: Support for MSVC.
8986         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8987         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8988         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8989         MSVC.
8990
8991 2011-09-16  Bruno Haible  <bruno@clisp.org>
8992
8993         Support for MSVC compiler: Ensure off_t gets defined.
8994         * lib/unistd.in.h: Include <sys/types.h>.
8995         * tests/test-fcntl-h.c: Check that off_t is defined.
8996         * tests/test-sys_stat.c: Likewise.
8997         * tests/test-sys_types.c: Likewise.
8998
8999 2011-09-16  Eric Blake  <eblake@redhat.com>
9000
9001         fdatasync: port to Solaris
9002         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9003         * modules/fdatasync (Link): Document it.
9004         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9005
9006         fdatasync: port to MacOS X 10.7
9007         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9008         declared.
9009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9010         * modules/unistd (Makefile.am): Substitute it.
9011         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9012         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9013
9014         fdatasync: minor improvements
9015         * modules/fdatasync (Depends-on): Add condition for fsync.
9016         * lib/fdatasync.c (fdatasync): Add comment.
9017         * tests/test-unistd-c++.cc: Test fdatasync.
9018
9019         unistd: update refs to newer POSIX
9020         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9021         Suggested by Bruno Haible.
9022
9023         fdatasync: new module
9024         * modules/fsync (Description): Document difference to fdatasync.
9025         * modules/fdatasync: New module.
9026         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9027         * lib/fdatasync.c (fdatasync): Likewise.
9028         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9029         defaults.
9030         * modules/unistd (Makefile.am): Set witnesses.
9031         * lib/unistd.in.h (fdatasync): Declare.
9032         * MODULES.html.sh: Document it.
9033         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9034         * modules/fdatasync-tests: New test.
9035         * tests/test-fdatasync.c: Likewise.
9036
9037 2011-09-16  Eric Blake  <eblake@redhat.com>
9038
9039         test-fsync: enhance tests
9040         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9041         * tests/test-fsync.c (main): Enhance test.
9042
9043 2011-09-15  Bruno Haible  <bruno@clisp.org>
9044
9045         Support for MSVC compiler: Ensure ssize_t gets defined.
9046         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9047         * doc/posix-headers/stdio.texi: Likewise.
9048         * modules/stdio (Depends-on): Add ssize_t.
9049         * modules/sys_socket (Depends-on): Likewise.
9050         * modules/sys_types (Depends-on): Likewise.
9051         * modules/sys_uio (Depends-on): Likewise.
9052         * modules/unistd (Depends-on): Likewise.
9053         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9054         * tests/test-sys_types.c: Check that ssize_t is defined.
9055
9056 2011-09-14  Bruno Haible  <bruno@clisp.org>
9057
9058         Avoid using #, the m4 comment starter character, near brackets.
9059         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9060         delimiter character in sed expressions.
9061         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9062         Suggested by Eric Blake.
9063
9064         Properly quote AC_CHECK_DECLS' 4th argument.
9065         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9066         argument.
9067         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9068         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9069         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9070         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9071         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9072         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9074         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9075         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9076         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9077         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9078         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9079         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9080         * m4/isinf.m4 (gl_ISINF): Likewise.
9081         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9082         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9083         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9084         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9085         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9087         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9088         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9089         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9090         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9091         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9092         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9093         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9094         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9096         Reported by Eric Blake.
9097
9098         Properly quote AC_CHECK_DECL's 4th argument.
9099         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9100         argument.
9101         * m4/argp.m4 (gl_ARGP): Likewise.
9102         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9103         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9104         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9105         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9106         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9107         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9109         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9110         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9111         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9112         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9113         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9114         Reported by Eric Blake.
9115
9116 2011-09-14  Eric Blake  <eblake@redhat.com>
9117
9118         opendir: avoid compile warning
9119         * lib/opendir.c (includes): Always include errno.h.
9120         Reported by Tatsuro MATSUOKA.
9121
9122 2011-09-14  Jim Meyering  <meyering@redhat.com>
9123
9124         maint.mk: sc_tight_scope: propagate failure from sub-make
9125         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9126         Reported by Martin von Gagern.
9127
9128 2011-09-13  Bruno Haible  <bruno@clisp.org>
9129
9130         tempname: Support for MSVC.
9131         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9132         MSVC.
9133         * modules/tempname (Depends-on): Add fcntl-h.
9134
9135 2011-09-13  Bruno Haible  <bruno@clisp.org>
9136
9137         sys_time: Support for MSVC.
9138         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9139         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9140         include <winsock2.h>.
9141         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9142         function declarations that collide with POSIX.
9143         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9144         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9145
9146 2011-09-13  Bruno Haible  <bruno@clisp.org>
9147
9148         stat: Support for MSVC.
9149         * lib/stat.c: Include pathmax.h.
9150         * modules/stat (Depends-on): Add pathmax.
9151
9152         pathmax: Support for native Windows.
9153         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9154
9155 2011-09-12  Bruno Haible  <bruno@clisp.org>
9156
9157         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9158         * lib/dirent.in.h (struct dirent): New type.
9159         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9160         DT_WHT): New macros.
9161         (DIR): New type.
9162         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9163         (readdir, rewinddir): New declarations.
9164         * lib/dirent-private.h: New file.
9165         * lib/opendir.c: New file.
9166         * lib/readdir.c: New file.
9167         * lib/rewinddir.c: New file.
9168         * lib/closedir.c: New file.
9169         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9170         * m4/opendir.m4: New file.
9171         * m4/readdir.m4: New file.
9172         * m4/rewinddir.m4: New file.
9173         * m4/closedir.m4: New file.
9174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9175         REPLACE_CLOSEDIR here.
9176         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9177         readdir, rewinddir are declared.
9178         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9179         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9180         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9181         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9182         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9183         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9184         * modules/opendir: New file.
9185         * modules/readdir: New file.
9186         * modules/rewinddir: New file.
9187         * modules/closedir: New file.
9188         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9189         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9190         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9191         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9192         * NEWS: Mention the 'fchdir' change.
9193
9194 2011-09-11  Bruno Haible  <bruno@clisp.org>
9195
9196         asm-underscore.m4: Support for MSVC.
9197         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9198         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9199
9200 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9201
9202         Doc about crypt functions.
9203         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9204         needing for _GNU_SOURCE to get crypt.
9205         * doc/posix-functions/encrypt.texi: Likewise.
9206         * doc/posix-functions/setkey.texi: Likewise.
9207
9208 2011-09-11  Bruno Haible  <bruno@clisp.org>
9209
9210         doc: Update regarding MSVC 9.
9211         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9212         tested".
9213         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9214         * doc/posix-headers/*.texi: Likewise.
9215         * doc/pastposix-functions/*.texi: Likewise.
9216         * doc/glibc-functions/*.texi: Likewise.
9217         * doc/glibc-headers/*.texi: Likewise.
9218
9219 2011-09-11  Bruno Haible  <bruno@clisp.org>
9220
9221         unistd et al.: Don't assume <unistd.h> exists.
9222         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9223         does not exist.
9224         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9225         exist. But include <stdlib.h>.
9226         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9227         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9228         symlink() does not exist.
9229         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9230         include <io.h> instead.
9231         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9232         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9233         include <direct.h> instead.
9234         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9235         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9236         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9237         <io.h> instead.
9238         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9239         correctly if the system does not have hard links.
9240         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9241         <direct.h> instead.
9242         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9243         it when looking for function declarations.
9244         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9245         <direct.h> and <io.h> instead.
9246         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9247
9248 2011-09-11  Bruno Haible  <bruno@clisp.org>
9249
9250         strcase: Support for MSVC.
9251         * modules/strcase (Status, Notice): Remove obsoletion mark.
9252         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9253         * doc/posix-functions/strncasecmp.texi: Likewise.
9254
9255         strings: Don't assume <strings.h> exists.
9256         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9257         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9258         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9259         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9260
9261 2011-09-11  Bruno Haible  <bruno@clisp.org>
9262
9263         dirent: Don't assume <dirent.h> exists.
9264         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9265         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9266         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9267         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9268
9269 2011-09-11  Bruno Haible  <bruno@clisp.org>
9270
9271         Fix wint_t on MSVC.
9272         * lib/wchar.in.h (wint_t): On MSVC, override it.
9273         * lib/wctype.in.h (wint_t): Likewise.
9274         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9275         MSVC.
9276         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9277         * doc/posix-headers/wctype.texi: Likewise.
9278
9279 2011-09-11  Bruno Haible  <bruno@clisp.org>
9280
9281         sys_types: Fix typo.
9282         * lib/sys_types.in.h: Fix typo in comment.
9283         Reported by Paul Eggert.
9284
9285         Support for MSVC compiler: Ensure size_t gets defined.
9286         * modules/strings (Depends-on): Add 'sys_types'.
9287         * modules/sys_uio (Depends-on): Likewise.
9288         * lib/sys_uio.in.h: Update comment.
9289
9290         C++ tests for module 'sys_types'.
9291         * modules/sys_types-c++-tests: New file.
9292         * tests/test-sys_types-c++.cc: New file.
9293
9294         Tests for module 'sys_types'.
9295         * modules/sys_types-tests: New file.
9296         * tests/test-sys_types.c: New file.
9297
9298         New module 'sys_types'.
9299         * lib/sys_types.in.h: New file.
9300         * m4/sys_types_h.m4: New file.
9301         * modules/sys_types: New file.
9302         * doc/posix-headers/sys_types.texi: Mention the new module and the
9303         size_t problem on MSVC 9.
9304
9305 2011-09-11  Bruno Haible  <bruno@clisp.org>
9306
9307         Support for MSVC compiler: Avoid division by a literal 0.
9308         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9309         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9310         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9311         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9312         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9313         * tests/infinity.h: New file.
9314         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9315         on MSVC.
9316         * tests/test-ceilf1.c: Include infinity.h.
9317         (main): Use Infinityf.
9318         * tests/test-ceil1.c: Include infinity.h.
9319         (main): Use Infinityd.
9320         * tests/test-ceill.c: Include infinity.h.
9321         (main): Use Infinityl.
9322         * tests/test-dprintf-posix.c: Include infinity.h.
9323         (test_function): Use Infinityd.
9324         * tests/test-floorf1.c: Include infinity.h.
9325         (main): Use Infinityf.
9326         * tests/test-floor1.c: Include infinity.h.
9327         (main): Use Infinityd.
9328         * tests/test-floorl.c: Include infinity.h.
9329         (main): Use Infinityl.
9330         * tests/test-fprintf-posix.c: Include infinity.h.
9331         (test_function): Use Infinityd.
9332         * tests/test-frexp.c: Include infinity.h.
9333         (main): Use Infinityd.
9334         * tests/test-frexpl.c: Include infinity.h.
9335         (main): Use Infinityl.
9336         * tests/test-isfinite.c: Include infinity.h.
9337         (test_isfinitef): Use Infinityf.
9338         (test_isfinited): Use Infinityd.
9339         (test_isfinitel): Use Infinityl.
9340         * tests/test-isinf.c: Include infinity.h.
9341         (test_isinff): Use Infinityf.
9342         (test_isinfd): Use Infinityd.
9343         (test_isinfl): Use Infinityl.
9344         * tests/test-isnan.c: Include infinity.h.
9345         (test_float): Use Infinityf.
9346         (test_double): Use Infinityd.
9347         (test_long_double): Use Infinityl.
9348         * tests/test-isnanf.h: Include infinity.h.
9349         (main): Use Infinityf.
9350         * tests/test-isnand.h: Include infinity.h.
9351         (main): Use Infinityd.
9352         * tests/test-isnanl.h: Include infinity.h.
9353         (main): Use Infinityl.
9354         * tests/test-ldexpl.c: Include infinity.h.
9355         (main): Use Infinityl.
9356         * tests/test-printf-posix.h: Include infinity.h.
9357         (test_function): Use Infinityd.
9358         * tests/test-roundf1.c: Include infinity.h.
9359         (main): Use Infinityf.
9360         * tests/test-round1.c: Include infinity.h.
9361         (main): Use Infinityd.
9362         * tests/test-roundl.c: Include infinity.h.
9363         (main): Use Infinityl.
9364         * tests/test-signbit.c: Include infinity.h.
9365         (test_signbitf): Use Infinityf.
9366         (test_signbitd): Use Infinityd.
9367         (test_signbitl): Use Infinityl.
9368         * tests/test-snprintf-posix.h: Include infinity.h.
9369         (test_function): Use Infinityd, Infinityl.
9370         * tests/test-sprintf-posix.h: Include infinity.h.
9371         (test_function): Use Infinityd, Infinityl.
9372         * tests/test-truncf1.c: Include infinity.h.
9373         (main): Use Infinityf.
9374         * tests/test-trunc1.c: Include infinity.h.
9375         (main): Use Infinityd.
9376         * tests/test-truncl.c: Include infinity.h.
9377         (main): Use Infinityl.
9378         * tests/test-vasnprintf-posix.c: Include infinity.h.
9379         (test_function): Use Infinityd, Infinityl.
9380         * tests/test-vasprintf-posix.c: Include infinity.h.
9381         (test_function): Use Infinityd, Infinityl.
9382         * modules/ceilf-tests (Files): Add tests/infinity.h.
9383         * modules/ceil-tests (Files): Likewise.
9384         * modules/ceill-tests (Files): Likewise.
9385         * modules/dprintf-posix-tests (Files): Likewise.
9386         * modules/floorf-tests (Files): Likewise.
9387         * modules/floor-tests (Files): Likewise.
9388         * modules/floorl-tests (Files): Likewise.
9389         * modules/fprintf-posix-tests (Files): Likewise.
9390         * modules/frexp-tests (Files): Likewise.
9391         * modules/frexp-nolibm-tests (Files): Likewise.
9392         * modules/frexpl-tests (Files): Likewise.
9393         * modules/frexpl-nolibm-tests (Files): Likewise.
9394         * modules/isfinite-tests (Files): Likewise.
9395         * modules/isinf-tests (Files): Likewise.
9396         * modules/isnan-tests (Files): Likewise.
9397         * modules/isnanf-tests (Files): Likewise.
9398         * modules/isnanf-nolibm-tests (Files): Likewise.
9399         * modules/isnand-tests (Files): Likewise.
9400         * modules/isnand-nolibm-tests (Files): Likewise.
9401         * modules/isnanl-tests (Files): Likewise.
9402         * modules/isnanl-nolibm-tests (Files): Likewise.
9403         * modules/ldexpl-tests (Files): Likewise.
9404         * modules/printf-posix-tests (Files): Likewise.
9405         * modules/roundf-tests (Files): Likewise.
9406         * modules/round-tests (Files): Likewise.
9407         * modules/roundl-tests (Files): Likewise.
9408         * modules/signbit-tests (Files): Likewise.
9409         * modules/snprintf-posix-tests (Files): Likewise.
9410         * modules/sprintf-posix-tests (Files): Likewise.
9411         * modules/truncf-tests (Files): Likewise.
9412         * modules/trunc-tests (Files): Likewise.
9413         * modules/truncl-tests (Files): Likewise.
9414         * modules/vasnprintf-posix-tests (Files): Likewise.
9415         * modules/vasprintf-posix-tests (Files): Likewise.
9416         * modules/vdprintf-posix-tests (Files): Likewise.
9417         * modules/vfprintf-posix-tests (Files): Likewise.
9418         * modules/vprintf-posix-tests (Files): Likewise.
9419         * modules/vsnprintf-posix-tests (Files): Likewise.
9420         * modules/vsprintf-posix-tests (Files): Likewise.
9421         * modules/xprintf-posix-tests (Files): Likewise.
9422
9423 2011-09-11  Bruno Haible  <bruno@clisp.org>
9424
9425         Ensure pid_t gets defined.
9426         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9427         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9428         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9429         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9430         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9431         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9432         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9433         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9434         * tests/test-fcntl-h.c: Check that pid_t is defined.
9435         * tests/test-sched.c: Likewise.
9436         * tests/test-termios.c: Likewise.
9437         * tests/test-time.c: Likewise.
9438         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9439         * doc/posix-headers/signal.texi: Likewise.
9440         * doc/posix-headers/sys_types.texi: Likewise.
9441         * doc/posix-headers/time.texi: Likewise.
9442
9443 2011-09-11  Bruno Haible  <bruno@clisp.org>
9444
9445         acl: Fix compilation on Solaris 10 (older version).
9446         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9447         of ACE_EVERYONE.
9448         * lib/set-mode-acl.c (qset_acl): Likewise.
9449         Reported by Christian Jullien <eligis@orange.fr>.
9450
9451 2011-09-10  Bruno Haible  <bruno@clisp.org>
9452
9453         iconv, unsetenv: Add support for MSVC compiler.
9454         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9455         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9456
9457 2011-09-10  Bruno Haible  <bruno@clisp.org>
9458
9459         *printf: Add support for MSVC compiler.
9460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9461         handles the exception caused by the %n directive. When cross-compiling,
9462         guess no on native Windows.
9463         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9464         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9465         emulate it through vsnprintf.
9466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9467         * doc/posix-functions/dprintf.texi: Update documentation regarding
9468         MSVC 9.
9469         * doc/posix-functions/fprintf.texi: Likewise.
9470         * doc/posix-functions/printf.texi: Likewise.
9471         * doc/posix-functions/snprintf.texi: Likewise.
9472         * doc/posix-functions/sprintf.texi: Likewise.
9473         * doc/posix-functions/swprintf.texi: Likewise.
9474         * doc/posix-functions/vdprintf.texi: Likewise.
9475         * doc/posix-functions/vfprintf.texi: Likewise.
9476         * doc/posix-functions/vprintf.texi: Likewise.
9477         * doc/posix-functions/vsnprintf.texi: Likewise.
9478         * doc/posix-functions/vsprintf.texi: Likewise.
9479         * doc/glibc-functions/asprintf.texi: Likewise.
9480         * doc/glibc-functions/obstack_printf.texi: Likewise.
9481         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9482         * doc/glibc-functions/vasprintf.texi: Likewise.
9483
9484 2011-09-10  Bruno Haible  <bruno@clisp.org>
9485
9486         nocrash: Add support for native Windows.
9487         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9488
9489 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9490             Bruno Haible  <bruno@clisp.org>
9491
9492         absolute-header, include-next: Add support for MSVC compiler.
9493         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9494         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9495         directory separator in #line directives.
9496         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9497         recognize also backslash as directory separator in #line directives.
9498
9499 2011-09-08  Jim Meyering  <meyering@redhat.com>
9500
9501         maint.mk: mark the post-release commit log with "maint: " prefix
9502         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9503         one-line commit-log summary.
9504
9505 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9506             Bruno Haible  <bruno@clisp.org>
9507
9508         Doc about crypt functions.
9509         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9510         systems.
9511         * doc/posix-functions/encrypt.texi: Likewise.
9512         * doc/posix-functions/setkey.texi: Likewise.
9513
9514 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9515
9516         * lib/gc.h: Fix copyright header.
9517
9518 2011-09-07  Bruno Haible  <bruno@clisp.org>
9519
9520         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9521         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9522         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9523
9524 2011-09-07  Bruno Haible  <bruno@clisp.org>
9525
9526         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9527         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9528         * lib/freopen.c: Likewise.
9529         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9530         * lib/lstat.c: Likewise.
9531         * lib/stat.c: Likewise.
9532         * lib/open.c: Use different syntax for include of <fcntl.h>.
9533         * lib/openat.c: Include fcntl.h again, explicitly.
9534
9535 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9536
9537         parse-datetime: document the newly accepted format
9538         * doc/parse-datetime.texi (Combined date and time of day items):
9539         New section.
9540
9541 2011-09-06  Bruno Haible  <bruno@clisp.org>
9542
9543         acl: Fix a test failure on newer Solaris 10 with ZFS.
9544         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9545         ENOSYS as no ACL.
9546         Reported by Jim Meyering.
9547
9548 2011-09-06  Bruno Haible  <bruno@clisp.org>
9549
9550         acl: Update for AIX >= 5.3 with NFS.
9551         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9552         ENOSYS as no ACL.
9553
9554         acl: Fix a test failure on AIX >= 5.3 with NFS.
9555         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9556         as no ACL.
9557
9558 2011-09-06  Bruno Haible  <bruno@clisp.org>
9559
9560         acl: Fix a test failure on IRIX 6.5 with NFS.
9561         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9562         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9563         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9564         * lib/copy-acl.c (qcopy_acl): Likewise.
9565
9566 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9567
9568         openat: port to AIX 7.1 with large files
9569         AIX 7.1 does a "#define openat open64at" if large files are in use,
9570         so we can't simply #undef openat.  Use the orig_openat trick (similar
9571         to orig_open in lib/open.c) to work around the problem.  Problem
9572         reported by Kevin Brott for GNU tar, in the thread containing
9573         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9574         * lib/openat.c (__need_system_fcntl_h): Define first.
9575         Include <fcntl.h> and <sys/types.h> before undefining.
9576         (orig_openat) [HAVE_OPENAT]: New inline function.
9577         (openat) [HAVE_OPENAT]: Do not undef.
9578         (rpl_openat): Use orig_openat, not openat.
9579
9580 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9581             Bruno Haible  <bruno@clisp.org>
9582
9583         acl: Avoid errors on NonStop Kernel.
9584         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9585         ENOTSUP errors.
9586
9587 2011-09-05  Bruno Haible  <bruno@clisp.org>
9588
9589         acl: Clean up Solaris code.
9590         * lib/acl-internal.h: Remove no-op #if.
9591         * lib/file-has-acl.c: Likewise.
9592         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9593         * lib/copy-acl.c (qcopy_acl): Likewise.
9594
9595 2011-09-05  Bruno Haible  <bruno@clisp.org>
9596
9597         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9598         binaries built on the original Solaris 10.
9599         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9600         trivial.
9601
9602 2011-09-05  Bruno Haible  <bruno@clisp.org>
9603
9604         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9605         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9606         10.
9607         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9608         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9609         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9610         instead of acl_get, facl_get, acl_set, facl_set.
9611
9612 2011-09-05  Bruno Haible  <bruno@clisp.org>
9613
9614         copy-file: Try unit tests on more file systems.
9615         * tests/test-copy-file-1.sh: New file.
9616         * tests/test-copy-file-2.sh: New file.
9617         * modules/copy-file-tests (Files): Add them.
9618         (Makefile.am): Add them to TESTS.
9619
9620         acl: Try unit tests on more file systems.
9621         * tests/test-file-has-acl-1.sh: New file.
9622         * tests/test-file-has-acl-2.sh: New file.
9623         * tests/test-set-mode-acl-1.sh: New file.
9624         * tests/test-set-mode-acl-2.sh: New file.
9625         * tests/test-copy-acl-1.sh: New file.
9626         * tests/test-copy-acl-2.sh: New file.
9627         * modules/acl-tests (Files): Add them.
9628         (Makefile.am): Add them to TESTS.
9629
9630 2011-09-04  Bruno Haible  <bruno@clisp.org>
9631
9632         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9633         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9634         10.
9635         (OLD_ALLOW, OLD_DENY): New macros.
9636         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9637         ACE_ACCESS_ALLOWED_ACE_TYPE.
9638         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9639         ACE_ACCESS_DENIED_ACE_TYPE.
9640         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9641         (NEW_ACE_EXECUTE): Fix value.
9642         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9643         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9644         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9645         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9646         NEW_ACE_SYNCHRONIZE): New macros.
9647         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9648         instead of acl_fromtext, acl_set, facl_set.
9649         Fixes a coreutils/tests/cp/perm failure.
9650
9651 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9652
9653         openat: test for fstatat (..., 0) bug
9654         Further testing with tar suggests that fstatat (..., 0)
9655         does not work in general, on AIX 7.1; see
9656         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9657         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9658         replacement fstatat (which is what older AIX releases were using
9659         anyway).
9660         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9661         use is now changed to orig_fstatat.  This was probably the right
9662         thing to do anyway.
9663         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9664         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9665         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9666         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9667         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9668         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9669         if the bug is found.
9670
9671         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9672         This tests for another fstatat bug on AIX 7.1:
9673         fstatat (AT_FDCWD, ..., 0) does not work.  See
9674         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9675         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9676         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9677         (rpl_fstatat): Adjust so that it works around either (or both)
9678         bugs if present.
9679         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9680
9681 2011-09-03  Karl Berry  <karl@gnu.org>
9682
9683         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9684         in index entries.
9685
9686 2011-09-02  Bruno Haible  <bruno@clisp.org>
9687
9688         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9689         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9690         values of AR, ARFLAGS, RANLIB.
9691         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9692
9693 2011-09-02  Bruno Haible  <bruno@clisp.org>
9694
9695         Find 'ar' program that fits with --host argument.
9696         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9697
9698 2011-09-02  Bruno Haible  <bruno@clisp.org>
9699
9700         tests: init.sh: Support any non-GNU diff.
9701         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9702         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9703         Solaris 8.
9704
9705 2011-09-02  Bruno Haible  <bruno@clisp.org>
9706
9707         tests: init.sh: work also with any non-GNU diff that supports -u
9708         * tests/init.sh: Relax check for diff -u support.
9709         Rather than checking for GNU diff via --version, simply check
9710         for support for -u itself.  Useful at least on OpenBSD 4.9,
9711         AIX 7.1, IRIX 6.5, and Solaris 10.
9712
9713 2011-09-01  Bruno Haible  <bruno@clisp.org>
9714
9715         strtoimax, strtoumax: Document problem on HP-UX 11.
9716         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9717         * doc/posix-functions/strtoumax.texi: Likewise.
9718
9719 2011-09-01  Bruno Haible  <bruno@clisp.org>
9720
9721         strtoumax: Avoid link error on OSF/1 with DTK cc.
9722         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9723         defined as a function.
9724         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9725         strtoumax is defined, not whether it is declared.
9726
9727 2011-09-01  Bruno Haible  <bruno@clisp.org>
9728
9729         strtoimax: Avoid link error on OSF/1 with DTK cc.
9730         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9731         defined as a function.
9732         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9733         strtoimax is defined, not whether it is declared.
9734
9735 2011-09-01  Bruno Haible  <bruno@clisp.org>
9736
9737         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9738         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9739         as a function.
9740         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9741         whether it is declared.
9742
9743 2011-09-01  Bruno Haible  <bruno@clisp.org>
9744
9745         imaxabs: Avoid link error on OSF/1 with DTK cc.
9746         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9747         as a function.
9748         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9749         whether it is declared.
9750
9751 2011-09-01  Bruno Haible  <bruno@clisp.org>
9752
9753         Tests for module 'strtoumax'.
9754         * modules/strtoumax-tests: New file.
9755         * tests/test-strtoumax.c: New file.
9756
9757         Tests for module 'strtoimax'.
9758         * modules/strtoimax-tests: New file.
9759         * tests/test-strtoimax.c: New file.
9760
9761         Tests for module 'imaxdiv'.
9762         * modules/imaxdiv-tests: New file.
9763         * tests/test-imaxdiv.c: New file.
9764
9765         Tests for module 'imaxabs'.
9766         * modules/imaxabs-tests: New file.
9767         * tests/test-imaxabs.c: New file.
9768
9769 2011-09-01  Bruno Haible  <bruno@clisp.org>
9770
9771         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9772         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9773         pthread_create.
9774
9775 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9776
9777         openat: work around AIX 7.1 fstatat issue
9778         This should fix the problem that was not properly fixed
9779         in the previous change, dated 2011-08-30.
9780         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9781         __need_system_stat_h defined.
9782         (orig_fstatat) [HAVE_FSTATAT]: New function.
9783         (rpl_fstatat): Go back to the old way of doing things,
9784         except call orig_fstatat instead of fstatat.
9785         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9786         Remove unnecessary check whether fstatat fills in st_size etc.
9787
9788 2011-09-01  Bruno Haible  <bruno@clisp.org>
9789
9790         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9791         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9792         just include the system's header.
9793
9794 2011-08-31  Jim Meyering  <meyering@redhat.com>
9795
9796         tests: avoid spurious assertion failure in test-float.c on ppc64
9797         * tests/test-float.c (test_long_double): Comment out an assertion,
9798         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9799         with gcc-4.4.4.
9800
9801         maint: indent with spaces, not TABs
9802         I need to get in the habit of running gnulib's "make check".
9803         Both of these would have been caught.
9804         * m4/largefile.m4: Indent with spaces, not TABs.
9805         * lib/parse-datetime.y (iso_8601_time): Likewise.
9806         Spotted by Pádraig Brady.
9807
9808         test-parse-datetime.c: accommodate a relatively strict gcc warning
9809         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9810         to avoid a warning from gcc's -Werror=missing-declarations.
9811         Insert a few spaces-before-funcall-parenthesis.
9812
9813 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9814
9815         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9816         The parser now accepts ISO 8601 date-time strings with "T" as the
9817         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9818         with a space between the date and time strings.  Now it also parses
9819         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9820         variants like "2004-02-29T16:21:42.333-07:00"
9821         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9822         of day representation using the 'T' separator character.
9823         * doc/parse-datetime.texi (General date syntax): replace use of
9824         deprecated --iso-8601 option with --rfc-3339 in example of date
9825         command output formats that can be parsed.
9826         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9827         lib/parse-datetime.y.
9828         (gmt_offset): New function.
9829         (main): Add additional test cases to validate ISO8601 extended
9830         date and time of day parsing.
9831
9832 2011-08-31  Bruno Haible  <bruno@clisp.org>
9833
9834         freopen: Documentation.
9835         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9836         name.
9837         Reported by Claudio Bley <claudio.bley@gmail.com>.
9838
9839 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9840
9841         freopen: Don't crash if the filename argument is NULL.
9842         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9843         NULL.
9844
9845 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9846
9847         openat: work around AIX 7.1 fstatat bug
9848         Problem reported by Kevin Brott for GNU tar, in the thread containing
9849         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9850         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9851         FSTATAT_ST_SIZE_ETC_BROKEN.
9852         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9853         rpl_fstatat.
9854         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9855         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9856         AC_CHECK_FUNCS_ONCE for fstatat.
9857         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9858         fchmodat, mkdirat, openat and unlinkat.
9859
9860 2011-08-30  Bruno Haible  <bruno@clisp.org>
9861
9862         Avoid endless recursions if config.h includes some header files.
9863         * lib/fopen.c (__need_FILE): Define already before including config.h.
9864         * lib/freopen.c (__need_FILE): Likewise.
9865         * lib/open.c (__need_system_fcntl_h): Likewise.
9866         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9867         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9868         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9869
9870 2011-08-25  Karl Berry  <karl@gnu.org>
9871
9872         * config/srclist.txt (ylwrap): new try.
9873         * build-aux/ylwrap: new file.
9874
9875 2011-08-23  Bruno Haible  <bruno@clisp.org>
9876
9877         tmpdir: Use a good default directory on native Windows.
9878         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9879         (P_tmpdir): Default to _P_tmpdir on native Windows.
9880         (path_search): On native Windows, try the value returned by GetTempPath
9881         before trying P_tmpdir.
9882         * modules/tmpdir (Depends-on): Add pathmax.
9883         Suggested by John Darrington <john@darrington.wattle.id.au>.
9884
9885 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9886
9887         doc: fix typo in README-release
9888         * top/README-release: Capitalize first word of a sentence.
9889
9890 2011-08-19  Jim Meyering  <meyering@redhat.com>
9891
9892         fts: do not exhaust memory when processing million-entry directories
9893         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9894         directory would require about 256*N bytes of memory.  Thus, it was
9895         easy to construct a directory too large to be processed by any of
9896         those tools.  With this change, fts' maximum memory utilization is
9897         now limited to around 30MB.
9898         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9899         (fts_read): When we've processed the final entry (i.e., when
9900         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9901         using the parent entry to read any remaining entries.  Dispatch
9902         depending on what fts_build returns:
9903         - NULL+stop, aka failure: stop
9904         - NULL otherwise: move up in the dir hierarchy
9905         - non-NULL: handle this new entry
9906         (fts_build): Declare and use new local, continue_readdir.
9907         Prepare to be called from fts_read, when the entries
9908         from a partially-read directory have just been exhausted.
9909         In that case, we'll skip the opendir and instead use the parent's
9910         fts_dirp and derive dir_fd from that.
9911         Finally, in the readdir loop, if we read max_entries entries,
9912         exit the loop ensuring *not* to call closedir.  This is required
9913         so that fts_dirp can be reused on a subsequent call.
9914         Prompted by Ben England's report of memory exhaustion in find
9915         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9916
9917         maint: fts: move decl of `dp' down into while loop; split a long line
9918         * lib/fts.c (fts_build): No semantic change.
9919
9920         fts: add/use new struct member, fts_dirp
9921         We are about to use this to manage any directory with
9922         too many entries to read all of them into memory at once.
9923         To do that, we'll need to save the DIR* pointer in each
9924         affected FTSENT struct.
9925         * lib/fts_.h: Include <dirent.h>.
9926         (struct FTSENT) [fts_dirp]: New member.
9927         * lib/fts.c (closedir_and_clear): Define.
9928         Use it in place of closedir so that we are sure to
9929         clear the new fts_dirp member when done with it.
9930         (fts_alloc): Initialize the new member.
9931         (fts_lfree): Free, if needed.
9932
9933         maint: fts: give __opendir2 a new parameter and rename
9934         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9935         than surreptitiously using sole caller's "dir_fd".
9936         (fts_opendir): Rename from __opendir2.
9937
9938         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9939         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9940
9941         maint: fts.c: correct off-by-one indentation
9942         * lib/fts.c (fts_build): Correct indentation, change style
9943         of a couple of block comments, and bracing style.
9944
9945         maint: fts.c: move __opendir2 #define "up" out of function body
9946         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9947
9948         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9949         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9950         out for a long time and besides was useful only on BSD systems.
9951
9952 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9953
9954         regex: port to Stratus OpenVOS
9955         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9956         define to empty, rather than attempting nonportable optimizations.
9957         Problem reported by Paul Green in:
9958         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9959         and fix suggested by Eric Blake in:
9960         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9961
9962 2011-08-17  Eric Blake  <eblake@redhat.com>
9963
9964         getcwd: fix test failures on mingw
9965         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9966         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9967         test if long directory cannot be created, and allow mingw errno.
9968
9969         getcwd-lgpl: fix m4 to match relaxed test for BSD
9970         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9971         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9972         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9973         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9974         signature problem.
9975
9976         getcwd: fix compilation on mingw64
9977         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9978         getcwd.
9979         Reported by Marc-André Lureau.
9980
9981         pipe2: silence compiler warning
9982         * lib/pipe2.c (pipe2): Hide label if it is not used.
9983
9984 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9985
9986         relocatable-prog: fix link error
9987         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9988         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9989         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9990         into modules/relocatable-lib without noticing that
9991         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9992         also needs to build relocatable.c.
9993
9994 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9995
9996         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9998         shell code: it contained a 'break' that was not in a loop.
9999         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10000         via a shell-language loop; this may have been true in old Autoconf
10001         versions, but it's not true in Autoconf 2.68.  I found this bug
10002         when testing coreutils git on Solaris 8, whose shell complains
10003         about the syntax error.
10004
10005 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10006
10007         * lib/base64.c: Fix comment to reference RFC 4648.
10008         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10009         <gvtulder@gmail.com>.
10010
10011 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10012
10013         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10014
10015         po/Makefile.in.in: fix make -q problem
10016         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10017         rule, since there's no file named 'check-macro-version' and its
10018         use as a file breaks make -q.
10019         (all): Don't depend on check-macro-version.
10020         (CHECK_MACRO_VERSION): New macro.
10021         (stamp-po): Use it.
10022
10023         configmake: fix make -q problem
10024         * modules/configmake (configmake.h): Update configmake.h's time stamp
10025         even if the file does not change.  Otherwise, 'make -q' fails.
10026         Problem reported by Simon Josefsson in
10027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10028
10029 2011-08-11  Jim Meyering  <meyering@redhat.com>
10030
10031         git-version-gen: correct the advice in a comment
10032         * build-aux/git-version-gen: Correct comment.
10033         Don't recommend to list .tarball-version in .gitignore.
10034
10035 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10036
10037         base64: fix off-by-one buffer size bug
10038         Problem and (trivial) fix reported by Gijs van Tulder in
10039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10040         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10041         * tests/test-base64.c (main): Catch the bug.
10042
10043 2011-08-10  Eric Blake  <eblake@redhat.com>
10044
10045         closein: correct comments
10046         * lib/closein.c (close_stdin): Improve comments.
10047
10048 2011-08-09  Bruno Haible  <bruno@clisp.org>
10049
10050         More tests for 'fseeko'.
10051         * tests/test-fseeko3.c: New file, from Eric Blake.
10052         * tests/test-fseeko3.sh: New file.
10053         * modules/fseeko-tests (Files): Add them.
10054         (TESTS): Add test-fseeko3.sh.
10055         (check_PROGRAMS): Add test-fseeko3.
10056
10057 2011-08-09  Eric Blake  <eblake@redhat.com>
10058
10059         fseeko: remove unneeded hack
10060         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10061
10062         fseeko: fix bug on glibc
10063         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10064         Reported by John W. Eaton.
10065
10066 2011-08-08  Bruno Haible  <bruno@clisp.org>
10067
10068         unictype/base: Fix interoperability with preinstalled libunistring.
10069         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10070         Reported by Simon Josefsson.
10071
10072 2011-08-08  Bruno Haible  <bruno@clisp.org>
10073
10074         iswblank: Detect declaration correctly.
10075         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10076         AC_CHECK_DECLS invocation.
10077
10078 2011-08-08  Bruno Haible  <bruno@clisp.org>
10079
10080         tcgetsid: Detect declaration correctly.
10081         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10082         AC_CHECK_DECLS invocation.
10083         Reported by Simon Josefsson.
10084
10085 2011-08-08  Eric Blake  <eblake@redhat.com>
10086
10087         largefile: fix typo that regressed large file support
10088         * modules/largefile (configure.ac-early): Fix section name.
10089
10090 2011-08-06  Karl Berry  <karl@gnu.org>
10091
10092         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10093         a separate module.
10094
10095 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10096
10097         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10098         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10099         get prototype for free.
10100
10101 2011-08-04  Bruno Haible  <bruno@clisp.org>
10102
10103         Tests for module 'pathmax'.
10104         * modules/pathmax-tests: New file.
10105         * tests/test-pathmax.c: New file.
10106
10107         canonicalize-lgpl: Support larger filenames on the Hurd.
10108         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10109         Reported by Paul Eggert.
10110
10111         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10112         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10113         * lib/chdir-long.h: Include pathmax.h.
10114         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10115         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10116         (PATH_MAX): Remove code that is done by pathmax.h.
10117         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10118         * lib/tmpfile.c: Add a comment.
10119         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10120         * modules/chdir-long (Depends-on): Add pathmax.
10121         * modules/getcwd (Depends-on): Add pathmax.
10122         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10123         is not defined.
10124         * doc/posix-headers/limits.texi: Mention the pathmax module.
10125         * NEWS: Mention the change.
10126
10127 2011-08-02  Bruno Haible  <bruno@clisp.org>
10128
10129         pthread_sigmask: Actually use results of gl_THREADLIB.
10130         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10131         gl_THREADLIB, not gl_[]THREADLIB.
10132         Reported by Eric Blake.
10133
10134 2011-08-02  Jim Meyering  <meyering@redhat.com>
10135
10136         maint.mk: relax the default _gl_TS_function_match regexp
10137         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10138         space between function name and "(" in an "extern" declaration.
10139         That would fail to match a decl with no space there: extern void foo();
10140
10141 2011-07-31  Iain Nicol  <iain@thenicols.net>
10142
10143         git-version-gen: document that EXTRA_DIST must include .version
10144         * build-aux/git-version-gen: In the how-to-use comment, document
10145         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10146         will fail when run from an unpacked distribution tarball.
10147
10148 2011-08-01  Bruno Haible  <bruno@clisp.org>
10149
10150         wctype-h: Fix last change.
10151         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10152         REPLACE_TOWLOWER to 0.
10153         Reported by Sam Steingold <sds@gnu.org>.
10154
10155 2011-07-31  Bruno Haible  <bruno@clisp.org>
10156
10157         frexpl: Update autoconf test.
10158         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10159         according to changes of 2011-06-20.
10160
10161 2011-07-31  Bruno Haible  <bruno@clisp.org>
10162
10163         sys_utsname: Add support for Minix.
10164         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10165         <sys/utsname.h>.
10166         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10167         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10168
10169 2011-07-31  Bruno Haible  <bruno@clisp.org>
10170
10171         strings: Add support for Minix.
10172         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10173         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10174         * doc/posix-headers/strings.texi: Document the Minix problem.
10175
10176 2011-07-31  Bruno Haible  <bruno@clisp.org>
10177
10178         wctype-h: Add support for Minix.
10179         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10180         REPLACE_TOWLOWER.
10181         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10182         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10183         REPLACE_ISWCNTRL.
10184
10185 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10186
10187         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10188         This is a performance improvement for 64-bit hosts: it causes the
10189         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10190
10191 2011-07-31  Bruno Haible  <bruno@clisp.org>
10192
10193         stdioext: Add support for Minix.
10194         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10195         * lib/fpurge.c (fpurge): Likewise.
10196         * lib/freadahead.c (freadahead): Likewise.
10197         * lib/freadable.c (freadable): Likewise.
10198         * lib/freading.c (freading): Likewise.
10199         * lib/freadptr.c (freadptr): Likewise.
10200         * lib/freadseek.c (freadptrinc): Likewise.
10201         * lib/fseeko.c (rpl_fseeko): Likewise.
10202         * lib/fseterr.c (fseterr): Likewise.
10203         * lib/fwritable.c (fwritable): Likewise.
10204         * lib/fwriting.c (fwriting): Likewise.
10205         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10206         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10207
10208 2011-07-31  Bruno Haible  <bruno@clisp.org>
10209
10210         errno: Port to Minix.
10211         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10212         ECONNABORTED are defined.
10213         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10214         GNULIB_defined_ECONNABORTED): New macros.
10215         * lib/strerror-override.h (strerror_override): Test also
10216         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10217         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10218         ECONNABORTED.
10219         * doc/posix-headers/errno.texi: Mention the Minix problem.
10220
10221 2011-07-31  Bruno Haible  <bruno@clisp.org>
10222
10223         Work around declaration collisions on Minix.
10224         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10225         defined, set REPLACE_MBSINIT.
10226         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10227         defined, set REPLACE_MBRTOWC.
10228         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10229         set REPLACE_MBRLEN.
10230         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10231         defined, set REPLACE_MBSRTOWCS.
10232         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10233         defined, set REPLACE_WCRTOMB.
10234         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10235         defined, set REPLACE_WCSRTOMBS.
10236
10237 2011-07-31  Bruno Haible  <bruno@clisp.org>
10238
10239         Add support for Minix with ACK compiler.
10240         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10241         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10242         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10243
10244 2011-07-31  Bruno Haible  <bruno@clisp.org>
10245
10246         Documentation about Minix.
10247         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10248         * doc/glibc-headers/*.texi: Likewise.
10249         * doc/posix-functions/*.texi: Likewise.
10250         * doc/glibc-functions/*.texi: Likewise.
10251
10252 2011-07-31  Bruno Haible  <bruno@clisp.org>
10253
10254         snippet/warn-on-use: Fix indentation.
10255         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10256
10257 2011-07-25  Jim Meyering  <meyering@redhat.com>
10258
10259         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10260         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10261         commands.
10262
10263 2011-07-27  Jim Meyering  <meyering@redhat.com>
10264
10265         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10266         * top/maint.mk (gl_extract_significant_defines_): Now that
10267         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10268         gnulib/lib/signal.in.h, and now that we recommend to
10269         define-if-undefined those two symbols in application code,
10270         we must filter them out of the "significant" list.
10271         This avoids a "make syntax-check" failure in coreutils.
10272
10273 2011-07-26  Eric Blake  <eblake@redhat.com>
10274
10275         warnings: add comments about previous patch
10276         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10277         * m4/include_next.m4: Likewise.
10278         * m4/warn-on-use.m4: Likewise.
10279         * m4/warnings.m4: Likewise, and simplify use.
10280         Suggested by Stefano Lattarini.
10281
10282         include-next, warnings: support older autoconf
10283         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10284         AS_VAR_PUSHDEF in a way that works with older autoconf.
10285         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10286         Reported by Daniel P. Berrange.
10287
10288 2011-07-25  Bruno Haible  <bruno@clisp.org>
10289
10290         fseek, ftell: Fix doc.
10291         * doc/posix-functions/fseek.texi: Reword statement about
10292         AC_SYS_LARGEFILE.
10293         * doc/posix-functions/ftell.texi: Likewise.
10294
10295 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10296             Bruno Haible  <bruno@clisp.org>
10297
10298         Add dependencies to the 'largefile' module.
10299         * modules/fopen (Depends-on): Add 'largefile'.
10300         * modules/freopen (Depends-on): Likewise.
10301         * modules/fseeko (Depends-on): Likewise.
10302         * modules/ftello (Depends-on): Likewise.
10303         * modules/glob (Depends-on): Likewise.
10304         * modules/lseek (Depends-on): Likewise.
10305         * modules/lstat (Depends-on): Likewise.
10306         * modules/mkostemp (Depends-on): Likewise.
10307         * modules/mkostemps (Depends-on): Likewise.
10308         * modules/mkstemp (Depends-on): Likewise.
10309         * modules/mkstemps (Depends-on): Likewise.
10310         * modules/open (Depends-on): Likewise.
10311         * modules/openat (Depends-on): Likewise.
10312         * modules/pread (Depends-on): Likewise.
10313         * modules/pwrite (Depends-on): Likewise.
10314         * modules/scandir (Depends-on): Likewise.
10315         * modules/stat (Depends-on): Likewise.
10316         * modules/tmpfile (Depends-on): Likewise.
10317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10318         since the containing module now depends on the largefile module.
10319         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10320         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10321         off_t is fixed by gnulib.
10322         * doc/posix-functions/freopen.texi: Likewise.
10323         * doc/posix-functions/fseeko.texi: Likewise.
10324         * doc/posix-functions/fstatat.texi: Likewise.
10325         * doc/posix-functions/ftello.texi: Likewise.
10326         * doc/posix-functions/glob.texi: Likewise.
10327         * doc/posix-functions/lseek.texi: Likewise.
10328         * doc/posix-functions/lstat.texi: Likewise.
10329         * doc/posix-functions/mkstemp.texi: Likewise.
10330         * doc/posix-functions/open.texi: Likewise.
10331         * doc/posix-functions/openat.texi: Likewise.
10332         * doc/posix-functions/pread.texi: Likewise.
10333         * doc/posix-functions/pwrite.texi: Likewise.
10334         * doc/posix-functions/scandir.texi: Likewise.
10335         * doc/posix-functions/stat.texi: Likewise.
10336         * doc/posix-functions/tmpfile.texi: Likewise.
10337         * doc/glibc-functions/mkostemp.texi: Likewise.
10338         * doc/glibc-functions/mkostemps.texi: Likewise.
10339         * doc/glibc-functions/mkstemps.texi: Likewise.
10340
10341 2011-07-25  Bruno Haible  <bruno@clisp.org>
10342
10343         fcntl: Move AC_LIBOBJ invocation to module description.
10344         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10345         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10346
10347         fcntl: Remove call-in from fchdir.m4.
10348         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10350
10351         dup3: Remove potential call-in from fchdir.m4.
10352         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10354
10355         dup2: Move AC_LIBOBJ invocation to module description.
10356         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10357         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10358         Don't invoke AC_LIBOBJ.
10359         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10360
10361         dup2: Remove call-in from fchdir.m4.
10362         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10364
10365         fclose: Move AC_LIBOBJ invocation to module description.
10366         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10367         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10368         to 1.
10369         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10370
10371         fclose: Remove call-in from close.m4.
10372         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10373         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10374
10375         close: Move AC_LIBOBJ invocation to module description.
10376         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10377         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10378         1.
10379         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10380
10381         close: Remove call-in from fchdir.m4.
10382         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10384
10385         open: Move AC_LIBOBJ invocation to module description.
10386         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10387         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10388         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10389
10390         open: Remove call-in from fchdir.m4.
10391         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10393
10394         fchdir: Start to remove gl_REPLACE_* idiom.
10395         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10396         (gl_FUNC_FCHDIR): Invoke it.
10397
10398 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10399
10400         * lib/ftell.c (ftell): Comment out cast.
10401
10402         close: use gl_REPLACE_FCLOSE only if defined
10403         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10404         is defined.  The close module doesn't depend on the fclose module
10405         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10407         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10408
10409 2011-07-24  Jim Meyering  <meyering@redhat.com>
10410
10411         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10412         * tests/test-select.h (test_function): Declare as "static".
10413
10414 2011-07-24  Bruno Haible  <bruno@clisp.org>
10415
10416         doc: Mention the effects of AC_SYS_LARGEFILE.
10417         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10418         on this function.
10419         * doc/posix-functions/aio_error.texi: Likewise.
10420         * doc/posix-functions/aio_fsync.texi: Likewise.
10421         * doc/posix-functions/aio_read.texi: Likewise.
10422         * doc/posix-functions/aio_return.texi: Likewise.
10423         * doc/posix-functions/aio_suspend.texi: Likewise.
10424         * doc/posix-functions/aio_write.texi: Likewise.
10425         * doc/posix-functions/fgetpos.texi: Likewise.
10426         * doc/posix-functions/fopen.texi: Likewise.
10427         * doc/posix-functions/freopen.texi: Likewise.
10428         * doc/posix-functions/fsetpos.texi: Likewise.
10429         * doc/posix-functions/fstatvfs.texi: Likewise.
10430         * doc/posix-functions/ftruncate.texi: Likewise.
10431         * doc/posix-functions/ftw.texi: Likewise.
10432         * doc/posix-functions/getrlimit.texi: Likewise.
10433         * doc/posix-functions/glob.texi: Likewise.
10434         * doc/posix-functions/lio_listio.texi: Likewise.
10435         * doc/posix-functions/lockf.texi: Likewise.
10436         * doc/posix-functions/mkstemp.texi: Likewise.
10437         * doc/posix-functions/mmap.texi: Likewise.
10438         * doc/posix-functions/nftw.texi: Likewise.
10439         * doc/posix-functions/openat.texi: Likewise.
10440         * doc/posix-functions/opendir.texi: Likewise.
10441         * doc/posix-functions/posix_fadvise.texi: Likewise.
10442         * doc/posix-functions/posix_fallocate.texi: Likewise.
10443         * doc/posix-functions/pread.texi: Likewise.
10444         * doc/posix-functions/pwrite.texi: Likewise.
10445         * doc/posix-functions/readdir.texi: Likewise.
10446         * doc/posix-functions/readdir_r.texi: Likewise.
10447         * doc/posix-functions/rewinddir.texi: Likewise.
10448         * doc/posix-functions/scandir.texi: Likewise.
10449         * doc/posix-functions/seekdir.texi: Likewise.
10450         * doc/posix-functions/setrlimit.texi: Likewise.
10451         * doc/posix-functions/statvfs.texi: Likewise.
10452         * doc/posix-functions/telldir.texi: Likewise.
10453         * doc/posix-functions/tmpfile.texi: Likewise.
10454         * doc/posix-functions/truncate.texi: Likewise.
10455         * doc/glibc-functions/fallocate.texi: Likewise.
10456         * doc/glibc-functions/fstatfs.texi: Likewise.
10457         * doc/glibc-functions/fts_children.texi: Likewise.
10458         * doc/glibc-functions/fts_read.texi: Likewise.
10459         * doc/glibc-functions/getdirentries.texi: Likewise.
10460         * doc/glibc-functions/mkostemp.texi: Likewise.
10461         * doc/glibc-functions/mkostemps.texi: Likewise.
10462         * doc/glibc-functions/mkstemps.texi: Likewise.
10463         * doc/glibc-functions/preadv.texi: Likewise.
10464         * doc/glibc-functions/pwritev.texi: Likewise.
10465         * doc/glibc-functions/sendfile.texi: Likewise.
10466         * doc/glibc-functions/statfs.texi: Likewise.
10467
10468 2011-07-24  Bruno Haible  <bruno@clisp.org>
10469
10470         doc: Fix typo.
10471         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10472
10473 2011-07-24  Bruno Haible  <bruno@clisp.org>
10474
10475         doc: Mention fsusage.
10476         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10477
10478 2011-07-24  Bruno Haible  <bruno@clisp.org>
10479
10480         doc: Mention new glibc headers and functions.
10481         * doc/glibc-headers/gshadow.texi: New file.
10482         * doc/glibc-functions/endsgent.texi: New file.
10483         * doc/glibc-functions/fgetsgent.texi: New file.
10484         * doc/glibc-functions/fgetsgent_r.texi: New file.
10485         * doc/glibc-functions/getsgent.texi: New file.
10486         * doc/glibc-functions/getsgent_r.texi: New file.
10487         * doc/glibc-functions/getsgnam.texi: New file.
10488         * doc/glibc-functions/getsgnam_r.texi: New file.
10489         * doc/glibc-functions/putsgent.texi: New file.
10490         * doc/glibc-functions/setsgent.texi: New file.
10491         * doc/glibc-functions/sgetsgent.texi: New file.
10492         * doc/glibc-functions/sgetsgent_r.texi: New file.
10493         * doc/glibc-functions/malloc_info.texi: New file.
10494         * doc/glibc-functions/preadv.texi: New file.
10495         * doc/glibc-functions/pwritev.texi: New file.
10496         * doc/glibc-functions/register_printf_modifier.texi: New file.
10497         * doc/glibc-functions/register_printf_specifier.texi: New file.
10498         * doc/glibc-functions/register_printf_type.texi: New file.
10499         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10500         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10501         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10502         * doc/glibc-functions/pthread_getname_np.texi: New file.
10503         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10504         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10505         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10506         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10507         * doc/glibc-functions/pthread_setname_np.texi: New file.
10508         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10509         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10510         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10511         * doc/glibc-functions/qsort_r.texi: New file.
10512         * doc/glibc-functions/quick_exit.texi: New file.
10513         * doc/glibc-functions/syncfs.texi: New file.
10514         * doc/gnulib.texi: Include them.
10515         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10516         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10517         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10518         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10519         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10520         * doc/glibc-functions/execvpe.texi: Likewise.
10521
10522 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10523
10524         ftell: don't include <unistd.h>
10525         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10526         guaranteed to define off_t, and the ftell module depends on the
10527         stdio module.
10528
10529         ftell: do not assume wraparound signed arithmetic
10530         * lib/ftell.c: Include <limits.h>.
10531         (ftell): Don't assume wraparound signed arithmetic.
10532
10533 2011-07-24  Bruno Haible  <bruno@clisp.org>
10534
10535         close: No longer depend on module 'fclose'.
10536         * modules/close (Depends-on): Remove fclose.
10537         * NEWS: Mention the change.
10538         Suggested by Sam Steingold <sds@gnu.org>.
10539
10540 2011-07-24  Bruno Haible  <bruno@clisp.org>
10541
10542         fsusage: Enable large volume support on AIX >= 5.2.
10543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10544         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10545         instead of STAT_STATVFS.
10546         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10547
10548         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10549         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10550         f_blocks field only on MacOS X.
10551
10552         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10553         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10554         * modules/fsusage (Depends-on): Add largefile.
10555
10556 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10557
10558         * README: Modernize discussion of signed integers.
10559         Assuming overflow wraparound is no longer safe.
10560         Mention ones' complement and signed magnitude.
10561
10562 2011-07-22  Bruno Haible  <bruno@clisp.org>
10563
10564         select tests, pselect tests: Refactor.
10565         * tests/test-select.h: New file, extracted from tests/test-select.c.
10566         (select_fn): New type.
10567         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10568         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10569         test_pipe): Add my_select argument.
10570         (test_function): Renamed from main. Add my_select argument.
10571         * tests/test-select.c: Move most code to tests/test-select.h. Include
10572         test-select.h.
10573         * modules/select-tests (Files): Add tests/test-select.h.
10574         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10575         (my_select, main): New functions.
10576         * modules/pselect-tests (Files): Add tests/test-select.h,
10577         tests/macros.h, tests/signature.h.
10578         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10579         (configure.ac): Check for <sys/wait.h>.
10580
10581 2011-07-22  Bruno Haible  <bruno@clisp.org>
10582
10583         sys_select tests: Check the signature of FD_*.
10584         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10585         signature tests from here...
10586         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10587         here.
10588         * modules/sys_select-tests (Files): Add tests/signature.h.
10589
10590 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10591
10592         largefile: new module, replacing large-inode
10593         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10594         * MODULES.html.sh: Add largefile, remove large-inode.
10595         * modules/largefile, m4/largefile.m4: New files.
10596         * modules/large-inode, m4/large-inode.m4: Remove.
10597
10598         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10600         implementations that use only 32 bits to count blocks.
10601         On typical hosts with 1024-byte blocks, this fails with file
10602         systems as small as 4 TiB.  Problem reported by Herb Wartens
10603         <http://debbugs.gnu.org/9140> and this should also fix a similar
10604         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10605
10606         large-inode: New module
10607         * MODULES.html.sh: Add it.
10608         * modules/large-inode, m4/large-inode.m4: New files.
10609
10610         extensions: Enable extensions on MacOS X 10.5 and later.
10611         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10612
10613 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10614
10615         file-has-acl: use acl_extended_file_nofollow if available
10616         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10617         (acl_extended_file): New macro.
10618         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10619         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10620
10621 2011-07-21  Bruno Haible  <bruno@clisp.org>
10622
10623         Declare system functions in a way that works with C++.
10624         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10625         declare fdopendir as extern "C".
10626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10627         declare frexpl as extern "C".
10628         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10629         declare gai_strerror as extern "C".
10630         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10631         programs, declare gai_strerror as extern "C".
10632         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10633         declare getlogin_r as extern "C".
10634         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10635         as extern "C".
10636         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10637         declare ldexpl as extern "C".
10638         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10639         as extern "C".
10640         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10641         program, declare getmntinfo as extern "C".
10642         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10643         stpncpy as extern "C".
10644         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10645         program, declare __xpg_strerror_r as extern "C".
10646         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10647         strndup as extern "C".
10648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10649         declare memset and bzero as extern "C".
10650         Reported by Sam Steingold <sds@gnu.org>.
10651
10652 2011-07-12  Jim Meyering  <meyering@redhat.com>
10653
10654         maint.mk: prohibit inclusion of "verify.h" without use
10655         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10656
10657 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10658
10659         timer-time: A new module to check for timer_settime()
10660         * m4/timer_time.m4: Check for the posix function.
10661         * modules/timer-time: Add the new module.
10662         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10663         Mention it.
10664
10665 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10666             Bruno Haible  <bruno@clisp.org>
10667
10668         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10669         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10670         not defined, assume POSIX threads and look for pthread_sigmask in
10671         $LIBS, without changing $CPPFLAGS.
10672
10673 2011-07-19  Bruno Haible  <bruno@clisp.org>
10674
10675         strstr: Update cross-compilation guess.
10676         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10677         CPUs, guess no, in view of glibc
10678         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10679         Suggested by Eric Blake. Reported by Reuben Thomas.
10680
10681 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10682
10683         getopt-gnu: suppress core dumps from detection code
10684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10685         to suppress core dumps that may well occur on glibc systems.
10686         * modules/getopt-gnu: Depend on nocrash.
10687
10688 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10689
10690         pthread_sigmask: ensure usleep is declared
10691         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10692         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10693
10694 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10695
10696         doc: Document NonStop portability issues.
10697         * doc/posix-functions/sigaction.texi (sigaction):
10698         * doc/posix-headers/signal.texi (signal.h):
10699         Document NonStop.  See Joachim Schmitz in
10700         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10701
10702 2011-07-15  Bruno Haible  <bruno@clisp.org>
10703
10704         ffsl, ffsll: Avoid unportable behaviour.
10705         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10706
10707 2011-07-15  Bruno Haible  <bruno@clisp.org>
10708
10709         ffs: More tests.
10710         * tests/test-ffs.c (NBITS): New macro.
10711         (main): Add more tests.
10712         * tests/test-ffsl.c (NBITS): New macro.
10713         (main): Add more tests.
10714         * tests/test-ffsll.c (NBITS): New macro.
10715         (main): Add more tests.
10716
10717 2011-07-15  Eric Blake  <eblake@redhat.com>
10718
10719         ffsl, ffsll: new modules
10720         * modules/ffsl: New file.
10721         * modules/ffsll: Likewise.
10722         * m4/ffsl.m4: Likewise.
10723         * m4/ffsll.m4: Likewise.
10724         * lib/ffsl.c: Likewise.
10725         * lib/ffsl.h: Likewise.
10726         * lib/ffsll.c: Likewise.
10727         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10728         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10729         * modules/string (Makefile.am): Substitute witnesses.
10730         * lib/strings.in.h (ffsl, ffsll): Declare.
10731         * modules/ffsl-tests: New test file.
10732         * modules/ffsll-tests: Likewise.
10733         * tests/test-ffsl.c: Likewise.
10734         * tests/test-ffsll.c: Likewise.
10735         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10736         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10737         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10738
10739         ffs: fix m4 prerequisite
10740         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10741
10742         ffs: avoid undefined behavior
10743         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10744         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10745         Reported by Bruno Haible.
10746
10747 2011-07-12  Bruno Haible  <bruno@clisp.org>
10748
10749         pthread_sigmask: Rely on module 'threadlib'.
10750         * modules/pthread_sigmask (Depends-on): Add threadlib.
10751         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10752         is defined.
10753
10754 2011-07-12  Bruno Haible  <bruno@clisp.org>
10755
10756         regex: Depend on module 'strcase'.
10757         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10758
10759 2011-07-12  Jim Meyering  <meyering@redhat.com>
10760
10761         warn-on-use: fix typo in file name
10762         * modules/snippet/warn-on-use (Files): Correct file name:
10763         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10764
10765 2011-07-12  Bruno Haible  <bruno@clisp.org>
10766
10767         strings: Document module.
10768         * doc/posix-headers/strings.texi: Mention module 'strings'.
10769
10770 2011-07-12  Bruno Haible  <bruno@clisp.org>
10771
10772         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10773         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10774         (Files, Makefile.am): Update.
10775         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10776         * modules/stdlib (Depends-on): Update.
10777
10778 2011-07-12  Bruno Haible  <bruno@clisp.org>
10779
10780         * NEWS: Mention the changes.
10781
10782         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10783         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10784         (Files, Makefile.am): Update.
10785         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10786         * modules/arpa_inet (Depends-on): Update.
10787         * modules/ctype (Depends-on): Update.
10788         * modules/dirent (Depends-on): Update.
10789         * modules/fcntl-h (Depends-on): Update.
10790         * modules/glob (Depends-on): Update.
10791         * modules/iconv-h (Depends-on): Update.
10792         * modules/inttypes-incomplete (Depends-on): Update.
10793         * modules/langinfo (Depends-on): Update.
10794         * modules/locale (Depends-on): Update.
10795         * modules/math (Depends-on): Update.
10796         * modules/netdb (Depends-on): Update.
10797         * modules/poll-h (Depends-on): Update.
10798         * modules/pty (Depends-on): Update.
10799         * modules/search (Depends-on): Update.
10800         * modules/signal (Depends-on): Update.
10801         * modules/spawn (Depends-on): Update.
10802         * modules/stdio (Depends-on): Update.
10803         * modules/stdlib (Depends-on): Update.
10804         * modules/string (Depends-on): Update.
10805         * modules/strings (Depends-on): Update.
10806         * modules/sys_file (Depends-on): Update.
10807         * modules/sys_ioctl (Depends-on): Update.
10808         * modules/sys_select (Depends-on): Update.
10809         * modules/sys_socket (Depends-on): Update.
10810         * modules/sys_stat (Depends-on): Update.
10811         * modules/sys_time (Depends-on): Update.
10812         * modules/sys_times (Depends-on): Update.
10813         * modules/sys_utsname (Depends-on): Update.
10814         * modules/sys_wait (Depends-on): Update.
10815         * modules/termios (Depends-on): Update.
10816         * modules/time (Depends-on): Update.
10817         * modules/unistd (Depends-on): Update.
10818         * modules/wchar (Depends-on): Update.
10819         * modules/wctype-h (Depends-on): Update.
10820         * MODULES.html.sh (Support for building libraries and executables):
10821         Update.
10822
10823         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10824         * modules/snippet/unused-parameter: Renamed from
10825         modules/unused-parameter.
10826         (Files, Makefile.am): Update.
10827         * build-aux/snippet/unused-parameter.h: Renamed from
10828         build-aux/unused-parameter.h.
10829         * modules/selinux-h (Depends-on): Update.
10830         * modules/unistr/base (Depends-on): Update.
10831         * MODULES.html.sh (Core language properties): Update.
10832
10833         Rename module 'link-warning' to 'snippet/link-warning'.
10834         * modules/snippet/link-warning: Renamed from modules/link-warning.
10835         (Files, Makefile.am): Update.
10836         * build-aux/snippet/link-warning.h: Renamed from
10837         build-aux/link-warning.h.
10838         * MODULES.html.sh (Support for building libraries and executables):
10839         Update.
10840
10841         Rename module 'c++defs' to 'snippet/c++defs'.
10842         * modules/snippet/c++defs: Renamed from modules/c++defs.
10843         (Files, Makefile.am): Update.
10844         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10845         * modules/arpa_inet (Depends-on): Update.
10846         * modules/ctype (Depends-on): Update.
10847         * modules/dirent (Depends-on): Update.
10848         * modules/fcntl-h (Depends-on): Update.
10849         * modules/glob (Depends-on): Update.
10850         * modules/iconv-h (Depends-on): Update.
10851         * modules/langinfo (Depends-on): Update.
10852         * modules/locale (Depends-on): Update.
10853         * modules/math (Depends-on): Update.
10854         * modules/netdb (Depends-on): Update.
10855         * modules/poll-h (Depends-on): Update.
10856         * modules/pty (Depends-on): Update.
10857         * modules/search (Depends-on): Update.
10858         * modules/signal (Depends-on): Update.
10859         * modules/spawn (Depends-on): Update.
10860         * modules/stdio (Depends-on): Update.
10861         * modules/stdlib (Depends-on): Update.
10862         * modules/string (Depends-on): Update.
10863         * modules/strings (Depends-on): Update.
10864         * modules/sys_ioctl (Depends-on): Update.
10865         * modules/sys_select (Depends-on): Update.
10866         * modules/sys_socket (Depends-on): Update.
10867         * modules/sys_stat (Depends-on): Update.
10868         * modules/sys_time (Depends-on): Update.
10869         * modules/sys_wait (Depends-on): Update.
10870         * modules/termios (Depends-on): Update.
10871         * modules/time (Depends-on): Update.
10872         * modules/unistd (Depends-on): Update.
10873         * modules/wchar (Depends-on): Update.
10874         * modules/wctype-h (Depends-on): Update.
10875
10876         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10877         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10878         (Files, Makefile.am): Update.
10879         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10880         * modules/argv-iter (Depends-on): Update.
10881         * modules/arpa_inet (Depends-on): Update.
10882         * modules/dirent (Depends-on): Update.
10883         * modules/fcntl-h (Depends-on): Update.
10884         * modules/fnmatch (Depends-on): Update.
10885         * modules/getopt-posix (Depends-on): Update.
10886         * modules/glob (Depends-on): Update.
10887         * modules/iconv-h (Depends-on): Update.
10888         * modules/inttypes-incomplete (Depends-on): Update.
10889         * modules/locale (Depends-on): Update.
10890         * modules/math (Depends-on): Update.
10891         * modules/netdb (Depends-on): Update.
10892         * modules/search (Depends-on): Update.
10893         * modules/signal (Depends-on): Update.
10894         * modules/spawn (Depends-on): Update.
10895         * modules/stdio (Depends-on): Update.
10896         * modules/stdlib (Depends-on): Update.
10897         * modules/string (Depends-on): Update.
10898         * modules/strings (Depends-on): Update.
10899         * modules/sys_socket (Depends-on): Update.
10900         * modules/sys_stat (Depends-on): Update.
10901         * modules/sys_time (Depends-on): Update.
10902         * modules/sys_times (Depends-on): Update.
10903         * modules/sys_utsname (Depends-on): Update.
10904         * modules/time (Depends-on): Update.
10905         * modules/unistd (Depends-on): Update.
10906         * modules/wchar (Depends-on): Update.
10907         * MODULES.html.sh (Support for building libraries and executables):
10908         Update.
10909
10910 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10911
10912         Improvements on _Noreturn and related modules.
10913
10914         modules/_Exit-tests: test _Noreturn too
10915         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10916         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10917         (main): Use them.
10918
10919         stdnoreturn, stdnoreturn-tests: remove modules
10920         They're not needed here and a bit premature for use elsewhere.  See
10921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10922         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10923         * tests/test-stdnoreturn.c: Remove files.
10924         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10925         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10926         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10927         and using noreturn.
10928         * modules/openat, modules/sigpipe-die, modules/xalloc:
10929         * modules/xmemdup0, modules/xstrtol:
10930         Remove dependency on stdnoreturn.
10931
10932         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10933         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10934         Reparenthesize to avoid GCC warning.
10935         Support Microsoft's syntax.
10936         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10937
10938         _Noreturn-tests: remove module
10939         * modules/_Noreturn-tests: Remove.
10940         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10941         * tests/test-_Noreturn.c: Remove.
10942         * tests/test-stdnoreturn.c: Merge from the old
10943         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10944
10945 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10946
10947         _Noreturn, stdnoreturn, and related modules.
10948
10949         * top/maint.mk: Adjust to new noreturn support.
10950         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10951         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10952
10953         xalloc: use stdnoreturn.h
10954         * lib/xalloc.h: Include <stdnoreturn.h>.
10955         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10956         * modules/xalloc (Depends-on): Add stdnoreturn.
10957
10958         xstrtol: use stdnoreturn.h
10959         * lib/xstrtol.h: Include <stdnoreturn.h>.
10960         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10961         * modules/xstrtol (Depends-on): Add stdnoreturn.
10962
10963         xmemdup0: use stdnoreturn.h
10964         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10965         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10966         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10967
10968         sigpipe-die: use stdnoreturn.h
10969         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10970         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10971         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10972
10973         openat: use stdnoreturn.h
10974         * lib/openat.h: Include <stdnoreturn.h>.
10975         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10976         * modules/openat (Depends-on): Add stdnoreturn.
10977
10978         * lib/openat-die.c (openat_save_fail): Modernize comment.
10979
10980         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10981
10982         * lib/glthread/thread.h: Modernize comment.
10983
10984         obstack: use _Noreturn
10985         * lib/obstack.c (__attribute__): Remove macro.
10986         (print_and_abort): Use _Noreturn.
10987
10988         c-stack: use _Noreturn
10989         * lib/c-stack.c (die, overflow_handler, segv_handler):
10990         Use _Noreturn rather than __attribute__((noreturn)).
10991
10992         argmatch-tests, exclude_tests: use _Noreturn
10993         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10994         Remove.
10995         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10996
10997         stdlib: use _Noreturn
10998         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10999         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11000         * modules/stdlib (Depends-on): Add _Noreturn.
11001         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11002
11003         stdnoreturn-tests: new module
11004         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11005
11006         stdnoreturn: new module
11007         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11008         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11009
11010         _Noreturn-tests: new module
11011         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11012
11013         _Noreturn: new module
11014         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11015         New section, mentioning it.
11016         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11017
11018         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11019
11020 2011-07-11  Eric Blake  <eblake@redhat.com>
11021
11022         ffs: new module
11023         * modules/ffs: New file.
11024         * m4/ffs.m4: Likewise.
11025         * lib/ffs.c: Likewise.
11026         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11027         * modules/strings (Makefile.am): Substitute witness.
11028         (Depends-on): Add c++defs.
11029         * lib/strings.in.h (ffs): Declare.
11030         * modules/ffs-tests: New test file.
11031         * tests/test-ffs.c: Test new module.
11032         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11033         * doc/posix-functions/ffs.texi (ffs): Likewise.
11034
11035         regex: avoid compiler warning
11036         * lib/regex.c (includes): Include <strings.h>, for use of
11037         strcasecmp in regcomp.c.
11038         Reported by Joachim Schmitz.
11039
11040 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11041
11042         stdint: respect system's intmax_t if INTMAX_MAX
11043         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11044         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11045         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11046         long but int64_t is long long, and where we will clash with the
11047         system intmax_t if we override it.  See
11048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11049         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11050         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11051         similarly for UINTMAX_C.
11052
11053 2011-07-08  Bruno Haible  <bruno@clisp.org>
11054
11055         pthread_sigmask tests: Avoid a compiler warning.
11056         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11057         non-zero.
11058
11059         sigprocmask tests: A better way to avoid a compiler warning.
11060         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11061         (main): Complain if system() returns non-zero.
11062         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11063
11064 2011-07-08  Bruno Haible  <bruno@clisp.org>
11065
11066         pthread_sigmask: Work around IRIX bug.
11067         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11068         bug.
11069         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11070         there may be unblocked pending signals.
11071         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11072
11073 2011-07-08  Bruno Haible  <bruno@clisp.org>
11074
11075         pthread_sigmask: Work around Cygwin bug.
11076         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11077         bug.
11078         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11079         the system's pthread_sigmask function.
11080         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11081
11082 2011-07-08  Bruno Haible  <bruno@clisp.org>
11083
11084         pthread_sigmask: Work around bug in single-threaded implementation.
11085         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11086         FreeBSD, HP-UX, Solaris bug.
11087         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11088         * lib/pthread_sigmask.c: Include <stddef.h>.
11089         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11090         the system's pthread_sigmask function.
11091         * modules/pthread_sigmask (configure.ac): Invoke
11092         gl_PREREQ_PTHREAD_SIGMASK.
11093         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11094         HP-UX, Solaris.
11095
11096 2011-07-08  Eric Blake  <eblake@redhat.com>
11097
11098         test-sigprocmask: avoid compiler warning
11099         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11100         * tests/test-sigprocmask.c (main): Use it to silence warning.
11101         Reported by Jim Meyering.
11102
11103         test-snprintf: avoid compiler warning
11104         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11105         * tests/test-vsnprintf.c (main): Likewise.
11106         Reported by Jim Meyering.
11107
11108 2011-07-08  Bruno Haible  <bruno@clisp.org>
11109
11110         Tests for module 'pthread_sigmask'.
11111         * modules/pthread_sigmask-tests: New file.
11112         * tests/test-pthread_sigmask1.c: New file, based on
11113         tests/test-sigprocmask.c.
11114         * tests/test-pthread_sigmask2.c: New file.
11115
11116 2011-07-08  Jim Meyering  <meyering@redhat.com>
11117
11118         test-getopt.h: avoid warning about an unused variable
11119         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11120
11121 2011-07-07  Jim Meyering  <meyering@redhat.com>
11122
11123         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11124         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11125         now that it no longer contains leading TABs.
11126         Remove unused "url=FIXME" statement.
11127
11128 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11129
11130         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11131         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11132         When gl_THREADLIB is not in use, assume that the POSIX sematics
11133         are desired.  This is better for Emacs, which uses POSIX semantics
11134         on GNUish and/or POSIXish platforms, and does not use threads at
11135         all otherwise.
11136
11137         pthread_sigmask: fix typo when testing for libraries
11138         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11139         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11140
11141 2011-07-08  Eric Blake  <eblake@redhat.com>
11142
11143         fts: introduce FTS_NOATIME
11144         * lib/fts_.h (FTS_NOATIME): New bit flag.
11145         (FTS_OPTIONMASK): Adjust.
11146         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11147         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11148
11149 2011-07-08  Bruno Haible  <bruno@clisp.org>
11150
11151         Tests for module 'thread'.
11152         * modules/thread-tests: New file.
11153         * tests/test-thread_self.c: New file.
11154         * tests/test-thread_create.cc: New file.
11155
11156 2011-07-08  Bruno Haible  <bruno@clisp.org>
11157
11158         thread: Avoid gcc warnings when using gl_thread_self().
11159         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11160         'void *'.
11161         (gl_thread_self_pointer): Update.
11162
11163 2011-07-07  Bruno Haible  <bruno@clisp.org>
11164
11165         signal-c++-tests: Check declaration of pthread_sigmask.
11166         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11167         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11168         $(LIB_PTHREAD_SIGMASK).
11169
11170 2011-07-07  Bruno Haible  <bruno@clisp.org>
11171
11172         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11173         * lib/signal.in.h (pthread_sigmask): Override if
11174         REPLACE_PTHREAD_SIGMASK is 1.
11175         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11176         REPLACE_PTHREAD_SIGMASK.
11177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11178         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11179         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11180         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11181         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11182
11183 2011-07-07  Bruno Haible  <bruno@clisp.org>
11184
11185         pthread_sigmask: Ensure declaration in <signal.h>.
11186         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11187         include <pthread.h>.
11188         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11189         problem.
11190
11191 2011-07-07  Bruno Haible  <bruno@clisp.org>
11192
11193         pthread_sigmask: Document the module.
11194         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11195
11196 2011-07-07  Bruno Haible  <bruno@clisp.org>
11197
11198         pthread_sigmask: Follow gnulib conventions.
11199         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11200         gl_PTHREAD_SIGMASK.
11201         * modules/pthread_sigmask (configure.ac): Update.
11202
11203 2011-07-07  Bruno Haible  <bruno@clisp.org>
11204
11205         pthread_sigmask: Make declaration C++ safe.
11206         * lib/signal.in.h: In two special conditions, just do an #include_next.
11207         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11208         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11209         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11210         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11211         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11212         not REPLACE_PTHREAD_MASK.
11213         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11214         not REPLACE_PTHREAD_MASK.
11215         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11216
11217 2011-07-07  Bruno Haible  <bruno@clisp.org>
11218
11219         pthread_sigmask: Fix return value.
11220         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11221         * lib/pthread_sigmask.c: New file.
11222         * modules/pthread_sigmask (Files): Add it.
11223         (configure.ac): Invoke AC_LIBOBJ.
11224
11225 2011-07-07  Eric Blake  <eblake@redhat.com>
11226
11227         getopt: more portable argv creation
11228         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11229         const, use char arrays rather than strings.
11230         Suggested by Paul Eggert.
11231
11232 2011-07-07  Bruno Haible  <bruno@clisp.org>
11233
11234         Tests for module 'sigprocmask'.
11235         * modules/sigprocmask-tests: New file.
11236         * tests/test-sigprocmask.c: New file.
11237
11238 2011-07-07  Bruno Haible  <bruno@clisp.org>
11239
11240         float tests: Tweak.
11241         * tests/test-float.c (main): Tweak skip message.
11242
11243 2011-07-07  Eric Blake  <eblake@redhat.com>
11244
11245         getopt: avoid compiler warning during configure
11246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11247         assigning string literals to non-const pointer.
11248
11249         getopt-gnu: avoid crash in glibc getopt
11250         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11251         * tests/test-getopt.h (test_getopt): Enhance test.
11252         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11253         * doc/posix-functions/getopt.texi (getopt): Document it.
11254         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11255         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11256         Likewise.
11257
11258 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11259
11260         getopt: handle W; without long options in getopt [BZ #12922]
11261         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11262         but no long options are defined, just return 'W'.
11263
11264 2011-07-07  Bruno Haible  <bruno@clisp.org>
11265
11266         Avoid literal tabs.
11267         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11268         variable containing a tab instead of a literal tab.
11269         Reported by Jim Meyering.
11270
11271 2011-07-07  Bruno Haible  <bruno@clisp.org>
11272
11273         Comments.
11274         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11275
11276 2011-07-06  Bruno Haible  <bruno@clisp.org>
11277
11278         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11279         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11280         <winsock2.h>.
11281         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11282         lib/sys_socket.in.h.
11283         (close, gethostname): Hide declarations from <winsock2.h>.
11284         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11285         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11286         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11287         (select): Don't override if gnulib's <sys/select.h> was already
11288         included.
11289         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11290         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11291         setsockopt, shutdown, select): Tweak indentation.
11292
11293 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11294
11295         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11296         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11297         in an application that does not use the sys_select module.
11298
11299 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11300
11301         poll: do not return 0 on timeout=-1
11302         * lib/poll.c: Loop with yield if no events occured
11303
11304 2011-07-06  Eric Blake  <eblake@redhat.com>
11305
11306         pthread_sigmask: always replace when not using pthread
11307         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11308         replacement when using some threading other than pthread.  Fix
11309         logic bug.
11310
11311 2011-07-06  Bruno Haible  <bruno@clisp.org>
11312
11313         Comments.
11314         * m4/printf.m4: Update comments about mingw.
11315
11316 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11317
11318         sys_select: define sigset_t more portably
11319         * lib/sys_select.in.h: Always include <sys/types.h>, since
11320         we now need sigset_t and mingw defines it there.
11321         Include <signal.h> before split inclusion guard, to avoid
11322         mishaps on Solaris, whose <signal.h> eventually includes us.
11323         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11324         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11325         which come from ...
11326         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11327         gl_CHECK_TYPE_SIGSET_T.
11328         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11329         does the real work.
11330         * modules/sys_select (Depends-on): Add 'signal'.
11331
11332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11333         Suggested by Bruno Haible.
11334
11335         pselect: Use pthread_sigmask, not sigprocmask.
11336         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11337         multithreaded apps better than sigprocmask does.
11338         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11339         sigprocmask directly.
11340
11341 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11342
11343         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11344         Don't #undef,  since we don't need any underlying pselect.
11345         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11346         (Depends-on): Add select.
11347         (Link): Add $(LIBSOCKET).
11348         These changes suggested by Bruno Haible.
11349
11350         pselect: document better
11351         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11352         * doc/posix-functions/pselect.texi (pselect): Document new module.
11353
11354         pthread_sigmask: new module
11355         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11356         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11357         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11358         This is done only as a macro; I don't know how well that'll
11359         work for C++.  Move <sys/types.h> include before the include_next,
11360         to avoid mishap on Solaris.
11361         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11362         * modules/signal (Makefile.am): Substitute the check's results.
11363         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11364
11365         test-pselect: new module
11366         * modules/pselect-tests, tests/test-pselect.c: New files.
11367         * tests/test-select.c, tests/test-sys_select-c++.cc:
11368         If TEST_PSELECT is defined, test pselect instead of testing select.
11369
11370         * tests/test-sys_select.c (sigset_t): Test for it, too.
11371         Suggested by Bruno Haible.
11372
11373 2011-07-05  Eric Blake  <eblake@redhat.com>
11374
11375         snprintf: guarantee %1$d, for libintl
11376         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11377         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11378         * doc/posix-functions/snprintf.texi (snprintf): Update.
11379         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11380         * tests/test-snprintf.c (main): Enhance test.
11381         * tests/test-vsnprintf.c (main): Likewise.
11382
11383 2011-07-05  Jim Meyering  <meyering@redhat.com>
11384
11385         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11386         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11387         per Bruno's request, to accommodate this idiom (no space after "#")
11388         even when the function is inside an #if block:
11389         char *
11390         gets (char *s)
11391         #undef gets
11392         {
11393           ...
11394         }
11395
11396 2011-07-04  Jim Meyering  <meyering@redhat.com>
11397
11398         maint: indent with spaces, not TABs, and add a rule to check this
11399         * tests/test-userspec.c: Indent with spaces, not TABs.
11400         * tests/test-argp.c: Likewise.
11401         * tests/test-c-stack2.sh: Likewise.
11402         * tests/test-parse-duration.sh: Likewise
11403         * m4/strtod.m4: Likewise.
11404         * m4/alloca.m4: Likewise.
11405         * m4/pselect.m4: Likewise.
11406         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11407
11408 2011-07-03  Jim Meyering  <meyering@redhat.com>
11409
11410         maint.mk: correct omissions in prohibit_argmatch_without_use check
11411         This rule would mistakenly report that argmatch.h is included without
11412         use even when both the argmatch and invalid_arg macro were used.
11413         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11414         of argmatch and invalid_arg.
11415
11416 2011-07-03  Bruno Haible  <bruno@clisp.org>
11417
11418         Comments about EINTR.
11419         * lib/safe-read.h: Explain the purpose of this module.
11420         * lib/safe-write.h: Likewise.
11421         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11422         module.
11423         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11424         module.
11425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11426
11427 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11428
11429         xnanosleep: Rewrite to use new dtotimespec module.
11430         It has the conversion code that used to be in xnanosleep.
11431         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11432         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11433         (TIME_T_MAX): Remove.
11434         (xnanosleep): Rewrite in terms of dtotimespec.
11435         * modules/xnanosleep (Depends-on): Add dtotimespec.
11436         Remove intprops, stdbool.
11437
11438         timespec-add, timespec-sub: new modules
11439         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11440         * lib/timespec-add.c, lib/timespec-sub.c:
11441         * modules/timespec-add, modules/timespec-sub: New files.
11442
11443         dtotimespec: new module
11444         * lib/timespec.h (dtotimespec): New decl.
11445         * lib/dtotimespec.c, modules/dtotimespec: New files.
11446
11447         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11448
11449         pselect: new module
11450         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11451         (pselect): New decls.
11452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11453         since the standard pselect decl uses 'restrict'.
11454         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11455         HAVE_PSELECT, REPLACE_PSELECT.
11456         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11457         HAVE_PSELECT, REPLACE_PSELECT.
11458         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11459
11460         sys_select: don't depend on sys_socket
11461         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11462         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11463         This fix works on GNU and GNU-like platforms, but has not been tested
11464         on native Windows.
11465         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11466         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11467         gl_HEADER_SYS_SOCKET.
11468         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11469         gl_PREREQ_SYS_H_WINSOCK2.
11470
11471 2011-06-29  Eric Blake  <eblake@redhat.com>
11472
11473         pipe2: fix C89 compile problem
11474         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11475         Reported by Bruno Haible.
11476
11477         pipe, pipe2: don't corrupt fd on error
11478         * lib/pipe.c (pipe): Leave fd unchanged on error.
11479         * lib/pipe2.c (pipe2): Likewise.
11480         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11481         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11482
11483 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11484
11485         mmap-anon: do not use regular expressions inadvertently
11486         * m4/mmap-anon.m4: Remove trailing period from strings sought
11487         in the output.
11488
11489 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11490
11491         nanosleep: fix integer overflow problem
11492         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11493         arithmetic wraps around on overflow.
11494
11495         nanosleep: simplify carrying
11496         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11497         first call to the underyling nanosleep, not for the last one.
11498         This doesn't fix any bugs, but it simplifies the computation of
11499         the remaining delay.  Found while auditing integer overflow issues.
11500
11501         dup2: remove test for existence of fcntl
11502         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11503         "#if HAVE_FCNTL", in the configure-time test program.
11504         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11505         and therefore speeds up "configure" a bit.  Found while
11506         adding the dup2 module to Emacs.
11507
11508 2011-06-24  Eric Blake  <eblake@redhat.com>
11509
11510         maint.mk: enhance useless header checks
11511         * top/maint.mk (_sc_header_without_use): Check both include
11512         styles.
11513         (sc_prohibit_assert_without_use)
11514         (sc_prohibit_close_stream_without_use)
11515         (sc_prohibit_getopt_without_use)
11516         (sc_prohibit_quotearg_without_use)
11517         (sc_prohibit_quote_without_use)
11518         (sc_prohibit_long_options_without_use)
11519         (sc_prohibit_inttostr_without_use)
11520         (sc_prohibit_ignore_value_without_use)
11521         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11522         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11523         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11524         (sc_prohibit_hash_pjw_without_use)
11525         (sc_prohibit_safe_read_without_use)
11526         (sc_prohibit_argmatch_without_use)
11527         (sc_prohibit_canonicalize_without_use)
11528         (sc_prohibit_root_dev_ino_without_use)
11529         (sc_prohibit_openat_without_use)
11530         (sc_prohibit_c_ctype_without_use)
11531         (sc_prohibit_signal_without_use)
11532         (sc_prohibit_stdio--_without_use)
11533         (sc_prohibit_stdio-safer_without_use)
11534         (sc_prohibit_strings_without_use)
11535         (sc_prohibit_intprops_without_use)
11536         (sc_prohibit_stddef_without_use)
11537         (sc_prohibit_xfreopen_without_use): Update clients.
11538
11539 2011-06-24  Jim Meyering  <meyering@redhat.com>
11540
11541         syntax-check: keep one maint.mk rule in sync with its header
11542         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11543         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11544         I prefer to avoid temporary files here, so use <(...), but that
11545         is not supported by /bin/sh, so...
11546         (SHELL): Define to /bin/bash.
11547
11548 2011-06-24  Eric Blake  <eblake@redhat.com>
11549
11550         maint.mk: update sc_prohibit_intprops_without_use
11551         * top/maint.mk (_intprops_names): Match recent changes.
11552
11553 2011-06-24  Bruno Haible  <bruno@clisp.org>
11554
11555         strerror-override: No-op tweak.
11556         * lib/strerror-override.h (strerror_override): Reorder conditions,
11557         for consistency with lib/strerror-override.c.
11558
11559 2011-06-23  Eric Blake  <eblake@redhat.com>
11560
11561         maint.mk: test further PATH_MAX issues
11562         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11563         (sc_prohibit_path_max_allocation): ...and also test alloca.
11564         Suggested by Jim Meyering.
11565
11566 2011-06-22  Eric Blake  <eblake@redhat.com>
11567
11568         maint.mk: add syntax-check to avoid char[PATH_MAX]
11569         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11570
11571         stat: be robust to PATH_MAX definition
11572         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11573         * modules/stat (Depends-on): Add verify.
11574
11575         link: work around IRIX bug
11576         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11577         * lib/link.c (rpl_link): Work around it.
11578         * tests/test-link.h (test_link): Enhance test.
11579         * doc/posix-functions/link.texi (link): Document the bug.
11580
11581         getopt: silence clang warning
11582         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11583         dereference.
11584         Reported by Gustavo Martin Domato.
11585
11586 2011-06-22  Jim Meyering  <meyering@redhat.com>
11587
11588         bootstrap: do not insert a blank line into each .gitignore file
11589         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11590
11591 2011-06-21  Eric Blake  <eblake@redhat.com>
11592
11593         perror: test for output mismatch
11594         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11595         perror on IRIX.
11596
11597         strerror_r: fix OpenBSD behavior on out-of-range
11598         * lib/strerror_r.c (strerror_r): Always use maximal string.
11599         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11600
11601         strerror_r: fix OpenBSD behavior on 0
11602         * lib/strerror-override.c (strerror_override): Also override 0
11603         when needed.
11604         * lib/strerror-override.h (strerror_override): Likewise.
11605         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11606         earlier.
11607         * lib/strerror_r.c (strerror_r): Likewise.
11608         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11609         behavior...
11610         (gl_FUNC_STRERROR_0): ...into new macro.
11611         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11612         is overridden.
11613         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11614         * modules/strerror-override (Files): Add strerror.m4.
11615         (configure.ac): Also provide override for 0 when needed.
11616         * doc/posix-functions/strerror.texi (strerror): Document this.
11617         * doc/posix-functions/perror.texi (perror): Likewise.
11618
11619         perror: adjust array size
11620         * modules/perror (Depends-on): Add strerror-override.
11621         * lib/perror.c (perror): Use it to avoid magic number.
11622
11623         strerror-override: reduce size
11624         * lib/strerror-override.c (strerror_override): Use fewer lines.
11625
11626 2011-06-20  Bruno Haible  <bruno@clisp.org>
11627
11628         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11629         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11630
11631 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11632
11633         alloca: port to compilers that can optimize like GCC 4.6.0
11634         * lib/alloca.c (find_stack_direction): New signature, taken from
11635         Autoconf git.  This works with GCC 4.6.0.  This code should never
11636         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11637         be used with other compilers that optimize as well as GCC 4.6.0 does.
11638         (alloca): Adjust to new signature.
11639         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11640         New macro, which patches Autoconf in a similar way.
11641
11642         c-stack: stop worrying about stack direction
11643         * lib/c-stack.c (find_stack_direction): Remove.
11644         (segv_handler): Don't worry about stack direction growth, as it's
11645         too much of a pain to configure this correctly, given how compilers
11646         are optimizing-away our stack-growth detection code.  Instead, assume
11647         that any access to just before or just after the stack is OK.
11648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11649         Don't require AC_FUNC_ALLOCA; no longer needed.
11650
11651 2011-06-20  Eric Blake  <eblake@redhat.com>
11652
11653         test-stat: don't allocate PATH_MAX bytes
11654         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11655         PATH_MAX-sized buffer.
11656         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11657         * modules/stat-tests (Depends-on): Likewise.
11658         * tests/test-fstatat.c (includes): Drop pathmax.h.
11659         * tests/test-stat.c (includes): Likewise.
11660         Reported by Bruno Haible.
11661
11662 2011-06-20  Bruno Haible  <bruno@clisp.org>
11663
11664         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11665         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11666         * lib/float.c: New file.
11667         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11668         REPLACE_FLOAT_LDBL.
11669         * modules/float (Files): Add lib/float.c.
11670         (configure.ac): Invoke AC_LIBOBJ.
11671         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11672
11673 2011-06-20  Bruno Haible  <bruno@clisp.org>
11674
11675         Tests for module 'float'.
11676         * modules/float-tests: New file.
11677         * tests/test-float.c: New file.
11678
11679 2011-06-19  Bruno Haible  <bruno@clisp.org>
11680
11681         isinf: Coding style.
11682         * lib/isinf.c: Use GNU coding style.
11683
11684 2011-06-19  Bruno Haible  <bruno@clisp.org>
11685
11686         linkat test: Avoid test failure on AIX 7.1.
11687         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11688         * tests/test-link.h (test_link): Likewise.
11689
11690 2011-06-19  Bruno Haible  <bruno@clisp.org>
11691
11692         pread test: Avoid test failure on OpenBSD 4.9.
11693         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11694
11695 2011-06-19  Bruno Haible  <bruno@clisp.org>
11696
11697         sprintf-posix: Fix test failure on AIX 7.1.
11698         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11699         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11700         on AIX.
11701         * doc/posix-functions/fprintf.texi: Likewise.
11702         * doc/posix-functions/printf.texi: Likewise.
11703         * doc/posix-functions/snprintf.texi: Likewise.
11704         * doc/posix-functions/sprintf.texi: Likewise.
11705         * doc/posix-functions/vdprintf.texi: Likewise.
11706         * doc/posix-functions/vfprintf.texi: Likewise.
11707         * doc/posix-functions/vprintf.texi: Likewise.
11708         * doc/posix-functions/vsnprintf.texi: Likewise.
11709         * doc/posix-functions/vsprintf.texi: Likewise.
11710
11711 2011-06-19  Bruno Haible  <bruno@clisp.org>
11712
11713         roundl-ieee: Fix test failure on AIX 7.1.
11714         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11715         * doc/posix-functions/roundl.texi: Mention problem with negative
11716         arguments.
11717
11718 2011-06-19  Bruno Haible  <bruno@clisp.org>
11719
11720         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11721         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11722         * doc/posix-functions/round.texi: Mention problem with negative
11723         arguments.
11724         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11725
11726 2011-06-19  Bruno Haible  <bruno@clisp.org>
11727
11728         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11729         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11730         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11731         * doc/posix-functions/roundf.texi: Mention problem with negative
11732         arguments.
11733         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11734
11735 2011-06-19  Bruno Haible  <bruno@clisp.org>
11736
11737         ceilf-ieee: Work around bug on MacOS X 10.5.
11738         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11739
11740         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11741         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11742         IEEE compliant, avoid compiler optimizations.
11743         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11744         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11745         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11746         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11747         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11748         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11749         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11750         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11751         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11752         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11753
11754 2011-06-19  Bruno Haible  <bruno@clisp.org>
11755
11756         ceilf-ieee: Work around bug on AIX 7.1.
11757         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11758         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11759
11760 2011-06-19  Bruno Haible  <bruno@clisp.org>
11761
11762         ceil-ieee: Work around bug on AIX 7.1.
11763         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11764         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11765
11766 2011-06-18  Bruno Haible  <bruno@clisp.org>
11767
11768         fsync test: Avoid test failure on MacOS X and AIX.
11769         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11770         EINVAL.
11771
11772 2011-06-18  Bruno Haible  <bruno@clisp.org>
11773
11774         openat, fdopendir tests: Fix link errors.
11775         * modules/openat-tests (Depends-on): Add progname.
11776         * modules/fdopendir-tests (Depends-on): Likewise.
11777         * tests/test-fchownat.c: Include progname.h.
11778         (main): Call set_program_name.
11779         * tests/test-fstatat.c: Include progname.h.
11780         (main): Call set_program_name.
11781         * tests/test-mkdirat.c: Include progname.h.
11782         (main): Call set_program_name.
11783         * tests/test-openat.c: Include progname.h.
11784         (main): Call set_program_name.
11785         * tests/test-unlinkat.c: Include progname.h.
11786         (main): Call set_program_name.
11787         * tests/test-fdopendir.c: Include progname.h.
11788         (main): Call set_program_name.
11789
11790 2011-06-18  Bruno Haible  <bruno@clisp.org>
11791
11792         Doc update.
11793         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11794         HP-UX.
11795         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11796
11797 2011-06-18  Bruno Haible  <bruno@clisp.org>
11798
11799         getcwd tests: Avoid compilation error on HP-UX 11.31.
11800         * modules/getcwd-tests (Depends-on): Add pathmax.
11801         * tests/test-getcwd.c: Include pathmax.h.
11802
11803 2011-06-18  Bruno Haible  <bruno@clisp.org>
11804
11805         isfinite, isinf: Fix link error on AIX 6 and 7.
11806         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11807         needed, also test the macro with a 'float' argument.
11808         * m4/isinf.m4 (gl_ISINF): Likewise.
11809
11810 2011-06-18  Bruno Haible  <bruno@clisp.org>
11811
11812         getloadavg: Don't clobber LIBS. Regression from previous commit.
11813         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11814         AC_CHECK_LIB from here...
11815         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11816         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11817         gl_func_getloadavg_done.
11818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11819
11820 2011-06-18  Bruno Haible  <bruno@clisp.org>
11821
11822         clean-temp: Improve documentation.
11823         * lib/clean-temp.h: Explain better how to use this module.
11824         Reported by John Darrington <john@darrington.wattle.id.au>.
11825
11826 2011-06-17  Bruno Haible  <bruno@clisp.org>
11827
11828         pread, pwrite: Avoid cc warning on AIX.
11829         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11830         (pwrite): Likewise.
11831
11832 2011-06-17  Bruno Haible  <bruno@clisp.org>
11833
11834         spawn-pipe tests: Fix link error.
11835         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11837
11838 2011-06-17  Bruno Haible  <bruno@clisp.org>
11839
11840         Tests: Remove unnecessary dependency.
11841         * modules/canonicalize-tests (Depends-on): Remove progname.
11842         * modules/chown-tests (Depends-on): Likewise.
11843         * modules/dirname-tests (Depends-on): Likewise.
11844         * modules/fdopendir-tests (Depends-on): Likewise.
11845         * modules/fdutimensat-tests (Depends-on): Likewise.
11846         * modules/hash-tests (Depends-on): Likewise.
11847         * modules/lchown-tests (Depends-on): Likewise.
11848         * modules/linkat-tests (Depends-on): Likewise.
11849         * modules/renameat-tests (Depends-on): Likewise.
11850         * modules/spawn-pipe-tests (Depends-on): Likewise.
11851         * modules/utimensat-tests (Depends-on): Likewise.
11852
11853 2011-06-17  Bruno Haible  <bruno@clisp.org>
11854
11855         spawn-pipe tests: Fix link error.
11856         * tests/test-spawn-pipe-child.c: Undefine fflush.
11857
11858 2011-06-17  Bruno Haible  <bruno@clisp.org>
11859
11860         Fix tests link errors.
11861         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11862         * modules/chown-tests (Makefile.am): Don't link test-chown with
11863         LIBINTL.
11864         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11865         LIBINTL.
11866         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11867         LIBINTL.
11868         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11869         LIBINTL.
11870
11871 2011-06-16  Bruno Haible  <bruno@clisp.org>
11872
11873         crypto/gc-sha1: Fix recent regression.
11874         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11875         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11876
11877         crypto/gc-md5: Fix recent regression.
11878         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11879
11880         crypto/gc-md4: Fix recent regression.
11881         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11882         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11883
11884         crypto/gc-arctwo: Fix recent regression.
11885         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11886         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11887
11888         crypto/gc-rijndael: Fix recent regression.
11889         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11890         (configure.ac): Invoke AC_LIBOBJ here.
11891         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11892         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11893
11894         crypto/gc-hmac-sha1: Fix recent regression.
11895         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11896         (configure.ac): Invoke AC_LIBOBJ here.
11897         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11899
11900         crypto/gc-hmac-md5: Fix recent regression.
11901         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11902         (configure.ac): Invoke AC_LIBOBJ here.
11903         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11905
11906         crypto/gc-des: Fix recent regression.
11907         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11908         (configure.ac): Invoke AC_LIBOBJ here.
11909         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11911
11912         crypto/gc-arcfour: Fix recent regression.
11913         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11914         (configure.ac): Invoke AC_LIBOBJ here.
11915         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11916         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11917
11918 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11919
11920         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11921         After the 2011-05-21 change, this macro requires
11922         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11923         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11924
11925 2011-06-16  Bruno Haible  <bruno@clisp.org>
11926
11927         fprintftime: Move AC_LIBOBJ invocations to module description.
11928         * m4/fprintftime.m4: Remove file.
11929         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11930         (configure.ac): Remove gl_FPRINTFTIME call.
11931         (Makefile.am): Augment lib_SOURCES.
11932         Reported by Jim Meyering.
11933
11934 2011-06-16  Bruno Haible  <bruno@clisp.org>
11935
11936         tmpfile-safer: Finish 2011-05-23 commit.
11937         * m4/stdio-safer.m4: Really remove file.
11938         Reported by Jim Meyering.
11939
11940 2011-06-16  Bruno Haible  <bruno@clisp.org>
11941
11942         syntax-check: Fix typo.
11943         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11944         printf-posix.m4.
11945         Reported by Jim Meyering.
11946
11947 2011-06-13  Jim Meyering  <meyering@redhat.com>
11948
11949         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11950         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11951
11952 2011-05-23  Bruno Haible  <bruno@clisp.org>
11953
11954         yesno: Move AC_LIBOBJ invocations to module description.
11955         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11956         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11957
11958 2011-05-23  Bruno Haible  <bruno@clisp.org>
11959
11960         xstrtol: Move AC_LIBOBJ invocations to module description.
11961         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11962         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11963
11964 2011-05-23  Bruno Haible  <bruno@clisp.org>
11965
11966         xstrtold: Move AC_LIBOBJ invocations to module description.
11967         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11968         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11969
11970 2011-05-23  Bruno Haible  <bruno@clisp.org>
11971
11972         xstrtod: Move AC_LIBOBJ invocations to module description.
11973         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11974         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11975
11976 2011-05-23  Bruno Haible  <bruno@clisp.org>
11977
11978         xnanosleep: Move AC_LIBOBJ invocations to module description.
11979         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11980         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11981
11982 2011-05-23  Bruno Haible  <bruno@clisp.org>
11983
11984         xgetcwd: Move AC_LIBOBJ invocations to module description.
11985         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11986         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11987
11988 2011-05-23  Bruno Haible  <bruno@clisp.org>
11989
11990         xalloc: Move AC_LIBOBJ invocations to module description.
11991         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11992         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11993
11994 2011-05-23  Bruno Haible  <bruno@clisp.org>
11995
11996         write-any-file: Move AC_LIBOBJ invocations to module description.
11997         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11998         invocation.
11999         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12000
12001 2011-05-23  Bruno Haible  <bruno@clisp.org>
12002
12003         utimens: Move AC_LIBOBJ invocations to module description.
12004         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12005         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12006
12007 2011-05-23  Bruno Haible  <bruno@clisp.org>
12008
12009         utimecmp: Move AC_LIBOBJ invocations to module description.
12010         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12011         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12012
12013 2011-05-23  Bruno Haible  <bruno@clisp.org>
12014
12015         userspec: Move AC_LIBOBJ invocations to module description.
12016         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12017         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12018
12019 2011-05-23  Bruno Haible  <bruno@clisp.org>
12020
12021         unlinkdir: Move AC_LIBOBJ invocations to module description.
12022         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12023         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12024
12025 2011-05-23  Bruno Haible  <bruno@clisp.org>
12026
12027         unistd-safer: Move AC_LIBOBJ invocations to module description.
12028         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12029         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12030
12031 2011-05-23  Bruno Haible  <bruno@clisp.org>
12032
12033         tempname: Move AC_LIBOBJ invocations to module description.
12034         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12035         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12036
12037 2011-05-23  Bruno Haible  <bruno@clisp.org>
12038
12039         strftime: Move AC_LIBOBJ invocations to module description.
12040         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12041         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12042
12043 2011-05-23  Bruno Haible  <bruno@clisp.org>
12044
12045         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12046         * m4/stdlib-safer.m4: Remove file.
12047         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12048         (configure.ac): Remove gl_STDLIB_SAFER call.
12049         (Makefile.am): Augment lib_SOURCES.
12050
12051 2011-05-23  Bruno Haible  <bruno@clisp.org>
12052
12053         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12054         * m4/stdio-safer.m4: Remove file.
12055         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12056         (configure.ac): Remove gl_TMPFILE_SAFER call.
12057         (Makefile.am): Augment lib_SOURCES.
12058
12059 2011-05-23  Bruno Haible  <bruno@clisp.org>
12060
12061         popen-safer: Move AC_LIBOBJ invocations to module description.
12062         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12063         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12064         (configure.ac): Remove gl_POPEN_SAFER call.
12065         (Makefile.am): Augment lib_SOURCES.
12066
12067 2011-05-23  Bruno Haible  <bruno@clisp.org>
12068
12069         freopen-safer: Move AC_LIBOBJ invocations to module description.
12070         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12071         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12072         (configure.ac): Remove gl_FREOPEN_SAFER call.
12073         (Makefile.am): Augment lib_SOURCES.
12074
12075 2011-05-23  Bruno Haible  <bruno@clisp.org>
12076
12077         fopen-safer: Move AC_LIBOBJ invocations to module description.
12078         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12079         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12080         (configure.ac): Remove gl_FOPEN_SAFER call.
12081         (Makefile.am): Augment lib_SOURCES.
12082
12083 2011-05-23  Bruno Haible  <bruno@clisp.org>
12084
12085         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12086         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12087         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12088
12089 2011-05-23  Bruno Haible  <bruno@clisp.org>
12090
12091         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12092         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12093         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12094
12095 2011-05-23  Bruno Haible  <bruno@clisp.org>
12096
12097         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12098         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12099         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12100
12101 2011-05-23  Bruno Haible  <bruno@clisp.org>
12102
12103         settime: Move AC_LIBOBJ invocations to module description.
12104         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12105         * modules/settime (Makefile.am): Augment lib_SOURCES.
12106
12107 2011-05-23  Bruno Haible  <bruno@clisp.org>
12108
12109         savedir: Move AC_LIBOBJ invocations to module description.
12110         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12111         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12112
12113 2011-05-23  Bruno Haible  <bruno@clisp.org>
12114
12115         save-cwd: Move AC_LIBOBJ invocations to module description.
12116         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12117         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12118
12119 2011-05-23  Bruno Haible  <bruno@clisp.org>
12120
12121         same: Move AC_LIBOBJ invocations to module description.
12122         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12123         * modules/same (Makefile.am): Augment lib_SOURCES.
12124
12125 2011-05-23  Bruno Haible  <bruno@clisp.org>
12126
12127         safe-write: Move AC_LIBOBJ invocations to module description.
12128         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12129         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12130         instead of gl_SAFE_WRITE.
12131         (Makefile.am): Augment lib_SOURCES.
12132
12133 2011-05-23  Bruno Haible  <bruno@clisp.org>
12134
12135         safe-read: Move AC_LIBOBJ invocations to module description.
12136         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12137         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12138         of gl_SAFE_READ.
12139         (Makefile.am): Augment lib_SOURCES.
12140
12141 2011-05-23  Bruno Haible  <bruno@clisp.org>
12142
12143         safe-alloc: Move AC_LIBOBJ invocations to module description.
12144         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12145         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12146
12147 2011-05-23  Bruno Haible  <bruno@clisp.org>
12148
12149         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12150         * m4/rijndael.m4: Remove file.
12151         * modules/crypto/rijndael (Files): Remove it.
12152         (configure.ac): Remove gl_RIJNDAEL call.
12153         (Makefile.am): Augment lib_SOURCES.
12154
12155 2011-05-23  Bruno Haible  <bruno@clisp.org>
12156
12157         readtokens: Move AC_LIBOBJ invocations to module description.
12158         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12159         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12160
12161 2011-05-23  Bruno Haible  <bruno@clisp.org>
12162
12163         read-file: Move AC_LIBOBJ invocations to module description.
12164         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12165         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12166         of gl_FUNC_READ_FILE.
12167         (Makefile.am): Augment lib_SOURCES.
12168
12169 2011-05-23  Bruno Haible  <bruno@clisp.org>
12170
12171         quotearg: Move AC_LIBOBJ invocations to module description.
12172         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12173         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12174
12175 2011-05-23  Bruno Haible  <bruno@clisp.org>
12176
12177         quote: Move AC_LIBOBJ invocations to module description.
12178         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12179         * modules/quote (Makefile.am): Augment lib_SOURCES.
12180
12181 2011-05-23  Bruno Haible  <bruno@clisp.org>
12182
12183         posixver: Move AC_LIBOBJ invocations to module description.
12184         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12185         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12186
12187 2011-05-23  Bruno Haible  <bruno@clisp.org>
12188
12189         posixtm: Move AC_LIBOBJ invocations to module description.
12190         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12191         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12192
12193 2011-05-23  Bruno Haible  <bruno@clisp.org>
12194
12195         physmem: Move AC_LIBOBJ invocations to module description.
12196         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12197         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12198
12199 2011-05-23  Bruno Haible  <bruno@clisp.org>
12200
12201         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12202         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12203         invocation.
12204         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12205
12206 2011-05-23  Bruno Haible  <bruno@clisp.org>
12207
12208         mpsort: Move AC_LIBOBJ invocations to module description.
12209         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12210         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12211
12212 2011-05-23  Bruno Haible  <bruno@clisp.org>
12213
12214         modechange: Move AC_LIBOBJ invocations to module description.
12215         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12216         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12217
12218 2011-05-23  Bruno Haible  <bruno@clisp.org>
12219
12220         mkdir-p: Move AC_LIBOBJ invocations to module description.
12221         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12222         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12223
12224 2011-05-23  Bruno Haible  <bruno@clisp.org>
12225
12226         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12227         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12228         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12229
12230 2011-05-23  Bruno Haible  <bruno@clisp.org>
12231
12232         mgetgroups: Move AC_LIBOBJ invocations to module description.
12233         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12234         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12235
12236 2011-05-23  Bruno Haible  <bruno@clisp.org>
12237
12238         memxor: Move AC_LIBOBJ invocations to module description.
12239         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12240         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12241
12242 2011-05-23  Bruno Haible  <bruno@clisp.org>
12243
12244         memcoll: Move AC_LIBOBJ invocations to module description.
12245         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12246         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12247
12248 2011-05-23  Bruno Haible  <bruno@clisp.org>
12249
12250         memcasecmp: Move AC_LIBOBJ invocations to module description.
12251         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12252         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12253
12254 2011-05-23  Bruno Haible  <bruno@clisp.org>
12255
12256         crypto/md5: Move AC_LIBOBJ invocations to module description.
12257         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12258         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12259
12260 2011-05-23  Bruno Haible  <bruno@clisp.org>
12261
12262         crypto/md4: Move AC_LIBOBJ invocations to module description.
12263         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12264         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12265
12266 2011-05-23  Bruno Haible  <bruno@clisp.org>
12267
12268         crypto/md2: Move AC_LIBOBJ invocations to module description.
12269         * m4/md2.m4: Remove file.
12270         * modules/crypto/md2 (Files): Remove it.
12271         (configure.ac): Remove gl_MD2 call.
12272         (Makefile.am): Augment lib_SOURCES.
12273
12274 2011-05-23  Bruno Haible  <bruno@clisp.org>
12275
12276         long-options: Move AC_LIBOBJ invocations to module description.
12277         * m4/long-options.m4: Remove file.
12278         * modules/long-options (Files): Remove it.
12279         (configure.ac): Remove gl_LONG_OPTIONS call.
12280         (Makefile.am): Augment lib_SOURCES.
12281
12282 2011-05-23  Bruno Haible  <bruno@clisp.org>
12283
12284         i-ring: Move AC_LIBOBJ invocations to module description.
12285         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12286         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12287
12288 2011-05-23  Bruno Haible  <bruno@clisp.org>
12289
12290         idcache: Move AC_LIBOBJ invocations to module description.
12291         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12292         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12293
12294 2011-05-23  Bruno Haible  <bruno@clisp.org>
12295
12296         human: Move AC_LIBOBJ invocations to module description.
12297         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12298         * modules/human (Makefile.am): Augment lib_SOURCES.
12299
12300 2011-05-23  Bruno Haible  <bruno@clisp.org>
12301
12302         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12303         * m4/hmac-sha1.m4: Remove file.
12304         * modules/crypto/hmac-sha1 (Files): Remove it.
12305         (configure.ac): Remove gl_HMAC_SHA1 call.
12306         (Makefile.am): Augment lib_SOURCES.
12307
12308 2011-05-23  Bruno Haible  <bruno@clisp.org>
12309
12310         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12311         * m4/hmac-md5.m4: Remove file.
12312         * modules/crypto/hmac-md5 (Files): Remove it.
12313         (configure.ac): Remove gl_HMAC_MD5 call.
12314         (Makefile.am): Augment lib_SOURCES.
12315
12316 2011-05-23  Bruno Haible  <bruno@clisp.org>
12317
12318         hash: Move AC_LIBOBJ invocations to module description.
12319         * m4/hash.m4: Remove file.
12320         * modules/hash (Files): Remove it.
12321         (configure.ac): Remove gl_HASH call.
12322         (Makefile.am): Augment lib_SOURCES.
12323
12324 2011-05-23  Bruno Haible  <bruno@clisp.org>
12325
12326         hard-locale: Move AC_LIBOBJ invocations to module description.
12327         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12328         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12329
12330 2011-05-23  Bruno Haible  <bruno@clisp.org>
12331
12332         getugroups: Move AC_LIBOBJ invocations to module description.
12333         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12334         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12335
12336 2011-05-23  Bruno Haible  <bruno@clisp.org>
12337
12338         gettime: Move AC_LIBOBJ invocations to module description.
12339         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12340         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12341
12342 2011-05-23  Bruno Haible  <bruno@clisp.org>
12343
12344         getndelim2: Move AC_LIBOBJ invocations to module description.
12345         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12346         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12347
12348 2011-05-23  Bruno Haible  <bruno@clisp.org>
12349
12350         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12351         * m4/gc-pbkdf2-sha1.m4: Remove file.
12352         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12353         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12354         (Makefile.am): Augment lib_SOURCES.
12355
12356 2011-05-23  Bruno Haible  <bruno@clisp.org>
12357
12358         fts: Move AC_LIBOBJ invocations to module description.
12359         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12360         * modules/fts (configure.ac): ... to here.
12361
12362 2011-05-23  Bruno Haible  <bruno@clisp.org>
12363
12364         file-type: Move AC_LIBOBJ invocations to module description.
12365         * m4/file-type.m4: Remove file.
12366         * modules/file-type (Files): Remove it.
12367         (configure.ac): Remove gl_FILE_TYPE call.
12368         (Makefile.am): Augment lib_SOURCES.
12369
12370 2011-05-23  Bruno Haible  <bruno@clisp.org>
12371
12372         filenamecat*: Respect rules for use of AC_LIBOBJ.
12373         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12374         Remove AC_LIBOBJ invocation.
12375         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12376         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12377
12378 2011-05-23  Bruno Haible  <bruno@clisp.org>
12379
12380         filemode: Move AC_LIBOBJ invocations to module description.
12381         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12382         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12383
12384 2011-05-23  Bruno Haible  <bruno@clisp.org>
12385
12386         openat-safer: Move AC_LIBOBJ invocations to module description.
12387         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12388         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12389
12390 2011-05-23  Bruno Haible  <bruno@clisp.org>
12391
12392         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12393         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12394         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12395
12396 2011-05-23  Bruno Haible  <bruno@clisp.org>
12397
12398         exclude: Move AC_LIBOBJ invocations to module description.
12399         * m4/exclude.m4: Remove file.
12400         * modules/exclude (Files): Remove it.
12401         (configure.ac): Remove gl_EXCLUDE call.
12402         (Makefile.am): Augment lib_SOURCES.
12403
12404 2011-05-23  Bruno Haible  <bruno@clisp.org>
12405
12406         dirname*: Respect rules for use of AC_LIBOBJ.
12407         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12408         invocations.
12409         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12410         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12411
12412 2011-05-23  Bruno Haible  <bruno@clisp.org>
12413
12414         dirent-safer: Move AC_LIBOBJ invocations to module description.
12415         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12416         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12417
12418 2011-05-23  Bruno Haible  <bruno@clisp.org>
12419
12420         crypto/des: Move AC_LIBOBJ invocations to module description.
12421         * m4/des.m4: Remove file.
12422         * modules/crypto/des (Files): Remove it.
12423         (configure.ac): Remove gl_DES call.
12424         (Makefile.am): Augment lib_SOURCES.
12425
12426 2011-05-23  Bruno Haible  <bruno@clisp.org>
12427
12428         cycle-check: Move AC_LIBOBJ invocations to module description.
12429         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12430         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12431
12432 2011-05-23  Bruno Haible  <bruno@clisp.org>
12433
12434         c-strtold: Move AC_LIBOBJ invocations to module description.
12435         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12436         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12437
12438 2011-05-23  Bruno Haible  <bruno@clisp.org>
12439
12440         c-strtod: Move AC_LIBOBJ invocations to module description.
12441         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12442         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12443
12444 2011-05-23  Bruno Haible  <bruno@clisp.org>
12445
12446         crc: Move AC_LIBOBJ invocations to module description.
12447         * m4/crc.m4: Remove file.
12448         * modules/crc (Files): Remove it.
12449         (configure.ac): Remove gl_CRC call.
12450         (Makefile.am): Augment lib_SOURCES.
12451
12452 2011-05-23  Bruno Haible  <bruno@clisp.org>
12453
12454         close-stream: Move AC_LIBOBJ invocations to module description.
12455         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12456         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12457
12458 2011-05-23  Bruno Haible  <bruno@clisp.org>
12459
12460         closeout: Move AC_LIBOBJ invocations to module description.
12461         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12462         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12463
12464 2011-05-23  Bruno Haible  <bruno@clisp.org>
12465
12466         closein: Move AC_LIBOBJ invocations to module description.
12467         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12468         * modules/closein (Makefile.am): Augment lib_SOURCES.
12469
12470 2011-05-23  Bruno Haible  <bruno@clisp.org>
12471
12472         cloexec: Move AC_LIBOBJ invocations to module description.
12473         * m4/cloexec.m4: Remove file.
12474         * modules/cloexec (Files): Remove it.
12475         (configure.ac): Remove gl_CLOEXEC call.
12476         (Makefile.am): Augment lib_SOURCES.
12477
12478 2011-05-23  Bruno Haible  <bruno@clisp.org>
12479
12480         check-version: Move AC_LIBOBJ invocations to module description.
12481         * m4/check-version.m4: Remove file.
12482         * modules/check-version (Files): Remove it.
12483         (configure.ac): Remove gl_CHECK_VERSION call.
12484         (Makefile.am): Augment lib_SOURCES.
12485
12486 2011-05-23  Bruno Haible  <bruno@clisp.org>
12487
12488         chdir-safer: Move AC_LIBOBJ invocations to module description.
12489         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12490         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12491
12492 2011-05-23  Bruno Haible  <bruno@clisp.org>
12493
12494         canonicalize: Move AC_LIBOBJ invocations to module description.
12495         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12496         AC_LIBOBJ invocation.
12497         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12498
12499 2011-05-23  Bruno Haible  <bruno@clisp.org>
12500
12501         canon-host: Move AC_LIBOBJ invocations to module description.
12502         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12503         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12504         instead of gl_CANON_HOST.
12505         (Makefile.am): Augment lib_SOURCES.
12506
12507 2011-05-23  Bruno Haible  <bruno@clisp.org>
12508
12509         backupfile: Move AC_LIBOBJ invocations to module description.
12510         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12511         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12512
12513 2011-05-23  Bruno Haible  <bruno@clisp.org>
12514
12515         argmatch: Move AC_LIBOBJ invocations to module description.
12516         * m4/argmatch.m4: Remove file.
12517         * modules/argmatch (Files): Remove it.
12518         (configure.ac): Remove gl_ARGMATCH call.
12519         (Makefile.am): Augment lib_SOURCES.
12520
12521 2011-05-23  Bruno Haible  <bruno@clisp.org>
12522
12523         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12524         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12525         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12526
12527 2011-05-23  Bruno Haible  <bruno@clisp.org>
12528
12529         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12530         * m4/arcfour.m4: Remove file.
12531         * modules/crypto/arcfour (Files): Remove it.
12532         (configure.ac): Remove gl_ARCFOUR call.
12533         (Makefile.am): Augment lib_SOURCES.
12534
12535 2011-05-22  Bruno Haible  <bruno@clisp.org>
12536
12537         write: Move AC_LIBOBJ invocations to module description.
12538         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12539         * modules/write (configure.ac): ... to here.
12540
12541 2011-05-22  Bruno Haible  <bruno@clisp.org>
12542
12543         wmemset: Move AC_LIBOBJ invocations to module description.
12544         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12545         here...
12546         * modules/wmemset (configure.ac): ... to here.
12547
12548 2011-05-22  Bruno Haible  <bruno@clisp.org>
12549
12550         wmemmove: Move AC_LIBOBJ invocations to module description.
12551         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12552         here...
12553         * modules/wmemmove (configure.ac): ... to here.
12554
12555 2011-05-22  Bruno Haible  <bruno@clisp.org>
12556
12557         wmemcpy: Move AC_LIBOBJ invocations to module description.
12558         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12559         here...
12560         * modules/wmemcpy (configure.ac): ... to here.
12561
12562 2011-05-22  Bruno Haible  <bruno@clisp.org>
12563
12564         wmemcmp: Move AC_LIBOBJ invocations to module description.
12565         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12566         here...
12567         * modules/wmemcmp (configure.ac): ... to here.
12568
12569 2011-05-22  Bruno Haible  <bruno@clisp.org>
12570
12571         wmemchr: Move AC_LIBOBJ invocations to module description.
12572         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12573         here...
12574         * modules/wmemchr (configure.ac): ... to here.
12575
12576 2011-05-22  Bruno Haible  <bruno@clisp.org>
12577
12578         wcswidth: Move AC_LIBOBJ invocations to module description.
12579         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12580         here...
12581         * modules/wcswidth (configure.ac): ... to here.
12582
12583 2011-05-22  Bruno Haible  <bruno@clisp.org>
12584
12585         wcwidth: Respect rules for use of AC_LIBOBJ.
12586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12587         invocation from here...
12588         * modules/wcwidth (configure.ac): ... to here.
12589         (Depends-on): Update conditions.
12590
12591 2011-05-22  Bruno Haible  <bruno@clisp.org>
12592
12593         wctype: Move AC_LIBOBJ invocations to module description.
12594         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12595         invocation from here...
12596         * modules/wctype (configure.ac): ... to here.
12597         (Depends-on): Update conditions.
12598
12599 2011-05-22  Bruno Haible  <bruno@clisp.org>
12600
12601         wctrans: Move AC_LIBOBJ invocations to module description.
12602         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12603         invocation from here...
12604         * modules/wctrans (configure.ac): ... to here.
12605
12606 2011-05-22  Bruno Haible  <bruno@clisp.org>
12607
12608         wctomb: Move AC_LIBOBJ invocations to module description.
12609         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12610         invocations from here...
12611         * modules/wctomb (configure.ac): ... to here.
12612
12613 2011-05-22  Bruno Haible  <bruno@clisp.org>
12614
12615         wctob: Move AC_LIBOBJ invocations to module description.
12616         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12617         gl_PREREQ_WCTOB invocations from here...
12618         * modules/wctob (configure.ac): ... to here.
12619         (Depends-on): Update conditions.
12620
12621 2011-05-22  Bruno Haible  <bruno@clisp.org>
12622
12623         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12624         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12625         here...
12626         * modules/wcsxfrm (configure.ac): ... to here.
12627
12628 2011-05-22  Bruno Haible  <bruno@clisp.org>
12629
12630         wcstok: Move AC_LIBOBJ invocations to module description.
12631         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12632         * modules/wcstok (configure.ac): ... to here.
12633
12634 2011-05-22  Bruno Haible  <bruno@clisp.org>
12635
12636         wcsstr: Move AC_LIBOBJ invocations to module description.
12637         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12638         * modules/wcsstr (configure.ac): ... to here.
12639
12640 2011-05-22  Bruno Haible  <bruno@clisp.org>
12641
12642         wcsspn: Move AC_LIBOBJ invocations to module description.
12643         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12644         * modules/wcsspn (configure.ac): ... to here.
12645
12646 2011-05-22  Bruno Haible  <bruno@clisp.org>
12647
12648         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12649         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12650         gl_PREREQ_WCSRTOMBS invocations from here...
12651         * modules/wcsrtombs (configure.ac): ... to here.
12652
12653 2011-05-22  Bruno Haible  <bruno@clisp.org>
12654
12655         wcsrchr: Move AC_LIBOBJ invocations to module description.
12656         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12657         here...
12658         * modules/wcsrchr (configure.ac): ... to here.
12659
12660 2011-05-22  Bruno Haible  <bruno@clisp.org>
12661
12662         wcspbrk: Move AC_LIBOBJ invocations to module description.
12663         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12664         here...
12665         * modules/wcspbrk (configure.ac): ... to here.
12666
12667 2011-05-22  Bruno Haible  <bruno@clisp.org>
12668
12669         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12670         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12671         gl_PREREQ_WCSNRTOMBS invocations from here...
12672         * modules/wcsnrtombs (configure.ac): ... to here.
12673
12674 2011-05-22  Bruno Haible  <bruno@clisp.org>
12675
12676         wcsnlen: Move AC_LIBOBJ invocations to module description.
12677         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12678         here...
12679         * modules/wcsnlen (configure.ac): ... to here.
12680
12681 2011-05-22  Bruno Haible  <bruno@clisp.org>
12682
12683         wcsncpy: Move AC_LIBOBJ invocations to module description.
12684         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12685         here...
12686         * modules/wcsncpy (configure.ac): ... to here.
12687
12688 2011-05-22  Bruno Haible  <bruno@clisp.org>
12689
12690         wcsncmp: Move AC_LIBOBJ invocations to module description.
12691         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12692         here...
12693         * modules/wcsncmp (configure.ac): ... to here.
12694
12695 2011-05-22  Bruno Haible  <bruno@clisp.org>
12696
12697         wcsncat: Move AC_LIBOBJ invocations to module description.
12698         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12699         here...
12700         * modules/wcsncat (configure.ac): ... to here.
12701
12702 2011-05-22  Bruno Haible  <bruno@clisp.org>
12703
12704         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12705         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12706         from here...
12707         * modules/wcsncasecmp (configure.ac): ... to here.
12708
12709 2011-05-22  Bruno Haible  <bruno@clisp.org>
12710
12711         wcslen: Move AC_LIBOBJ invocations to module description.
12712         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12713         * modules/wcslen (configure.ac): ... to here.
12714
12715 2011-05-22  Bruno Haible  <bruno@clisp.org>
12716
12717         wcsdup: Move AC_LIBOBJ invocations to module description.
12718         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12719         * modules/wcsdup (configure.ac): ... to here.
12720
12721 2011-05-22  Bruno Haible  <bruno@clisp.org>
12722
12723         wcscspn: Move AC_LIBOBJ invocations to module description.
12724         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12725         here...
12726         * modules/wcscspn (configure.ac): ... to here.
12727
12728 2011-05-22  Bruno Haible  <bruno@clisp.org>
12729
12730         wcscpy: Move AC_LIBOBJ invocations to module description.
12731         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12732         * modules/wcscpy (configure.ac): ... to here.
12733
12734 2011-05-22  Bruno Haible  <bruno@clisp.org>
12735
12736         wcscoll: Move AC_LIBOBJ invocations to module description.
12737         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12738         here...
12739         * modules/wcscoll (configure.ac): ... to here.
12740
12741 2011-05-22  Bruno Haible  <bruno@clisp.org>
12742
12743         wcscmp: Move AC_LIBOBJ invocations to module description.
12744         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12745         * modules/wcscmp (configure.ac): ... to here.
12746
12747 2011-05-22  Bruno Haible  <bruno@clisp.org>
12748
12749         wcschr: Move AC_LIBOBJ invocations to module description.
12750         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12751         * modules/wcschr (configure.ac): ... to here.
12752
12753 2011-05-22  Bruno Haible  <bruno@clisp.org>
12754
12755         wcscat: Move AC_LIBOBJ invocations to module description.
12756         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12757         * modules/wcscat (configure.ac): ... to here.
12758
12759 2011-05-22  Bruno Haible  <bruno@clisp.org>
12760
12761         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12762         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12763         here...
12764         * modules/wcscasecmp (configure.ac): ... to here.
12765
12766 2011-05-22  Bruno Haible  <bruno@clisp.org>
12767
12768         wcrtomb: Move AC_LIBOBJ invocations to module description.
12769         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12770         invocations from here...
12771         * modules/wcrtomb (configure.ac): ... to here.
12772
12773 2011-05-22  Bruno Haible  <bruno@clisp.org>
12774
12775         wcpncpy: Move AC_LIBOBJ invocations to module description.
12776         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12777         here...
12778         * modules/wcpncpy (configure.ac): ... to here.
12779
12780 2011-05-22  Bruno Haible  <bruno@clisp.org>
12781
12782         wcpcpy: Move AC_LIBOBJ invocations to module description.
12783         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12784         * modules/wcpcpy (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         waitpid: Move AC_LIBOBJ invocations to module description.
12789         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12790         invocation from here...
12791         * modules/waitpid (configure.ac): ... to here.
12792
12793 2011-05-22  Bruno Haible  <bruno@clisp.org>
12794
12795         utimensat: Move AC_LIBOBJ invocations to module description.
12796         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12797         here...
12798         * modules/utimensat (configure.ac): ... to here.
12799
12800 2011-05-22  Bruno Haible  <bruno@clisp.org>
12801
12802         usleep: Move AC_LIBOBJ invocations to module description.
12803         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12804         here...
12805         * modules/usleep (configure.ac): ... to here.
12806
12807 2011-05-22  Bruno Haible  <bruno@clisp.org>
12808
12809         unlockpt: Move AC_LIBOBJ invocations to module description.
12810         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12811         gl_PREREQ_UNLOCKPT invocations from here...
12812         * modules/unlockpt (configure.ac): ... to here.
12813
12814 2011-05-22  Bruno Haible  <bruno@clisp.org>
12815
12816         unlink: Respect rules for use of AC_LIBOBJ.
12817         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12818         * modules/unlink (configure.ac): ... to here.
12819
12820 2011-05-22  Bruno Haible  <bruno@clisp.org>
12821
12822         uname: Move AC_LIBOBJ invocations to module description.
12823         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12824         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12825         here...
12826         * modules/uname (configure.ac): ... to here.
12827
12828 2011-05-22  Bruno Haible  <bruno@clisp.org>
12829
12830         ttyname_r: Move AC_LIBOBJ invocations to module description.
12831         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12832         gl_PREREQ_TTYNAME_R invocations from here...
12833         * modules/ttyname_r (configure.ac): ... to here.
12834
12835 2011-05-22  Bruno Haible  <bruno@clisp.org>
12836
12837         tsearch: Move AC_LIBOBJ invocations to module description.
12838         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12839         invocations from here...
12840         * modules/tsearch (configure.ac): ... to here.
12841
12842 2011-05-22  Bruno Haible  <bruno@clisp.org>
12843
12844         towctrans: Move AC_LIBOBJ invocations to module description.
12845         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12846         AC_LIBOBJ invocation from here...
12847         * modules/towctrans (configure.ac): ... to here.
12848
12849 2011-05-22  Bruno Haible  <bruno@clisp.org>
12850
12851         tmpfile: Move AC_LIBOBJ invocations to module description.
12852         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12853         invocations from here...
12854         * modules/tmpfile (configure.ac): ... to here.
12855
12856 2011-05-22  Bruno Haible  <bruno@clisp.org>
12857
12858         times: Move AC_LIBOBJ invocations to module description.
12859         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12860         * modules/times (configure.ac): ... to here.
12861
12862 2011-05-22  Bruno Haible  <bruno@clisp.org>
12863
12864         time_r: Move AC_LIBOBJ invocations to module description.
12865         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12866         invocations from here...
12867         * modules/time_r (configure.ac): ... to here.
12868
12869 2011-05-22  Bruno Haible  <bruno@clisp.org>
12870
12871         timegm: Move AC_LIBOBJ invocations to module description.
12872         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12873         invocations from here...
12874         * modules/timegm (configure.ac): ... to here.
12875
12876 2011-05-22  Bruno Haible  <bruno@clisp.org>
12877
12878         tcgetsid: Move AC_LIBOBJ invocations to module description.
12879         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12880         and gl_PREREQ_TCGETSID invocations from here...
12881         * modules/tcgetsid (configure.ac): ... to here.
12882         (Depends-on): Update conditions.
12883
12884 2011-05-22  Bruno Haible  <bruno@clisp.org>
12885
12886         symlinkat: Move AC_LIBOBJ invocations to module description.
12887         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12888         here...
12889         * modules/symlinkat (configure.ac): ... to here.
12890
12891 2011-05-22  Bruno Haible  <bruno@clisp.org>
12892
12893         symlink: Move AC_LIBOBJ invocations to module description.
12894         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12895         here...
12896         * modules/symlink (configure.ac): ... to here.
12897
12898 2011-05-22  Bruno Haible  <bruno@clisp.org>
12899
12900         strverscmp: Move AC_LIBOBJ invocations to module description.
12901         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12903         from here...
12904         * modules/strverscmp (configure.ac): ... to here.
12905
12906 2011-05-22  Bruno Haible  <bruno@clisp.org>
12907
12908         strtok_r: Move AC_LIBOBJ invocations to module description.
12909         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12910         and gl_PREREQ_STRTOK_R invocations from here...
12911         * modules/strtok_r (configure.ac): ... to here.
12912         (Depends-on): Update conditions.
12913
12914 2011-05-22  Bruno Haible  <bruno@clisp.org>
12915
12916         strtoumax: Move AC_LIBOBJ invocations to module description.
12917         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12918         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12919         from here...
12920         * modules/strtoumax (configure.ac): ... to here.
12921
12922 2011-05-22  Bruno Haible  <bruno@clisp.org>
12923
12924         strtoimax: Move AC_LIBOBJ invocations to module description.
12925         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12926         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12927         from here...
12928         * modules/strtoimax (configure.ac): ... to here.
12929
12930 2011-05-22  Bruno Haible  <bruno@clisp.org>
12931
12932         strtoull: Move AC_LIBOBJ invocations to module description.
12933         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12934         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12935         from here...
12936         * modules/strtoull (configure.ac): ... to here.
12937
12938 2011-05-22  Bruno Haible  <bruno@clisp.org>
12939
12940         strtoll: Move AC_LIBOBJ invocations to module description.
12941         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12943         here...
12944         * modules/strtoll (configure.ac): ... to here.
12945
12946 2011-05-22  Bruno Haible  <bruno@clisp.org>
12947
12948         strtoul: Move AC_LIBOBJ invocations to module description.
12949         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12950         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12951         * modules/strtoul (configure.ac): ... to here.
12952
12953 2011-05-22  Bruno Haible  <bruno@clisp.org>
12954
12955         strtol: Move AC_LIBOBJ invocations to module description.
12956         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12957         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12958         * modules/strtol (configure.ac): ... to here.
12959
12960 2011-05-22  Bruno Haible  <bruno@clisp.org>
12961
12962         strtod: Move AC_LIBOBJ invocations to module description.
12963         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12964         invocations from here...
12965         * modules/strtod (configure.ac): ... to here.
12966
12967 2011-05-22  Bruno Haible  <bruno@clisp.org>
12968
12969         strstr*: Move AC_LIBOBJ invocations to module description.
12970         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12971         invocations from here...
12972         * modules/strstr-simple (configure.ac): ... to here.
12973         * modules/strstr (configure.ac): ... and here.
12974
12975 2011-05-22  Bruno Haible  <bruno@clisp.org>
12976
12977         strsignal: Move AC_LIBOBJ invocations to module description.
12978         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12979         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12980         * modules/strsignal (configure.ac): ... to here.
12981         (Depends-on): Update conditions.
12982
12983 2011-05-22  Bruno Haible  <bruno@clisp.org>
12984
12985         strsep: Move AC_LIBOBJ invocations to module description.
12986         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12988         here...
12989         * modules/strsep (configure.ac): ... to here.
12990
12991 2011-05-22  Bruno Haible  <bruno@clisp.org>
12992
12993         strptime: Move AC_LIBOBJ invocations to module description.
12994         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12995         gl_PREREQ_STRPTIME invocations from here...
12996         * modules/strptime (configure.ac): ... to here.
12997
12998 2011-05-22  Bruno Haible  <bruno@clisp.org>
12999
13000         strpbrk: Move AC_LIBOBJ invocations to module description.
13001         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13003         here...
13004         * modules/strpbrk (configure.ac): ... to here.
13005
13006 2011-05-22  Bruno Haible  <bruno@clisp.org>
13007
13008         strnlen: Move AC_LIBOBJ invocations to module description.
13009         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13010         invocations from here...
13011         * modules/strnlen (configure.ac): ... to here.
13012
13013 2011-05-22  Bruno Haible  <bruno@clisp.org>
13014
13015         strndup: Move AC_LIBOBJ invocations to module description.
13016         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13017         invocations from here...
13018         * modules/strndup (configure.ac): ... to here.
13019         (Depends-on): Update conditions.
13020
13021 2011-05-22  Bruno Haible  <bruno@clisp.org>
13022
13023         strncat: Move AC_LIBOBJ invocations to module description.
13024         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13025         invocations from here...
13026         * modules/strncat (configure.ac): ... to here.
13027
13028 2011-05-22  Bruno Haible  <bruno@clisp.org>
13029
13030         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13031         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13032         invocations from here...
13033         * modules/strdup (configure.ac): ... to here.
13034         * modules/strdup-posix (configure.ac): ... and here.
13035
13036 2011-05-22  Bruno Haible  <bruno@clisp.org>
13037
13038         strcspn: Move AC_LIBOBJ invocations to module description.
13039         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13040         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13041         here...
13042         * modules/strcspn (configure.ac): ... to here.
13043
13044 2011-05-22  Bruno Haible  <bruno@clisp.org>
13045
13046         strchrnul: Move AC_LIBOBJ invocations to module description.
13047         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13048         gl_PREREQ_STRCHRNUL invocations from here...
13049         * modules/strchrnul (configure.ac): ... to here.
13050
13051 2011-05-22  Bruno Haible  <bruno@clisp.org>
13052
13053         strcasestr*: Move AC_LIBOBJ invocations to module description.
13054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13055         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13056         * modules/strcasestr-simple (configure.ac): ... to here.
13057         * modules/strcasestr (configure.ac): ... and here.
13058
13059 2011-05-22  Bruno Haible  <bruno@clisp.org>
13060
13061         strcase: Move AC_LIBOBJ invocations to module description.
13062         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13063         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13064         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13065         gl_PREREQ_STRNCASECMP invocations from here...
13066         * modules/strcase (configure.ac): ... to here.
13067
13068 2011-05-22  Bruno Haible  <bruno@clisp.org>
13069
13070         stpncpy: Move AC_LIBOBJ invocations to module description.
13071         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13072         here...
13073         * modules/stpncpy (configure.ac): ... to here.
13074
13075 2011-05-22  Bruno Haible  <bruno@clisp.org>
13076
13077         stpcpy: Move AC_LIBOBJ invocations to module description.
13078         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13080         here...
13081         * modules/stpcpy (configure.ac): ... to here.
13082
13083 2011-05-21  Bruno Haible  <bruno@clisp.org>
13084
13085         stat: Move AC_LIBOBJ invocations to module description.
13086         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13087         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13088         here...
13089         * modules/stat (configure.ac): ... to here.
13090
13091 2011-05-21  Bruno Haible  <bruno@clisp.org>
13092
13093         sleep: Move AC_LIBOBJ invocations to module description.
13094         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13095         * modules/sleep (configure.ac): ... to here.
13096
13097 2011-05-21  Bruno Haible  <bruno@clisp.org>
13098
13099         signbit: Move AC_LIBOBJ invocations to module description.
13100         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13101         * modules/signbit (configure.ac): ... to here.
13102
13103 2011-05-21  Bruno Haible  <bruno@clisp.org>
13104
13105         sigprocmask: Move AC_LIBOBJ invocations to module description.
13106         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13107         gl_PREREQ_SIGPROMASK invocations from here...
13108         * modules/sigprocmask (configure.ac): ... to here.
13109
13110 2011-05-21  Bruno Haible  <bruno@clisp.org>
13111
13112         sigaction: Move AC_LIBOBJ invocations to module description.
13113         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13114         gl_PREREQ_SIGACTION invocations from here...
13115         * modules/sigaction (configure.ac): ... to here.
13116
13117 2011-05-21  Bruno Haible  <bruno@clisp.org>
13118
13119         sig2str: Move AC_LIBOBJ invocations to module description.
13120         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13121         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13122         here...
13123         * modules/sig2str (configure.ac): ... to here.
13124
13125 2011-05-21  Bruno Haible  <bruno@clisp.org>
13126
13127         setlocale: Move AC_LIBOBJ invocations to module description.
13128         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13129         gl_PREREQ_SETLOCALE invocations from here...
13130         * modules/setlocale (configure.ac): ... to here.
13131
13132 2011-05-21  Bruno Haible  <bruno@clisp.org>
13133
13134         unsetenv: Move AC_LIBOBJ invocations to module description.
13135         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13136         and gl_PREREQ_UNSETENV invocations from here...
13137         * modules/unsetenv (configure.ac): ... to here.
13138         (Depends-on): Update.
13139
13140 2011-05-21  Bruno Haible  <bruno@clisp.org>
13141
13142         setenv: Move AC_LIBOBJ invocations to module description.
13143         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13144         here...
13145         * modules/setenv (configure.ac): ... to here.
13146
13147 2011-05-21  Bruno Haible  <bruno@clisp.org>
13148
13149         selinux-h: Move AC_LIBOBJ invocations to module description.
13150         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13151         AC_LIBOBJ invocation from here...
13152         * modules/selinux-h (configure.ac): ... to here.
13153
13154 2011-05-21  Bruno Haible  <bruno@clisp.org>
13155
13156         select: Respect rules for use of AC_LIBOBJ.
13157         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13158         here...
13159         * modules/select (configure.ac): ... to here.
13160
13161 2011-05-21  Bruno Haible  <bruno@clisp.org>
13162
13163         scandir: Move AC_LIBOBJ invocations to module description.
13164         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13165         invocations from here...
13166         * modules/scandir (configure.ac): ... to here.
13167
13168 2011-05-21  Bruno Haible  <bruno@clisp.org>
13169
13170         rpmatch: Move AC_LIBOBJ invocations to module description.
13171         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13172         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13173         here...
13174         * modules/rpmatch (configure.ac): ... to here.
13175
13176 2011-05-21  Bruno Haible  <bruno@clisp.org>
13177
13178         rmdir: Respect rules for use of AC_LIBOBJ.
13179         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13180         * modules/rmdir (configure.ac): ... to here.
13181
13182 2011-05-21  Bruno Haible  <bruno@clisp.org>
13183
13184         renameat: Move AC_LIBOBJ invocations to module description.
13185         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13186         here...
13187         * modules/renameat (configure.ac): ... to here.
13188
13189 2011-05-21  Bruno Haible  <bruno@clisp.org>
13190
13191         rename: Respect rules for use of AC_LIBOBJ.
13192         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13193         here...
13194         * modules/rename (configure.ac): ... to here.
13195
13196 2011-05-21  Bruno Haible  <bruno@clisp.org>
13197
13198         remove: Move AC_LIBOBJ invocations to module description.
13199         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13200         here...
13201         * modules/remove (configure.ac): ... to here.
13202
13203 2011-05-21  Bruno Haible  <bruno@clisp.org>
13204
13205         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13206         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13207         macro.
13208         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13209         * modules/relocatable-lib (configure.ac): ... to here.
13210         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13211         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13212
13213 2011-05-21  Bruno Haible  <bruno@clisp.org>
13214
13215         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13216         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13217         here...
13218         * modules/relocatable-prog (configure.ac): ... to here.
13219
13220 2011-05-21  Bruno Haible  <bruno@clisp.org>
13221
13222         regex: Move AC_LIBOBJ invocations to module description.
13223         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13224         invocations from here...
13225         * modules/regex (configure.ac): ... to here.
13226
13227 2011-05-21  Bruno Haible  <bruno@clisp.org>
13228
13229         realloc-*: Move AC_LIBOBJ invocations to module description.
13230         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13231         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13232         AC_LIBOBJ invocations from here...
13233         * modules/realloc-gnu (configure.ac): ... to here.
13234         * modules/realloc-posix (configure.ac): ... and here.
13235
13236 2011-05-21  Bruno Haible  <bruno@clisp.org>
13237
13238         readutmp: Move AC_LIBOBJ invocations to module description.
13239         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13240         * modules/readutmp (configure.ac): ... to here.
13241
13242 2011-05-21  Bruno Haible  <bruno@clisp.org>
13243
13244         readlinkat: Move AC_LIBOBJ invocations to module description.
13245         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13246         here...
13247         * modules/readlinkat (configure.ac): ... to here.
13248
13249 2011-05-21  Bruno Haible  <bruno@clisp.org>
13250
13251         readlink: Move AC_LIBOBJ invocations to module description.
13252         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13253         gl_PREREQ_READLINK invocations from here...
13254         * modules/readlink (configure.ac): ... to here.
13255
13256 2011-05-21  Bruno Haible  <bruno@clisp.org>
13257
13258         readline: Move AC_LIBOBJ invocations to module description.
13259         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13260         gl_PREREQ_READLINE invocations from here...
13261         * modules/readline (configure.ac): ... to here.
13262
13263 2011-05-21  Bruno Haible  <bruno@clisp.org>
13264
13265         read: Move AC_LIBOBJ invocations to module description.
13266         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13267         * modules/read (configure.ac): ... to here.
13268
13269 2011-05-21  Bruno Haible  <bruno@clisp.org>
13270
13271         rawmemchr: Move AC_LIBOBJ invocations to module description.
13272         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13273         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13274         from here...
13275         * modules/rawmemchr (configure.ac): ... to here.
13276
13277 2011-05-21  Bruno Haible  <bruno@clisp.org>
13278
13279         random_r: Move AC_LIBOBJ invocations to module description.
13280         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13281         gl_PREREQ_RANDOM_R invocations from here...
13282         * modules/random_r (configure.ac): ... to here.
13283
13284 2011-05-21  Bruno Haible  <bruno@clisp.org>
13285
13286         pwrite: Move AC_LIBOBJ invocations to module description.
13287         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13288         * modules/pwrite (configure.ac): ... to here.
13289
13290 2011-05-21  Bruno Haible  <bruno@clisp.org>
13291
13292         putenv: Move AC_LIBOBJ invocations to module description.
13293         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13294         * modules/putenv (configure.ac): ... to here.
13295
13296 2011-05-21  Bruno Haible  <bruno@clisp.org>
13297
13298         login_tty: Move AC_LIBOBJ invocations to module description.
13299         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13300         * modules/login_tty (configure.ac): ... to here.
13301
13302 2011-05-21  Bruno Haible  <bruno@clisp.org>
13303
13304         openpty: Move AC_LIBOBJ invocations to module description.
13305         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13306         * modules/openpty (configure.ac): ... to here.
13307
13308 2011-05-21  Bruno Haible  <bruno@clisp.org>
13309
13310         forkpty: Move AC_LIBOBJ invocations to module description.
13311         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13312         * modules/forkpty (configure.ac): ... to here.
13313
13314 2011-05-21  Bruno Haible  <bruno@clisp.org>
13315
13316         ptsname: Move AC_LIBOBJ invocations to module description.
13317         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13318         invocations from here...
13319         * modules/ptsname (configure.ac): ... to here.
13320
13321 2011-05-21  Bruno Haible  <bruno@clisp.org>
13322
13323         pread: Move AC_LIBOBJ invocations to module description.
13324         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13325         * modules/pread (configure.ac): ... to here.
13326
13327 2011-05-21  Bruno Haible  <bruno@clisp.org>
13328
13329         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13330         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13331         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13332         * modules/posix_spawn (configure.ac): ... to here.
13333         * modules/posix_spawnp (configure.ac): ... and here.
13334
13335 2011-05-21  Bruno Haible  <bruno@clisp.org>
13336
13337         popen: Move AC_LIBOBJ invocations to module description.
13338         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13339         invocations from here...
13340         * modules/popen (configure.ac): ... to here.
13341
13342 2011-05-21  Bruno Haible  <bruno@clisp.org>
13343
13344         poll: Move AC_LIBOBJ invocations to module description.
13345         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13346         invocations from here...
13347         * modules/poll (configure.ac): ... to here.
13348
13349 2011-05-21  Bruno Haible  <bruno@clisp.org>
13350
13351         pipe-posix: Move AC_LIBOBJ invocations to module description.
13352         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13353         * modules/pipe-posix (configure.ac): ... to here.
13354
13355 2011-05-21  Bruno Haible  <bruno@clisp.org>
13356
13357         openat: Respect rules for use of AC_LIBOBJ.
13358         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13359         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13360         * modules/openat (configure.ac): ... to here.
13361
13362 2011-05-21  Bruno Haible  <bruno@clisp.org>
13363
13364         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13365         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13366         invocation from here...
13367         * modules/obstack-printf (configure.ac): ... to here.
13368         * modules/obstack-printf-posix (configure.ac): ... and here.
13369
13370 2011-05-21  Bruno Haible  <bruno@clisp.org>
13371
13372         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13373         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13374         from here...
13375         * modules/nl_langinfo (configure.ac): ... to here.
13376
13377 2011-05-21  Bruno Haible  <bruno@clisp.org>
13378
13379         nanosleep: Move AC_LIBOBJ invocations to module description.
13380         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13381         gl_PREREQ_NANOSLEEP invocations from here...
13382         * modules/nanosleep (configure.ac): ... to here.
13383
13384 2011-05-21  Bruno Haible  <bruno@clisp.org>
13385
13386         mountlist: Move AC_LIBOBJ invocations to module description.
13387         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13388         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13389         * modules/mountlist (configure.ac): ... to here.
13390
13391 2011-05-21  Bruno Haible  <bruno@clisp.org>
13392
13393         mktime: Respect rules for use of AC_LIBOBJ.
13394         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13395         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13396         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13397         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13398         * modules/mktime (configure.ac): ... to here.
13399         * modules/mktime-internal (configure.ac): ... and here.
13400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13401
13402 2011-05-21  Bruno Haible  <bruno@clisp.org>
13403
13404         mkstemps: Move AC_LIBOBJ invocations to module description.
13405         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13406         here...
13407         * modules/mkstemps (configure.ac): ... to here.
13408
13409 2011-05-21  Bruno Haible  <bruno@clisp.org>
13410
13411         mkstemp: Move AC_LIBOBJ invocations to module description.
13412         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13413         gl_PREREQ_MKSTEMP invocations from here...
13414         * modules/mkstemp (configure.ac): ... to here.
13415
13416 2011-05-21  Bruno Haible  <bruno@clisp.org>
13417
13418         mkostemps: Move AC_LIBOBJ invocations to module description.
13419         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13420         here...
13421         * modules/mkostemps (configure.ac): ... to here.
13422
13423 2011-05-21  Bruno Haible  <bruno@clisp.org>
13424
13425         mkostemp: Move AC_LIBOBJ invocations to module description.
13426         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13427         gl_PREREQ_MKOSTEMP invocations from here...
13428         * modules/mkostemp (configure.ac): ... to here.
13429
13430 2011-05-21  Bruno Haible  <bruno@clisp.org>
13431
13432         mknod: Move AC_LIBOBJ invocations to module description.
13433         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13434         * modules/mknod (configure.ac): ... to here.
13435
13436 2011-05-21  Bruno Haible  <bruno@clisp.org>
13437
13438         mkfifoat: Move AC_LIBOBJ invocations to module description.
13439         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13440         here...
13441         * modules/mkfifoat (configure.ac): ... to here.
13442
13443 2011-05-21  Bruno Haible  <bruno@clisp.org>
13444
13445         mkfifo: Respect rules for use of AC_LIBOBJ.
13446         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13447         here...
13448         * modules/mkfifo (configure.ac): ... to here.
13449
13450 2011-05-21  Bruno Haible  <bruno@clisp.org>
13451
13452         mkdtemp: Move AC_LIBOBJ invocations to module description.
13453         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13454         invocations from here...
13455         * modules/mkdtemp (configure.ac): ... to here.
13456
13457 2011-05-21  Bruno Haible  <bruno@clisp.org>
13458
13459         mkdir: Move AC_LIBOBJ invocations to module description.
13460         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13461         * modules/mkdir (configure.ac): ... to here.
13462
13463 2011-05-21  Bruno Haible  <bruno@clisp.org>
13464
13465         memset: Move AC_LIBOBJ invocations to module description.
13466         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13467         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13468         here...
13469         * modules/memset (configure.ac): ... to here.
13470
13471 2011-05-21  Bruno Haible  <bruno@clisp.org>
13472
13473         memrchr: Move AC_LIBOBJ invocations to module description.
13474         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13475         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13476         here...
13477         * modules/memrchr (configure.ac): ... to here.
13478
13479 2011-05-21  Bruno Haible  <bruno@clisp.org>
13480
13481         mempcpy: Move AC_LIBOBJ invocations to module description.
13482         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13483         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13484         here...
13485         * modules/mempcpy (configure.ac): ... to here.
13486
13487 2011-05-21  Bruno Haible  <bruno@clisp.org>
13488
13489         memmove: Move AC_LIBOBJ invocations to module description.
13490         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13491         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13492         here...
13493         * modules/memmove (configure.ac): ... to here.
13494
13495 2011-05-21  Bruno Haible  <bruno@clisp.org>
13496
13497         memmem*: Move AC_LIBOBJ invocations to module description.
13498         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13499         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13500         here...
13501         (gl_FUNC_MEMMEM): ... and here...
13502         * modules/memmem-simple (configure.ac): ... to here.
13503         * modules/memmem (configure.ac): ... and here.
13504
13505 2011-05-21  Bruno Haible  <bruno@clisp.org>
13506
13507         memcpy: Move AC_LIBOBJ invocations to module description.
13508         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13509         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13510         here...
13511         * modules/memcpy (configure.ac): ... to here.
13512
13513 2011-05-21  Bruno Haible  <bruno@clisp.org>
13514
13515         memcmp: Simplify autoconf macro.
13516         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13517         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13518         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13519
13520 2011-05-21  Bruno Haible  <bruno@clisp.org>
13521
13522         memcmp: Move AC_LIBOBJ invocations to module description.
13523         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13524         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13525         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13526         * modules/memcmp (configure.ac): ... to here.
13527         (Depends-on): Update conditions.
13528
13529 2011-05-21  Bruno Haible  <bruno@clisp.org>
13530
13531         memchr: Respect rules for use of AC_LIBOBJ.
13532         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13533         invocations from here...
13534         * modules/memchr (configure.ac): ... to here.
13535
13536 2011-05-21  Bruno Haible  <bruno@clisp.org>
13537
13538         mbtowc: Move AC_LIBOBJ invocations to module description.
13539         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13540         invocations from here...
13541         * modules/mbtowc (configure.ac): ... to here.
13542
13543 2011-05-21  Bruno Haible  <bruno@clisp.org>
13544
13545         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13546         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13547         gl_PREREQ_MBSRTOWCS invocations from here...
13548         * modules/mbsrtowcs (configure.ac): ... to here.
13549
13550 2011-05-21  Bruno Haible  <bruno@clisp.org>
13551
13552         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13553         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13554         gl_PREREQ_MBSNRTOWCS invocations from here...
13555         * modules/mbsnrtowcs (configure.ac): ... to here.
13556
13557 2011-05-21  Bruno Haible  <bruno@clisp.org>
13558
13559         mbsinit: Move AC_LIBOBJ invocations to module description.
13560         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13561         invocations from here...
13562         * modules/mbsinit (configure.ac): ... to here.
13563
13564 2011-05-21  Bruno Haible  <bruno@clisp.org>
13565
13566         mbrlen: Move AC_LIBOBJ invocations to module description.
13567         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13568         invocations from here...
13569         * modules/mbrlen (configure.ac): ... to here.
13570
13571 2011-05-21  Bruno Haible  <bruno@clisp.org>
13572
13573         mbrtowc: Respect rules for use of AC_LIBOBJ.
13574         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13575         invocations from here...
13576         * modules/mbrtowc (configure.ac): ... to here.
13577
13578 2011-05-21  Bruno Haible  <bruno@clisp.org>
13579
13580         malloc-*: Move AC_LIBOBJ invocations to module description.
13581         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13582         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13583         AC_LIBOBJ invocations from here...
13584         * modules/malloc-gnu (configure.ac): ... to here.
13585         * modules/malloc-posix (configure.ac): ... and here.
13586
13587 2011-05-21  Bruno Haible  <bruno@clisp.org>
13588
13589         lstat, openat: Respect rules for use of AC_LIBOBJ.
13590         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13591         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13592         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13593         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13594         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13595         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13596         here.
13597         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13598
13599 2011-05-21  Bruno Haible  <bruno@clisp.org>
13600
13601         lseek: Move AC_LIBOBJ invocations to module description.
13602         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13603         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13604         * modules/lseek (configure.ac): ... to here.
13605
13606 2011-05-21  Bruno Haible  <bruno@clisp.org>
13607
13608         linkat: Move AC_LIBOBJ invocations to module description.
13609         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13610         here...
13611         * modules/linkat (configure.ac): ... to here.
13612
13613 2011-05-21  Bruno Haible  <bruno@clisp.org>
13614
13615         link: Respect rules for use of AC_LIBOBJ.
13616         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13617         * modules/link (configure.ac): ... to here.
13618
13619 2011-05-21  Bruno Haible  <bruno@clisp.org>
13620
13621         lchown: Move AC_LIBOBJ invocations to module description.
13622         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13623         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13624         * modules/lchown (configure.ac): ... to here.
13625
13626 2011-05-21  Bruno Haible  <bruno@clisp.org>
13627
13628         iswctype: Move AC_LIBOBJ invocations to module description.
13629         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13630         here...
13631         * modules/iswctype (configure.ac): ... to here.
13632
13633 2011-05-21  Bruno Haible  <bruno@clisp.org>
13634
13635         iswblank: Move AC_LIBOBJ invocations to module description.
13636         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13637         here...
13638         * modules/iswblank (configure.ac): ... to here.
13639
13640 2011-05-21  Bruno Haible  <bruno@clisp.org>
13641
13642         atanl: Move AC_LIBOBJ invocations to module description.
13643         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13644         * modules/atanl (configure.ac): ... to here.
13645
13646 2011-05-21  Bruno Haible  <bruno@clisp.org>
13647
13648         acosl: Move AC_LIBOBJ invocations to module description.
13649         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13650         * modules/acosl (configure.ac): ... to here.
13651
13652 2011-05-21  Bruno Haible  <bruno@clisp.org>
13653
13654         asinl: Respect rules for use of AC_LIBOBJ.
13655         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13656         * modules/asinl (configure.ac): ... to here.
13657
13658 2011-05-21  Bruno Haible  <bruno@clisp.org>
13659
13660         tanl: Move AC_LIBOBJ invocations to module description.
13661         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13662         * modules/tanl (configure.ac): ... to here.
13663
13664 2011-05-21  Bruno Haible  <bruno@clisp.org>
13665
13666         cosl: Move AC_LIBOBJ invocations to module description.
13667         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13668         * modules/cosl (configure.ac): ... to here.
13669
13670 2011-05-21  Bruno Haible  <bruno@clisp.org>
13671
13672         sinl: Move AC_LIBOBJ invocations to module description.
13673         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13674         * modules/sinl (configure.ac): ... to here.
13675
13676 2011-05-21  Bruno Haible  <bruno@clisp.org>
13677
13678         logl: Move AC_LIBOBJ invocations to module description.
13679         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13680         * modules/logl (configure.ac): ... to here.
13681
13682 2011-05-21  Bruno Haible  <bruno@clisp.org>
13683
13684         expl: Move AC_LIBOBJ invocations to module description.
13685         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13686         * modules/expl (configure.ac): ... to here.
13687
13688 2011-05-21  Bruno Haible  <bruno@clisp.org>
13689
13690         roundl: Move AC_LIBOBJ invocations to module description.
13691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13692         * modules/roundl (configure.ac): ... to here.
13693
13694 2011-05-21  Bruno Haible  <bruno@clisp.org>
13695
13696         round: Move AC_LIBOBJ invocations to module description.
13697         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13698         * modules/round (configure.ac): ... to here.
13699
13700 2011-05-21  Bruno Haible  <bruno@clisp.org>
13701
13702         roundf: Move AC_LIBOBJ invocations to module description.
13703         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13704         * modules/roundf (configure.ac): ... to here.
13705
13706 2011-05-21  Bruno Haible  <bruno@clisp.org>
13707
13708         truncl: Move AC_LIBOBJ invocations to module description.
13709         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13710         * modules/truncl (configure.ac): ... to here.
13711
13712 2011-05-21  Bruno Haible  <bruno@clisp.org>
13713
13714         trunc: Move AC_LIBOBJ invocations to module description.
13715         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13716         * modules/trunc (configure.ac): ... to here.
13717
13718 2011-05-21  Bruno Haible  <bruno@clisp.org>
13719
13720         truncf: Move AC_LIBOBJ invocations to module description.
13721         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13722         * modules/truncf (configure.ac): ... to here.
13723
13724 2011-05-21  Bruno Haible  <bruno@clisp.org>
13725
13726         ceill: Move AC_LIBOBJ invocations to module description.
13727         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13728         * modules/ceill (configure.ac): ... to here.
13729
13730 2011-05-21  Bruno Haible  <bruno@clisp.org>
13731
13732         ceil: Move AC_LIBOBJ invocations to module description.
13733         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13734         * modules/ceil (configure.ac): ... to here.
13735
13736 2011-05-21  Bruno Haible  <bruno@clisp.org>
13737
13738         ceilf: Move AC_LIBOBJ invocations to module description.
13739         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13740         * modules/ceilf (configure.ac): ... to here.
13741
13742 2011-05-21  Bruno Haible  <bruno@clisp.org>
13743
13744         floorl: Respect rules for use of AC_LIBOBJ.
13745         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13746         * modules/floorl (configure.ac): ... to here.
13747
13748 2011-05-21  Bruno Haible  <bruno@clisp.org>
13749
13750         floor: Respect rules for use of AC_LIBOBJ.
13751         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13752         * modules/floor (configure.ac): ... to here.
13753
13754 2011-05-21  Bruno Haible  <bruno@clisp.org>
13755
13756         floorf: Move AC_LIBOBJ invocations to module description.
13757         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13758         * modules/floorf (configure.ac): ... to here.
13759
13760 2011-05-20  Bruno Haible  <bruno@clisp.org>
13761
13762         sqrtl: Respect rules for use of AC_LIBOBJ.
13763         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13764         * modules/sqrtl (configure.ac): ... to here.
13765
13766 2011-05-20  Bruno Haible  <bruno@clisp.org>
13767
13768         ldexpl: Respect rules for use of AC_LIBOBJ.
13769         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13770         * modules/ldexpl (configure.ac): ... to here.
13771
13772 2011-05-20  Bruno Haible  <bruno@clisp.org>
13773
13774         frexpl*: Respect rules for use of AC_LIBOBJ.
13775         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13776         invocation from here...
13777         * modules/frexpl (configure.ac): ... to here.
13778         * modules/frexpl-nolibm (configure.ac): ... and here.
13779
13780 2011-05-20  Bruno Haible  <bruno@clisp.org>
13781
13782         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13783         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13784         invocation from here...
13785         * modules/frexp (configure.ac): ... to here.
13786         * modules/frexp-nolibm (configure.ac): ... and here.
13787
13788 2011-05-20  Bruno Haible  <bruno@clisp.org>
13789
13790         isnan: Respect rules for use of AC_LIBOBJ.
13791         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13792         invocations here.
13793         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13794         REPLACE_ISNAN.
13795         * modules/isnand (configure.ac): Likewise.
13796         * modules/isnanl (configure.ac): Likewise.
13797
13798 2011-05-20  Bruno Haible  <bruno@clisp.org>
13799
13800         isnanl*: Respect rules for use of AC_LIBOBJ.
13801         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13802         invocation from here...
13803         * modules/isnanl (configure.ac): ... to here.
13804         * modules/isnanl-nolibm (configure.ac): ... and here.
13805
13806 2011-05-20  Bruno Haible  <bruno@clisp.org>
13807
13808         isnand*: Move AC_LIBOBJ invocations to module description.
13809         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13810         invocation from here...
13811         * modules/isnand (configure.ac): ... to here.
13812         * modules/isnand-nolibm (configure.ac): ... and here.
13813
13814 2011-05-20  Bruno Haible  <bruno@clisp.org>
13815
13816         isnanf*: Move AC_LIBOBJ invocations to module description.
13817         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13818         invocation from here...
13819         * modules/isnanf (configure.ac): ... to here.
13820         * modules/isnanf-nolibm (configure.ac): ... and here.
13821
13822 2011-05-20  Bruno Haible  <bruno@clisp.org>
13823
13824         isnan*: Separate the AC_LIBOBJ invocations.
13825         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13826         AC_LIBOBJ invocation.
13827         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13828         here.
13829         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13830         AC_LIBOBJ invocation.
13831         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13832         here.
13833         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13834         AC_LIBOBJ invocation.
13835         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13836         here.
13837         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13838
13839 2011-05-08  Bruno Haible  <bruno@clisp.org>
13840
13841         isinf: Move AC_LIBOBJ invocations to module description.
13842         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13843         * modules/isinf (configure.ac): ... to here.
13844
13845 2011-05-08  Bruno Haible  <bruno@clisp.org>
13846
13847         isfinite: Move AC_LIBOBJ invocations to module description.
13848         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13849         * modules/isfinite (configure.ac): ... to here.
13850
13851 2011-05-08  Bruno Haible  <bruno@clisp.org>
13852
13853         isblank: Move AC_LIBOBJ invocations to module description.
13854         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13855         here...
13856         * modules/isblank (configure.ac): ... to here.
13857
13858 2011-05-08  Bruno Haible  <bruno@clisp.org>
13859
13860         isapipe: Move AC_LIBOBJ invocations to module description.
13861         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13862         gl_PREREQ_ISAPIPE invocations from here...
13863         * modules/isapipe (configure.ac): ... to here.
13864         (Depends-on): Update condition.
13865
13866 2011-05-08  Bruno Haible  <bruno@clisp.org>
13867
13868         ioctl: Move AC_LIBOBJ invocations to module description.
13869         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13870         invocations from here...
13871         * modules/ioctl (configure.ac): ... to here.
13872         (Depends-on): Update condition.
13873
13874 2011-05-08  Bruno Haible  <bruno@clisp.org>
13875
13876         imaxdiv: Move AC_LIBOBJ invocations to module description.
13877         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13878         invocations from here...
13879         * modules/imaxdiv (configure.ac): ... to here.
13880
13881 2011-05-08  Bruno Haible  <bruno@clisp.org>
13882
13883         imaxabs: Move AC_LIBOBJ invocations to module description.
13884         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13885         invocations from here...
13886         * modules/imaxabs (configure.ac): ... to here.
13887
13888 2011-05-08  Bruno Haible  <bruno@clisp.org>
13889
13890         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13892         AC_LIBOBJ invocations from here...
13893         * modules/getaddrinfo (configure.ac): ... to here.
13894         (Depends-on): Add conditions.
13895
13896 2011-05-08  Bruno Haible  <bruno@clisp.org>
13897
13898         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13899         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13900         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13901         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13902         (gl_PREREQ_INET_PTON): ... from here.
13903         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13904         gl_PREREQ_INET_PTON here.
13905         (Depends-on): Update condition.
13906
13907 2011-05-08  Bruno Haible  <bruno@clisp.org>
13908
13909         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13910         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13911         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13912         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13913         (gl_PREREQ_INET_NTOP): ... from here.
13914         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13915         gl_PREREQ_INET_NTOP here.
13916         (Depends-on): Update condition.
13917
13918 2011-05-08  Bruno Haible  <bruno@clisp.org>
13919
13920         iconv_open: Move AC_LIBOBJ invocations to module description.
13921         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13922         AC_LIBOBJ invocations from here...
13923         * modules/iconv_open (configure.ac): ... to here.
13924
13925 2011-05-08  Bruno Haible  <bruno@clisp.org>
13926
13927         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13928         If module 'iconv_open' is among the main modules and module
13929         'iconv_open-utf' is among the tests dependencies, then
13930         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13931         return the special iconv_t values. Therefore iconv() and iconv_close()
13932         must support these special iconv_t values, already in lib, not only in
13933         tests.
13934         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13935         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13936         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13937         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13938         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13939         (Depends-on): Add the dependencies of iconv_open-utf.
13940         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13941         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13942         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13943
13944 2011-05-08  Bruno Haible  <bruno@clisp.org>
13945
13946         group-member: Move AC_LIBOBJ invocations to module description.
13947         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13948         gl_PREREQ_GROUP_MEMBER invocations from here...
13949         * modules/group-member (configure.ac): ... to here.
13950
13951 2011-05-08  Bruno Haible  <bruno@clisp.org>
13952
13953         grantpt: Move AC_LIBOBJ invocations to module description.
13954         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13955         invocations from here...
13956         * modules/grantpt (configure.ac): ... to here.
13957
13958 2011-05-08  Bruno Haible  <bruno@clisp.org>
13959
13960         glob: Move AC_LIBOBJ invocations to module description.
13961         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13962         from here...
13963         * modules/glob (configure.ac): ... to here.
13964
13965 2011-05-08  Bruno Haible  <bruno@clisp.org>
13966
13967         getusershell: Move AC_LIBOBJ invocations to module description.
13968         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13969         Move AC_LIBOBJ invocation from here...
13970         * modules/getusershell (configure.ac): ... to here.
13971         (Depends-on): Update condition.
13972
13973 2011-05-08  Bruno Haible  <bruno@clisp.org>
13974
13975         gettimeofday: Move AC_LIBOBJ invocations to module description.
13976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13977         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13978         gl_PREREQ_GETTIMEOFDAY invocations from here...
13979         * modules/gettimeofday (configure.ac): ... to here.
13980
13981 2011-05-08  Bruno Haible  <bruno@clisp.org>
13982
13983         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13984         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13985         just gl_FUNC_TZSET.
13986         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13987         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13988         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13989         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13990
13991 2011-05-08  Bruno Haible  <bruno@clisp.org>
13992
13993         getsubopt: Move AC_LIBOBJ invocations to module description.
13994         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13995         gl_PREREQ_GETSUBOPT invocations from here...
13996         * modules/getsubopt (configure.ac): ... to here.
13997
13998 2011-05-08  Bruno Haible  <bruno@clisp.org>
13999
14000         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14001         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14002         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14003         * modules/getpass-gnu (configure.ac): ... to here.
14004
14005 2011-05-08  Bruno Haible  <bruno@clisp.org>
14006
14007         getpass: Move AC_LIBOBJ invocations to module description.
14008         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14009         gl_PREREQ_GETPASS invocations from here...
14010         * modules/getpass (configure.ac): ... to here.
14011
14012 2011-05-08  Bruno Haible  <bruno@clisp.org>
14013
14014         getpagesize: Move AC_LIBOBJ invocations to module description.
14015         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14016         from here...
14017         * modules/getpagesize (configure.ac): ... to here.
14018
14019 2011-05-08  Bruno Haible  <bruno@clisp.org>
14020
14021         getopt: Move AC_LIBOBJ invocations to module description.
14022         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14023         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14024         invocations from here...
14025         * modules/getopt-gnu (configure.ac): ... to here.
14026         * modules/getopt-posix (configure.ac): ... and here.
14027         (Depends-on): Update condition.
14028
14029 2011-05-08  Bruno Haible  <bruno@clisp.org>
14030
14031         getopt, argp: Respect rules for use of AC_LIBOBJ.
14032         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14033         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14034         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14035         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14036
14037 2011-05-08  Bruno Haible  <bruno@clisp.org>
14038
14039         getlogin_r: Move AC_LIBOBJ invocations to module description.
14040         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14041         gl_PREREQ_GETLOGIN_R invocations from here...
14042         * modules/getlogin_r (configure.ac): ... to here.
14043
14044 2011-05-08  Bruno Haible  <bruno@clisp.org>
14045
14046         getlogin: Move AC_LIBOBJ invocations to module description.
14047         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14048         here...
14049         * modules/getlogin (configure.ac): ... to here.
14050
14051 2011-05-08  Bruno Haible  <bruno@clisp.org>
14052
14053         getloadavg: Move AC_LIBOBJ invocations to module description.
14054         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14055         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14056         * modules/getloadavg (configure.ac): ... to here.
14057
14058 2011-05-08  Bruno Haible  <bruno@clisp.org>
14059
14060         gethrxtime: Move AC_LIBOBJ invocations to module description.
14061         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14062         LIB_GETHRXTIME from here...
14063         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14064         invocations from here...
14065         * modules/gethrxtime (configure.ac): ... to here.
14066
14067 2011-05-08  Bruno Haible  <bruno@clisp.org>
14068
14069         gethostname: Move AC_LIBOBJ invocations to module description.
14070         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14071         gl_PREREQ_GETHOSTNAME invocations from here...
14072         * modules/gethostname (configure.ac): ... to here.
14073
14074 2011-05-08  Bruno Haible  <bruno@clisp.org>
14075
14076         getgroups: Move AC_LIBOBJ invocations to module description.
14077         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14078         here...
14079         * modules/getgroups (configure.ac): ... to here.
14080
14081 2011-05-08  Bruno Haible  <bruno@clisp.org>
14082
14083         getdtablesize: Move AC_LIBOBJ invocations to module description.
14084         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14085         invocation from here...
14086         * modules/getdtablesize (configure.ac): ... to here.
14087
14088 2011-05-08  Bruno Haible  <bruno@clisp.org>
14089
14090         getdomainname: Move AC_LIBOBJ invocations to module description.
14091         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14092         gl_PREREQ_GETDOMAINNAME invocations from here...
14093         * modules/getdomainname (configure.ac): ... to here.
14094
14095 2011-05-08  Bruno Haible  <bruno@clisp.org>
14096
14097         getline: Move AC_LIBOBJ invocations to module description.
14098         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14099         invocations from here...
14100         * modules/getline (configure.ac): ... to here.
14101
14102 2011-05-08  Bruno Haible  <bruno@clisp.org>
14103
14104         getline: Simplify.
14105         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14106         It's already handled through the module dependency.
14107
14108 2011-05-08  Bruno Haible  <bruno@clisp.org>
14109
14110         getdelim: Move AC_LIBOBJ invocations to module description.
14111         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14112         and gl_PREREQ_GETDELIM invocations from here...
14113         * modules/getdelim (configure.ac): ... to here.
14114         (Depends-on): Fix condition.
14115
14116 2011-05-08  Bruno Haible  <bruno@clisp.org>
14117
14118         getcwd: Move AC_LIBOBJ invocations to module description.
14119         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14120         invocations from here...
14121         * modules/getcwd (configure.ac): ... to here.
14122
14123 2011-05-08  Bruno Haible  <bruno@clisp.org>
14124
14125         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14126         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14127         here...
14128         * modules/getcwd-lgpl (configure.ac): ... to here.
14129
14130 2011-05-07  Bruno Haible  <bruno@clisp.org>
14131
14132         crypto/gc: Move AC_LIBOBJ invocations to module description.
14133         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14134         * modules/crypto/gc (configure.ac): ... to here.
14135
14136 2011-05-07  Bruno Haible  <bruno@clisp.org>
14137
14138         fwriting: Move AC_LIBOBJ invocations to module description.
14139         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14140         here...
14141         * modules/fwriting (configure.ac): ... to here.
14142
14143 2011-05-07  Bruno Haible  <bruno@clisp.org>
14144
14145         fwritable: Move AC_LIBOBJ invocations to module description.
14146         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14147         here...
14148         * modules/fwritable (configure.ac): ... to here.
14149
14150 2011-05-07  Bruno Haible  <bruno@clisp.org>
14151
14152         futimens: Move AC_LIBOBJ invocations to module description.
14153         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14154         here...
14155         * modules/futimens (configure.ac): ... to here.
14156
14157 2011-05-07  Bruno Haible  <bruno@clisp.org>
14158
14159         ftruncate: Move AC_LIBOBJ invocations to module description.
14160         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14161         gl_PREREQ_FTRUNCATE invocations from here...
14162         * modules/ftruncate (configure.ac): ... to here.
14163
14164 2011-05-07  Bruno Haible  <bruno@clisp.org>
14165
14166         fsync: Move AC_LIBOBJ invocations to module description.
14167         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14168         invocations from here...
14169         * modules/fsync (configure.ac): ... to here.
14170
14171 2011-05-07  Bruno Haible  <bruno@clisp.org>
14172
14173         fsusage: Move AC_LIBOBJ invocations to module description.
14174         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14175         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14176         * modules/fsusage (configure.ac): ... to here.
14177
14178 2011-05-07  Bruno Haible  <bruno@clisp.org>
14179
14180         freopen: Move AC_LIBOBJ invocations to module description.
14181         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14182         invocations from here...
14183         * modules/freopen (configure.ac): ... to here.
14184
14185 2011-05-07  Bruno Haible  <bruno@clisp.org>
14186
14187         free: Move AC_LIBOBJ invocations to module description.
14188         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14189         invocations from here...
14190         * modules/free (configure.ac): ... to here.
14191
14192 2011-05-07  Bruno Haible  <bruno@clisp.org>
14193
14194         freadable: Move AC_LIBOBJ invocations to module description.
14195         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14196         here...
14197         * modules/freadable (configure.ac): ... to here.
14198
14199 2011-05-07  Bruno Haible  <bruno@clisp.org>
14200
14201         fpurge: Move AC_LIBOBJ invocations to module description.
14202         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14203         invocations from here...
14204         * modules/fpurge (configure.ac): ... to here.
14205
14206 2011-05-07  Bruno Haible  <bruno@clisp.org>
14207
14208         fpending: Move AC_LIBOBJ invocations to module description.
14209         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14210         gl_FUNC_FPENDING.
14211         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14212         invocations from here...
14213         * modules/fpending (configure.ac): ... to here.
14214
14215 2011-05-07  Bruno Haible  <bruno@clisp.org>
14216
14217         fopen: Move AC_LIBOBJ invocations to module description.
14218         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14219         invocations from here...
14220         * modules/fopen (configure.ac): ... to here.
14221
14222 2011-05-07  Bruno Haible  <bruno@clisp.org>
14223
14224         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14225         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14226         gl_FUNC_FNMATCH_POSIX.
14227         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14228         invocations from here...
14229         * modules/fnmatch (configure.ac): ... to here.
14230         * modules/fnmatch-gnu (configure.ac): ... and here.
14231
14232 2011-05-07  Bruno Haible  <bruno@clisp.org>
14233
14234         flock: Move AC_LIBOBJ invocations to module description.
14235         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14236         invocations from here...
14237         * modules/flock (configure.ac): ... to here.
14238
14239 2011-05-07  Bruno Haible  <bruno@clisp.org>
14240
14241         fileblocks: Move AC_LIBOBJ invocations to module description.
14242         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14243         gl_PREREQ_FILEBLOCKS invocations from here...
14244         * modules/fileblocks (configure.ac): ... to here.
14245
14246 2011-05-06  Bruno Haible  <bruno@clisp.org>
14247
14248         fflush: Move AC_LIBOBJ invocations to module description.
14249         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14250         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14251         invocations from here...
14252         * modules/fflush (configure.ac): ... to here.
14253
14254 2011-05-06  Bruno Haible  <bruno@clisp.org>
14255
14256         fdopendir: Move AC_LIBOBJ invocations to module description.
14257         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14258         here...
14259         * modules/fdopendir (configure.ac): ... to here.
14260         (Depends-on): Improve conditions.
14261
14262 2011-05-06  Bruno Haible  <bruno@clisp.org>
14263
14264         _Exit: Move AC_LIBOBJ invocations to module description.
14265         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14266         invocations from here...
14267         * modules/_Exit (configure.ac): ... to here.
14268
14269 2011-05-21  Bruno Haible  <bruno@clisp.org>
14270
14271         euidaccess: Respect rules for use of AC_LIBOBJ.
14272         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14273         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14274         from here...
14275         * modules/euidaccess (configure.ac): ... to here.
14276
14277 2011-05-06  Bruno Haible  <bruno@clisp.org>
14278
14279         error: Move AC_LIBOBJ invocations to module description.
14280         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14281         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14282         invocations from here...
14283         * modules/error (configure.ac): ... to here.
14284
14285 2011-05-06  Bruno Haible  <bruno@clisp.org>
14286
14287         duplocale: Move AC_LIBOBJ invocations to module description.
14288         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14289         gl_PREREQ_DUPLOCALE invocations from here...
14290         * modules/duplocale (configure.ac): ... to here.
14291
14292 2011-05-05  Bruno Haible  <bruno@clisp.org>
14293
14294         dirfd: Move AC_LIBOBJ invocations to module description.
14295         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14296         gl_FUNC_DIRFD.
14297         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14298         here...
14299         * modules/dirfd (configure.ac): ... to here.
14300         (Depends-on): Fix condition.
14301
14302 2011-05-05  Bruno Haible  <bruno@clisp.org>
14303
14304         chown: Respect rules for use of AC_LIBOBJ.
14305         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14306         * modules/chown (configure.ac): ... to here.
14307
14308 2011-05-05  Bruno Haible  <bruno@clisp.org>
14309
14310         chdir-long: Move AC_LIBOBJ invocations to module description.
14311         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14312         gl_PREREQ_CHDIR_LONG invocations from here...
14313         * modules/chdir-long (configure.ac): ... to here.
14314
14315 2011-05-05  Bruno Haible  <bruno@clisp.org>
14316
14317         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14318         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14319         from here...
14320         * modules/canonicalize-lgpl (configure.ac): ... to here.
14321
14322 2011-05-05  Bruno Haible  <bruno@clisp.org>
14323
14324         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14325         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14326         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14327         REPLACE_CALLOC.
14328         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14329         * modules/calloc-gnu (configure.ac): Likewise.
14330
14331 2011-05-05  Bruno Haible  <bruno@clisp.org>
14332
14333         btowc: Move AC_LIBOBJ invocations to module description.
14334         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14335         invocations from here...
14336         * modules/btowc (configure.ac): ... to here.
14337
14338 2011-05-21  Bruno Haible  <bruno@clisp.org>
14339
14340         atexit: Move AC_LIBOBJ invocations to module description.
14341         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14343         here...
14344         * modules/atexit (configure.ac): ... to here.
14345
14346 2011-05-05  Bruno Haible  <bruno@clisp.org>
14347
14348         atoll: Move AC_LIBOBJ invocations to module description.
14349         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14350         invocations from here...
14351         * modules/atoll (configure.ac): ... to here.
14352
14353 2011-05-05  Bruno Haible  <bruno@clisp.org>
14354
14355         argz: Move AC_LIBOBJ invocations to module description.
14356         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14357         * modules/argz (configure.ac): ... to here.
14358
14359 2011-05-05  Bruno Haible  <bruno@clisp.org>
14360
14361         alphasort: Move AC_LIBOBJ invocations to module description.
14362         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14363         gl_PREREQ_ALPHASORT invocations from here...
14364         * modules/alphasort (configure.ac): ... to here.
14365
14366 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14367
14368         verify: new macro verify_expr; verify_true deprecated
14369         * NEWS: Mention this.
14370         * doc/verify.texi (Compile-time Assertions): Document this.
14371         * lib/verify.h (verify_true): Deprecate.
14372         (verify_expr): New macro.
14373         * tests/test-verify.c (function): Test verify_expr.
14374
14375 2011-06-14  Jim Meyering  <meyering@redhat.com>
14376
14377         init.sh: give more portable redirection-related advice in a comment
14378         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14379         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14380         for lots of discussion.  Stefano Lattarini suggested the solution
14381         of putting "9>&2" after the command.  Reported by Bruno Haible.
14382
14383 2011-06-13  Bruno Haible  <bruno@clisp.org>
14384
14385         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14386         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14387         'none'.
14388
14389 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14390
14391         ftoastr: use strtof only if HAVE_STRTOF
14392         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14394         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14395         * modules/ftoastr (configure.ac): Check for strtof.
14396
14397 2011-06-13  Bruno Haible  <bruno@clisp.org>
14398
14399         gnulib-tool: Addendum to 2011-06-08 commit.
14400         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14401         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14402
14403 2011-06-13  Bruno Haible  <bruno@clisp.org>
14404
14405         fseeko: Provide a non-inline replacement of fseek().
14406         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14407         * modules/fseeko (Depends-on): Add fseek.
14408         * modules/fseek (License): Change to LGPLv2+.
14409
14410 2011-06-13  Bruno Haible  <bruno@clisp.org>
14411
14412         ftello: Provide a non-inline replacement of ftell().
14413         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14414         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14415         not have ftello() (such as on mingw).
14416         * modules/ftello (Depends-on): Add ftell.
14417         * modules/ftell (License): Change to LGPLv2+.
14418
14419 2011-05-07  Bruno Haible  <bruno@clisp.org>
14420
14421         ftell: Move AC_LIBOBJ invocations to module description.
14422         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14423         * modules/ftell (configure.ac): ... to here.
14424
14425 2011-05-07  Bruno Haible  <bruno@clisp.org>
14426
14427         ftello: Respect rules for use of AC_LIBOBJ.
14428         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14429         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14430         here...
14431         * modules/ftello (configure.ac): ... to here.
14432
14433 2011-05-07  Bruno Haible  <bruno@clisp.org>
14434
14435         fseeko: Simplify.
14436         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14437         (gl_FUNC_FSEEKO): Inline it here.
14438
14439 2011-05-07  Bruno Haible  <bruno@clisp.org>
14440
14441         fseek: Move AC_LIBOBJ invocations to module description.
14442         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14443         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14444         * modules/fseek (configure.ac): ... to here.
14445
14446 2011-05-07  Bruno Haible  <bruno@clisp.org>
14447
14448         fseek: Respect rules for use of AC_LIBOBJ.
14449         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14450         here...
14451         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14452
14453 2011-05-07  Bruno Haible  <bruno@clisp.org>
14454
14455         fseeko: Respect rules for use of AC_LIBOBJ.
14456         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14457         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14458         here...
14459         * modules/fseeko (configure.ac): ... to here.
14460
14461 2011-06-13  Bruno Haible  <bruno@clisp.org>
14462
14463         gnulib-tool: Allow comments in the 'Depends-on' section.
14464         * doc/gnulib.texi (Module description): Mention comment syntax in the
14465         Depends-on section.
14466         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14467
14468 2011-06-13  Bruno Haible  <bruno@clisp.org>
14469
14470         file-set.h: guard __attibute__ use, now that it's not always defined
14471         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14472         versions that support it.  This fixes a coreutils build failure with
14473         the vendor cc on HP-UX 11.31.
14474
14475 2011-06-12  Bruno Haible  <bruno@clisp.org>
14476
14477         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14478         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14479         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14480         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14481         (acl, aclsort): New declarations.
14482         (aclv_nontrivial): New declaration.
14483         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14484         (file_has_acl): Read also the second kind of HP-UX ACLs.
14485         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14486         kind of HP-UX ACLs if the first kind fails.
14487         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14488         second kind of HP-UX ACLs.
14489         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14490         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14491         agree.
14492         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14493         hpuxjfs.
14494         Handle hpuxjfs.
14495         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14496         hpuxjfs.
14497         Handle hpuxjfs.
14498         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14499         (func_test_same_acls): Use both lsacl and getacl.
14500         Handle hpuxjfs.
14501         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14502         (func_test_same_acls): Use both lsacl and getacl.
14503         Handle hpuxjfs.
14504
14505 2011-06-12  Bruno Haible  <bruno@clisp.org>
14506
14507         acl: Complete the 2010-08-10 fix.
14508         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14509         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14510         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14511         explicitly.
14512         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14513         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14514
14515 2011-06-12  Bruno Haible  <bruno@clisp.org>
14516
14517         spawn-pipe tests: Comments.
14518         * tests/test-spawn-pipe-child.c (main): Update comment.
14519         Reported by James Youngman <jay@gnu.org>.
14520
14521 2011-06-11  James Youngman  <jay@gnu.org>
14522
14523         New module 'stat-size'.
14524         * modules/stat-size: New module.  Provides macros for accessing
14525         file size information in instances of struct stat.  Depends on the
14526         fileblocks module because it calls st_blocks.
14527         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14528         * doc/gnulib.texi: Include stat-size.texi.
14529         * doc/stat-size.texi: Documentation for this module.
14530         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14531         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14532         AC_STRUCT_ST_BLOCKS.
14533
14534 2011-06-09  Bruno Haible  <bruno@clisp.org>
14535
14536         thread: Support pthreads-win32.
14537         * lib/glthread/thread.h (gl_thread_self): Define differently on
14538         pthreads-win32.
14539         (gl_null_thread): New declaration.
14540         (gl_thread_self_pointer): New macro.
14541         * lib/glthread/thread.c (gl_null_thread): New constant.
14542         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14543         gl_thread_self.
14544         * tests/test-tls.c: Likewise.
14545         Suggested by Paul Eggert. Reported by Eric Blake.
14546
14547 2011-06-09  Bruno Haible  <bruno@clisp.org>
14548
14549         thread: Fix confusion between NULL and 0.
14550         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14551         Reported by Paul Eggert.
14552
14553 2011-06-09  Bruno Haible  <bruno@clisp.org>
14554
14555         spawn-pipe tests: Avoid test failure on HP-UX 11.
14556         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14557         is closed.
14558
14559 2011-06-09  Bruno Haible  <bruno@clisp.org>
14560
14561         acl tests: Fix compilation error on HP-UX 11.
14562         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14563
14564 2011-06-09  Bruno Haible  <bruno@clisp.org>
14565
14566         rmdir: Avoid test failure on HP-UX 10.20.
14567         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14568         EEXIST.
14569
14570 2011-06-08  Eric Blake  <eblake@redhat.com>
14571
14572         perror: fix test on mingw
14573         * modules/perror-tests (Depends-on): Add dup2.
14574
14575         strerror_r-posix: fix on MacOS
14576         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14577         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14578         logic bug.
14579         * lib/strerror_r.c (strerror_r): Fix the bug.
14580         * lib/strerror.c (strerror): Likewise.
14581         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14582         problem.
14583         * doc/posix-functions/strerror.texi (strerror): Likewise.
14584         * doc/posix-functions/perror.texi (perror): Likewise.
14585         * tests/test-strerror.c (main): Enhance test.
14586         * tests/test-strerror_r.c (main): Likewise.
14587
14588 2011-06-08  Bruno Haible  <bruno@clisp.org>
14589
14590         gnulib-tool: Better isolation between different gnulib-tool invocations.
14591         * gnulib-tool: New option --witness-c-macro.
14592         (witness_c_macro): New variable.
14593         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14594         AM_CPPFLAGS define it as a C macro.
14595         (func_emit_tests_Makefile_am): Likewise.
14596         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14597         read it from there.
14598         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14599         m4_define, not AC_DEFUN.
14600         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14601         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14602         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14603         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14604         s|...|...|, to substitute the values of the GNULIB_* module indicator
14605         variables.
14606         * modules/dirent (Makefile.am): Likewise.
14607         * modules/fcntl-h (Makefile.am): Likewise.
14608         * modules/iconv-h (Makefile.am): Likewise.
14609         * modules/langinfo (Makefile.am): Likewise.
14610         * modules/locale (Makefile.am): Likewise.
14611         * modules/math (Makefile.am): Likewise.
14612         * modules/netdb (Makefile.am): Likewise.
14613         * modules/poll-h (Makefile.am): Likewise.
14614         * modules/pty (Makefile.am): Likewise.
14615         * modules/search (Makefile.am): Likewise.
14616         * modules/signal (Makefile.am): Likewise.
14617         * modules/spawn (Makefile.am): Likewise.
14618         * modules/stdio (Makefile.am): Likewise.
14619         * modules/stdlib (Makefile.am): Likewise.
14620         * modules/string (Makefile.am): Likewise.
14621         * modules/sys_ioctl (Makefile.am): Likewise.
14622         * modules/sys_select (Makefile.am): Likewise.
14623         * modules/sys_socket (Makefile.am): Likewise.
14624         * modules/sys_stat (Makefile.am): Likewise.
14625         * modules/sys_times (Makefile.am): Likewise.
14626         * modules/sys_utsname (Makefile.am): Likewise.
14627         * modules/sys_wait (Makefile.am): Likewise.
14628         * modules/termios (Makefile.am): Likewise.
14629         * modules/time (Makefile.am): Likewise.
14630         * modules/unistd (Makefile.am): Likewise.
14631         * modules/wchar (Makefile.am): Likewise.
14632
14633 2011-06-08  Eric Blake  <eblake@redhat.com>
14634
14635         strerror: simplify replacement
14636         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14637         * modules/strerror (configure.ac): No prereqs needed here...
14638         * modules/strerror-override (configure.ac): ...but this needs it.
14639         (Files): Add file for needed prereq macro.
14640
14641 2011-06-08  Bruno Haible  <bruno@clisp.org>
14642
14643         strerror_r-posix: Tweaks.
14644         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14645         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14647         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14648         (gl_FUNC_STRERROR_R): ... to here.
14649         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14650
14651 2011-06-07  Eric Blake  <eblake@redhat.com>
14652
14653         perror: document fixed bugs
14654         * doc/posix-functions/perror.texi (perror): Document recent
14655         patches.
14656
14657 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14658
14659         stat-time: get_stat_birthtime failure is better-defined
14660         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14661         return a timestamp whose tv_sec and tv_nsec values are both -1.
14662         Previously, the spec said only that the tv_nsec value was negative.
14663         This upward-compatible change simplifies GNU tar a bit.
14664
14665 2011-06-07  Eric Blake  <eblake@redhat.com>
14666
14667         strerror_r-posix: work around cygwin 1.7.9
14668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14669         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14670         bug without replacing strerror_r.
14671         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14672         strerror_r is buggy, but without requiring strerror_r compilation.
14673         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14674
14675         test-perror: relax test to ignore cygwin bug
14676         * tests/test-perror2.c (main): Relax test on requiring detection
14677         of stream errors, and use unbuffered stream.
14678         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14679         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14680         * doc/posix-functions/fputc.texi (fputc): Likewise.
14681         * doc/posix-functions/fputs.texi (fputs): Likewise.
14682         * doc/posix-functions/fputws.texi (fputws): Likewise.
14683         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14684         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14685         * doc/posix-functions/getopt.texi (getopt): Likewise.
14686         * doc/posix-functions/perror.texi (perror): Likewise.
14687         * doc/posix-functions/printf.texi (printf): Likewise.
14688         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14689         * doc/posix-functions/psignal.texi (psignal): Likewise.
14690         * doc/posix-functions/putc.texi (putc): Likewise.
14691         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14692         Likewise.
14693         * doc/posix-functions/putchar.texi (putchar): Likewise.
14694         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14695         Likewise.
14696         * doc/posix-functions/puts.texi (puts): Likewise.
14697         * doc/posix-functions/putwc.texi (putwc): Likewise.
14698         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14699         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14700         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14701         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14702         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14703         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14704         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14705         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14706
14707 2011-05-22  Bruno Haible  <bruno@clisp.org>
14708
14709         strerror: Move AC_LIBOBJ invocations to module description.
14710         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14711         gl_PREREQ_STRERROR invocations from here...
14712         * modules/strerror (configure.ac): ... to here.
14713
14714 2011-05-21  Bruno Haible  <bruno@clisp.org>
14715
14716         perror: Use common idiom.
14717         * modules/perror (configure.ac): Reorder statements.
14718
14719 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14720
14721         tests: fix usage message in 'mktempd_'
14722         * tests/init.sh (mktempd_): In the usage message, use literal
14723         'mktempd_', not '$ME' (which is even undefined), as the name of
14724         the subroutine.
14725
14726 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14727
14728         tests init: new function 'fatal_', for hard errors
14729         Before this patch, the only way offered by tests/init.sh to
14730         properly signal a hard error was the `framework_failure_'
14731         function.  But the error message issued by that function,
14732         as its name would suggest, refers to a set-up failure in the
14733         testsuite, while hard errors can obviously also be due to
14734         other reasons.  The best way to fix this inconsistency is to
14735         introduce a new function with a more general error message.
14736         * tests/init.sh (fatal_): New function.
14737
14738 2011-06-06  Eric Blake  <eblake@redhat.com>
14739
14740         canonicalize-lgpl: use common idiom
14741         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14742         over newer POSIX -Rf.
14743         Reported by Bruno Haible.
14744
14745         canonicalize-lgpl: work around AIX realpath bug
14746         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14747         * doc/posix-functions/realpath.texi (realpath): Document it.
14748         Reported by Bruno Haible.
14749
14750         strerror: work around FreeBSD bug
14751         * lib/strerror.c (strerror): Special case 0.
14752         Reported by Bruno Haible.
14753
14754         strerror-override: avoid bloating errno module
14755         * modules/errno (Files, configure.ac): Move replacement strings...
14756         * modules/strerror-override: ...to new module.
14757         * modules/strerror (Depends-on): Add strerror-override.
14758         * modules/strerror_r-posix (Depends-on): Likewise.
14759         * MODULES.html.sh: Document new module.
14760         Reported by Bruno Haible.
14761
14762 2011-06-06  Bruno Haible  <bruno@clisp.org>
14763
14764         spawn-pipe tests: Rename program.
14765         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14766         * tests/test-spawn-pipe-child.c: Update comment.
14767         * tests/test-spawn-pipe.sh: Update.
14768         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14769
14770         spawn-pipe tests: Link the child program only against libc.
14771         * tests/test-spawn-pipe-child.c: New file, extracted from
14772         tests/test-spawn-pipe.c.
14773         (main): Expect only one argument.
14774         (is_open): New function, copied from tests/test-pipe.c.
14775         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14776         (child_main): Remove function.
14777         (test_pipe): Pass only one argument to the child program.
14778         (main): Remove child process code. Expect the child program's name as
14779         first argument.
14780         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14781         argument.
14782         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14783         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14784         test-spawn-pipe-child against no libraries.
14785
14786 2011-06-06  Bruno Haible  <bruno@clisp.org>
14787
14788         careadlinkat: Avoid mismatch between ssize_t and int.
14789         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14790         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14791
14792 2011-06-06  Jim Meyering  <meyering@redhat.com>
14793
14794         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14795         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14796         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14797
14798 2011-06-05  Bruno Haible  <bruno@clisp.org>
14799
14800         ansi-c++-opt: Interoperability with libtool.
14801         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14802         set the variable to "no", not to ":".
14803         * NEWS: Mention the change.
14804
14805 2011-06-05  Bruno Haible  <bruno@clisp.org>
14806
14807         acl: Fix test failure on AIX 7.
14808         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14809         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14810
14811 2011-06-05  Bruno Haible  <bruno@clisp.org>
14812
14813         pipe-filter-ii: Fix test failure on AIX and IRIX.
14814         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14815         with EAGAIN, retry with a smaller buffer size.
14816
14817 2011-06-05  Bruno Haible  <bruno@clisp.org>
14818
14819         localename: Fix link dependencies.
14820         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14821         * modules/localename-tests (Makefile.am): Link test-localename with
14822         $(LIBTHREAD).
14823
14824 2011-06-05  Bruno Haible  <bruno@clisp.org>
14825
14826         error: Avoid gcc warning.
14827         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14828
14829 2011-06-05  Bruno Haible  <bruno@clisp.org>
14830
14831         unsetenv: Avoid gcc warning.
14832         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14833
14834 2011-06-05  Bruno Haible  <bruno@clisp.org>
14835
14836         setenv: Avoid gcc warning.
14837         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14838
14839 2011-06-05  Bruno Haible  <bruno@clisp.org>
14840
14841         sys_select: Ensure memset is declared also on AIX 7.
14842         * lib/sys_select.in.h: Include <string.h> also on AIX.
14843         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14844         self-contained also on AIX 7.1.
14845
14846 2011-06-04  Jim Meyering  <meyering@redhat.com>
14847
14848         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14849         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14850         function name, "error".
14851         (_gl_translatable_diag_func_re): New configurable variable.
14852
14853 2011-06-04  Bruno Haible  <bruno@clisp.org>
14854
14855         getopt: Avoid gcc warning.
14856         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14857
14858 2011-06-04  Bruno Haible  <bruno@clisp.org>
14859
14860         strerror_r: Fix comments.
14861         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14862         commit.
14863
14864 2011-06-04  Bruno Haible  <bruno@clisp.org>
14865
14866         perror: Fix compilation error.
14867         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14868         Undefine fprintf, not sprintf.
14869         * modules/perror (Depends-on): Remove intprops, verify.
14870
14871 2011-06-04  Bruno Haible  <bruno@clisp.org>
14872
14873         setlocale: Enable replacement on Cygwin 1.5.
14874         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14875         Cygwin 1.5.x.
14876         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14877         LC_CTYPE category also exists on Cygwin 1.5.x.
14878
14879 2011-06-04  Bruno Haible  <bruno@clisp.org>
14880
14881         strerror-override: Don't disable symbol renamings.
14882         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14883         * lib/strerror-override.c: Include config.h.
14884         (strerror_override): Don't undefine.
14885
14886 2011-06-03  Bruno Haible  <bruno@clisp.org>
14887
14888         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14889         * lib/localename.h: Update copyright header.
14890         * lib/localename.c: Likewise.
14891         * lib/relocatable.h: Likewise.
14892         * lib/relocatable.c: Likewise.
14893
14894 2011-06-02  Bruno Haible  <bruno@clisp.org>
14895
14896         doc: Fix a module name.
14897         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14898
14899 2011-06-02  Bruno Haible  <bruno@clisp.org>
14900
14901         pipe2: Remove dependency on 'nonblocking' module.
14902         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14903         O_NONBLOCK is defined by gnulib.
14904         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14905         is zero.
14906         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14907         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14908         defined by gnulib.
14909         (get_nonblocking_flag): New function.
14910         (main): Test O_NONBLOCK flag only if it is nonzero.
14911         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14912
14913 2011-06-03  Jim Meyering  <meyering@redhat.com>
14914
14915         maint: three new prohibit-header-without-use rules
14916         Prohibit use of cloexec.h, posixver.h, same.h without use.
14917         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14918         (sc_prohibit_posixver_without_use): Likewise.
14919         (sc_prohibit_same_without_use): Likewise.
14920
14921 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14922
14923         allocator: 'die' routine is now given requested size
14924         * lib/allocator.h (struct allocator.die): New size arg.
14925         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14926         If the actual problem is an ssize_t limitation, not a size_t or
14927         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14928
14929 2011-06-01  Eric Blake  <eblake@redhat.com>
14930
14931         strerror: drop strerror_r dependency
14932         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14933         * lib/strerror-override.c (strerror_override): ...to new file.
14934         * lib/strerror-override.h: Add prototype.
14935         * lib/strerror-impl.h: Delete.
14936         * lib/strerror.c (strerror): New implementation.
14937         * modules/errno (Files): Add new files.
14938         (configure.ac): Compile new file as appropriate.
14939         * modules/strerror (Files): Drop unused file.
14940         (Depends-on): Drop strerror_r-posix.
14941         * MODULES.html.sh: Document strerror_r-posix.
14942         Requested by Sam Steingold.
14943
14944         perror: call strerror_r directly
14945         * modules/perror (Files): Drop strerror-impl.h.
14946         * lib/perror.c (perror): Use our own stack buffer, rather than
14947         calling a wrapper that uses static storage.
14948         * doc/posix-functions/perror.texi (perror): Document a limitation
14949         of our replacement.
14950
14951         strerror_r: fix includes for FreeBSD
14952         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14953         since we use abort on some platforms.
14954         Reported by Matthias Bolte.
14955
14956 2011-05-31  Bruno Haible  <bruno@clisp.org>
14957
14958         Fix link errors in tests: openat-die uses gettext-h.
14959         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14960         against $(LIBINTL).
14961         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14962         against $(LIBINTL).
14963         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14964         $(LIBINTL).
14965         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14966         against $(LIBINTL).
14967         * modules/linkat-tests (Makefile.am): Link test-linkat against
14968         $(LIBINTL).
14969         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14970         $(LIBINTL).
14971         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14972         against $(LIBINTL).
14973         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14974         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14975         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14976         $(LIBINTL).
14977         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14978         $(LIBINTL).
14979         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14980         $(LIBINTL).
14981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14982
14983 2011-05-31  Bruno Haible  <bruno@clisp.org>
14984
14985         Fix link errors in tests: wait-process uses gettext-h.
14986         * modules/nonblocking-pipe-tests (Makefile.am): Set
14987         test_nonblocking_pipe_main_LDADD.
14988         * modules/nonblocking-socket-tests (Makefile.am): Link
14989         test-nonblocking-socket-main against $(LIBINTL).
14990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14991
14992 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14993
14994         assert-h: work around 'verify' incompatibility
14995         * lib/verify.h: Use @...@ directives, not ifdef.
14996         * modules/assert-h (assert.h): Implement the directives.
14997         (assert.h): Substitute the symbol-prefix more consistently.
14998
14999 2011-05-29  Jim Meyering  <meyering@redhat.com>
15000
15001         trim: remove three superfluous assignments
15002         * lib/trim.c (trim2): Remove three superfluous assignments
15003         and correct brace positioning.
15004
15005 2011-05-29  Bruno Haible  <bruno@clisp.org>
15006
15007         wctype-h: Avoid namespace pollution on Solaris 2.6.
15008         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15009         identifiers.
15010         * doc/posix-headers/wctype.texi: Mention the problem.
15011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15012
15013 2011-05-28  Jim Meyering  <meyering@redhat.com>
15014
15015         parse-datetime.y: accommodate -Wstrict-overflow
15016         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15017         placate -Wstrict-overflow.
15018
15019         trim: avoid a warning from -O2 -Wstrict-overflow
15020         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15021
15022 2011-05-29  Bruno Haible  <bruno@clisp.org>
15023
15024         gnulib-tool: Fix bug in yesterday's commit.
15025         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15026         twice.
15027
15028 2011-05-29  Bruno Haible  <bruno@clisp.org>
15029
15030         Allow multiple gnulib generated include files to be combined.
15031         * gnulib-tool (func_compute_include_guard_prefix): New function.
15032         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15033         ${gl_include_guard_prefix} references.
15034         (func_import, func_create_testdir): Invoke
15035         func_compute_include_guard_prefix.
15036         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15037         * lib/ctype.in.h: Likewise.
15038         * lib/dirent.in.h: Likewise.
15039         * lib/errno.in.h: Likewise.
15040         * lib/fcntl.in.h: Likewise.
15041         * lib/float.in.h: Likewise.
15042         * lib/getopt.in.h: Likewise.
15043         * lib/iconv.in.h: Likewise.
15044         * lib/langinfo.in.h: Likewise.
15045         * lib/locale.in.h: Likewise.
15046         * lib/math.in.h: Likewise.
15047         * lib/netdb.in.h: Likewise.
15048         * lib/netinet_in.in.h: Likewise.
15049         * lib/poll.in.h: Likewise.
15050         * lib/pthread.in.h: Likewise.
15051         * lib/pty.in.h: Likewise.
15052         * lib/sched.in.h: Likewise.
15053         * lib/se-selinux.in.h: Likewise.
15054         * lib/search.in.h: Likewise.
15055         * lib/signal.in.h: Likewise.
15056         * lib/spawn.in.h: Likewise.
15057         * lib/stdarg.in.h: Likewise.
15058         * lib/stddef.in.h: Likewise.
15059         * lib/stdint.in.h: Likewise.
15060         * lib/stdio.in.h: Likewise.
15061         * lib/stdlib.in.h: Likewise.
15062         * lib/string.in.h: Likewise.
15063         * lib/strings.in.h: Likewise.
15064         * lib/sys_file.in.h: Likewise.
15065         * lib/sys_ioctl.in.h: Likewise.
15066         * lib/sys_select.in.h: Likewise.
15067         * lib/sys_socket.in.h: Likewise.
15068         * lib/sys_stat.in.h: Likewise.
15069         * lib/sys_time.in.h: Likewise.
15070         * lib/sys_times.in.h: Likewise.
15071         * lib/sys_uio.in.h: Likewise.
15072         * lib/sys_utsname.in.h: Likewise.
15073         * lib/sys_wait.in.h: Likewise.
15074         * lib/sysexits.in.h: Likewise.
15075         * lib/termios.in.h: Likewise.
15076         * lib/time.in.h: Likewise.
15077         * lib/unistd.in.h: Likewise.
15078         * lib/wchar.in.h: Likewise.
15079         * lib/wctype.in.h: Likewise.
15080         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15081         * modules/ctype (Makefile.am): Likewise.
15082         * modules/dirent (Makefile.am): Likewise.
15083         * modules/errno (Makefile.am): Likewise.
15084         * modules/fcntl-h (Makefile.am): Likewise.
15085         * modules/float (Makefile.am): Likewise.
15086         * modules/getopt-posix (Makefile.am): Likewise.
15087         * modules/iconv-h (Makefile.am): Likewise.
15088         * modules/langinfo (Makefile.am): Likewise.
15089         * modules/locale (Makefile.am): Likewise.
15090         * modules/math (Makefile.am): Likewise.
15091         * modules/netdb (Makefile.am): Likewise.
15092         * modules/netinet_in (Makefile.am): Likewise.
15093         * modules/poll-h (Makefile.am): Likewise.
15094         * modules/pthread (Makefile.am): Likewise.
15095         * modules/pty (Makefile.am): Likewise.
15096         * modules/sched (Makefile.am): Likewise.
15097         * modules/search (Makefile.am): Likewise.
15098         * modules/selinux-h (Makefile.am): Likewise.
15099         * modules/signal (Makefile.am): Likewise.
15100         * modules/spawn (Makefile.am): Likewise.
15101         * modules/stdarg (Makefile.am): Likewise.
15102         * modules/stddef (Makefile.am): Likewise.
15103         * modules/stdint (Makefile.am): Likewise.
15104         * modules/stdio (Makefile.am): Likewise.
15105         * modules/stdlib (Makefile.am): Likewise.
15106         * modules/string (Makefile.am): Likewise.
15107         * modules/strings (Makefile.am): Likewise.
15108         * modules/sys_file (Makefile.am): Likewise.
15109         * modules/sys_ioctl (Makefile.am): Likewise.
15110         * modules/sys_select (Makefile.am): Likewise.
15111         * modules/sys_socket (Makefile.am): Likewise.
15112         * modules/sys_stat (Makefile.am): Likewise.
15113         * modules/sys_time (Makefile.am): Likewise.
15114         * modules/sys_times (Makefile.am): Likewise.
15115         * modules/sys_uio (Makefile.am): Likewise.
15116         * modules/sys_utsname (Makefile.am): Likewise.
15117         * modules/sys_wait (Makefile.am): Likewise.
15118         * modules/sysexits (Makefile.am): Likewise.
15119         * modules/termios (Makefile.am): Likewise.
15120         * modules/time (Makefile.am): Likewise.
15121         * modules/unistd (Makefile.am): Likewise.
15122         * modules/wchar (Makefile.am): Likewise.
15123         * modules/wctype-h (Makefile.am): Likewise.
15124         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15125
15126 2011-05-29  Bruno Haible  <bruno@clisp.org>
15127
15128         assert-h: Allow multiple gnulib generated replacements to coexist.
15129         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15130
15131 2011-05-29  Bruno Haible  <bruno@clisp.org>
15132
15133         argp: Allow coexistence with strerror_r-posix module.
15134         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15135         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15136         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15137         not the glibc signature.
15138
15139 2011-05-28  Bruno Haible  <bruno@clisp.org>
15140
15141         gnulib-tool: Alternative structure of testdirs, similar to --import.
15142         * gnulib-tool: New option --single-configure.
15143         (func_usage): Document it.
15144         (single_configure): New variable.
15145         (func_modules_transitive_closure_separately,
15146         func_modules_transitive_closure_separately,
15147         func_determine_use_libtests, func_modules_add_dummy_separately,
15148         func_modules_to_filelist_separately): New functions, extracted from
15149         func_import.
15150         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15151         (func_import): Use the new functions.
15152         (func_create_testdir): Set final_modules. Handle $single_configure =
15153         true case.
15154
15155 2011-05-28  Bruno Haible  <bruno@clisp.org>
15156
15157         getloadavg: Remove an unreliable safety check.
15158         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15159         getloadavg.c is in place.
15160         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15161         Reported by Sam Steingold <sds@gnu.org>.
15162
15163 2011-05-28  Bruno Haible  <bruno@clisp.org>
15164
15165         doc: Cleanup yet another file produced by texinfo.tex.
15166         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15167
15168 2011-05-28  Bruno Haible  <bruno@clisp.org>
15169
15170         Finish the conditional dependencies mechanism.
15171         * gnulib-tool: New option --no-conditional-dependencies.
15172         (func_usage): Document it. Don't mark --conditional-dependencies as
15173         experimental.
15174         (cond_dependencies): The possible values can now be true, false, empty.
15175         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15176         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15177         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15178
15179 2011-05-28  Bruno Haible  <bruno@clisp.org>
15180
15181         doc: Use a recent texinfo.tex.
15182         * doc/Makefile (tex_opts): New variable.
15183         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15184
15185 2011-05-28  Jim Meyering  <meyering@redhat.com>
15186
15187         intprops.h: adjust comment to match code change
15188         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15189         only once, it *may* have side effects.  Also fix an unrelated typo.
15190         (_GL_INT_SIGNED): Likewise.
15191
15192 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15193
15194         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15195
15196 2011-05-26  Bruno Haible  <bruno@clisp.org>
15197
15198         mbsrchr: Avoid collision with system function on Interix.
15199         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15200         Reported by Markus Duft <mduft@gentoo.org>.
15201
15202 2011-05-15  James Youngman  <jay@gnu.org>
15203
15204         getopt: for ambiguous options, enumerate the possibilities.
15205         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15206         the ambiguous options when an ambiguous prefix is given. This was
15207         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15208         glibc change was
15209         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15210
15211 2011-05-25  Eric Blake  <eblake@redhat.com>
15212
15213         getcwd: work around mingw bug
15214         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15215         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15216         Reported by Matthias Bolte.
15217
15218 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15219
15220         test-intprops: disable -Wtype-limits diagnostics
15221         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15222         diagnostics.  Otherwise, the integer overflow macros generate many
15223         diagnostics.  Reported by Jim Meyering in
15224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15225
15226         intprops: shorten, to pacify gcc -Woverlength-strings
15227         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15228         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15229         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15230         likely to run afoul of C compiler limits for string constant lengths.
15231         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15232
15233 2011-05-24  Eric Blake  <eblake@redhat.com>
15234
15235         docs: document recently fixed glibc printf bug
15236         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15237         * doc/posix-functions/printf.texi (printf): Likewise.
15238         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15239         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15240
15241         closein-tests: convert to init.sh
15242         * modules/closein-tests (Files): Add init.sh
15243         * tests/test-closein.sh Use it.
15244
15245         yesno-tests: convert to init.sh
15246         * modules/yesno-tests (Files): Add init.sh.
15247         * tests/test-yesno.sh: Use it.
15248
15249         atexit-tests: ensure reliable exit status
15250         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15251         Reported by Bruno Haible.
15252
15253 2011-05-24  Bruno Haible  <bruno@clisp.org>
15254
15255         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15256         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15257         gl_PREREQ_STRERROR_R invocations from here...
15258         * modules/strerror_r-posix (configure.ac): ... to here.
15259
15260 2011-05-24  Eric Blake  <eblake@redhat.com>
15261
15262         strerror_r: fix missing header
15263         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15264
15265         strerror_r: fix AIX test failures
15266         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15267         ERANGE failure.
15268
15269         strerror_r: fix Solaris test failures
15270         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15271         failures.
15272         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15273
15274         strerror_r: enforce POSIX recommendations
15275         * lib/strerror_r.c (safe_copy): New helper method.
15276         (strerror_r): Guarantee a non-empty string.
15277         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15278         recent POSIX rulings and to match our strerror guarantees.
15279         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15280
15281 2011-05-24  Jim Meyering  <meyering@redhat.com>
15282
15283         test-perror2.c: avoid warning about unused variable
15284         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15285
15286 2011-05-24  Eric Blake  <eblake@redhat.com>
15287
15288         perror: avoid spurious test failure on HP-UX
15289         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15290
15291         tests: fix logic bug in init.sh
15292         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15293         shell.
15294
15295 2011-05-24  Jim Meyering  <meyering@redhat.com>
15296
15297         utimensat: do not reference an out-of-scope buffer
15298         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15299         declared in an inner scope, yet "times" would be dereferenced outside
15300         the scope in which "ts" was valid.
15301         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15302         of ts[2] "out/up", so that the use of aliased "times" (via
15303         "times = ts;") does not end up referencing an out-of-scope "ts"
15304
15305         opendir-safer.c: don't clobber errno; don't close negative FD
15306         * lib/opendir-safer.c (opendir_safer):
15307         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15308         file descriptor, and more importantly, don't clobber the
15309         offending errno value with EINVAL.  Before, upon failure
15310         of dup_safer, we would pass the negative file descriptor to
15311         fdopendir, which would clobber errno.
15312
15313 2011-05-23  Bruno Haible  <bruno@clisp.org>
15314
15315         idcache: Fix module description.
15316         * modules/idcache (Include): Set to "idcache.h".
15317
15318 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15319
15320         gnulib-tool: fix portability problem with MacOS sed
15321         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15322         before the "}".  Problem reported by Leo in
15323         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15324         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15325         sed_extract_condition1, sed_extract_condition2.
15326
15327 2011-05-23  Bruno Haible  <bruno@clisp.org>
15328
15329         hash: Simplify autoconf macro.
15330         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15331
15332 2011-05-23  Bruno Haible  <bruno@clisp.org>
15333
15334         getugroups: Fix module description.
15335         * modules/getugroups (Include): Set to "getugroups.h".
15336
15337 2011-05-23  Bruno Haible  <bruno@clisp.org>
15338
15339         linkat: Simplify autoconf macro.
15340         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15341
15342 2011-05-23  Bruno Haible  <bruno@clisp.org>
15343             Eric Blake  <eblake@redhat.com>
15344
15345         linkat, renameat: Update dependencies.
15346         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15347         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15348         symlinkat.
15349
15350 2011-05-23  Jim Meyering  <meyering@redhat.com>
15351
15352         maint.mk: more tight_scope improvements
15353         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15354         (_gl_TS_headers): Define only in if-0'd block.
15355         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15356         sometimes we must *not* use it.  Adjust uses accordingly.
15357         (sc_tight_scope): Use much simpler grep-based test to determine
15358         whether we skip this rule.
15359
15360         maint.mk: generalize/improve the tight-scope rule
15361         * top/maint.mk: Emit a warning when the test is skipped.
15362         (_gl_TS_dir): Add $(srcdir)/ prefix.
15363         (_gl_TS_function_match): Simplify, rather than trying
15364         to enumerate common types.  Otherwise, it would fail to match an
15365         "extern unsigned char const *" declaration in idutils.
15366         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15367         a way to support use of that type of macro.
15368         (_gl_TS_var_match): Simplify regexp.
15369         (_gl_TS_obj_files): New configurable variable.
15370         (_gl_TS_headers): Likewise.
15371
15372 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15373
15374         verify: fix bug when gnulib <assert.h> is also included
15375         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15376         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15377         Perhaps there's a better way, but this fixes the immediate problem.
15378         Problem reported by Bruno Haible in
15379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15380
15381 2011-05-22  Bruno Haible  <bruno@clisp.org>
15382
15383         xgetcwd: Simplify autoconf macro.
15384         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15385
15386 2011-05-22  Bruno Haible  <bruno@clisp.org>
15387
15388         New module 'mktime-internal'.
15389         * modules/mktime-internal: New file.
15390         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15391         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15392         mktime_internal as a C macro if libc has __mktime_internal.
15393         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15394         conditions.
15395         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15396
15397 2011-05-22  Bruno Haible  <bruno@clisp.org>
15398
15399         timegm: Correct mktime replacement statements.
15400         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15401         defining mktime as a C macro. This completes a 2009-07-28 commit.
15402
15403 2011-05-22  Bruno Haible  <bruno@clisp.org>
15404
15405         timegm: Simplify autoconf macro.
15406         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15407
15408 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15409
15410         clock-time: change to LGPLv2+.
15411         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15412         BSD-like but we have no mark for that; this is good enough for now.
15413
15414 2011-05-21  Bruno Haible  <bruno@clisp.org>
15415
15416         strerror_r: Fix comments.
15417         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15418
15419 2011-05-21  Bruno Haible  <bruno@clisp.org>
15420
15421         relocatable-prog-wrapper: Fix possible link error.
15422         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15423         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15424         (gl_FUNC_SETENV): ... to here.
15425         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15426         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15427
15428 2011-05-21  Bruno Haible  <bruno@clisp.org>
15429
15430         relocatable-prog-wrapper: Assume strerror() exists.
15431         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15432         m4/strerror.m4.
15433         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15434         * lib/relocwrapper.c: Remove mention of strerror module.
15435         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15436         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15437         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15438         C macro.
15439
15440 2011-05-21  Bruno Haible  <bruno@clisp.org>
15441
15442         select: Simplify replacement idiom.
15443         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15444         Win32 platforms.
15445         * lib/sys_select.in.h (select): Simplify accordingly.
15446         * modules/select (Depends-on): Likewise.
15447
15448 2011-05-21  Bruno Haible  <bruno@clisp.org>
15449
15450         mkdir-p: Simplify autoconf macro.
15451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15452         gl_FUNC_LCHOWN.
15453
15454 2011-05-21  Eric Blake  <eblake@redhat.com>
15455
15456         strerror_r: avoid clobbering strerror on cygwin
15457         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15458         fall back instead to sys_errlist.
15459         * modules/strerror (configure.ac): Add witness.
15460         * tests/test-strerror_r.c (main): Enhance test.
15461         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15462         * tests/test-perror2.c (main): Free memory before exit.
15463
15464 2011-05-21  Bruno Haible  <bruno@clisp.org>
15465
15466         mkdtemp: Use gnulib naming conventions.
15467         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15468         * modules/mkdtemp (configure.ac): Update.
15469
15470 2011-05-20  Eric Blake  <eblake@redhat.com>
15471
15472         strerror_r: avoid corrupting errno on Solaris
15473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15474         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15475
15476         strerror_r: avoid compiler warning
15477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15478
15479         strerror_r: simplify AIX code
15480         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15481
15482         test-perror: avoid spurious failure on FreeBSD
15483         * modules/perror-tests (Depends-on): Add strerror, now that
15484         strerror_r no longer pulls it in.
15485
15486 2011-05-20  Bruno Haible  <bruno@clisp.org>
15487
15488         strerror_r-posix: Remove unused dependencies.
15489         * modules/strerror_r-posix (Depends-on): Remove strerror.
15490         Reported by Eric Blake.
15491
15492 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15493
15494         intprops: remove assumption about A|B representation
15495         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15496         is a valid integer if both A and B are.  Although this is true for
15497         all known practical hosts, the C standard doesn't guarantee it,
15498         and the code need not assume it.  Also, this change may work around
15499         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15500         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15501
15502 2011-05-20  Eric Blake  <eblake@redhat.com>
15503
15504         perror: work around FreeBSD bug
15505         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15506         is broken.  Move AC_LIBOBJ...
15507         * modules/perror (configure.ac): Here.
15508         * doc/posix-functions/perror.texi (perror): Document this.
15509         * tests/test-perror2.c (main): Enhance test.
15510
15511         test-perror: check for strerror interactions
15512         * tests/macros.h (STREQ): Add macro.
15513         * modules/perror-tests (Files): Add second test.
15514         * tests/test-perror2.c (main): New file.
15515         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15516
15517         test-perror: rewrite to use init script
15518         * modules/perror-tests (Files): Add init.sh.
15519         * tests/test-perror.sh: Use temporary directory.
15520
15521 2011-05-20  Jim Meyering  <meyering@redhat.com>
15522
15523         maint: replace misused "a" with "an"
15524         * doc/intprops.texi: "a integer"
15525         * doc/regex.texi: "a explanation"
15526         * lib/alignof.h: "a object"
15527         * lib/argmatch.h: "a explanation"
15528         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15529         * lib/stdint.in.h: "a integer"
15530         * lib/userspec.c: "a owner"
15531         * doc/gnulib.texi: Fix "a idea", and reword.
15532
15533 2011-05-19  Jim Meyering  <meyering@redhat.com>
15534
15535         maint: correct misuse of "a" and "an"
15536         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15537         * lib/argp-help.c: "an docum...": s/an/a/
15538         * lib/argp-parse.c: "An vector": s/An/A/
15539         * lib/execute.c: "an native": s/an/a/
15540         * lib/spawn-pipe.c: Likewise.
15541         * lib/gc.h: "an Gc_rc": s/an/a/
15542         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15543         * lib/fts.c: "an stat.st_dev": s/an/a/
15544
15545 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15546
15547         intprops-tests: work around HP-UX 11.23 cc bug with constants
15548         * tests/test-intprops.c (VERIFY): New macro.
15549         (main): Use it, instead of verify, to work around the compiler bug; see
15550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15551
15552         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15553         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15554         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15555         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15556         (_GL_REMAINDER_OVERFLOW): Use it.
15557
15558         intprops-tests: revert unsigned part of previous change
15559         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15560         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15561         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15563
15564 2011-05-19  Bruno Haible  <bruno@clisp.org>
15565
15566         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15567         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15568         strerror_r() returned without filling the buffer.
15569         Reported by Eric Blake.
15570
15571 2011-05-19  Eric Blake  <eblake@redhat.com>
15572
15573         strerror_r: guarantee unchanged errno
15574         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15575         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15576         failure.
15577         * tests/test-strerror_r.c (main): Enhance test.
15578
15579 2011-05-19  Bruno Haible  <bruno@clisp.org>
15580
15581         strerror_r: Reorder #if blocks.
15582         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15583         for consistency with the previous commit.
15584
15585 2011-05-19  Bruno Haible  <bruno@clisp.org>
15586
15587         perror: Avoid clobbering the strerror buffer when possible.
15588         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15589         * lib/strerror.c: Include it.
15590         * modules/strerror (Files): Add lib/strerror-impl.h.
15591         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15592         (my_strerror): New function, defined through lib/strerror-impl.h.
15593         (perror): Use it instead of strerror.
15594         * modules/perror (Files): Add lib/strerror-impl.h.
15595         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15596
15597 2011-05-19  Eric Blake  <eblake@redhat.com>
15598
15599         strerror_r: fix on newer cygwin
15600         * lib/strerror_r.c (strerror_r): Cygwin now has
15601         __xpg_strerror_r, use it.
15602
15603 2011-05-19  Bruno Haible  <bruno@clisp.org>
15604
15605         strerror_r: Avoid clobbering the strerror buffer when possible.
15606         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15607         (sys_nerr, sys_errlist): New declarations.
15608         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15609         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15610         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15611
15612 2011-05-19  Bruno Haible  <bruno@clisp.org>
15613
15614         strerror_r: Fix test failure on mingw.
15615         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15616         EXTEND_STRERROR_R.
15617         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15618         macros from errno.in.h instead.
15619
15620 2011-05-19  Eric Blake  <eblake@redhat.com>
15621
15622         strerror: relax test for Solaris
15623         * tests/test-strerror.c (main): Permit Solaris behavior.
15624         * tests/test-strerror_r.c (main): Likewise.
15625
15626         strerror: enforce POSIX ruling on strerror(0)
15627         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15628         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15629         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15630         * doc/posix-functions/strerror.texi (strerror): Document it.
15631         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15632         * tests/test-strerror.c (main): Strengthen test.
15633         * tests/test-strerror_r.c (main): Likewise.
15634
15635 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15636
15637         intprop-tests: port to older and more-pedantic compilers
15638         * modules/intprops-tests (Files): Add tests/macros.h.
15639         * tests/test-intprops.c: Include macros.h.
15640         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15641         it's no longer documented to expand to an integer constant expression.
15642         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15643         argument is floating point, as it's no longer documented to expand
15644         to an integer constant expression in that case.
15645         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15646         compiler bugs reported by Bruno Haible.  See
15647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15648         (U0, U1): New constants, to work around the same bugs.  Also,
15649         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15650
15651         intprops: work around C compiler bugs
15652         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15653         bug in Sun C 5.11 2010/08/13 and other compilers; see
15654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15655
15656         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15657         * doc/intprops.texi (Integer Type Determination): Fix
15658         documentation for TYPE_IS_INTEGER: it returns an constant
15659         expression, not an integer constant expression.  Fix doc for
15660         TYPE_SIGNED: it returns an integer constant expression only if its
15661         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15662         hardly worth documented that way....)
15663
15664 2011-05-18  Bruno Haible  <bruno@clisp.org>
15665
15666         strerror_r: Avoid clobbering the strerror buffer when possible.
15667         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15668         Handle gnulib defined errno values here. When strerror() returns NULL
15669         or an empty string, return EINVAL.
15670         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15671         gnulib defined errno values here.
15672         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15673
15674 2011-05-18  Eric Blake  <eblake@redhat.com>
15675
15676         fnmatch: avoid compiler warning
15677         * lib/fnmatch_loop.c (FCT): Use correct type.
15678         Reported by Matthias Bolte.
15679
15680 2011-05-13  Jim Meyering  <meyering@redhat.com>
15681
15682         maint.mk: three new prohibit_<HDR>_without_use rules
15683         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15684         (sc_prohibit_stdio-safer_without_use): Likewise.
15685         (sc_prohibit_xfreopen_without_use): Likewise.
15686
15687 2011-05-17  Jim Meyering  <meyering@redhat.com>
15688
15689         announce-gen: fail if the NEWS delta is empty
15690         If there's nothing noteworthy in NEWS, then either you forgot
15691         or you shouldn't be releasing.
15692         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15693
15694 2011-05-17  Pádraig Brady <P@draigBrady.com>
15695
15696         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15697         reserved symbols starting with double underscore from the check.
15698
15699 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15700
15701         intprops: add doc
15702         * doc/intprops.texi: New file, documenting intprops.
15703         * doc/gnulib.texi (Particular Modules): Include it.
15704
15705         verify: add doc to gnulib manual and fix example
15706         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15707         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15708         (Compile-time Assertions): Fix example so it can't overflow.
15709
15710 2011-05-17  Jim Meyering  <meyering@redhat.com>
15711
15712         warnings.m4: don't usurp save_CPPFLAGS variable name
15713         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15714
15715         doc: fix typo
15716         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15717
15718 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15719             Bruno Haible  <bruno@clisp.org>
15720
15721         doc: Tweak recent change.
15722         * README (Portability guidelines): Tweak new text.
15723         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15724         Interix 6.1.
15725
15726 2011-05-16  Eric Blake  <eblake@redhat.com>
15727
15728         inttypes: avoid autoconf warning
15729         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15730         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15731
15732 2011-05-16  Sam Steingold <sds@gnu.org>
15733         and Eric Blake  <eblake@redhat.com>
15734
15735         vc-list-files: accept multiple directory operands
15736         * build-aux/vc-list-files: Iterate over all remaining operands.
15737
15738 2011-05-16  Bruno Haible  <bruno@clisp.org>
15739
15740         Fix confusion regarding deprecated modules.
15741         * modules/calloc (Status, Notice): Mark module as deprecated, not
15742         obsolete.
15743         * modules/fnmatch-posix (Status, Notice): Likewise.
15744         * modules/getdate (Status, Notice): Likewise.
15745         * modules/getopt (Status, Notice): Likewise.
15746         * modules/malloc (Status, Notice): Likewise.
15747         * modules/pipe (Status, Notice): Likewise.
15748         * modules/realloc (Status, Notice): Likewise.
15749         * modules/rename-dest-slash (Status, Notice): Likewise.
15750         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15751         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15752         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15753         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15754         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15755
15756 2011-05-16  Bruno Haible  <bruno@clisp.org>
15757
15758         doc: List the target platforms.
15759         * doc/gnulib-intro.texi (Target Platforms): New section.
15760         * doc/gnulib.texi (Introduction): Update menu.
15761         * README (Portability guidelines): Refer to the new section. Update
15762         statement about oldest supported environment. Remove rationale why
15763         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15764         unportable C89 function.
15765         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15766         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15767
15768 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15769
15770         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15771
15772 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15773
15774         intprops-tests: new module
15775         * modules/intprops-tests, tests/test-intprops.c: New files.
15776
15777         intprops: add safe, portable integer overflow checking
15778         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15779         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15780         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15781         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15782         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15783         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15784         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15785         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15786         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15787         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15788         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15789
15790 2011-05-12  James Youngman  <jay@gnu.org>
15791
15792         Add a test for glibc's Bugzilla bug #12378.
15793         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15794         doesn't allow the literal matching of a lone "[" (which is
15795         required by POSIX).
15796         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15797
15798 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15799
15800         Sync glibc change fixing Bugzilla bug #12378.
15801         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15802         beginning and fall back to matching as normal character if the
15803         string ends before the matching ']' is found.  This is what POSIX
15804         requires.
15805
15806 2011-05-13  Eric Blake  <eblake@redhat.com>
15807
15808         getcwd-lgpl: relax test for FreeBSD
15809         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15810         issue.
15811         * tests/test-getcwd-lgpl.c (main): Relax test.
15812         Reported by Matthias Bolte.
15813
15814 2011-05-11  Eric Blake  <eblake@redhat.com>
15815
15816         test-fflush: silence compiler warning
15817         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15818
15819 2011-05-11  Bruno Haible  <bruno@clisp.org>
15820
15821         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15822         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15823         * modules/canonicalize (Depends-on): Add 'nocrash'.
15824         * modules/canonicalize-lgpl (Depends-on): Likewise.
15825         * doc/posix-functions/realpath.texi: Update platforms list.
15826         Reported by Ryan Schmidt <ryandesign@macports.org>.
15827
15828 2011-05-11  Bruno Haible  <bruno@clisp.org>
15829
15830         group-member: Declare function in <unistd.h>.
15831         * lib/unistd.in.h (group_member): New declaration.
15832         * lib/group-member.h: Remove file.
15833         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15834         * tests/test-unistd-c++.cc: Check signature of group_member.
15835         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15836         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15837         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15838         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15839         HAVE_GROUP_MEMBER.
15840         * modules/group-member (Files): Remove lib/group-member.h.
15841         (Depends-on): Add unistd. Specify conditions.
15842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15843         (Include): Change to <unistd.h>.
15844         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15845         HAVE_GROUP_MEMBER.
15846         * NEWS: Mention the change.
15847         * lib/euidaccess.c: Don't include group-member.h.
15848
15849 2011-05-11  Bruno Haible  <bruno@clisp.org>
15850
15851         group-member: Document module.
15852         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15853         module.
15854
15855 2011-05-11  Bruno Haible  <bruno@clisp.org>
15856
15857         fclose: Fix mistake earlier today.
15858         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15859
15860 2011-05-11  Eric Blake  <eblake@redhat.com>
15861
15862         fclose: preserve fflush errors
15863         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15864         Reported by Jim Meyering.
15865
15866         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15867         * build-aux/bootstrap (check_versions): When no specific version
15868         is required, merely check that the app produces an exit status
15869         that indicates its existence.
15870
15871         maint.mk: drop redundant check
15872         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15873         the same but better.
15874
15875 2011-05-11  Bruno Haible  <bruno@clisp.org>
15876
15877         fclose: Fix possible link error.
15878         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15879         unregister_shadow_fd. Improve comments.
15880         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15881         Eric Blake.
15882
15883 2011-05-11  Jim Meyering  <meyering@redhat.com>
15884
15885         maint.mk: improve "can not" detection and generalize rule name
15886         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15887         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15888         Use the same technique as in sc_prohibit_doubled_word, so that
15889         we recognize "can not" also when the words are separated by a newline.
15890         Suggested by Eric Blake.
15891         (perl_filename_lineno_text_): Define.  Factored out of...
15892         (prohibit_doubled_word_): ...here.  Use the new definition.
15893         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15894         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15895         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15896
15897 2011-05-10  Eric Blake  <eblake@redhat.com>
15898
15899         fclose: avoid double close race when possible
15900         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15901         all but WINDOWS_SOCKETS.
15902
15903 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15904
15905         openat: correct new comment
15906         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15907
15908 2011-05-10  Jim Meyering  <meyering@redhat.com>
15909
15910         openat: add comments
15911         * lib/openat-proc.c (openat_proc_name): Add comments,
15912         mostly from Eric Blake.
15913
15914 2011-05-09  Eric Blake  <eblake@redhat.com>
15915
15916         openat: reduce syscalls in first probe of /proc
15917         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15918         be a directory.  Simplify the probe for .. bugs.
15919         * modules/openat (Depends-on): Drop same-inode.
15920         Reported by Bastien ROUCARIES.
15921
15922 2011-05-09  Jim Meyering  <meyering@redhat.com>
15923
15924         maint.mk: change semantics/name of tight_scope variables
15925         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15926         Rename variables to align with semantics that make them more useful.
15927
15928         maint.mk: tweak new rule's name not to impinge
15929         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15930         (sc_tight_scope): Use new rule name rather than $@-0.
15931
15932         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15933         * top/maint.mk (sc_tight_scope): New rule.
15934         (sc_tight_scope-0): New rule, ifdef'd out.
15935         (_gl_TS_dir): Default.
15936         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15937         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15938
15939 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15940
15941         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15942         Haible <bruno@clisp.org>.
15943
15944 2011-05-08  Bruno Haible  <bruno@clisp.org>
15945
15946         Comments.
15947         * m4/isnanf.m4: Add comment.
15948         * m4/isnanl.m4: Likewise.
15949
15950 2011-05-08  Bruno Haible  <bruno@clisp.org>
15951
15952         glob: Remove obsolete macro.
15953         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15954
15955 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15956
15957         intprops: Sun C 5.11 supports __typeof__
15958         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15959         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15960         which is new.
15961         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15962
15963         intprops: switch to usual gnulib indenting and naming
15964         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15965         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15966
15967         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15968
15969 2011-05-08  Jim Meyering  <meyering@redhat.com>
15970
15971         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15972         * top/maint.mk (release-prep): Use make's --no-print-directory
15973         option when generating the announcement.  This eliminates the
15974         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15975         generated announcement template.
15976
15977 2011-05-08  Bruno Haible  <bruno@clisp.org>
15978
15979         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15980         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15981         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15982
15983 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15984
15985         ignore-value, verify: Omit include files from lib_SOURCES.
15986         * modules/ignore-value, modules/verify (Makefile.am):
15987         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15988         that leads Automake to duplicate use of am__objects_... variables
15989         in Makefile.in.  See
15990         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15991
15992 2011-05-07  Bruno Haible  <bruno@clisp.org>
15993
15994         fclose: Simplify autoconf macro.
15995         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15996         defined.
15997
15998 2011-05-07  Bruno Haible  <bruno@clisp.org>
15999
16000         canonicalize-lgpl: Fix autoconf macro ordering bug.
16001         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16002         gl_STDLIB_H_DEFAULTS.
16003
16004 2011-05-06  Eric Blake  <eblake@redhat.com>
16005
16006         maintainer-makefile: make sc_po_check easier to tune
16007         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16008         to probe for strings, such as an alternate location for gnulib.
16009
16010         fclose: guarantee behavior on seekable stdin
16011         * modules/fclose (Depends-on): Add fflush.
16012         * doc/posix-functions/fclose.texi (fclose): Document this.
16013         * tests/test-fclose.c (main): Make test for this unconditional.
16014
16015 2011-05-06  Bruno Haible  <bruno@clisp.org>
16016
16017         fflush, fpurge: Relicense under LGPLv2+.
16018         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16019         * modules/fpurge (License): Likewise.
16020         With permission from Eric Blake and Jim Meyering.
16021         Suggested by Eric Blake.
16022
16023 2011-05-06  Karl Berry  <karl@gnu.org>
16024
16025         * MODULES.html.sh (func_all_modules): remove exit.
16026
16027 2011-05-06  Jim Meyering  <meyering@redhat.com>
16028
16029         maint.mk: use info-gnu@ as the default only for a stable release
16030         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16031         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16032         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16033         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16034
16035 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         assert-h: new module, which supports C1X-style static_assert
16038         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16039         * lib/verify.h: Revamp so that this can be copied into assert.h,
16040         while retaining the ability to use it standalone as before.
16041         Rename private identifiers so as not to encroach on the
16042         standard C namespace, since this is now used by assert.h.
16043         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16044         the old verify_true.
16045         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16046         the old verify_true.  Use _GL_VERIFY_TYPE.
16047         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16048         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16049         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16050         defined when this file is copied into the replacement assert.h.
16051         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16052         and _Static_assert is not built in.
16053         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16054         defined, and use the new macros mentioned above.
16055         * doc/posix-headers/assert.texi: Document this.
16056
16057 2011-05-05  Bruno Haible  <bruno@clisp.org>
16058
16059         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16060         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16061         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16062         gl_REPLACE_FCLOSE here.
16063         * modules/fflush (Depends-on): Remove fclose.
16064         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16065         combination with module 'fclose'.
16066
16067 2011-05-05  Bruno Haible  <bruno@clisp.org>
16068
16069         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16070         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16071         gl_FUNC_FFLUSH.
16072         (gl_FUNC_FFLUSH): Use it.
16073         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16074         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16075         gl_REPLACE_FSEEKO here.
16076
16077 2011-05-05  Bruno Haible  <bruno@clisp.org>
16078
16079         tzset: Relicense under LGPL.
16080         * modules/tzset (License): Change to LGPL.
16081         No agreement needed; it's a no-op.
16082
16083         strtoimax, strtoumax: Relicense under LGPL.
16084         * modules/strtoimax (License): Change to LGPL.
16085         * modules/strtoumax (License): Likewise.
16086         With permission from Jim Meyering, Paul Eggert:
16087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16089
16090         getgroups: Relicense under LGPL.
16091         * modules/getgroups (License): Change to LGPL.
16092         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16096
16097         nanosleep: Relicense under LGPL.
16098         * modules/nanosleep (License): Change to LGPL.
16099         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16100         Haible:
16101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16105
16106         futimens: Relicense under LGPL.
16107         * modules/futimens (License): Change to LGPL.
16108         With permission from Eric Blake:
16109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16110
16111         fflush: Relicense under LGPL.
16112         * modules/fflush (License): Change to LGPL.
16113         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16117
16118         tmpfile: Relicense under LGPL.
16119         * modules/tmpfile (License): Change to LGPL.
16120         With permission from Ben Pfaff:
16121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16122
16123         isfinite: Relicense under LGPL.
16124         * modules/isfinite (License): Change to LGPL.
16125         With permission from Ben Pfaff, Bruno Haible:
16126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16128
16129         acosl..tanl: Relicense under LGPL.
16130         * modules/acosl (License): Change to LGPL.
16131         * modules/asinl (License): Likewise.
16132         * modules/atanl (License): Likewise.
16133         * modules/cosl (License): Likewise.
16134         * modules/expl (License): Likewise.
16135         * modules/logl (License): Likewise.
16136         * modules/sinl (License): Likewise.
16137         * modules/sqrtl (License): Likewise.
16138         * modules/tanl (License): Likewise.
16139         Source code originally from glibc and Paolo Bonzini. Agreements:
16140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16142
16143 2011-05-05  Bruno Haible  <bruno@clisp.org>
16144
16145         signal: Define sighandler_t.
16146         * lib/signal.in.h (sighandler_t): New type.
16147         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16148         whether sighandler_t is defined.
16149         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16150         * modules/signal (Depends-on): Add extensions.
16151         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16152         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16153         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16154
16155 2011-05-05  Eric Blake  <eblake@redhat.com>
16156
16157         maint: remove useless REPLACE_*_H macros
16158         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16159         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16160         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16161         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16162         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16163         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16164         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16165         * m4/btowc.m4: Update callers.
16166         * m4/dirfd.m4: Likewise.
16167         * m4/duplocale.m4: Likewise.
16168         * m4/fchdir.m4: Likewise.
16169         * m4/fdopendir.m4: Likewise.
16170         * m4/inet_ntop.m4: Likewise.
16171         * m4/inet_pton.m4: Likewise.
16172         * m4/ioctl.m4: Likewise.
16173         * m4/mbrlen.m4: Likewise.
16174         * m4/mbrtowc.m4: Likewise.
16175         * m4/mbsinit.m4: Likewise.
16176         * m4/mbsnrtowcs.m4: Likewise.
16177         * m4/mbsrtowcs.m4: Likewise.
16178         * m4/poll.m4: Likewise.
16179         * m4/setlocale.m4: Likewise.
16180         * m4/wcrtomb.m4: Likewise.
16181         * m4/wcsnrtombs.m4: Likewise.
16182         * m4/wcsrtombs.m4: Likewise.
16183         * m4/wctob.m4: Likewise.
16184         * m4/wcwidth.m4: Likewise.
16185         * modules/posix_spawn: Likewise.
16186         * modules/posix_spawn_file_actions_addclose: Likewise.
16187         * modules/posix_spawn_file_actions_adddup2: Likewise.
16188         * modules/posix_spawn_file_actions_addopen: Likewise.
16189         * modules/posix_spawn_file_actions_destroy: Likewise.
16190         * modules/posix_spawn_file_actions_init: Likewise.
16191         * modules/posix_spawnattr_destroy: Likewise.
16192         * modules/posix_spawnattr_getflags: Likewise.
16193         * modules/posix_spawnattr_getpgroup: Likewise.
16194         * modules/posix_spawnattr_getschedparam: Likewise.
16195         * modules/posix_spawnattr_getschedpolicy: Likewise.
16196         * modules/posix_spawnattr_getsigdefault: Likewise.
16197         * modules/posix_spawnattr_getsigmask: Likewise.
16198         * modules/posix_spawnattr_init: Likewise.
16199         * modules/posix_spawnattr_setflags: Likewise.
16200         * modules/posix_spawnattr_setpgroup: Likewise.
16201         * modules/posix_spawnattr_setschedparam: Likewise.
16202         * modules/posix_spawnattr_setschedpolicy: Likewise.
16203         * modules/posix_spawnattr_setsigdefault: Likewise.
16204         * modules/posix_spawnattr_setsigmask: Likewise.
16205         * modules/posix_spawnp: Likewise.
16206
16207 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16208
16209         Add option to do-release-commit-and-tag to specify branch.
16210         * build-aux/do-release-commit-and-tag: Add --branch.
16211
16212 2011-05-03  Bruno Haible  <bruno@clisp.org>
16213
16214         Avoid unnecessary compilation units, through conditional dependencies.
16215         * modules/accept (Depends-on): Add conditions to the dependencies.
16216         * modules/acosl (Depends-on): Likewise.
16217         * modules/argz (Depends-on): Likewise.
16218         * modules/asinl (Depends-on): Likewise.
16219         * modules/atanl (Depends-on): Likewise.
16220         * modules/atoll (Depends-on): Likewise.
16221         * modules/bind (Depends-on): Likewise.
16222         * modules/btowc (Depends-on): Likewise.
16223         * modules/canonicalize-lgpl (Depends-on): Likewise.
16224         * modules/ceil (Depends-on): Likewise.
16225         * modules/ceilf (Depends-on): Likewise.
16226         * modules/ceill (Depends-on): Likewise.
16227         * modules/chdir-long (Depends-on): Likewise.
16228         * modules/chown (Depends-on): Likewise.
16229         * modules/close (Depends-on): Likewise.
16230         * modules/connect (Depends-on): Likewise.
16231         * modules/cosl (Depends-on): Likewise.
16232         * modules/dirfd (Depends-on): Likewise.
16233         * modules/dprintf (Depends-on): Likewise.
16234         * modules/dprintf-posix (Depends-on): Likewise.
16235         * modules/error (Depends-on): Likewise.
16236         * modules/euidaccess (Depends-on): Likewise.
16237         * modules/expl (Depends-on): Likewise.
16238         * modules/faccessat (Depends-on): Likewise.
16239         * modules/fchdir (Depends-on): Likewise.
16240         * modules/fclose (Depends-on): Likewise.
16241         * modules/fcntl (Depends-on): Likewise.
16242         * modules/fdopendir (Depends-on): Likewise.
16243         * modules/fflush (Depends-on): Likewise.
16244         * modules/floor (Depends-on): Likewise.
16245         * modules/floorf (Depends-on): Likewise.
16246         * modules/floorl (Depends-on): Likewise.
16247         * modules/fnmatch (Depends-on): Likewise.
16248         * modules/fopen (Depends-on): Likewise.
16249         * modules/fprintf-posix (Depends-on): Likewise.
16250         * modules/frexp (Depends-on): Likewise.
16251         * modules/frexp-nolibm (Depends-on): Likewise.
16252         * modules/frexpl (Depends-on): Likewise.
16253         * modules/frexpl-nolibm (Depends-on): Likewise.
16254         * modules/fseek (Depends-on): Likewise.
16255         * modules/fsusage (Depends-on): Likewise.
16256         * modules/ftell (Depends-on): Likewise.
16257         * modules/ftello (Depends-on): Likewise.
16258         * modules/futimens (Depends-on): Likewise.
16259         * modules/getcwd (Depends-on): Likewise.
16260         * modules/getcwd-lgpl (Depends-on): Likewise.
16261         * modules/getdelim (Depends-on): Likewise.
16262         * modules/getdomainname (Depends-on): Likewise.
16263         * modules/getgroups (Depends-on): Likewise.
16264         * modules/gethostname (Depends-on): Likewise.
16265         * modules/getline (Depends-on): Likewise.
16266         * modules/getlogin_r (Depends-on): Likewise.
16267         * modules/getopt-posix (Depends-on): Likewise.
16268         * modules/getpeername (Depends-on): Likewise.
16269         * modules/getsockname (Depends-on): Likewise.
16270         * modules/getsockopt (Depends-on): Likewise.
16271         * modules/getsubopt (Depends-on): Likewise.
16272         * modules/getusershell (Depends-on): Likewise.
16273         * modules/glob (Depends-on): Likewise.
16274         * modules/grantpt (Depends-on): Likewise.
16275         * modules/iconv_open (Depends-on): Likewise.
16276         * modules/iconv_open-utf (Depends-on): Likewise.
16277         * modules/inet_ntop (Depends-on): Likewise.
16278         * modules/inet_pton (Depends-on): Likewise.
16279         * modules/ioctl (Depends-on): Likewise.
16280         * modules/isapipe (Depends-on): Likewise.
16281         * modules/isfinite (Depends-on): Likewise.
16282         * modules/isinf (Depends-on): Likewise.
16283         * modules/lchown (Depends-on): Likewise.
16284         * modules/ldexpl (Depends-on): Likewise.
16285         * modules/link (Depends-on): Likewise.
16286         * modules/linkat (Depends-on): Likewise.
16287         * modules/listen (Depends-on): Likewise.
16288         * modules/logl (Depends-on): Likewise.
16289         * modules/lstat (Depends-on): Likewise.
16290         * modules/mbrlen (Depends-on): Likewise.
16291         * modules/mbrtowc (Depends-on): Likewise.
16292         * modules/mbsinit (Depends-on): Likewise.
16293         * modules/mbsnrtowcs (Depends-on): Likewise.
16294         * modules/mbsrtowcs (Depends-on): Likewise.
16295         * modules/mbtowc (Depends-on): Likewise.
16296         * modules/memcmp (Depends-on): Likewise.
16297         * modules/mkdir (Depends-on): Likewise.
16298         * modules/mkdtemp (Depends-on): Likewise.
16299         * modules/mkfifo (Depends-on): Likewise.
16300         * modules/mkfifoat (Depends-on): Likewise.
16301         * modules/mknod (Depends-on): Likewise.
16302         * modules/mkostemp (Depends-on): Likewise.
16303         * modules/mkostemps (Depends-on): Likewise.
16304         * modules/mkstemp (Depends-on): Likewise.
16305         * modules/mkstemps (Depends-on): Likewise.
16306         * modules/mktime (Depends-on): Likewise.
16307         * modules/nanosleep (Depends-on): Likewise.
16308         * modules/open (Depends-on): Likewise.
16309         * modules/openat (Depends-on): Likewise.
16310         * modules/perror (Depends-on): Likewise.
16311         * modules/poll (Depends-on): Likewise.
16312         * modules/popen (Depends-on): Likewise.
16313         * modules/posix_spawn (Depends-on): Likewise.
16314         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16315         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16316         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16317         * modules/posix_spawnp (Depends-on): Likewise.
16318         * modules/pread (Depends-on): Likewise.
16319         * modules/printf-posix (Depends-on): Likewise.
16320         * modules/ptsname (Depends-on): Likewise.
16321         * modules/putenv (Depends-on): Likewise.
16322         * modules/pwrite (Depends-on): Likewise.
16323         * modules/readline (Depends-on): Likewise.
16324         * modules/readlink (Depends-on): Likewise.
16325         * modules/readlinkat (Depends-on): Likewise.
16326         * modules/recv (Depends-on): Likewise.
16327         * modules/recvfrom (Depends-on): Likewise.
16328         * modules/regex (Depends-on): Likewise.
16329         * modules/remove (Depends-on): Likewise.
16330         * modules/rename (Depends-on): Likewise.
16331         * modules/renameat (Depends-on): Likewise.
16332         * modules/rmdir (Depends-on): Likewise.
16333         * modules/round (Depends-on): Likewise.
16334         * modules/roundf (Depends-on): Likewise.
16335         * modules/roundl (Depends-on): Likewise.
16336         * modules/rpmatch (Depends-on): Likewise.
16337         * modules/select (Depends-on): Likewise.
16338         * modules/send (Depends-on): Likewise.
16339         * modules/sendto (Depends-on): Likewise.
16340         * modules/setenv (Depends-on): Likewise.
16341         * modules/setlocale (Depends-on): Likewise.
16342         * modules/setsockopt (Depends-on): Likewise.
16343         * modules/shutdown (Depends-on): Likewise.
16344         * modules/sigaction (Depends-on): Likewise.
16345         * modules/signbit (Depends-on): Likewise.
16346         * modules/sigprocmask (Depends-on): Likewise.
16347         * modules/sinl (Depends-on): Likewise.
16348         * modules/sleep (Depends-on): Likewise.
16349         * modules/snprintf (Depends-on): Likewise.
16350         * modules/snprintf-posix (Depends-on): Likewise.
16351         * modules/socket (Depends-on): Likewise.
16352         * modules/sprintf-posix (Depends-on): Likewise.
16353         * modules/sqrtl (Depends-on): Likewise.
16354         * modules/stat (Depends-on): Likewise.
16355         * modules/strchrnul (Depends-on): Likewise.
16356         * modules/strdup-posix (Depends-on): Likewise.
16357         * modules/strerror (Depends-on): Likewise.
16358         * modules/strerror_r-posix (Depends-on): Likewise.
16359         * modules/strndup (Depends-on): Likewise.
16360         * modules/strnlen (Depends-on): Likewise.
16361         * modules/strptime (Depends-on): Likewise.
16362         * modules/strsep (Depends-on): Likewise.
16363         * modules/strsignal (Depends-on): Likewise.
16364         * modules/strstr-simple (Depends-on): Likewise.
16365         * modules/strtod (Depends-on): Likewise.
16366         * modules/strtoimax (Depends-on): Likewise.
16367         * modules/strtok_r (Depends-on): Likewise.
16368         * modules/strtoumax (Depends-on): Likewise.
16369         * modules/symlink (Depends-on): Likewise.
16370         * modules/symlinkat (Depends-on): Likewise.
16371         * modules/tanl (Depends-on): Likewise.
16372         * modules/tcgetsid (Depends-on): Likewise.
16373         * modules/tmpfile (Depends-on): Likewise.
16374         * modules/trunc (Depends-on): Likewise.
16375         * modules/truncf (Depends-on): Likewise.
16376         * modules/truncl (Depends-on): Likewise.
16377         * modules/uname (Depends-on): Likewise.
16378         * modules/unlink (Depends-on): Likewise.
16379         * modules/unlockpt (Depends-on): Likewise.
16380         * modules/unsetenv (Depends-on): Likewise.
16381         * modules/usleep (Depends-on): Likewise.
16382         * modules/utimensat (Depends-on): Likewise.
16383         * modules/vasprintf (Depends-on): Likewise.
16384         * modules/vdprintf (Depends-on): Likewise.
16385         * modules/vdprintf-posix (Depends-on): Likewise.
16386         * modules/vfprintf-posix (Depends-on): Likewise.
16387         * modules/vprintf-posix (Depends-on): Likewise.
16388         * modules/vsnprintf (Depends-on): Likewise.
16389         * modules/vsnprintf-posix (Depends-on): Likewise.
16390         * modules/vsprintf-posix (Depends-on): Likewise.
16391         * modules/wcrtomb (Depends-on): Likewise.
16392         * modules/wcscasecmp (Depends-on): Likewise.
16393         * modules/wcscspn (Depends-on): Likewise.
16394         * modules/wcsdup (Depends-on): Likewise.
16395         * modules/wcsncasecmp (Depends-on): Likewise.
16396         * modules/wcsnrtombs (Depends-on): Likewise.
16397         * modules/wcspbrk (Depends-on): Likewise.
16398         * modules/wcsrtombs (Depends-on): Likewise.
16399         * modules/wcsspn (Depends-on): Likewise.
16400         * modules/wcsstr (Depends-on): Likewise.
16401         * modules/wcstok (Depends-on): Likewise.
16402         * modules/wcswidth (Depends-on): Likewise.
16403         * modules/wctob (Depends-on): Likewise.
16404         * modules/wctomb (Depends-on): Likewise.
16405         * modules/wctype (Depends-on): Likewise.
16406         * modules/wcwidth (Depends-on): Likewise.
16407         * modules/write (Depends-on): Likewise.
16408
16409 2011-05-03  Bruno Haible  <bruno@clisp.org>
16410
16411         Support for conditional dependencies.
16412         * doc/gnulib.texi (Module description): Document the syntax of
16413         conditional dependencies.
16414         * gnulib-tool: New option --conditional-dependencies.
16415         (func_usage): Document it.
16416         (cond_dependencies): New variable.
16417         (func_get_automake_snippet_conditional,
16418         func_get_automake_snippet_unconditional): New functions, extracted from
16419         func_get_automake_snippet.
16420         (func_get_automake_snippet): Use them.
16421         (sed_first_32_chars): New variable.
16422         (func_module_shellfunc_name): New function.
16423         (func_module_shellvar_name): New function.
16424         (func_module_conditional_name): New function.
16425         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16426         func_cond_module_condition): New functions.
16427         (func_modules_transitive_closure): Add support for conditional
16428         dependencies.
16429         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16430         conditional automake snippet in an automake conditional.
16431         (func_emit_autoconf_snippets): Emit shell functions that contain the
16432         code for conditional modules.
16433         (func_import, func_create_testdir): Update specification.
16434
16435 2011-05-03  Eric Blake  <eblake@redhat.com>
16436
16437         test-getaddrinfo: report error information
16438         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16439
16440 2011-05-03  Jim Meyering  <meyering@redhat.com>
16441
16442         bootstrap: avoid build failure when $GZIP is set
16443         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16444         program name.  If defined at all, it is supposed to list gzip options.
16445         Reported by Alan Curry in http://debbugs.gnu.org/8609
16446
16447 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16448
16449         readme-release: new module with release instructions
16450         * modules/readme-release: New module.
16451         * top/README-release: New file, from coreutils, grep, diffutils.
16452         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16453
16454 2011-05-02  Eric Blake  <eblake@redhat.com>
16455
16456         fflush: also replace fclose when fixing fflush
16457         * modules/fflush (Depends-on): Add fclose.
16458         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16459         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16460         memstreams with no backing fd.
16461         * doc/posix-functions/fclose.texi (fclose): Document the use of
16462         fflush module to fix the bug.
16463         * tests/test-fclose.c (main): Relax test when fclose is used in
16464         isolation.
16465
16466         fclose: add some tests
16467         * modules/fclose-tests: New test module.
16468         * tests/test-fclose.c: New file.
16469         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16470
16471         fclose: reduced dependencies
16472         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16473         simpler lseek.
16474         * lib/fclose.c (rpl_fclose): Likewise.
16475         Reported by Simon Josefsson.
16476
16477         exit: drop remaining clients
16478         * modules/argmatch (Depends-on): Replace exit with stdlib.
16479         * modules/copy-file (Depends-on): Likewise.
16480         * modules/execute (Depends-on): Likewise.
16481         * modules/exitfail (Depends-on): Likewise.
16482         * modules/obstack (Depends-on): Likewise.
16483         * modules/pagealign_alloc (Depends-on): Likewise.
16484         * modules/pipe-filter-gi (Depends-on): Likewise.
16485         * modules/pipe-filter-ii (Depends-on): Likewise.
16486         * modules/savewd (Depends-on): Likewise.
16487         * modules/spawn-pipe (Depends-on): Likewise.
16488         * modules/wait-process (Depends-on): Likewise.
16489         * modules/xsetenv (Depends-on): Likewise.
16490         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16491         * modules/git-merge-changelog (Depends-on): Likewise.
16492         * modules/long-options (Depends-on): Likewise.
16493         * modules/pt_chown (Depends-on): Likewise.
16494         * modules/sysexits (Depends-on): Likewise.
16495
16496         freading: relax license from LGPLv3+ to LGPLv2+
16497         * modules/freading (License): Relax LGPL version.
16498
16499 2011-05-02  Bruno Haible  <bruno@clisp.org>
16500
16501         fchdir: Remove unused dependencies.
16502         * modules/fchdir (Depends-on): Remove include_next.
16503
16504 2011-05-02  Bruno Haible  <bruno@clisp.org>
16505
16506         gnulib-tool: Refactor.
16507         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16508         from func_emit_autoconf_snippets.
16509         (func_emit_autoconf_snippets): Use it.
16510
16511 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16512
16513         * NEWS: Document removal of 'exit'.
16514         * modules/exit: Remove file.
16515
16516 2011-05-01  Bruno Haible  <bruno@clisp.org>
16517
16518         Update DEPENDENCIES.
16519         * DEPENDENCIES (gettext): Recommend the newest release.
16520         Reported by Simon Josefsson.
16521
16522 2011-05-01  Bruno Haible  <bruno@clisp.org>
16523
16524         gnulib-tool: Reduce code duplication.
16525         * gnulib-tool (func_emit_autoconf_snippets): New function.
16526         (func_import, func_create_testdir): Use it.
16527
16528 2011-04-30  Eric Blake  <eblake@redhat.com>
16529
16530         fclose: don't fail on non-seekable input stream
16531         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16532         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16533         since fflush is allowed to fail in that case.
16534
16535 2011-04-30  Bruno Haible  <bruno@clisp.org>
16536
16537         dup3: cleanup
16538         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16539
16540 2011-04-30  Bruno Haible  <bruno@clisp.org>
16541
16542         netdb: Make it work in C++ mode.
16543         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16544         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16545         module.
16546         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16547         gl_MODULE_INDICATOR_FOR_TESTS.
16548         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16549         * modules/netdb-c++-tests: New file.
16550         * tests/test-netdb-c++.cc: New file.
16551
16552 2011-04-30  Bruno Haible  <bruno@clisp.org>
16553
16554         New modules 'vfscanf', 'vscanf'.
16555         * modules/vfscanf: New file.
16556         * modules/vscanf: New file.
16557         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16558         here.
16559         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16560         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16561
16562 2011-04-30  Bruno Haible  <bruno@clisp.org>
16563
16564         passfd: Add comments.
16565         * lib/passfd.c: Add comments about platforms.
16566
16567 2011-04-30  Bruno Haible  <bruno@clisp.org>
16568
16569         sys_uio: Make <sys/uio.h> self-contained.
16570         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16571         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16572
16573 2011-04-30  Bruno Haible  <bruno@clisp.org>
16574
16575         sys_socket: Ensure 'struct iovec' definition.
16576         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16577         <sys/socket.h>.
16578         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16579
16580 2011-04-30  Bruno Haible  <bruno@clisp.org>
16581
16582         sys_uio: Protect definition of 'struct iovec'.
16583         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16584         it as a C struct.
16585
16586 2011-04-30  Bruno Haible  <bruno@clisp.org>
16587
16588         manywarnings: fix indentation
16589         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16590
16591 2011-04-30  Pádraig Brady <P@draigBrady.com>
16592
16593         manywarnings: add -Wno-missing-field-initializers if needed.
16594         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16595         option if it's needed to allow initialization with { 0, }
16596
16597 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16598
16599         announce-gen: cosmetic improvement
16600         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16601
16602 2011-04-29  Jim Meyering  <meyering@redhat.com>
16603
16604         vc-list-files: indent with spaces, not TABs
16605         * build-aux/vc-list-files: Convert leading TABs to spaces,
16606         to match the style of most other files in gnulib.
16607
16608         announce-gen: indent with spaces, not TABs
16609         * build-aux/announce-gen: Convert all TABs to spaces, to match
16610         the style of most other files in gnulib.
16611
16612 2011-04-29  Eric Blake  <eblake@redhat.com>
16613
16614         quotearg: avoid uninitialized variable use
16615         * lib/quotearg.c (quoting_options_from_style): Initialize
16616         remaining fields, and ensure that custom styles are only used via
16617         quoting_options rather than quoting_style.
16618
16619 2011-04-29  Jim Meyering  <meyering@redhat.com>
16620
16621         maint.mk: remove unused VC-tag variable
16622         * top/maint.mk (VC-tag): Remove unused variable.
16623
16624 2011-04-29  Bruno Haible  <bruno@clisp.org>
16625
16626         netdb: fix gai_strerror replacements
16627         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16628         * modules/netdb: Substitute it.
16629
16630 2011-04-29  Jim Meyering  <meyering@redhat.com>
16631
16632         test-getcwd.c: avoid new set-but-not-used warning
16633         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16634         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16635         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16636         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16637
16638         test-hash.c: avoid a new shadowing warning
16639         * tests/test-hash.c (main): Don't shadow "dup".
16640
16641 2011-04-28  Eric Blake  <eblake@redhat.com>
16642
16643         getaddrinfo: fix gai_strerror signature
16644         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16645         and work around mingw with UNICODE defined.
16646         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16647         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16648         * modules/netdb (Makefile.am): Substitute it.
16649         * lib/netdb.in.h (gai_strerror): Declare replacement.
16650         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16651         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16652         the fix.
16653
16654         getsockopt: avoid compiler warning
16655         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16656         Reported by Matthias Bolte.
16657
16658         tests: drop unused link dependency
16659         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16660         * modules/dirent-safer-tests (Makefile.am): Likewise.
16661         * modules/fdopendir-tests (Makefile.am): Likewise.
16662         * modules/mkfifoat-tests (Makefile.am): Likewise.
16663         * modules/openat-safer-tests (Makefile.am): Likewise.
16664         * modules/openat-tests (Makefile.am): Likewise.
16665         * modules/readlinkat-tests (Makefile.am): Likewise.
16666         * modules/symlinkat-tests (Makefile.am): Likewise.
16667         * modules/linkat-tests (Makefile.am): Likewise.
16668         (Depends-on): Switch to filenamecat-lgpl.
16669         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16670         LIBINTL.
16671         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16672         * tests/test-linkat.c (main): Don't require xalloc.
16673
16674         hash, mgetgroups: drop xalloc dependency
16675         * lib/hash.c (includes): Adjust includes.
16676         * lib/mgetgroups.c (includes): Likewise.
16677         (xgetgroups): Move...
16678         * lib/xgetgroups.c: ...to new file.
16679         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16680         * modules/xgetgroups: New file, split from...
16681         * modules/mgetgroups: ...here.
16682         (Depends-on): Add xalloc-oversized.
16683         * modules/hash (Depends-on): Likewise.
16684         * modules/hash-tests (Depends-on): Drop xalloc.
16685         (test_hash_LDADD): Drop unused library.
16686         * tests/test-hash.c (main): Break xalloc dependency.
16687         (includes): Drop unused include.
16688
16689         xalloc-oversized: new module
16690         * modules/xalloc-oversized: New module.
16691         * modules/xalloc (Depends-on): Add it.
16692         * lib/xalloc.h (xalloc_oversized): Move...
16693         * lib/xalloc-oversized.h: ...into new file.
16694
16695         utimecmp: drop dependency on xmalloc
16696         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16697         due to memory pressure.
16698         * modules/utimecmp (Depends-on): Drop xalloc.
16699
16700 2011-04-27  Eric Blake  <eblake@redhat.com>
16701
16702         getcwd: fix mingw bugs
16703         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16704         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16705         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16706
16707 2011-04-27  Bruno Haible  <bruno@clisp.org>
16708
16709         mkstemps: Ensure declaration on MacOS X 10.5.
16710         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16711         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16712         MacOS X.
16713
16714 2011-04-27  Bruno Haible  <bruno@clisp.org>
16715
16716         mkstemp: More documentation.
16717         * doc/posix-functions/mkstemp.texi: Document header file problem on
16718         MacOS X.
16719
16720 2011-04-27  Bruno Haible  <bruno@clisp.org>
16721
16722         mkstemp: Tweak configure message when cross-compiling.
16723         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16724         result as a guess.
16725
16726 2011-04-27  Bruno Haible  <bruno@clisp.org>
16727
16728         clean-temp: Clarify what it does.
16729         * lib/clean-temp.h: Add more comments.
16730         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16731         module.
16732         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16733         * doc/glibc-functions/mkstemps.texi: Likewise.
16734         * doc/glibc-functions/mkostemps.texi: Likewise.
16735
16736 2011-04-27  Eric Blake  <eblake@redhat.com>
16737
16738         fchdir: avoid extra chdir and fix test
16739         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16740         getcwd-lgpl.
16741         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16742         have to be canonical.
16743         (canonicalize_file_name): Drop unused macro.
16744         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16745
16746         filenamecat-lgpl: fix licence
16747         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16748         when it was first created.
16749
16750         linkat, renameat: add missing dependency
16751         * modules/linkat (Depends-on): Require getcwd-lgpl.
16752         * modules/renameat (Depends-on): Likewise.
16753
16754         tests: reduce dependencies
16755         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16756         * tests/test-renameat.c (main): Likewise.
16757         * modules/linkat-tests (Depends-on): Relax dependency.
16758         * modules/renameat-tests (Depends-on): Likewise.
16759         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16760         dependency explicit.
16761
16762         save-cwd: reduce default dependency
16763         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16764         * lib/save-cwd.c: Update comments.
16765         * NEWS: Document the semantic change.
16766
16767         getcwd: enhance tests
16768         * tests/test-getcwd-lgpl.c: New file, taken from...
16769         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16770         repeat long path stress tests from m4 probe.
16771         * modules/getcwd-lgpl-tests: New module.
16772         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16773         * m4/getcwd-abort-bug.m4: Update comment.
16774         * m4/getcwd-path-max.m4: Likewise.
16775
16776         getcwd-lgpl: new module
16777         * modules/getcwd-lgpl: New module.
16778         * lib/getcwd-lgpl.c: New file.
16779         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16780         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16781         * modules/getcwd (configure.ac): Set C witness.
16782         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16783
16784         getcwd: tweak comments
16785         * m4/getcwd-abort-bug.m4: Fix comments.
16786         * m4/getcwd-path-max.m4: Likewise.
16787         * m4/getcwd.m4: Likewise.
16788
16789 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16790         and Eric Blake  <eblake@redhat.com>
16791
16792         mkstemp: replace if system version uses wrong permissions
16793         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16794         read/write mode bits set in file created by mkstemp.
16795         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16796
16797 2011-04-27  Eric Blake  <eblake@redhat.com>
16798
16799         passfd: avoid compiler warning
16800         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16801         Reported by Laine Stump.
16802
16803 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16804
16805         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16806         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16807
16808 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16809         and Eric Blake  <eblake@redhat.com>
16810
16811         mkstemp: mention clean-temp module
16812         * lib/mkstemp.c: Add comment.
16813         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16814
16815 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16816
16817         inttypes: also provide default values for 32-bit tests
16818         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16819         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16820
16821 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16822
16823         strtoumax: remove dependency on strtoimax
16824         This is like the strtoull change of yesterday.
16825         * modules/strtoumax (Files): Add lib/strtoimax.c.
16826         (Depends-on): Remove strtoimax and add verify.
16827
16828         inttypes-incomplete: new module
16829         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16830         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16831         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16832         of gl_INTTYPES_H.
16833         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16834         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16835         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16836         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16837         * modules/strtoumax, modules/xstrtol (Depends-on):
16838         Depend on inttypes-incomplete, not inttypes.
16839         * modules/inttypes-incomplete: New module, containing the contents
16840         of the old modules/inttypes module, except that the Files: section
16841         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16842         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16843         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16844         (Depends-on): Depend only on inttypes-incomplete.
16845         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16846
16847         inttypes: omit now-redundant strtoimax and strtoumax work
16848         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16849         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16850
16851         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16852         This supports apps that need pointers to strtoimax and strtoumax,
16853         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16854         nonexistent functions.  See
16855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16856         et seq.
16857         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16858         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16859         a macro.
16860         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16861
16862 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16863
16864         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16865
16866 2011-04-25  Bruno Haible  <bruno@clisp.org>
16867
16868         strtol, strtoul: Mark modules as obsolete.
16869         * modules/strtol (Status, Notice): New sections.
16870         * modules/strtoul (Status, Notice): New sections.
16871
16872 2011-04-25  Bruno Haible  <bruno@clisp.org>
16873
16874         strtod: Remove check for strtod, unless supporting old platforms.
16875         * modules/strtod-obsolete: New file.
16876         * m4/strtod-obsolete.m4: New file.
16877         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16878         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16879         * modules/strtod (Depends-on): Add strtod-obsolete.
16880         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16881
16882 2011-04-25  Bruno Haible  <bruno@clisp.org>
16883
16884         strcase: Make module obsolete.
16885         * modules/strcase (Status, Notice): New sections.
16886
16887 2011-04-25  Bruno Haible  <bruno@clisp.org>
16888
16889         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16890         * modules/dup2-obsolete: New file.
16891         * m4/dup2-obsolete.m4: New file.
16892         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16893         gl_FUNC_DUP2_OBSOLETE is not also defined.
16894         * modules/dup2 (Depends-on): Add dup2-obsolete.
16895         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16896
16897 2011-04-25  Bruno Haible  <bruno@clisp.org>
16898
16899         strnlen: Avoid memchr related link error on old obsolete platforms.
16900         * modules/memchr-obsolete: New file.
16901         * m4/memchr-obsolete.m4: New file.
16902         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16903         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16904         * modules/memchr (Depends-on): Add memchr-obsolete.
16905         * modules/strnlen (Depends-on): Likewise.
16906         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16907
16908 2011-04-25  Jim Meyering  <meyering@redhat.com>
16909
16910         maint.mk: makefile_at_at_check extend and clean up
16911         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16912         in addition to */Makefile.am.
16913         Exempt legitimate uses of @VAR@ notation, e.g.,
16914         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16915         Remove obsolete coreutils-specific comment.
16916         Prompted by discussion here:
16917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16918
16919 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16920
16921         strtoul: remove dependency on strtol
16922         This is so that 'configure' need not check for strtol merely because
16923         the application needs strtoul.
16924         * modules/strtoul (Files): Add lib/strtol.c.
16925         (Depends-on): Remove strtol.
16926
16927         strtoull: remove dependency on strtoul
16928         This is like the strtoll change.
16929         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16930         (Depends-on): Remove strtoul.
16931
16932         strtoll: remove dependency on strtol
16933         This is so that 'configure' need not check for strtol merely because
16934         the application needs strtoll.
16935         * modules/strtoll (Files): Add lib/strtol.c.
16936         (Depends-on): Remove strtol.
16937
16938 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16939
16940         inttypes: Move some configure check to module 'imaxdiv'.
16941         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16942         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16943         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16944
16945 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16946
16947         inttypes: Move some configure check to module 'imaxabs'.
16948         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16949         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16950         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16951
16952 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16953
16954         inttypes: Remove configure tests that are not needed since 2009-12-31.
16955         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16956         gl_cv_header_working_inttypes_h.
16957
16958 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         * modules/strnlen (Depends-on): Remove memchr.
16961         The strnlen implementation doesn't need the memchr module's fixes; see
16962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16963
16964         strtol: remove dependency on wchar
16965         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16966         * modules/strtol (Depends-on): Remove wchar.
16967
16968 2011-04-21  Eric Blake  <eblake@redhat.com>
16969
16970         passfd: fix test regression on Linux
16971         * modules/passfd-tests (configure.ac): Correct socketpair check.
16972
16973         passfd: speed up configure and drop unused code
16974         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16975         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16976         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16977         Instead of probing at configure for unix_scm_rights_bsd44_way,
16978         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16979         check to a struct member probe.
16980         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16981         (sendfd, recvfd): Update preprocessor checks.
16982         * modules/passfd (Files): Reflect rename, and drop unused file.
16983         (Depends-on): Drop unused dependency.
16984
16985         passfd: allow compilation on mingw
16986         * modules/sys_socket (Depends-on): Add sys_uio.
16987         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16988         iovec and a minimal struct msghdr.
16989         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16990         * tests/test-sys_socket.c (main): Enhance test.
16991         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16992         guaranteed to provide what we need.
16993         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16994         * modules/passfd-tests (Depends-on): Add sys_wait.
16995         * tests/test-passfd.c (main): Skip test on mingw, for now.
16996         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16997         partial 'struct msghdr' implementation.
16998
16999         sys_uio: new module
17000         * modules/sys_uio: New module.
17001         * modules/sys_uio-tests: Likewise.
17002         * lib/sys_uio.in.h: New file.
17003         * m4/sys_uio_h.m4: Likewise.
17004         * tests/test-sys_uio.c: Likewise.
17005         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17006         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17007
17008 2011-04-20  Jim Meyering  <meyering@redhat.com>
17009
17010         useless-if-before-free: avoid false-positive
17011         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17012         disjunct so that it too requires a terminating ";".  Without that,
17013         this script would identify as useless one statement from gcc that
17014         was not:
17015           if (aligned_ptr)
17016             free (((void **) aligned_ptr) [-1]);
17017
17018 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17019
17020         doc: update users.txt.
17021         * users.txt: Add barcode.
17022
17023 2011-04-19  Bruno Haible  <bruno@clisp.org>
17024
17025         ioctl: Remove link dependency on native Windows.
17026         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17027         (gl_close_fn, gl_ioctl_fn): New types.
17028         (struct fd_hook): Renamed from struct close_hook. Change type of
17029         private_close_fn field. Add private_ioctl_fn field.
17030         (close_hook_fn): Add parameter for primary close method.
17031         (execute_close_hooks, execute_all_close_hooks): Likewise.
17032         (ioctl_hook_fn): New type.
17033         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17034         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17035         argument.
17036         (unregister_fd_hook): Renamed from unregister_close_hook.
17037         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17038         Don't include <unistd.h>.
17039         (close): Remove undef.
17040         (anchor): Update.
17041         (execute_close_hooks): Add argument for primary close method.
17042         (execute_all_close_hooks): Likewise.
17043         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17044         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17045         argument. Allow each argument to be NULL.
17046         (unregister_fd_hook): Renamed from unregister_close_hook.
17047         * lib/close.c (rpl_close): Pass 'close' function pointer to
17048         execute_all_close_hooks.
17049         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17050         (primary_ioctl): New function.
17051         (ioctl): Don't call ioctlsocket here. Instead, call
17052         execute_all_ioctl_hooks.
17053         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17054         close method.
17055         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17056         (fd_sockets_hook): Renamed from close_sockets_hook.
17057         (gl_sockets_startup, gl_sockets_cleanup): Update.
17058         * modules/fd-hook: Renamed from modules/close-hook. Update.
17059         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17060         * modules/sockets (Depends-on): Likewise.
17061         * modules/ioctl (Depends-on): Add fd-hook.
17062         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17063         GNULIB_SOCKET.
17064
17065 2011-04-19  Bruno Haible  <bruno@clisp.org>
17066
17067         Move the support of O_NONBLOCK in open() to the 'open' module.
17068         * modules/nonblocking (Depends-on): Remove 'open'.
17069         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17070         gl_cv_have_open_O_NONBLOCK.
17071         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17072         O_NONBLOCK support.
17073         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17074
17075 2011-04-17  Bruno Haible  <bruno@clisp.org>
17076
17077         pipe2: Simplify code.
17078         * lib/pipe2.c (pipe2): Reduce code duplication.
17079
17080 2011-04-17  Bruno Haible  <bruno@clisp.org>
17081
17082         nonblocking: Add comment.
17083         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17084
17085 2011-04-17  Bruno Haible  <bruno@clisp.org>
17086
17087         nonblocking: Add tests for sockets.
17088         * tests/test-nonblocking-socket.sh: New file.
17089         * tests/test-nonblocking-socket-main.c: New file.
17090         * tests/test-nonblocking-socket-child.c: New file.
17091         * tests/test-nonblocking-socket.h: New file.
17092         * tests/socket-server.h: New file.
17093         * tests/socket-client.h: New file.
17094         * modules/nonblocking-socket-tests: New file.
17095         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17096
17097 2011-04-17  Bruno Haible  <bruno@clisp.org>
17098
17099         nonblocking: Add tests for pipes.
17100         * tests/test-nonblocking-pipe.sh: New file.
17101         * tests/test-nonblocking-pipe-main.c: New file.
17102         * tests/test-nonblocking-pipe-child.c: New file.
17103         * tests/test-nonblocking-pipe.h: New file.
17104         * tests/test-nonblocking-writer.h: New file.
17105         * tests/test-nonblocking-reader.h: New file.
17106         * tests/test-nonblocking-misc.h: New file.
17107         * modules/nonblocking-pipe-tests: New file.
17108         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17109
17110 2011-04-16  Bruno Haible  <bruno@clisp.org>
17111
17112         gettext: Clarify the needed programmer actions.
17113         * modules/gettext (Notice): New field.
17114         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17115
17116 2011-04-16  Bruno Haible  <bruno@clisp.org>
17117
17118         strchrnul: Tweak last commit.
17119         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17120         bug.
17121         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17122         as in _GL_FUNCDECL_SYS.
17123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17124         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17125
17126 2011-04-15  Eric Blake  <eblake@redhat.com>
17127
17128         strchrnul: work around cygwin bug
17129         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17130         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17132         * modules/string (Makefile.am): Substitute it.
17133         * lib/string.in.h (strchrnul): Use it.
17134
17135 2011-04-15  Bruno Haible  <bruno@clisp.org>
17136
17137         Don't require lib/stdio-write.c when only module 'stdio' is used.
17138         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17139         invocation.
17140         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17141
17142 2011-04-14  Bruno Haible  <bruno@clisp.org>
17143
17144         Support non-blocking pipe I/O in read() on native Windows.
17145         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17146         (read): New declaration.
17147         * lib/read.c: New file.
17148         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17149         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17150         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17151         vscanf): New declarations.
17152         * lib/stdio-read.c: New file.
17153         * m4/read.m4: New file.
17154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17155         REPLACE_READ.
17156         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17157         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17158         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17159         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17160         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17161         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17162         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17163         * modules/read: New file.
17164         * modules/nonblocking (Files): Add lib/stdio-read.c.
17165         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17166         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17167         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17168         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17169         * modules/pread (Depends-on): Add read.
17170         * modules/safe-read (Depends-on): Likewise.
17171         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17172         gets, scanf, vfscanf, vscanf): Verify signatures.
17173         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17174         problem with non-blocking pipes.
17175         * doc/posix-functions/fgetc.texi: Likewise.
17176         * doc/posix-functions/fgets.texi: Likewise.
17177         * doc/posix-functions/fread.texi: Likewise.
17178         * doc/posix-functions/fscanf.texi: Likewise.
17179         * doc/posix-functions/getc.texi: Likewise.
17180         * doc/posix-functions/getchar.texi: Likewise.
17181         * doc/posix-functions/gets.texi: Likewise.
17182         * doc/posix-functions/scanf.texi: Likewise.
17183         * doc/posix-functions/vfscanf.texi: Likewise.
17184         * doc/posix-functions/vscanf.texi: Likewise.
17185
17186 2011-04-14  Bruno Haible  <bruno@clisp.org>
17187
17188         Support non-blocking pipe I/O in write() on native Windows.
17189         * lib/write.c (rpl_write): Split a write request that failed merely
17190         because the byte count was larger than the pipe buffer's size.
17191         * doc/posix-functions/write.texi: Mention the problem with large byte
17192         counts.
17193
17194 2011-04-14  Bruno Haible  <bruno@clisp.org>
17195
17196         wchar: Ensure that wchar_t gets defined on uClibc.
17197         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17198         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17199
17200 2011-04-13  Bruno Haible  <bruno@clisp.org>
17201
17202         safe-write, full-read: Avoid unnecessary compilation units.
17203         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17204         (Depends-on): Remove safe-read. Add ssize_t.
17205         * modules/full-read (Files): Add lib/full-write.c.
17206         (Depends-on): Add full-write.
17207
17208 2011-04-13  Bruno Haible  <bruno@clisp.org>
17209
17210         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17211         * modules/pwrite (Depends-on): Add 'write'.
17212
17213 2011-04-13  Bruno Haible  <bruno@clisp.org>
17214
17215         Support non-blocking pipe I/O in write() on native Windows.
17216         * lib/unistd.in.h (write): Enable replacement also if
17217         GNULIB_UNISTD_H_NONBLOCKING is 1.
17218         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17219         (rpl_write): When failing to write on a non-blocking pipe, change
17220         errno from ENOSPC to EAGAIN.
17221         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17222         putchar, puts, vfprintf, vprintf): Enable replacement also if
17223         GNULIB_STDIO_H_NONBLOCKING is 1.
17224         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17225         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17226         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17227         CALL_WITH_SIGPIPE_EMULATION.
17228         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17229         * m4/nonblocking.m4: New file.
17230         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17231         for non-blocking I/O support.
17232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17233         GNULIB_UNISTD_H_NONBLOCKING.
17234         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17235         required for non-blocking I/O support.
17236         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17237         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17238         lib/stdio-write.c, m4/asm-underscore.m4.
17239         (Depends-on): Add stdio, unistd.
17240         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17241         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17242         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17243         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17244         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17245         problem with non-blocking pipes.
17246         * doc/posix-functions/fputc.texi: Likewise.
17247         * doc/posix-functions/fputs.texi: Likewise.
17248         * doc/posix-functions/fwrite.texi: Likewise.
17249         * doc/posix-functions/printf.texi: Likewise.
17250         * doc/posix-functions/putc.texi: Likewise.
17251         * doc/posix-functions/putchar.texi: Likewise.
17252         * doc/posix-functions/puts.texi: Likewise.
17253         * doc/posix-functions/vfprintf.texi: Likewise.
17254         * doc/posix-functions/vprintf.texi: Likewise.
17255         * doc/posix-functions/write.texi: Likewise.
17256
17257 2011-04-10  Jim Meyering  <meyering@redhat.com>
17258
17259         maint.mk: prohibit doubled words
17260         Detect them also when they're separated by a newline.
17261         There are 3 ways to customize it:
17262           - disable the test on a per file basis, as usual with rules using
17263             $(VC_LIST_EXCEPT)
17264           - replace the default doubled-word-selecting regexp (affects all files)
17265           - ignore a particular file-vs-doubled-word match
17266         I nearly used that last one to ignore the "is is" match in
17267         coreutils' NEWS file, since the text was "ls -is is ..."
17268         To do that, I would have added this line to cfg.mk:
17269           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17270         but it would have ignored any "is is" match in NEWS.
17271         Low probability, but still...
17272         Instead, I changed the text, slightly:
17273           -  ls -is is now consistent with ls -lis in ignoring values returned
17274           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17275         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17276         (prohibit_doubled_word_): Define.
17277         (sc_prohibit_doubled_word): New rule.
17278         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17279
17280 2011-04-10  Jim Meyering  <meyering@redhat.com>
17281
17282         maint: fix doubled-word typo in comment
17283         * m4/gethostname.m4: s/is is/it is/
17284         * m4/getdomainname.m4: Likewise.
17285
17286 2011-04-10  Jim Meyering  <meyering@redhat.com>
17287
17288         maint: remove doubled word: s/it it/it/
17289         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17290
17291 2011-04-10  Jim Meyering  <meyering@redhat.com>
17292
17293         maint.mk: remove useless semicolon and backslash
17294         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17295         semicolon and backslash.
17296
17297 2011-04-10  Bruno Haible  <bruno@clisp.org>
17298
17299         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17300         * modules/stdint-tests (Depends-on): Add wchar.
17301
17302 2011-04-10  Jim Meyering  <meyering@redhat.com>
17303
17304         maint: remove doubled words in comments, e.g., s/a a/a/
17305         * lib/strptime.c (day_of_the_week): s/the the/the/
17306         * tests/test-chown.h (test_chown): s/a a/a/
17307
17308         test-chown.h: correct a cast
17309         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17310         when the destination is a stat.st_gid.
17311
17312 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17313
17314         getaddrinfo: Fix test for sa_len member.
17315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17316         include <sys/types.h> before <sys/socket.h>.
17317
17318 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17319
17320         maint: change "can not" to "cannot"
17321         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17322         boundaries.
17323
17324 2011-04-09  Jim Meyering  <meyering@redhat.com>
17325
17326         maint: change "a a" to "a"
17327         * tests/test-lchown.h (test_lchown): s/a a/a/
17328
17329         maint.mk: prohibit \<the the\>
17330         * top/maint.mk (sc_prohibit_the_the): New rule.
17331
17332         maint: fix "the the" in comment
17333         * lib/count-one-bits.h: s/the the/the/
17334
17335         maint: change "can not" to "cannot"
17336         But do not change the occurrences in maintain.texi or in
17337         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17338         * doc/gnulib-tool.texi: s/can not/cannot/
17339         * doc/posix-functions/accept.texi (accept): Likewise.
17340         * doc/posix-functions/socket.texi (socket): Likewise.
17341         * lib/mbrtowc.c: Likewise.
17342
17343         maint.mk: prohibit use of "can not"
17344         * top/maint.mk (sc_prohibit_can_not): New rule.
17345         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17346
17347 2011-04-09  Bruno Haible  <bruno@clisp.org>
17348
17349         careadlinkat: Guard against misuse of careadlinkatcwd.
17350         * lib/careadlinkat.c: Include <stdlib.h>.
17351         (careadlinkatcwd): Check that the fd argument is as expected.
17352
17353 2011-04-09  Bruno Haible  <bruno@clisp.org>
17354
17355         careadlinkat: Use common coding style.
17356         * lib/careadlinkat.c: Move gnulib includes after system includes.
17357
17358 2011-04-09  Bruno Haible  <bruno@clisp.org>
17359
17360         careadlinkat: Clarify specification.
17361         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17362         (careadlinkatcwd): Add comment.
17363         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17364
17365 2011-04-09  Bruno Haible  <bruno@clisp.org>
17366
17367         areadlinkat: Avoid link error on many platforms.
17368         * modules/areadlinkat (Depends-on): Add areadlink.
17369
17370 2011-04-09  Bruno Haible  <bruno@clisp.org>
17371
17372         allocator, careadlinkat: Fix double-inclusion guard.
17373         * lib/allocator.h: Fix double-inclusion guard.
17374         * lib/careadlinkat.h: Likewise.
17375
17376 2011-04-09  Bruno Haible  <bruno@clisp.org>
17377
17378         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17379         * lib/relocwrapper.c: Update dependencies hierarchy.
17380         * build-aux/install-reloc: Update list of files to be compiled.
17381         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17382         lib/allocator.[hc].
17383
17384 2011-04-08  Eric Blake  <eblake@redhat.com>
17385
17386         strftime: silence gnulib-tool warning
17387         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17388
17389 2011-04-08  Bruno Haible  <bruno@clisp.org>
17390
17391         verify: Fix syntax error with GCC 4.6 in C++ mode.
17392         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17393         (HAVE_STATIC_ASSERT): New macro.
17394         (verify_true, verify): Use 'static_assert' if it is supported and
17395         '_Static_assert' is not supported.
17396
17397 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17398
17399         allocator: New module.
17400         * modules/allocator, lib/allocator.c: New files.
17401         * lib/allocator.h (stdlib_allocator): New decl.
17402         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17403         Remove.  Do not include <stdlib.h>.
17404         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17405         * modules/careadlinkat (Files): Remove lib/allocator.h.
17406         (Depends-on): Add allocator.
17407
17408         stdlib: let modules use system malloc, realloc
17409         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17410         if !_GL_USE_STDLIB_ALLOC.
17411         (malloc, realloc): Limit this change to a smaller scope.
17412
17413         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17414         (malloc, realloc): Don't #undef; no longer needed.
17415         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17416         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17417         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17418         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17419         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17420         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17421         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17422         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17423
17424         careadlinkat: rename members to avoid problem
17425         * lib/allocator.h (struct allocator): Rename members from
17426         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17427         and realloc are #define'd.  Reported by Eric Blake in
17428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17429         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17430
17431 2011-04-08  Eric Blake  <eblake@redhat.com>
17432
17433         nonblocking: reduce dependency
17434         * tests/test-nonblocking.c: Only test sockets when in use.
17435         * modules/nonblocking-tests (Depends-on): Drop socket.
17436         (Makefile.am): Link even if sockets are not present.
17437         * modules/pipe2-tests (Makefile.am): Likewise.
17438         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17439
17440         pipe2: fix O_NONBLOCK support on mingw
17441         * modules/pipe2 (Depends-on): Add nonblocking.
17442         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17443         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17444         * tests/test-nonblocking.c (main): Likewise.
17445         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17446
17447         fcntl-h: fix O_ACCMODE on cygwin
17448         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17449         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17450
17451         pipe-filter: drop O_NONBLOCK workarounds
17452         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17453         * modules/pipe-filter-ii (Depends-on): Likewise.
17454         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17455
17456         nonblocking: provide O_NONBLOCK for mingw
17457         * modules/nonblocking (Depends-on): Add open.
17458         (configure.ac): Set new witness macro.
17459         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17460         * modules/fcntl-h (Makefile.am): Substitute it.
17461         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17462         nonblocking module is in use.
17463         * lib/nonblocking.c: Adjust portability test.
17464         * lib/open.c (open): Don't let native open see gnulib flag.
17465         * tests/test-fcntl-h.c (main): Enhance test.
17466         * tests/test-open.h (test_open): Likewise.
17467         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17468
17469         careadlinkat: fix compilation error on mingw
17470         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17471         within struct allocator.
17472
17473 2011-04-06  Eric Blake  <eblake@redhat.com>
17474
17475         binary-io: relicense under LGPLv2+
17476         * modules/binary-io (License): Relax to LGPLv2+.
17477         Requested for libvirt, and required by pipe2.
17478
17479 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17480
17481         verify: use _Static_assert if available
17482         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17483         (verify_true, verify): Use it if available.  This generates better
17484         diagnostics with GCC 4.6.0 and later.
17485
17486 2011-04-05  Bruno Haible  <bruno@clisp.org>
17487
17488         Remove leftover generated .h files after config.status changed.
17489
17490         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17491         GL_GENERATE_ALLOCA_H.
17492         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17493         GL_GENERATE_ALLOCA_H evaluates to false.
17494
17495         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17496         GL_GENERATE_ARGZ_H.
17497         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17498         evaluates to false.
17499
17500         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17501         GL_GENERATE_BYTESWAP_H.
17502         * modules/byteswap (Makefile.am): Remove byteswap.h if
17503         GL_GENERATE_BYTESWAP_H evaluates to false.
17504
17505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17506         GL_GENERATE_ERRNO_H.
17507         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17508         evaluates to false.
17509
17510         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17511         GL_GENERATE_FLOAT_H.
17512         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17513         evaluates to false.
17514
17515         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17516         GL_GENERATE_FNMATCH_H.
17517         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17518         GL_GENERATE_FNMATCH_H evaluates to false.
17519
17520         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17521         GL_GENERATE_GLOB_H.
17522         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17523         evaluates to false.
17524
17525         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17526         automake conditional GL_GENERATE_ICONV_H.
17527         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17528         evaluates to false.
17529
17530         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17531         GL_GENERATE_NETINET_IN_H.
17532         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17533         GL_GENERATE_NETINET_IN_H evaluates to false.
17534
17535         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17536         conditional GL_GENERATE_PTHREAD_H.
17537         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17538         * modules/pthread (Makefile.am): Remove pthread.h if
17539         GL_GENERATE_PTHREAD_H evaluates to false.
17540
17541         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17542         GL_GENERATE_SCHED_H.
17543         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17544         evaluates to false.
17545
17546         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17547         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17548         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17549         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17550
17551         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17552         GL_GENERATE_STDARG_H.
17553         * modules/stdarg (Makefile.am): Remove stdarg.h if
17554         GL_GENERATE_STDARG_H evaluates to false.
17555
17556         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17557         GL_GENERATE_STDBOOL_H.
17558         * modules/stdbool (Makefile.am): Remove stdbool.h if
17559         GL_GENERATE_STDBOOL_H evaluates to false.
17560
17561         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17562         conditional GL_GENERATE_STDDEF_H.
17563         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17564         * modules/stddef (Makefile.am): Remove stddef.h if
17565         GL_GENERATE_STDDEF_H evaluates to false.
17566
17567         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17568         GL_GENERATE_STDINT_H.
17569         * modules/stdint (Makefile.am): Remove stdint.h if
17570         GL_GENERATE_STDINT_H evaluates to false.
17571
17572         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17573         GL_GENERATE_SYSEXITS_H.
17574         * modules/sysexits (Makefile.am): Remove sysexits.h if
17575         GL_GENERATE_SYSEXITS_H evaluates to false.
17576
17577         Reported by Karl Berry and Ralf Wildenhues.
17578
17579 2011-04-05  Bruno Haible  <bruno@clisp.org>
17580
17581         Ensure to rebuild generated .h files when config.status has changed.
17582         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17583         config.status.
17584         * modules/ctype (Makefile.am): Likewise.
17585         * modules/dirent (Makefile.am): Likewise.
17586         * modules/errno (Makefile.am): Likewise.
17587         * modules/fcntl-h (Makefile.am): Likewise.
17588         * modules/float (Makefile.am): Likewise.
17589         * modules/getopt-posix (Makefile.am): Likewise.
17590         * modules/glob (Makefile.am): Likewise.
17591         * modules/iconv-h (Makefile.am): Likewise.
17592         * modules/inttypes (Makefile.am): Likewise.
17593         * modules/langinfo (Makefile.am): Likewise.
17594         * modules/locale (Makefile.am): Likewise.
17595         * modules/math (Makefile.am): Likewise.
17596         * modules/netdb (Makefile.am): Likewise.
17597         * modules/netinet_in (Makefile.am): Likewise.
17598         * modules/poll-h (Makefile.am): Likewise.
17599         * modules/pthread (Makefile.am): Likewise.
17600         * modules/pty (Makefile.am): Likewise.
17601         * modules/sched (Makefile.am): Likewise.
17602         * modules/search (Makefile.am): Likewise.
17603         * modules/selinux-h (Makefile.am): Likewise.
17604         * modules/signal (Makefile.am): Likewise.
17605         * modules/spawn (Makefile.am): Likewise.
17606         * modules/stdarg (Makefile.am): Likewise.
17607         * modules/stdbool (Makefile.am): Likewise.
17608         * modules/stddef (Makefile.am): Likewise.
17609         * modules/stdint (Makefile.am): Likewise.
17610         * modules/stdio (Makefile.am): Likewise.
17611         * modules/stdlib (Makefile.am): Likewise.
17612         * modules/string (Makefile.am): Likewise.
17613         * modules/strings (Makefile.am): Likewise.
17614         * modules/sys_file (Makefile.am): Likewise.
17615         * modules/sys_ioctl (Makefile.am): Likewise.
17616         * modules/sys_select (Makefile.am): Likewise.
17617         * modules/sys_socket (Makefile.am): Likewise.
17618         * modules/sys_stat (Makefile.am): Likewise.
17619         * modules/sys_time (Makefile.am): Likewise.
17620         * modules/sys_times (Makefile.am): Likewise.
17621         * modules/sys_utsname (Makefile.am): Likewise.
17622         * modules/sys_wait (Makefile.am): Likewise.
17623         * modules/sysexits (Makefile.am): Likewise.
17624         * modules/termios (Makefile.am): Likewise.
17625         * modules/time (Makefile.am): Likewise.
17626         * modules/unistd (Makefile.am): Likewise.
17627         * modules/wchar (Makefile.am): Likewise.
17628         * modules/wctype-h (Makefile.am): Likewise.
17629         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17630
17631 2011-04-05  Bruno Haible  <bruno@clisp.org>
17632
17633         pipe2: Relicense under LGPLv2+.
17634         * modules/pipe2 (License): Change to LGPLv2+.
17635         Requested by Eric Blake, for libvirt.
17636
17637 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17638
17639         bootstrap: compute gnulib_extra_files after updating build_aux
17640         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17641         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17642
17643 2011-04-05  Eric Blake  <eblake@redhat.com>
17644
17645         bootstrap: preserve git whitelist item sorting
17646         * build-aux/bootstrap (sort_patterns): New function.
17647         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17648
17649 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17650
17651         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17652         sc_space_tab check.
17653
17654 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17655
17656         areadlink, areadlinkat: rewrite in terms of careadlinkat
17657         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17658         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17659         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17660         (malloc, realloc): Remove #undefs.
17661         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17662         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17663         readlink, ssize_t, stdint, unistd.
17664         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17665         areadlink, stdint.
17666
17667         careadlinkat: new module
17668         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17669         * modules/careadlinkat: New files, written by me with
17670         a review and feedback from Ben Pfaff in
17671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17672
17673 2011-04-01  Bruno Haible  <bruno@clisp.org>
17674
17675         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17676         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17677         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17678         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17679         Reported by Bruce Korb <bruce.korb@gmail.com>.
17680
17681 2011-04-01  Bruno Haible  <bruno@clisp.org>
17682
17683         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17684         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17685         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17686         * modules/wcpcpy (Depends-on): Add extensions.
17687         * modules/wcpncpy (Depends-on): Likewise.
17688         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17689         systems.
17690         * doc/posix-functions/wcpncpy.texi: Likewise.
17691         * doc/posix-functions/wcwidth.texi: Likewise.
17692
17693 2011-03-31  Eric Blake  <eblake@redhat.com>
17694
17695         nonblocking: fix mingw test failures
17696         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17697         non-blocking flag on regular file.
17698         (get_nonblocking_flag): Set errno on invalid fd.
17699         * tests/test-nonblocking.c (main): Avoid test failure on
17700         directories if fchdir is not active.
17701         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17702
17703 2011-03-31  Bruno Haible  <bruno@clisp.org>
17704
17705         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17706         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17707         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17708         Reported by Simon Josefsson <simon@josefsson.org>.
17709
17710 2011-03-31  Bruno Haible  <bruno@clisp.org>
17711         and Eric Blake  <eblake@redhat.com>
17712
17713         nonblocking: new module
17714         * modules/nonblocking: New module.
17715         * modules/nonblocking-tests: Likewise.
17716         * lib/nonblocking.h: New file.
17717         * lib/nonblocking.c: Likewise.
17718         * tests/test-nonblocking.c: New test.
17719         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17720
17721 2011-03-30  Bruno Haible  <bruno@clisp.org>
17722
17723         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17724         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17725         instead of 'printf' format for GCC >= 4.4.
17726         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17727         (fprintf, printf, vfprintf, vprintf): Declare with
17728         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17729         the system's vfprintf() function.
17730         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17731
17732 2011-03-30  Eric Blake  <eblake@redhat.com>
17733
17734         passfd: fix scoping bug
17735         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17736         before sendmsg/recvmsg.
17737
17738         passfd: standardize coding conventions
17739         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17740         can be learned at compile time.
17741         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17742         ifdefs.
17743         (sendfd, recvfd): Follow gnulib code conventions.
17744
17745         passfd: fix incorrect sendmsg arguments
17746         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17747         incorrect msg_controllen value.
17748         * modules/passfd-tests (Depends-on): Check for alarm.
17749         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17750         Reported by Bastien ROUCARIES.
17751
17752 2011-03-30  Bruno Haible  <bruno@clisp.org>
17753
17754         c-strcasestr: Relicense under LGPLv2+.
17755         * modules/c-strcasestr (License): Change to LGPLv2+.
17756         Requested by Eric Blake, for libvirt.
17757
17758 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17759
17760         * users.txt: Add libidn2.  Fix libtasn1 link.
17761
17762 2011-03-30  Jim Meyering  <meyering@redhat.com>
17763
17764         tests: readlink* ("",... fails with EINVAL on newer kernels
17765         readlink and readlinkat have typically failed with ENOENT for
17766         the invalid, empty file name,  "".  However, with the advent
17767         of linux-2.6.39, they fail with EINVAL.
17768         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17769         when operating on the empty file name.
17770         * tests/test-readlink.h (test_readlink): Likewise.
17771
17772 2011-03-29  Bruno Haible  <bruno@clisp.org>
17773
17774         Relicense some modules under LGPLv2+, for libidn2.
17775         * modules/array-mergesort (License): Change to LGPLv2+.
17776         * modules/c-strcaseeq (License): Likewise.
17777         * modules/striconveh (License): Likewise.
17778         * modules/striconveha (License): Likewise.
17779         * modules/uniconv/base (License): Likewise.
17780         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17781         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17782         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17783         * modules/unictype/base (License): Likewise.
17784         * modules/unictype/bidiclass-of (License): Likewise.
17785         * modules/unictype/category-M (License): Likewise.
17786         * modules/unictype/category-none (License): Likewise.
17787         * modules/unictype/category-of (License): Likewise.
17788         * modules/unictype/category-test (License): Likewise.
17789         * modules/unictype/category-test-withtable (License): Likewise.
17790         * modules/unictype/combining-class (License): Likewise.
17791         * modules/unictype/joiningtype-of (License): Likewise.
17792         * modules/unictype/scripts (License): Likewise.
17793         * modules/uninorm/base (License): Likewise.
17794         * modules/uninorm/canonical-decomposition (License): Likewise.
17795         * modules/uninorm/composition (License): Likewise.
17796         * modules/uninorm/decompose-internal (License): Likewise.
17797         * modules/uninorm/decomposition-table (License): Likewise.
17798         * modules/uninorm/nfc (License): Likewise.
17799         * modules/uninorm/nfd (License): Likewise.
17800         * modules/uninorm/u32-normalize (License): Likewise.
17801         * modules/unistr/base (License): Likewise.
17802         * modules/unistr/u32-cpy (License): Likewise.
17803         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17804         * modules/unistr/u32-to-u8 (License): Likewise.
17805         * modules/unistr/u32-uctomb (License): Likewise.
17806         * modules/unistr/u8-check (License): Likewise.
17807         * modules/unistr/u8-mblen (License): Likewise.
17808         * modules/unistr/u8-mbtouc (License): Likewise.
17809         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17810         * modules/unistr/u8-mbtoucr (License): Likewise.
17811         * modules/unistr/u8-prev (License): Likewise.
17812         * modules/unistr/u8-strlen (License): Likewise.
17813         * modules/unistr/u8-to-u32 (License): Likewise.
17814         * modules/unistr/u8-uctomb (License): Likewise.
17815         * modules/unitypes (License): Likewise.
17816         Requested by Simon Josefsson.
17817
17818 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17819
17820         lib-symbol-visibility: Add a notice.
17821         * modules/lib-symbol-visibility (Notice): New field.
17822
17823 2011-03-29  Bruno Haible  <bruno@clisp.org>
17824
17825         getaddrinfo: Doc fix.
17826         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17827         section "fixed in Gnulib".
17828
17829 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17830
17831         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17832         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17833
17834 2011-03-26  Bruno Haible  <bruno@clisp.org>
17835
17836         unictype/property-byname: Reduce the number of load-time relocations.
17837         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17838         (UC_PROPERTY_INDEX_*): New enumeration values.
17839         (uc_property_byname): Convert an index from the lookup table to an
17840         uc_property_t.
17841         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17842         values.
17843
17844 2011-03-26  Bruno Haible  <bruno@clisp.org>
17845
17846         unictype/property-byname: Allow omitted word separators and aliases.
17847         * lib/unictype/pr_byname.gperf: Add property names without word
17848         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17849         for 'space'.
17850
17851 2011-03-26  Bruno Haible  <bruno@clisp.org>
17852
17853         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17854         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17855         also hyphens to space.
17856         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17857         without spaces.
17858         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17859
17860 2011-03-26  Bruno Haible  <bruno@clisp.org>
17861
17862         unictype/joiningtype-byname: Recognize long names as well.
17863         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17864         a long name.
17865         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17866         unictype/joiningtype_byname.h.
17867         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17868         * lib/unictype/joiningtype_byname.gperf: New file.
17869         * modules/unictype/joiningtype-byname (Files): Add
17870         lib/unictype/joiningtype_byname.gperf.
17871         (Depends-on): Add gperf.
17872         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17873         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17874         long names.
17875
17876         Tests for module 'unictype/joiningtype-longname'.
17877         * modules/unictype/joiningtype-longname-tests: New file.
17878         * tests/unictype/test-joiningtype_longname.c: New file.
17879
17880         New module 'unictype/joiningtype-longname'.
17881         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17882         * lib/unictype/joiningtype_longname.c: New file.
17883         * modules/unictype/joiningtype-longname: New file.
17884         * modules/unictype/joiningtype-all (Depends-on): Add
17885         unictype/joiningtype-longname.
17886
17887 2011-03-26  Bruno Haible  <bruno@clisp.org>
17888
17889         unictype/bidiclass-byname: Recognize long names as well.
17890         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17891         name.
17892         * lib/unictype/bidi_byname.c: Include <string.h>,
17893         unictype/bidi_byname.h.
17894         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17895         * lib/unictype/bidi_byname.gperf: New file.
17896         * modules/unictype/bidiclass-byname (Files): Add
17897         lib/unictype/bidi_byname.gperf.
17898         (Depends-on): Add gperf.
17899         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17900         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17901         long names.
17902
17903         Tests for module 'unictype/bidiclass-longname'.
17904         * modules/unictype/bidiclass-longname-tests: New file.
17905         * tests/unictype/test-bidi_longname.c: New file.
17906
17907         New module 'unictype/bidiclass-longname'.
17908         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17909         * lib/unictype/bidi_longname.c: New file.
17910         * modules/unictype/bidiclass-longname: New file.
17911         * modules/unictype/bidiclass-all (Depends-on): Add
17912         unictype/bidiclass-longname.
17913
17914 2011-03-26  Bruno Haible  <bruno@clisp.org>
17915
17916         unictype/bidi*: Rename modules.
17917         * modules/unictype/bidiclass-all: Renamed from
17918         modules/unictype/bidicategory-all.
17919         * modules/unictype/bidiclass-name: Renamed from
17920         modules/unictype/bidiclass-name.
17921         (Description): Update.
17922         * modules/unictype/bidiclass-name-tests: Renamed from
17923         modules/unictype/bidicategory-name-tests.
17924         * modules/unictype/bidiclass-byname: Renamed from
17925         modules/unictype/bidicategory-byname.
17926         (Description): Update.
17927         * modules/unictype/bidiclass-byname-tests: Renamed from
17928         modules/unictype/bidicategory-byname-tests.
17929         * modules/unictype/bidiclass-of: Renamed from
17930         modules/unictype/bidicategory-of.
17931         (Description): Update.
17932         * modules/unictype/bidiclass-of-tests: Renamed from
17933         modules/unictype/bidicategory-of-tests.
17934         * modules/unictype/bidiclass-test: Renamed from
17935         modules/unictype/bidicategory-test.
17936         (Description): Update.
17937         * modules/unictype/bidiclass-test-tests: Renamed from
17938         modules/unictype/bidicategory-test-tests.
17939         * modules/unictype/bidicategory-all: New file, a simple redirection.
17940         * modules/unictype/bidicategory-name: Likewise.
17941         * modules/unictype/bidicategory-byname: Likewise.
17942         * modules/unictype/bidicategory-of: Likewise.
17943         * modules/unictype/bidicategory-test: Likewise.
17944         * modules/unictype/property-bidi-* (Dependencies): Update.
17945         * lib/unictype/bidi_*.c: Update comment.
17946
17947 2011-03-26  Bruno Haible  <bruno@clisp.org>
17948
17949         unictype/bidi*: Rename functions, part 2.
17950         * modules/unictype/bidicategory-name (configure.ac): Update required
17951         libunistring version.
17952         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17953
17954 2011-03-25  Bruno Haible  <bruno@clisp.org>
17955
17956         New module 'unictype/combining-class-all'.
17957         * modules/unictype/combining-class-all: New file.
17958
17959         Tests for module 'unictype/combining-class-byname'.
17960         * modules/unictype/combining-class-byname-tests: New file.
17961         * tests/unictype/test-combiningclass_byname.c: New file.
17962
17963         New module 'unictype/combining-class-byname'.
17964         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17965         * lib/unictype/combiningclass_byname.c: New file.
17966         * lib/unictype/combiningclass_byname.gperf: New file.
17967         * modules/unictype/combining-class-byname: New file.
17968
17969         Tests for module 'unictype/combining-class-longname'.
17970         * modules/unictype/combining-class-longname-tests: New file.
17971         * tests/unictype/test-combiningclass_longname.c: New file.
17972
17973         New module 'unictype/combining-class-longname'.
17974         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17975         * lib/unictype/combiningclass_longname.c: New file.
17976         * modules/unictype/combining-class-longname: New file.
17977
17978         Tests for module 'unictype/combining-class-name'.
17979         * modules/unictype/combining-class-name-tests: New file.
17980         * tests/unictype/test-combiningclass_name.c: New file.
17981
17982         New module 'unictype/combining-class-name'.
17983         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17984         * lib/unictype/combiningclass_name.c: New file.
17985         * modules/unictype/combining-class-name: New file.
17986
17987 2011-03-25  Bruno Haible  <bruno@clisp.org>
17988
17989         unictype/combining-class: Rename source files.
17990         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17991         of unictype/combining.h.
17992         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17993         Update.
17994         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17995         * modules/unictype/combining-class (Description): Fix.
17996         (Files, Makefile.am): Update.
17997         * tests/unictype/test-combiningclass.c: Renamed from
17998         tests/unictype/test-combining.c.
17999         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18000
18001 2011-03-25  Bruno Haible  <bruno@clisp.org>
18002
18003         unictype: Update list of canonical combining classes.
18004         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18005
18006 2011-03-25  Bruno Haible  <bruno@clisp.org>
18007
18008         unictype/category-byname: Recognize long names as well.
18009         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18010         a long name.
18011         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18012         unictype/categ_byname.h.
18013         (UC_CATEGORY_INDEX_*): New enumeration values.
18014         (uc_general_category_byname): Use uc_general_category_lookup and
18015         convert from index to value.
18016         * lib/unictype/categ_byname.gperf: New file.
18017         * modules/unictype/category-byname (Files): Add
18018         lib/unictype/categ_byname.gperf.
18019         (Depends-on): Add gperf.
18020         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18021         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18022         long names.
18023
18024         Tests for module 'unictype/category-longname'.
18025         * modules/unictype/category-longname-tests: New file.
18026         * tests/unictype/test-categ_longname.c: New file.
18027
18028         New module 'unictype/category-longname'.
18029         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18030         * lib/unictype/categ_longname.c: New file.
18031         * modules/unictype/category-longname: New file.
18032         * modules/unictype/category-all (Depends-on): Add it.
18033
18034 2011-03-25  Bruno Haible  <bruno@clisp.org>
18035
18036         Tests for module 'unictype/category-LC'.
18037         * modules/unictype/category-LC-tests: New file.
18038         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18039
18040         New module 'unictype/category-LC'.
18041         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18042         (UC_CATEGORY_LC): New declaration.
18043         (UC_CASED_LETTER): New macro.
18044         * lib/gen-uni-tables.c (is_category_LC): New function.
18045         (output_categories): Also handle category LC.
18046         (UC_CATEGORY_MASK_LC): New enumeration value.
18047         (general_category_byname): Also handle category LC.
18048         * lib/unictype/categ_LC.c: New file.
18049         * lib/unictype/categ_LC.h: New file, automatically generated.
18050         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18051         category LC.
18052         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18053         * modules/unictype/category-LC: New file.
18054         * modules/unictype/category-byname (Depends-on): Add
18055         unictype/category-LC.
18056         * modules/unictype/category-all (Depends-on): Likewise.
18057
18058 2011-03-25  Eric Blake  <eblake@redhat.com>
18059
18060         xmalloc: revert yesterday's regression
18061         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18062         realloc's underlying behavior (allowing allocation of zero-size
18063         objects, especially if malloc-gnu is also in use).
18064
18065 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18066
18067         maint.mk: add missing version to VC-tag
18068         * top/maint.mk: git tag was missing actual tag name; add it.
18069
18070         valgrind: do leak checking, and exit with code 1 on error (not 0)
18071         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18072         to VALGRIND.
18073
18074 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18075
18076         posix-modules: say what it does.
18077         * posix-modules: Add a line to the --help output saying what it does.
18078
18079 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18080
18081         xmalloc: Do not leak if underlying realloc is C99 compatible.
18082         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18083         This avoids a leak on C99-based systems.  See
18084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18085
18086 2011-03-24  Eric Blake  <eblake@redhat.com>
18087
18088         realloc: document portability problem
18089         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18090         passing 0 size to realloc.
18091
18092 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18093
18094         doc: update users.txt
18095         * users.txt: Add cvsps, tmpwatch
18096
18097 2011-03-23  Matt Rice  <ratmice@gmail.com>
18098
18099         doc: update users.txt
18100         * users.txt: Add gdb.
18101
18102 2011-03-23  Jim Meyering  <meyering@redhat.com>
18103
18104         doc: update users.txt
18105         Looking through matches up to the following URL (there are still
18106         several more pages), I found several projects that use gnulib:
18107         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18108         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18109         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18110
18111 2011-03-22  Bruno Haible  <bruno@clisp.org>
18112
18113         unictype/bidi*: Rename functions.
18114         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18115         uc_bidi_class, uc_is_bidi_class): New declarations.
18116         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18117         uc_bidi_category_byname.
18118         (uc_bidi_category_byname): New function.
18119         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18120         u_bidi_category_name.
18121         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18122         (uc_bidi_category_name): New function.
18123         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18124         uc_bidi_category.
18125         (uc_bidi_category): New function.
18126         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18127         uc_is_bidi_category. Invoke uc_bidi_class.
18128         (uc_is_bidi_category): New function.
18129         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18130         instead of uc_bidi_category_byname.
18131         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18132         instead of uc_bidi_category_name.
18133         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18134         uc_bidi_category.
18135         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18136         instead of uc_is_bidi_category.
18137
18138 2011-03-21  Bruno Haible  <bruno@clisp.org>
18139
18140         New module 'unictype/joininggroup-all'.
18141         * modules/unictype/joininggroup-all: New file.
18142
18143         Tests for module 'unictype/joininggroup-of'.
18144         * modules/unictype/joininggroup-of-tests: New file.
18145         * tests/unictype/test-joininggroup_of.c: New file.
18146         * tests/unictype/test-joininggroup_of.h: New file, automatically
18147         generated by gen-uni-tables.
18148
18149         New module 'unictype/joininggroup-of'.
18150         * modules/unictype/joininggroup-of: New file.
18151         * lib/unictype/joininggroup_of.c: New file.
18152         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18153         gen-uni-tables.
18154
18155         Tests for module 'unictype/joininggroup-byname'.
18156         * modules/unictype/joininggroup-byname-tests: New file.
18157         * tests/unictype/test-joininggroup_byname.c: New file.
18158
18159         New module 'unictype/joininggroup-byname'.
18160         * modules/unictype/joininggroup-byname: New file.
18161         * lib/unictype/joininggroup_byname.c: New file.
18162         * lib/unictype/joininggroup_byname.gperf: New file.
18163
18164         Tests for module 'unictype/joininggroup-name'.
18165         * modules/unictype/joininggroup-name-tests: New file.
18166         * tests/unictype/test-joininggroup_name.c: New file.
18167
18168         New module 'unictype/joininggroup-name'.
18169         * modules/unictype/joininggroup-name: New file.
18170         * lib/unictype/joininggroup_name.c: New file.
18171         * lib/unictype/joininggroup_name.h: New file.
18172
18173         New module 'unictype/joiningtype-all'.
18174         * modules/unictype/joiningtype-all: New file.
18175
18176         Tests for module 'unictype/joiningtype-of'.
18177         * modules/unictype/joiningtype-of-tests: New file.
18178         * tests/unictype/test-joiningtype_of.c: New file.
18179         * tests/unictype/test-joiningtype_of.h: New file, automatically
18180         generated by gen-uni-tables.
18181
18182         New module 'unictype/joiningtype-of'.
18183         * modules/unictype/joiningtype-of: New file.
18184         * lib/unictype/joiningtype_of.c: New file.
18185         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18186         gen-uni-tables.
18187
18188         Tests for module 'unictype/joiningtype-byname'.
18189         * modules/unictype/joiningtype-byname-tests: New file.
18190         * tests/unictype/test-joiningtype_byname.c: New file.
18191
18192         New module 'unictype/joiningtype-byname'.
18193         * modules/unictype/joiningtype-byname: New file.
18194         * lib/unictype/joiningtype_byname.c: New file.
18195
18196         Tests for module 'unictype/joiningtype-name'.
18197         * modules/unictype/joiningtype-name-tests: New file.
18198         * tests/unictype/test-joiningtype_name.c: New file.
18199
18200         New module 'unictype/joiningtype-name'.
18201         * modules/unictype/joiningtype-name: New file.
18202         * lib/unictype/joiningtype_name.c: New file.
18203
18204         unictype: Add support for Arabic shaping properties.
18205         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18206         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18207         declarations.
18208         (UC_JOINING_GROUP_*): New enumeration values.
18209         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18210         declarations.
18211         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18212         (unicode_joining_type): New variable.
18213         (UC_JOINING_GROUP_*): New enumeration values.
18214         (unicode_joining_group): New variable.
18215         (fill_arabicshaping, joining_type_as_c_identifier,
18216         output_joining_type_test, output_joining_type,
18217         joining_group_as_c_identifier, output_joining_group_test,
18218         output_joining_group): New functions.
18219         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18220         fill_arabicshaping and output_joining_type_test, output_joining_type,
18221         output_joining_group_test, output_joining_group.
18222         Reported by Simon Josefsson.
18223
18224 2011-03-21  Jim Meyering  <meyering@redhat.com>
18225
18226         strftime: fix a bug in yesterday's change
18227         * lib/strftime.c (add): Accommodate width's initial value of -1.
18228         Otherwise, nstrftime would copy uninitialized data into
18229         the result buffer.
18230
18231 2011-03-21  Jim Meyering  <meyering@redhat.com>
18232
18233         tests: add strftime-tests module
18234         * tests/test-strftime.c: New file.
18235         * modules/strftime-tests: New module.
18236
18237 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18238
18239         strftime: don't assume a byte count fits in 'int'
18240         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18241         found this problem by static analysis, using gcc -Wstrict-overflow
18242         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18243         on an integer overflow having undefined behavior, but it turns out
18244         that the argument is a size, which might not fit in 'int' anyway,
18245
18246 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18247
18248         stdio: don't require ignore_value around fwrite
18249
18250         This patch works around libc bug 11959
18251         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18252         Without this patch, applications must often write
18253         ignore_value (fwrite (...)) even though the ignore_value is
18254         not helpful here.  It's common to write many objects, using
18255         fwrite/printf/etc., and then use ferror to detect output error.
18256
18257         I considered making this patch optional, but decided against it,
18258         because libc is obviously being inconsistent here: there is no
18259         reason libc should insist that user code must inspect fwrite
18260         return's value without also insisting that it inspect printf's,
18261         putchar's, etc.  If user code wants to have a strict style where
18262         all these functions' values are checked (so that ferror need not
18263         be checked), we could add support for that style in a new gnulib
18264         module, but in the meantime it's better to be consistent and to
18265         support common usage.
18266
18267         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18268         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18269         that we are compiling in checking mode, and if not C++, and
18270         if not already wrapping fwrite for some other reason.
18271         (fwrite): #define to rpl_fwrite if the latter is defined.
18272
18273 2011-03-20  Bruno Haible  <bruno@clisp.org>
18274
18275         verror: Fix compilation error introduced on 2011-02-13.
18276         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18277         instead of __attribute__.
18278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18279
18280 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18281             Bruno Haible  <bruno@clisp.org>
18282
18283         socklen: do not depend on sys_socket
18284         While trying to modify Emacs to use gnulib's socklen module,
18285         I discovered a circular dependency: socklen depends on sys_socket
18286         and vice versa.  Emacs can use socklen, but it does not need
18287         sys_socket because it has its own substitute for sys/socket.h.
18288         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18289         gl_TYPE_SOCKLEN_T.
18290         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18291         gl_PREREQ_SYS_H_SOCKET.
18292         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18293         gl_PREREQ_SYS_H_SOCKET.
18294         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18295         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18296         * modules/socklen (Depends-on): Do not depend on sys_socket.
18297         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18298
18299 2011-03-20  Jim Meyering  <meyering@redhat.com>
18300
18301         maint.mk: sort file names *after* new transformation
18302         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18303         prefix would have led to an unwarranted failure in GNU parted.
18304         Sort after that transformation.
18305
18306 2011-03-19  Jim Meyering  <meyering@redhat.com>
18307
18308         maint.mk: fix po-file syntax-check rule
18309         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18310         Patch by Bruno Haible.
18311
18312 2011-03-19  Bruno Haible  <bruno@clisp.org>
18313
18314         socklen: Update comment.
18315         * m4/socklen.m4: Update comment about platforms.
18316
18317 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18318             Bruno Haible  <bruno@clisp.org>
18319
18320         inet_ntop, inet_pton: Simplify.
18321         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18322         documented to provide socklen_t and we already depend on sys_socket.
18323         * modules/inet_pton (Depends-on): Likewise.
18324         * lib/arpa_inet.in.h: Adjust comment.
18325
18326 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18327             Bruno Haible  <bruno@clisp.org>
18328
18329         netdb: Simplify.
18330         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18331         documented to provide socklen_t and we already depend on sys_socket.
18332         * lib/netdb.in.h: Adjust comment.
18333
18334 2011-03-19  Bruno Haible  <bruno@clisp.org>
18335
18336         sys_socket, netdb: Document problem with socklen_t.
18337         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18338         platforms.
18339         * doc/posix-headers/netdb.texi: Likewise.
18340
18341 2011-03-18  Eric Blake  <eblake@redhat.com>
18342
18343         maint.mk: let po check work in VPATH build
18344         * top/maint.mk (po_file): Allow cfg.mk override.
18345         (sc_po_check): Allow VPATH use.
18346         Reported by Jiri Denemark.
18347
18348 2011-03-16  Jim Meyering  <meyering@redhat.com>
18349
18350         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18351         Before, you would have had to create one .x-sc_ file per rule in order
18352         to exempt offending files.  Now, you may instead use a Make variable --
18353         usually defined in cfg.mk -- whose name identifies the affected rule.
18354         * top/maint.mk (_sc_excl): Define.
18355         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18356         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18357
18358 2011-03-13  Bruno Haible  <bruno@clisp.org>
18359
18360         ignore-value tests: Avoid warnings.
18361         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18362         empty for gcc < 3.4.
18363
18364 2011-03-13  Bruno Haible  <bruno@clisp.org>
18365
18366         passfd: Fix link error on Solaris.
18367         * modules/passfd (Description): Correct.
18368         (Depends-on): Add socketlib.
18369         (Link): New section.
18370         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18371
18372 2011-03-13  Bruno Haible  <bruno@clisp.org>
18373
18374         passfd: Fix link error on AIX 5.2.
18375         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18376
18377 2011-03-13  Bruno Haible  <bruno@clisp.org>
18378
18379         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18380         * lib/sys_socket.in.h: Include <stddef.h>.
18381         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18382         CMSG_FIRSTHDR. Remove unused variable.
18383
18384 2011-03-13  Bruno Haible  <bruno@clisp.org>
18385
18386         passfd: Fix compilation error on OpenBSD.
18387         * lib/passfd.c: Include <sys/uio.h>.
18388
18389 2011-03-13  Bruno Haible  <bruno@clisp.org>
18390
18391         passfd test: Fix warnings.
18392         * tests/test-passfd.c: Include <sys/wait.h>.
18393         (main): Fix typo.
18394
18395 2011-03-13  Bruno Haible  <bruno@clisp.org>
18396
18397         passfd module, part 4, tweaks.
18398         * tests/test-passfd.c: Reorder includes.
18399         (main): Fix perror and printf calls.
18400
18401 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18402
18403         passfd module, part 4.
18404         * modules/passfd-tests: New file.
18405         * tests/test-passfd.c: New file.
18406
18407 2011-03-13  Jim Meyering  <meyering@redhat.com>
18408
18409         Makefile: rely on GNU make; derive syntax-check rule names
18410         Rather than requiring that each sc_ rule be listed as a dependent
18411         of "check", use features of GNU make to derive the list.
18412         * Makefile (syntax-check-rules): Define.
18413         (check): Depend on the new variable, not the hard-coded list.
18414
18415 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18416             Bruno Haible  <bruno@clisp.org>
18417
18418         passfd module, part 3.
18419         * lib/passfd.h (recvfd): Add a flags argument.
18420         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18421         (recvfd): Add a flags argument.
18422         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18423         exists.
18424         * modules/passfd (Depends-on): Add cloexec.
18425         Suggested by Eric Blake.
18426
18427 2011-03-13  Bruno Haible  <bruno@clisp.org>
18428
18429         passfd module, part 2, tweaks.
18430         * modules/passfd (Files): Reorder.
18431         (Depends-on): Remove errno.
18432         (Include): Remove <sys/socket.h>, <sys/un.h>.
18433         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18434         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18435         specification header. Include <sys/socket.h> always. Don't include
18436         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18437         (sendfd): Clarify that it sets errno when it fails.
18438         (recvfd): Fix specification.
18439
18440 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18441
18442         passfd module, part 2.
18443         * modules/passfd: New file.
18444         * lib/passfd.h: New file.
18445         * lib/passfd.c: New file.
18446
18447 2011-03-12  Bruno Haible  <bruno@clisp.org>
18448
18449         wcswidth, mbswidth: Avoid integer overflow.
18450         * lib/wcswidth.c: Include <limits.h>.
18451         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18452         * lib/mbswidth.c: Include <limits.h>.
18453         (mbsnwidth): Avoid 'int' overflow.
18454         Reported by Jim Meyering.
18455
18456 2011-03-12  Bruno Haible  <bruno@clisp.org>
18457
18458         futimens, utimensat: Avoid endless recursion on Solaris 10.
18459         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18460         Solaris.
18461         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18462         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18463
18464 2011-03-11  Jim Meyering  <meyering@redhat.com>
18465
18466         maint.mk: relax a regexp to accommodate other formatting styles
18467         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18468         between "ngettext" and the following "(".
18469
18470 2011-03-11  Pádraig Brady <P@draigBrady.com>
18471
18472         maint.mk: suppress a false positive warning
18473         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18474         diagnostics are marked with ngettext.
18475
18476 2011-03-10  Eric Blake  <eblake@redhat.com>
18477
18478         wchar: add explicit dependencies, for Tru64
18479         * modules/mbmemcasecoll (Depends-on): Add wchar.
18480         * modules/mbtowc (Depends-on): Likewise.
18481         * modules/vasnprintf (Depends-on): Likewise.
18482         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18483         * modules/wctomb (Depends-on): Likewise.
18484         Reported by Peter O'Gorman.
18485
18486 2011-03-08  Bruno Haible  <bruno@clisp.org>
18487
18488         passfd module, part 1, tweaks.
18489         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18490         Improve indentation. Improve AC_MSG_CHECKING messages.
18491         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18492         gl_SOCKET_FAMILIES.
18493
18494 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18495
18496         passfd module, part 1.
18497         * m4/afunix.m4: New file.
18498         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18499         sockets.
18500
18501 2011-03-08  Bruno Haible  <bruno@clisp.org>
18502
18503         regex-quote: New API.
18504         * lib/regex-quote.h: Include <stdbool.h>.
18505         (struct regex_quote_spec): New type.
18506         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18507         New declarations.
18508         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18509         'const struct regex_quote_spec *' argument.
18510         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18511         (pcre_special): New constant.
18512         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18513         New functions.
18514         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18515         'const struct regex_quote_spec *' argument.
18516         * modules/regex-quote (Depends-on): Add stdbool.
18517         * tests/test-regex-quote.c (check): Update for new API. Add test for
18518         anchored results.
18519         * NEWS: Mention the API change.
18520         Reported by Reuben Thomas and Eric Blake.
18521
18522 2011-03-06  Bruno Haible  <bruno@clisp.org>
18523
18524         regex-quote: Fix creation of POSIX extended regular expressions.
18525         * lib/regex-quote.c (ere_special): Add grouping and alternation
18526         operators.
18527
18528 2011-03-05  Bruno Haible  <bruno@clisp.org>
18529
18530         doc: Improve doc regarding autopoint vs. gnulib.
18531         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18532         disable autopoint while running autoreconf.
18533         Suggested by Ralf Wildenhues.
18534
18535 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18536
18537         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18538         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18539
18540 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18541
18542         parse-duration: remove xalloc.h dependency
18543         * lib/parse-duration.c (parse_period): handle NULL return from
18544         strdup instead of calling xstrdup().
18545         * modules/parse-duration: remove "xalloc" dependency
18546
18547 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18548
18549         bootstrap: honor m4_base when running aclocal
18550         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18551
18552 2011-03-02  Jim Meyering  <meyering@redhat.com>
18553
18554         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18555         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18556         on request from Matt Booth.
18557
18558 2011-03-01  Eric Blake  <eblake@redhat.com>
18559
18560         test-link: work on Hurd
18561         * tests/test-link.h (test_link): Hurd rejects linking directories
18562         with EISDIR instead of the POSIX-mandated EPERM.
18563
18564 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18565
18566         stdio: simplify by moving files to printf-posix, sigpipe
18567         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18568         since this symbol is needed only if printf is replaced.
18569         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18570         Require gl_ASM_SYMBOL_PREFIX.
18571         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18572         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18573         (Depends-on): Add 'raise'.
18574         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18575         * modules/stdio (Files): Remove lib/stdio-write.c,
18576         m4/asm-underscore.m4.
18577         (Depends-on): Remove 'raise'.
18578
18579         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18580         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18581         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18582         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18583
18584 2011-02-28  Bruno Haible  <bruno@clisp.org>
18585
18586         localcharset: Assume ANSI C behaviour of free().
18587         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18588         calling free().
18589         Suggested by Simon Josefsson <simon@josefsson.org>.
18590
18591 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18592             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18593             Bruno Haible  <bruno@clisp.org>  (tiny change)
18594
18595         On Cygwin, use /proc file system instead of win32 API.
18596         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18597         Win32 file names.
18598         (DllMain): Simplify by removing Cygwin specific code.
18599         (find_shared_library_fullname): Use Linux specific implementation also
18600         for Cygwin.
18601         (get_shared_library_fullname): Update accordingly.
18602         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18603         Win32 file names.
18604         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18605         Cygwin specific code.
18606
18607 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18608             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18609
18610         Fix OpenMP flag detection for various Fortran compilers.
18611         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18612         OpenMP-conditional compilation construct, to force compile
18613         failure with missing OpenMP flag.
18614         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18615
18616 2011-02-25  Eric Blake  <eblake@redhat.com>
18617
18618         strstr: expand test coverage
18619         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18620         compilation.
18621         * tests/test-memmem.c (main): Duplicate tests.
18622         * tests/test-strcasestr.c (main): Likewise.
18623         * tests/test-c-strcasestr.c (main): Likewise.
18624
18625 2011-02-25  Jim Meyering  <meyering@redhat.com>
18626
18627         maint.mk: detect missing-NL-at-EOF, too
18628         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18629         it also detects when a file lacks a newline at EOF.
18630         (require_exactly_one_NL_at_EOF_): Renamed from
18631         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18632         since people may well have .x-sc_... file names tied to the
18633         existing name.  Suggested by Eric Blake.
18634
18635 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18636
18637         dirname: move m4/dos.m4 functionality into lib/dosname.h
18638
18639         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18640         extracts symbols from it, puts them into config.h; but it's much
18641         easier to use the symbols directly.  filename.h already does this,
18642         but it disagrees with dos.m4 in some respects.  This patch
18643         introduces a different include file dosname.h that packages up
18644         dos.m4, and then later we can work on merging filename.h and
18645         dosname.h.  Applications that need only the easy-to-configure
18646         symbols should consider including dosname.h rather than dirname.h.
18647         * NEWS: Mention incompatible changes.
18648         * m4/dos.m4: Remove.
18649         * lib/dosname.h, modules/dosname: New files.
18650         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18651         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18652         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18653         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18654         Include dosname.h, not dirname.h.
18655         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18656         Include dosname.h, for definitions of symbols like ISSLASH
18657         that used to be in config.h.
18658         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18659         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18660         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18661         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18662         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18663         * modules/rmdir (Files): Likewise.
18664         * modules/stat (Files): Likewise.
18665         * modules/unlink (Files): Likewise.
18666         * modules/dirname-lgpl (Depends-on): Add dosname.
18667         * modules/lstat (Depends-on): Likewise.
18668         * modules/openat (Depends-on): Likewise.
18669         * modules/rmdir (Depends-on): Likewise.
18670         * modules/savewd (Depends-on): Likewise.
18671         * modules/stat (Depends-on): Likewise.
18672         * modules/unlink (Depends-on): Likewise.
18673         * modules/openat (Depends-on): Remove dirname-lgpl.
18674         * modules/savewd (Depends-on): Likewise.
18675         * tests/test-dirname.c: Do not use removed symbols like
18676         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18677         the remaining symbols, e.g., ISSLASH ('\\').
18678
18679 2011-02-25  Eric Blake  <eblake@redhat.com>
18680
18681         strstr: revert patches that introduced bug and pessimization
18682         * lib/str-two-way.h: Add another reference.
18683         (two_way_short_needle, two_way_long_needle): Revert changes from
18684         2011-02-24; they pessimize search speed.
18685         (critical_factorization): Partially revert changes from
18686         2010-06-22; they violate the requirement that the left half of the
18687         needle be smaller than the period of the needle.
18688
18689 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18690
18691         filenamecat: remove unnecessary dependency on dirname-lgpl
18692         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18693         is no direct dependency, just an indirect one via filenamecat-lgpl.
18694
18695         remove: remove unnecessary use of m4/dos.m4
18696         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18697         * modules/remove (FILES): Remove m4/dos.m4.
18698
18699         * lib/openat-proc.c: Don't include dirname.h; not needed.
18700
18701         backupfile: remove unnecessary use of m4/dos.m4
18702         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18703         of its symbols are used by the backupfile code.  backupfile.c does
18704         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18705         for the rare case of programs that want all their backup file
18706         names to live within 8+3 limits, and dos.m4 doesn't address that.
18707         * modules/backupfile (Files): Remove m4/dos.m4.
18708
18709 2011-02-24  Jim Meyering  <meyering@redhat.com>
18710
18711         strstr: fix a bug whereby strstr would mistakenly return NULL
18712         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18713         in period calculation.
18714         (two_way_long_needle): Likewise.
18715         The original problem was reported by Mike Stump in
18716         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18717         Ralf Wildenhues provided the short needle and haystack.
18718         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18719         Add a more involved test to trigger the bug in two_way_long_needle.
18720
18721 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18722
18723         gnulib-tool: remove use of bold display in help screen
18724         * gnulib-tool (func_usage): Do not use bold display anymore in the
18725         help screen.  That was just meant to be a temporary emphasis for a
18726         backward-incompatible change.
18727
18728 2011-02-23  Bruno Haible  <bruno@clisp.org>
18729
18730         Fix misindentation of preprocessor directives.
18731         * lib/argp-namefrob.h: Reindent preprocessor directives.
18732         * lib/getopt_int.h (struct _getopt_data): Likewise.
18733         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18734         * lib/vasnprintf.c (decode_long_double): Likewise.
18735         * tests/test-argmatch.c: Insert blank lines, for clarity.
18736         * tests/test-exclude.c: Likewise.
18737
18738 2011-02-22  Bruno Haible  <bruno@clisp.org>
18739
18740         ioctl: Fix for MacOS X in 64-bit mode.
18741         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18742         value.
18743         Suggested by Eric Blake.
18744         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18745
18746 2011-02-22  Jim Meyering  <meyering@redhat.com>
18747
18748         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18749         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18750         in lib/.
18751
18752 2011-02-22  Eric Blake  <eblake@redhat.com>
18753
18754         maint: avoid any CDPATH issue
18755         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18756
18757         maint: adjust cpp indentation for my modules, as well
18758         * Makefile (sc_cpp_indent_check): Add my name.
18759         * lib/fbufmode.c: Filter through cppi.
18760         * lib/fpurge.c: Likewise.
18761         * lib/freadable.c: Likewise.
18762         * lib/freading.c: Likewise.
18763         * lib/fwritable.c: Likewise.
18764         * lib/fwriting.c: Likewise.
18765         * lib/sigaction.c: Likewise.
18766
18767 2011-02-22  Jim Meyering  <meyering@redhat.com>
18768
18769         maint: adjust cpp indentation to reflect nesting depth
18770         I.e., in a block of code that begins with an unnested "#if",
18771         put one space between the "#" in column 1 and following token.
18772         For example,
18773         -#include <sys/vfs.h>
18774         +# include <sys/vfs.h>
18775         Do this only in .c files that are part of a module I maintain.
18776         * lib/linkat.c: Filter through cppi.
18777         * lib/nanosleep.c: Likewise.
18778         * lib/openat.c: Likewise.
18779         * lib/openat-die.c: Likewise.
18780         * lib/dup3.c: Likewise.
18781         * lib/fchownat.c: Likewise.
18782         * lib/flock.c: Likewise.
18783         * lib/fsync.c: Likewise.
18784         * lib/fts.c: Likewise.
18785         * lib/getpass.c: Likewise.
18786         * lib/gettimeofday.c: Likewise.
18787         * lib/userspec.c: Likewise.
18788         * Makefile (sc_cpp_indent_check): New rule, to check this.
18789
18790 2011-02-22  Bruno Haible  <bruno@clisp.org>
18791
18792         New module 'wctomb'.
18793         * lib/stdlib.in.h (wctomb): New declaration.
18794         * lib/wctomb.c: New file.
18795         * lib/wctomb-impl.h: New file.
18796         * m4/wctomb.m4: New file.
18797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18798         REPLACE_WCTOMB.
18799         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18800         REPLACE_WCTOMB.
18801         * modules/wctomb: New file.
18802         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18803         * doc/posix-functions/wctomb.texi: Mention the new module.
18804         * modules/wctob (Depends-on): Add wctomb.
18805
18806 2011-02-22  Bruno Haible  <bruno@clisp.org>
18807
18808         New module 'mbtowc'.
18809         * lib/stdlib.in.h (mbtowc): New declaration.
18810         * lib/mbtowc.c: New file.
18811         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18812         * m4/mbtowc.m4: New file.
18813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18814         REPLACE_MBTOWC.
18815         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18816         REPLACE_MBTOWC.
18817         * modules/mbtowc: New file.
18818         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18819         * doc/posix-functions/mbtowc.texi: Mention the new module.
18820         * modules/btowc (Depends-on): Add mbtowc.
18821
18822 2011-02-22  Bruno Haible  <bruno@clisp.org>
18823
18824         wcrtomb: Add more tests for native Windows platforms.
18825         * tests/test-wcrtomb-w32-1.sh: New file.
18826         * tests/test-wcrtomb-w32-2.sh: New file.
18827         * tests/test-wcrtomb-w32-3.sh: New file.
18828         * tests/test-wcrtomb-w32-4.sh: New file.
18829         * tests/test-wcrtomb-w32-5.sh: New file.
18830         * tests/test-wcrtomb-w32.c: New file.
18831         * modules/wcrtomb-tests (Files): Add them.
18832         (Makefile.am): Arrange to run these tests.
18833         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18834         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18835
18836 2011-02-20  Bruno Haible  <bruno@clisp.org>
18837
18838         wcrtomb: Enhance test.
18839         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18840
18841 2011-02-20  Bruno Haible  <bruno@clisp.org>
18842
18843         mbrtowc: Tiny optimization.
18844         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18845
18846 2011-02-20  Jim Meyering  <meyering@redhat.com>
18847
18848         test-exclude.c: remove unmatched #endif
18849         * tests/test-exclude.c: Remove stray #endif, left over from
18850         the change of a week ago.
18851
18852 2011-02-19  Jim Meyering  <meyering@redhat.com>
18853
18854         git-version-gen: skip "-dirty" check when appropriate
18855         * build-aux/git-version-gen: Don't run any git commands when the
18856         version string comes from .tarball-version.  Prior to this, we
18857         would run git update-index --refresh even from a just-unpacked
18858         tarball directory, and that could affect a .git/ directory in a
18859         parent of the build directory.  Reported by Mike Frysinger.
18860
18861 2011-02-19  Bruno Haible  <bruno@clisp.org>
18862
18863         unictype/property-byname: Reduce the size of the 'data' segment.
18864         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18865
18866 2011-02-19  Bruno Haible  <bruno@clisp.org>
18867
18868         unictype/scripts: Reduce the size of the 'data' segment.
18869         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18870         '%pic'.
18871         * lib/unictype/scripts_byname.gperf: Regenerated.
18872
18873 2011-02-19  Bruno Haible  <bruno@clisp.org>
18874
18875         stdint: Update documentation.
18876         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18877
18878 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18879
18880         stdint: omit redundant check for wchar.h
18881         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18882         always tests whether wchar.h exists, so remove the now-redundant test.
18883
18884 2011-02-18  Bruno Haible  <bruno@clisp.org>
18885
18886         stdint: Cut dependency to module 'wchar'.
18887         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18888         include the necessary prerequisites.
18889         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18890         * modules/stdint (Depends-on): Remove wchar.
18891         (Makefile.am): Substitute HAVE_WCHAR_H.
18892         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18893
18894 2011-02-18  Eric Blake  <eblake@redhat.com>
18895
18896         longlong: skip, rather than fail, on cross-compilation
18897         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18898         when cross-compiling; regression from 2011-02-16.
18899
18900 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18901
18902         * NEWS: Mention 2011-02-08 change to stdlib.
18903
18904 2011-02-17  Bruno Haible  <bruno@clisp.org>
18905
18906         getloadavg: Add comments about platforms.
18907         * m4/getloadavg.m4: Add comment.
18908         * lib/getloadavg.c: Likewise.
18909
18910 2011-02-17  Bruno Haible  <bruno@clisp.org>
18911
18912         getloadavg: Fix link error on Solaris 2.6.
18913         * modules/getloadavg (Link): New section.
18914         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18915         linking test-getloadavg.
18916         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18917         getloadavg.
18918
18919 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18920
18921         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18922         It was 'int', but this doesn't match the IRIX 6.5 manual.
18923         Suggested by Bruno Haible in
18924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18925
18926 2011-02-17  Bruno Haible  <bruno@clisp.org>
18927
18928         havelib: Fix comments.
18929         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18930         change.
18931
18932 2011-02-17  Bruno Haible  <bruno@clisp.org>
18933
18934         havelib: Update config.rpath.
18935         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18936
18937 2011-02-17  Bruno Haible  <bruno@clisp.org>
18938
18939         getloadavg test: Add some plausibility checks.
18940         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18941         is improbable.
18942
18943 2011-02-16  Eric Blake  <eblake@redhat.com>
18944
18945         maintainer-makefile: make syntax-check a no-op from tarballs
18946         * top/maint.mk (no-vc-detected): New rule.
18947         (local-checks-available): Use it to avoid hanging if someone tries
18948         'make syntax-check' from a tarball.  Also append to any non-syntax
18949         checks already defined in cfg.mk.
18950
18951 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18952
18953         longlong: tune, particularly for common case of c99
18954
18955         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18956         or running anything if c99, or if unsigned long long int does not
18957         work.  In either case, we know the answer without further tests.
18958         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18959         it at most once, and use its results for both long long int and
18960         unsigned long long int.  This is more likely to be efficient in
18961         the common case where the program wants to check for both long
18962         long int and unsigned long long int.
18963         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18964         since the answer is already known.
18965
18966 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18967
18968         getloadavg: set errno
18969         * lib/getloadavg.c: Set errno when returning -1.  If no other
18970         error number looks appropriate, set it to ENOSYS if the getloadavg
18971         looks like it can't possibly ever work, ENOTSUP otherwise.
18972         Suggested by Bruno Haible in
18973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18974
18975         getloadavg: trim unused parts and speed up 'configure'
18976         * NEWS: Document this.
18977         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18978         always compiled if getloadavg is absent.
18979         Move test code to ...
18980         * tests/test-getloadavg.c: New file, containing previous
18981         contents of test from lib/getloadavg.c.  It also contains
18982         suggestions by Bruno Haible in
18983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18984         * modules/getloadavg-tests: New file.
18985         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18986         Do tests in the same order as they're needed for getloadavg.c.
18987         Omit setgid-related tests that generate symbols KMEM_GROUP,
18988         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18989         Do only the tests that are needed to see whether the system has
18990         getloadavg, moving the other tests into ...
18991         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18992         NLIST_NAME_UNION; nobody should be using it.  Do not define
18993         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18994         relevant, as the user of this module shouldn't care how getloadavg
18995         is implemented.
18996
18997         getloadavg: omit unused var
18998         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18999
19000 2011-02-15  Jim Meyering  <meyering@redhat.com>
19001
19002         doc: update users.txt
19003         * users.txt: Update iwhd's URL.
19004
19005 2011-02-13  Bruno Haible  <bruno@clisp.org>
19006
19007         Consistent macro naming for macros that use GCC __attribute__.
19008         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19009         _ATTRIBUTE_NONNULL_.
19010         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19011         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19012         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19013         ATTRIBUTE_DEPRECATED.
19014         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19015         ATTRIBUTE_NORETURN.
19016         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19017         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19018         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19019         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19020         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19021         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19022         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19023         ATTRIBUTE_SENTINEL.
19024         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19025         ATTRIBUTE_RETURN_CHECK.
19026         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19027         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19028         ATTRIBUTE_NORETURN.
19029         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19030         Reported by Paul Eggert.
19031
19032 2011-02-13  Bruno Haible  <bruno@clisp.org>
19033
19034         Don't interfere with a program's definition of __attribute__.
19035         * lib/argp.h (__attribute__): Remove definition.
19036         (_GL_ATTRIBUTE_FORMAT): New macro.
19037         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19038         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19039         (_GL_ATTRIBUTE_FORMAT): New macro.
19040         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19041         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19042         GCC 3 or newer.
19043         * lib/error.h (__attribute__): Remove definition.
19044         (_GL_ATTRIBUTE_FORMAT): New macro.
19045         (error, error_at_line): Use it.
19046         * lib/hash.h (__attribute__): Remove definition.
19047         (ATTRIBUTE_WUR): Update definition. Define always.
19048         * lib/openat.h (__attribute__): Remove definition.
19049         (ATTRIBUTE_NORETURN): Update definition. Define always.
19050         * lib/sigpipe-die.h (__attribute__): Remove definition.
19051         (ATTRIBUTE_NORETURN): Update definition. Define always.
19052         * lib/vasnprintf.h (__attribute__): Remove definition.
19053         (_GL_ATTRIBUTE_FORMAT): New macro.
19054         (asnprintf, vasnprintf): Use it.
19055         * lib/xalloc.h (__attribute__): Remove definition.
19056         (ATTRIBUTE_NORETURN): Update definition. Define always.
19057         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19058         * lib/xmemdup0.h (__attribute__): Remove definition.
19059         (ATTRIBUTE_NORETURN): Update definition. Define always.
19060         * lib/xprintf.h (__attribute__): Remove definition.
19061         (_GL_ATTRIBUTE_FORMAT): New macro.
19062         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19063         * lib/xstrtol.h (__attribute__): Remove definition.
19064         (ATTRIBUTE_NORETURN): Update definition. Define always.
19065         * lib/xvasprintf.h (__attribute__): Remove definition.
19066         (_GL_ATTRIBUTE_FORMAT): New macro.
19067         (xasprintf, xvasprintf): Use it.
19068         * tests/test-argmatch.c (__attribute__): Remove definition.
19069         (ATTRIBUTE_NORETURN): Update definition. Define always.
19070         * tests/test-exclude.c (__attribute__): Remove definition.
19071         (ATTRIBUTE_NORETURN): Update definition. Define always.
19072         Reported by Paul Eggert.
19073
19074 2011-02-13  Bruno Haible  <bruno@clisp.org>
19075
19076         mbrtowc: Add more tests for native Windows platforms.
19077         * tests/test-mbrtowc-w32-1.sh: New file.
19078         * tests/test-mbrtowc-w32-2.sh: New file.
19079         * tests/test-mbrtowc-w32-3.sh: New file.
19080         * tests/test-mbrtowc-w32-4.sh: New file.
19081         * tests/test-mbrtowc-w32-5.sh: New file.
19082         * tests/test-mbrtowc-w32.c: New file.
19083         * modules/mbrtowc-tests (Files): Add them.
19084         (Makefile.am): Arrange to run these tests.
19085         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19086         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19087
19088 2011-02-13  Bruno Haible  <bruno@clisp.org>
19089
19090         mbrtowc: Work around native Windows bug.
19091         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19092         guess when no suitable locale for testing was found.
19093         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19094
19095 2011-02-13  Bruno Haible  <bruno@clisp.org>
19096
19097         mbsinit: Work around mingw bug.
19098         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19099         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19100         Windows.
19101         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19102
19103 2011-02-13  Bruno Haible  <bruno@clisp.org>
19104
19105         mbsinit: Don't crash for a NULL argument.
19106         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19107         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19108
19109 2011-02-13  Bruno Haible  <bruno@clisp.org>
19110
19111         Don't interfere with a program's definition of __attribute__.
19112         * lib/stdio.in.h (__attribute__): Remove definition.
19113         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19114         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19115         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19116         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19117         * lib/string.in.h (__attribute__): Remove definition.
19118         Reported by Paul Eggert.
19119
19120 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19121
19122         stdlib: don't get in the way of non-GCC __attribute__
19123         See thread starting at
19124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19125         Revert previous stdlib change, installing the following instead:
19126         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19127         to get in the way of a non-GCC compiler that supports __attribute__.
19128         (_GL_ATTRIBUTE_RETURN): New macro.
19129         (_Exit): Use it instead of __attribute__.
19130
19131 2011-02-12  Bruno Haible  <bruno@clisp.org>
19132
19133         quotearg test: Avoid test failure on mingw.
19134         * tests/test-quotearg.sh: Convert the locale identifier from native
19135         Windows syntax to Unix syntax.
19136
19137 2011-02-12  Bruno Haible  <bruno@clisp.org>
19138
19139         setlocale: Prefer gnulib's override over libintl's override.
19140         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19141         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19142         GNULIB_defined_setlocale is set.
19143
19144 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19145
19146         stdlib: support non-GCC __attribute__
19147
19148         Fix a serious and tricky problem encountered when attempting to
19149         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19150         5.5, but it crashed due to memory corruption on Solaris 10 with
19151         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19152         bits that are otherwise zero.  This tagging is optional inside
19153         Emacs but is preferred and is used when __attribute__ ((__aligned
19154         (8))) works, as it does with both recent-enough GCC and with Sun C
19155         5.11.  However, Sun C 5.11 is not GCC and does not #define
19156         __GNUC__ and __GNUC_MINOR__.
19157
19158         When I added the getloadavg module to Emacs, it brought in
19159         stdlib.in.h, which contained this fragment:
19160
19161            #ifndef __attribute__
19162            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19163            #  define __attribute__(Spec)   /* empty */
19164            # endif
19165            #endif
19166
19167         When files that include <stdlib.h> were compiled with Sun C 5.11,
19168         the above code disabled __attribute__ ((__aligned (8))), which
19169         caused variables to not be properly aligned, which eventually led
19170         to the pointer corruption mentioned above.  (This was a bit hard
19171         to diagnose, unfortunately.)
19172
19173         Several "#define __attribute__(X) /* empty */" code snippets need
19174         to be eradicated from Gnulib to work with non-GCC compilers that
19175         support __attribute__.  The Autoconf way to do this is to test for
19176         each kind of attribute that we want support for, and selectively
19177         enable that in source code.
19178
19179         Fix this problem just for stdlib.h, by adding a test for the
19180         __noreturn__ attribute, and change stdlib.in.h to use that test
19181         when needed.  This technique can be easily generalized to the
19182         other *.in.h files and attributes, and a similar technique can be
19183         used for *.h and *.c files.  This patch is enough to solve the
19184         problem for Emacs + getloadavg, and I thought I'd publish it for
19185         feedback before undertaking further, similar fixes in other
19186         modules.
19187
19188         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19189         because it's not needed for stdlib.h.  It merely substitutes the
19190         value directly into stdlib.h.  We may well need to #define it, or
19191         similar symbols, for other modules, but it's nice to also have an
19192         option to not #define it for applications like Emacs that do not
19193         need it.
19194
19195         * lib/stdlib.in.h (__attribute__): Do not #define.
19196         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19197         be defined only if the _Exit module is also used.
19198         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19200         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19201         platforms.
19202         * modules/_Exit (Files): Add m4/attribute.m4.
19203         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19204         * m4/attribute.m4: New file.
19205
19206 2011-02-12  Bruno Haible  <bruno@clisp.org>
19207
19208         wcsrtombs: Work around bug on native Windows.
19209         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19210         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19211         instead of len.
19212         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19213
19214 2011-02-12  Bruno Haible  <bruno@clisp.org>
19215
19216         mbsrtowcs: Work around bug on native Windows.
19217         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19218         against mingw bug.
19219         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19220
19221 2011-02-12  Bruno Haible  <bruno@clisp.org>
19222
19223         Avoid setlocale bugs in tests.
19224         * modules/btowc (Dependencies): Add setlocale.
19225         * modules/c-strcase (Dependencies): Likewise.
19226         * modules/mbmemcasecmp (Dependencies): Likewise.
19227         * modules/mbmemcasecoll (Dependencies): Likewise.
19228         * modules/mbrtowc (Dependencies): Likewise.
19229         * modules/mbscasecmp (Dependencies): Likewise.
19230         * modules/mbscasestr (Dependencies): Likewise.
19231         * modules/mbschr (Dependencies): Likewise.
19232         * modules/mbscspn (Dependencies): Likewise.
19233         * modules/mbsinit (Dependencies): Likewise.
19234         * modules/mbsncasecmp (Dependencies): Likewise.
19235         * modules/mbsnrtowcs (Dependencies): Likewise.
19236         * modules/mbspbrk (Dependencies): Likewise.
19237         * modules/mbspcasecmp (Dependencies): Likewise.
19238         * modules/mbsrchr (Dependencies): Likewise.
19239         * modules/mbsrtowcs (Dependencies): Likewise.
19240         * modules/mbsspn (Dependencies): Likewise.
19241         * modules/mbsstr (Dependencies): Likewise.
19242         * modules/nl_langinfo (Dependencies): Likewise.
19243         * modules/quotearg (Dependencies): Likewise.
19244         * modules/unicase/locale-language (Dependencies): Likewise.
19245         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19246         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19247         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19248         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19249         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19250         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19251         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19252         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19253         * modules/vasnprintf-posix (Dependencies): Likewise.
19254         * modules/wcrtomb (Dependencies): Likewise.
19255         * modules/wcsnrtombs (Dependencies): Likewise.
19256         * modules/wcsrtombs (Dependencies): Likewise.
19257
19258 2011-02-12  Bruno Haible  <bruno@clisp.org>
19259
19260         setlocale: Workaround native Windows bug.
19261         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19262         succeeds but sets LC_CTYPE to "C", report a failure.
19263         * tests/test-setlocale2.sh: New file.
19264         * tests/test-setlocale2.c: New file.
19265         * modules/setlocale-tests (Files): Add the new files.
19266         (Makefile.am): Enable test-setlocale2.sh test.
19267         * doc/posix-functions/setlocale.texi: Mention workaround.
19268
19269 2011-02-11  Bruno Haible  <bruno@clisp.org>
19270
19271         Tests for module 'setlocale'.
19272         * modules/setlocale-tests: New file.
19273         * tests/test-setlocale1.sh: New file.
19274         * tests/test-setlocale1.c: New file.
19275
19276         New module 'setlocale'.
19277         * lib/locale.in.h (setlocale): New declaration.
19278         * lib/setlocale.c: New file, based on
19279         gettext/gettext-runtime/intl/setlocale.c.
19280         * m4/setlocale.m4: New file.
19281         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19282         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19283         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19284         REPLACE_SETLOCALE.
19285         * modules/setlocale: New file.
19286         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19287         * doc/posix-functions/setlocale.texi: Mention the new module.
19288
19289 2011-02-11  Bruno Haible  <bruno@clisp.org>
19290
19291         Prepare for locale dependent tests on mingw.
19292         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19293         because it has the wrong locale encoding.
19294         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19295         French_France.1252 instead of "fr".
19296         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19297         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19298         because it has the wrong locale encoding.
19299         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19300         native Windows, try Turkish_Turkey.65001.
19301         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19302         Chinese_China.54936.
19303
19304         Prepare for locale dependent tests on mingw.
19305         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19306         differently.
19307         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19308         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19309         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19310         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19311
19312 2011-02-11  Eric Blake  <eblake@redhat.com>
19313
19314         strptime: avoid compiler warnings
19315         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19316         compiler warnings about dead code.
19317         Reported by Daniel P. Berrange.
19318
19319 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19320
19321         doc: update users.txt
19322         * users.txt: Add rcs.
19323
19324 2011-02-10  John W. Eaton  <jwe@gnu.org>
19325
19326         doc: update users.txt
19327         * users.txt: Add octave.
19328
19329 2011-02-10  Jim Meyering  <meyering@redhat.com>
19330
19331         doc: update users.txt
19332         * users.txt: Add iwhd.
19333
19334 2011-02-09  Bruno Haible  <bruno@clisp.org>
19335
19336         gnulib-tool: Make copyright notice adjustment more robust.
19337         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19338         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19339         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19340         License".
19341         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19342
19343 2011-02-06  Bruno Haible  <bruno@clisp.org>
19344
19345         New module 'towctrans'.
19346         * modules/towctrans: New file.
19347         * lib/wctype.in.h (towctrans): New declaration.
19348         * lib/towctrans.c: New file.
19349         * lib/towctrans-impl.h: New file.
19350         * m4/towctrans.m4: New file.
19351         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19352         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19353         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19354         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19355         * doc/posix-functions/towctrans.texi: Mention the new module.
19356
19357 2011-02-06  Bruno Haible  <bruno@clisp.org>
19358
19359         New module 'wctrans'.
19360         * modules/wctrans: New file.
19361         * lib/wctype.in.h (wctrans): New declaration.
19362         * lib/wctrans.c: New file.
19363         * lib/wctrans-impl.h: New file.
19364         * m4/wctrans.m4: New file.
19365         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19366         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19367         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19368         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19369         * doc/posix-functions/wctrans.texi: Mention the new module.
19370
19371 2011-02-06  Bruno Haible  <bruno@clisp.org>
19372
19373         New module 'iswctype'.
19374         * modules/iswctype: New file.
19375         * lib/wctype.in.h (iswctype): New declaration.
19376         * lib/iswctype.c: New file.
19377         * lib/iswctype-impl.h: New file.
19378         * m4/iswctype.m4: New file.
19379         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19380         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19381         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19382         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19383         * doc/posix-functions/iswctype.texi: Mention the new module and the
19384         HP-UX 11.00 problem.
19385
19386 2011-02-06  Bruno Haible  <bruno@clisp.org>
19387
19388         New module 'wctype'.
19389         * modules/wctype: Change to represent the wctype() substitute.
19390         * lib/wctype.in.h (wctype): New declaration.
19391         * lib/wctype.c: New file.
19392         * lib/wctype-impl.h: New file.
19393         * m4/wctype.m4: New file.
19394         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19395         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19396         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19397         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19398         * doc/posix-functions/wctype.texi: Mention the new module and the
19399         HP-UX 11.00 problem.
19400
19401 2011-02-06  Bruno Haible  <bruno@clisp.org>
19402
19403         wctype-h: Ensure wctype_t and wctrans_t are defined.
19404         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19405         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19406         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19407         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19408         HAVE_WCTRANS_T.
19409         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19410
19411 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19412
19413         flock: fix license typo
19414
19415         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19416         omitted.
19417
19418 2011-02-08  Bruno Haible  <bruno@clisp.org>
19419
19420         Split large sed scripts, for HP-UX sed.
19421         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19422         to avoid HP-UX limit of 99 commands, in the near future.
19423         * modules/stdlib (Makefile.am): Likewise.
19424         * modules/unistd (Makefile.am): Likewise.
19425         * modules/wchar (Makefile.am): Likewise.
19426         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19427         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19428         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19429
19430 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19431             Bruno Haible  <bruno@clisp.org>
19432
19433         stdlib: improve random_r modularization
19434         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19435         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19436         you also need the random_r module to get this material right.
19437         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19438         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19439         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19440
19441 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19442
19443         stdlib: don't depend on stdint
19444         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19445         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19446         be independent of whether stdint.h is needed.
19447         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19448         here, instead of ...
19449         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19450         struct random_data should be using the random_r module, not just
19451         the stdlib module (which wouldn't make sense: what package needs
19452         just struct random_data without also needing random_r?).
19453         * modules/stdlib (Depends-on): Remove stdint.
19454
19455         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19456         See the thread rooted at
19457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19458         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19459         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19460         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19461         __VMS)); previously it was always included (via fcntl--.h).
19462         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19463         hand; this is good enough for load averages.  Also, do not use
19464         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19465         flags directly if available and don't bother otherwise.  (Packages
19466         that need the extra reliability should use the modules that define
19467         these flags on older platforms that lack them.)
19468         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19469         fcntl-safer.
19470
19471 2011-02-08  Jim Meyering  <meyering@redhat.com>
19472
19473         di-set.h, ino-map.h: add multiple-inclusion guard
19474         Technically, the guard is required only for ino-map.h, due to its
19475         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19476         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19477         * lib/ino-map.h: Likewise.
19478
19479 2011-02-06  Bruno Haible  <bruno@clisp.org>
19480
19481         iswblank: Ensure declaration on glibc systems.
19482         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19483         * modules/iswblank (Dependencies): Add 'extensions'.
19484         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19485
19486 2011-02-06  Bruno Haible  <bruno@clisp.org>
19487
19488         New module 'iswblank'.
19489         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19490         * modules/iswblank: New file.
19491         * modules/wctype-h (Files): Remove lib/iswblank.c.
19492         (Makefile.am): Substitute GNULIB_ISWBLANK.
19493         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19494         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19495         (gl_WCTYPE_H_DEFAULTS): New macro.
19496         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19497         * modules/iswblank-tests: New file.
19498         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19499         * tests/test-wctype-h.c (main): Remove iswblank tests.
19500         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19501         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19502         of 'wctype-h'.
19503         * NEWS: Mention the change.
19504         * modules/mbchar (Depends-on): Add iswblank.
19505
19506 2011-02-08  Bruno Haible  <bruno@clisp.org>
19507
19508         di-set tests: Refactor.
19509         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19510         unnecessary includes.
19511         (ASSERT): Remove macro.
19512         (main): Make C90 compliant by avoiding variable declaration after
19513         statement.
19514         * modules/di-set-tests (Files): Add tests/macros.h.
19515
19516 2011-02-08  Bruno Haible  <bruno@clisp.org>
19517
19518         ino-map tests: Refactor.
19519         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19520         unnecessary includes.
19521         (ASSERT): Remove macro.
19522         (main): Make C90 compliant by avoiding variable declaration after
19523         statement.
19524         * modules/ino-map-tests (Files): Add tests/macros.h.
19525
19526 2011-02-08  Jim Meyering  <meyering@redhat.com>
19527
19528         di-set: add "const" to a cast
19529         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19530         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19531
19532 2011-02-06  Bruno Haible  <bruno@clisp.org>
19533
19534         Rename module 'wctype' to 'wctype-h'.
19535         * modules/wctype-h: Renamed from modules/wctype.
19536         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19537         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19538         (Files, Depends-on, Makefile.am): Update.
19539         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19540         (Files, Makefile.am): Update.
19541         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19542         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19543         * doc/posix-headers/wctype.texi: Update.
19544         * doc/posix-functions/iswalnum.texi: Update.
19545         * doc/posix-functions/iswalpha.texi: Update.
19546         * doc/posix-functions/iswblank.texi: Update.
19547         * doc/posix-functions/iswcntrl.texi: Update.
19548         * doc/posix-functions/iswdigit.texi: Update.
19549         * doc/posix-functions/iswgraph.texi: Update.
19550         * doc/posix-functions/iswlower.texi: Update.
19551         * doc/posix-functions/iswprint.texi: Update.
19552         * doc/posix-functions/iswpunct.texi: Update.
19553         * doc/posix-functions/iswspace.texi: Update.
19554         * doc/posix-functions/iswupper.texi: Update.
19555         * doc/posix-functions/iswxdigit.texi: Update.
19556         * doc/posix-functions/towlower.texi: Update.
19557         * doc/posix-functions/towupper.texi: Update.
19558         * NEWS: Mention the change.
19559         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19560         * modules/mbchar (Dependencies): Likewise.
19561         * modules/mbswidth (Dependencies): Likewise.
19562         * modules/quotearg (Dependencies): Likewise.
19563         * modules/regex (Dependencies): Likewise.
19564         * modules/wcscasecmp (Dependencies): Likewise.
19565         * modules/wcsncasecmp (Dependencies): Likewise.
19566         * modules/wcwidth (Dependencies): Likewise.
19567
19568 2011-02-06  Bruno Haible  <bruno@clisp.org>
19569
19570         New module 'wcswidth'.
19571         * modules/wcswidth: New file.
19572         * lib/wchar.in.h (wcswidth): New declaration.
19573         * lib/wcswidth.c: New file.
19574         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19575         * m4/wcswidth.m4: New file.
19576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19578         REPLACE_WCSWIDTH.
19579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19580         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19581         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19582         * doc/posix-functions/wcswidth.texi: Mention the new module.
19583
19584 2011-02-06  Bruno Haible  <bruno@clisp.org>
19585
19586         New module 'wcstok'.
19587         * modules/wcstok: New file.
19588         * lib/wchar.in.h (wcstok): New declaration.
19589         * lib/wcstok.c: New file.
19590         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19591         * m4/wcstok.m4: New file.
19592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19595         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19596         * doc/posix-functions/wcstok.texi: Mention the new module.
19597
19598 2011-02-06  Bruno Haible  <bruno@clisp.org>
19599
19600         New module 'wcsstr'.
19601         * modules/wcsstr: New file.
19602         * lib/wchar.in.h (wcsstr): New declaration.
19603         * lib/wcsstr.c: New file.
19604         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19605         * m4/wcsstr.m4: New file.
19606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19609         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19610         * doc/posix-functions/wcsstr.texi: Mention the new module.
19611
19612 2011-02-06  Bruno Haible  <bruno@clisp.org>
19613
19614         New module 'wcspbrk'.
19615         * modules/wcspbrk: New file.
19616         * lib/wchar.in.h (wcspbrk): New declaration.
19617         * lib/wcspbrk.c: New file.
19618         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19619         * m4/wcspbrk.m4: New file.
19620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19623         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19624         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19625
19626 2011-02-06  Bruno Haible  <bruno@clisp.org>
19627
19628         New module 'wcsspn'.
19629         * modules/wcsspn: New file.
19630         * lib/wchar.in.h (wcsspn): New declaration.
19631         * lib/wcsspn.c: New file.
19632         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19633         * m4/wcsspn.m4: New file.
19634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19637         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19638         * doc/posix-functions/wcsspn.texi: Mention the new module.
19639
19640 2011-02-06  Bruno Haible  <bruno@clisp.org>
19641
19642         New module 'wcscspn'.
19643         * modules/wcscspn: New file.
19644         * lib/wchar.in.h (wcscspn): New declaration.
19645         * lib/wcscspn.c: New file.
19646         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19647         * m4/wcscspn.m4: New file.
19648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19651         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19652         * doc/posix-functions/wcscspn.texi: Mention the new module.
19653
19654 2011-02-06  Bruno Haible  <bruno@clisp.org>
19655
19656         New module 'wcsrchr'.
19657         * modules/wcsrchr: New file.
19658         * lib/wchar.in.h (wcsrchr): New declaration.
19659         * lib/wcsrchr.c: New file.
19660         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19661         * m4/wcsrchr.m4: New file.
19662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19665         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19666         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19667
19668 2011-02-06  Bruno Haible  <bruno@clisp.org>
19669
19670         New module 'wcschr'.
19671         * modules/wcschr: New file.
19672         * lib/wchar.in.h (wcschr): New declaration.
19673         * lib/wcschr.c: New file.
19674         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19675         * m4/wcschr.m4: New file.
19676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19679         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19680         * doc/posix-functions/wcschr.texi: Mention the new module.
19681
19682 2011-02-06  Bruno Haible  <bruno@clisp.org>
19683
19684         New module 'wcsdup'.
19685         * modules/wcsdup: New file.
19686         * lib/wchar.in.h (wcsdup): New declaration.
19687         * lib/wcsdup.c: New file.
19688         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19689         * m4/wcsdup.m4: New file.
19690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19693         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19694         * doc/posix-functions/wcsdup.texi: Mention the new module.
19695
19696 2011-02-06  Bruno Haible  <bruno@clisp.org>
19697
19698         New module 'wcsxfrm'.
19699         * modules/wcsxfrm: New file.
19700         * lib/wchar.in.h (wcsxfrm): New declaration.
19701         * lib/wcsxfrm.c: New file.
19702         * lib/wcsxfrm-impl.h: New file.
19703         * m4/wcsxfrm.m4: New file.
19704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19707         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19708         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19709
19710 2011-02-06  Bruno Haible  <bruno@clisp.org>
19711
19712         New module 'wcscoll'.
19713         * modules/wcscoll: New file.
19714         * lib/wchar.in.h (wcscoll): New declaration.
19715         * lib/wcscoll.c: New file.
19716         * lib/wcscoll-impl.h: New file.
19717         * m4/wcscoll.m4: New file.
19718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19721         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19722         * doc/posix-functions/wcscoll.texi: Mention the new module.
19723
19724 2011-02-06  Bruno Haible  <bruno@clisp.org>
19725
19726         New module 'wcsncasecmp'.
19727         * modules/wcsncasecmp: New file.
19728         * lib/wchar.in.h (wcsncasecmp): New declaration.
19729         * lib/wcsncasecmp.c: New file.
19730         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19731         * m4/wcsncasecmp.m4: New file.
19732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19735         HAVE_WCSNCASECMP.
19736         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19737         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19738
19739 2011-02-06  Bruno Haible  <bruno@clisp.org>
19740
19741         New module 'wcscasecmp'.
19742         * modules/wcscasecmp: New file.
19743         * lib/wchar.in.h (wcscasecmp): New declaration.
19744         * lib/wcscasecmp.c: New file.
19745         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19746         * m4/wcscasecmp.m4: New file.
19747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19750         HAVE_WCSCASECMP.
19751         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19752         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19753
19754 2011-02-05  Bruno Haible  <bruno@clisp.org>
19755
19756         New module 'wcsncmp'.
19757         * modules/wcsncmp: New file.
19758         * lib/wchar.in.h (wcsncmp): New declaration.
19759         * lib/wcsncmp.c: New file.
19760         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19761         * m4/wcsncmp.m4: New file.
19762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19765         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19766         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19767
19768 2011-02-05  Bruno Haible  <bruno@clisp.org>
19769
19770         New module 'wcscmp'.
19771         * modules/wcscmp: New file.
19772         * lib/wchar.in.h (wcscmp): New declaration.
19773         * lib/wcscmp.c: New file.
19774         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19775         * m4/wcscmp.m4: New file.
19776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19779         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19780         * doc/posix-functions/wcscmp.texi: Mention the new module.
19781
19782 2011-02-05  Bruno Haible  <bruno@clisp.org>
19783
19784         New module 'wcsncat'.
19785         * modules/wcsncat: New file.
19786         * lib/wchar.in.h (wcsncat): New declaration.
19787         * lib/wcsncat.c: New file.
19788         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19789         * m4/wcsncat.m4: New file.
19790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19792         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19793         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19794         * doc/posix-functions/wcsncat.texi: Mention the new module.
19795
19796 2011-02-05  Bruno Haible  <bruno@clisp.org>
19797
19798         New module 'wcscat'.
19799         * modules/wcscat: New file.
19800         * lib/wchar.in.h (wcscat): New declaration.
19801         * lib/wcscat.c: New file.
19802         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19803         * m4/wcscat.m4: New file.
19804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19807         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19808         * doc/posix-functions/wcscat.texi: Mention the new module.
19809
19810 2011-02-05  Bruno Haible  <bruno@clisp.org>
19811
19812         New module 'wcpncpy'.
19813         * modules/wcpncpy: New file.
19814         * lib/wchar.in.h (wcpncpy): New declaration.
19815         * lib/wcpncpy.c: New file.
19816         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19817         * m4/wcpncpy.m4: New file.
19818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19820         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19821         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19822         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19823
19824 2011-02-05  Bruno Haible  <bruno@clisp.org>
19825
19826         New module 'wcsncpy'.
19827         * modules/wcsncpy: New file.
19828         * lib/wchar.in.h (wcsncpy): New declaration.
19829         * lib/wcsncpy.c: New file.
19830         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19831         * m4/wcsncpy.m4: New file.
19832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19834         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19835         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19836         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19837
19838 2011-02-05  Bruno Haible  <bruno@clisp.org>
19839
19840         New module 'wcpcpy'.
19841         * modules/wcpcpy: New file.
19842         * lib/wchar.in.h (wcpcpy): New declaration.
19843         * lib/wcpcpy.c: New file.
19844         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19845         * m4/wcpcpy.m4: New file.
19846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19848         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19849         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19850         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19851
19852 2011-02-05  Bruno Haible  <bruno@clisp.org>
19853
19854         New module 'wcscpy'.
19855         * modules/wcscpy: New file.
19856         * lib/wchar.in.h (wcscpy): New declaration.
19857         * lib/wcscpy.c: New file.
19858         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19859         * m4/wcscpy.m4: New file.
19860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19863         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19864         * doc/posix-functions/wcscpy.texi: Mention the new module.
19865
19866 2011-02-05  Bruno Haible  <bruno@clisp.org>
19867
19868         New module 'wcsnlen'.
19869         * modules/wcsnlen: New file.
19870         * lib/wchar.in.h (wcsnlen): New declaration.
19871         * lib/wcsnlen.c: New file.
19872         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19873         * m4/wcsnlen.m4: New file.
19874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19876         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19877         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19878         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19879
19880 2011-02-05  Bruno Haible  <bruno@clisp.org>
19881
19882         New module 'wcslen'.
19883         * modules/wcslen: New file.
19884         * lib/wchar.in.h (wcslen): New declaration.
19885         * lib/wcslen.c: New file.
19886         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19887         * m4/wcslen.m4: New file.
19888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19891         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19892         * doc/posix-functions/wcslen.texi: Mention the new module.
19893
19894 2011-02-05  Bruno Haible  <bruno@clisp.org>
19895
19896         New module 'wmemset'.
19897         * modules/wmemset: New file.
19898         * lib/wchar.in.h (wmemset): New declaration.
19899         * lib/wmemset.c: New file.
19900         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19901         * m4/wmemset.m4: New file.
19902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19904         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19905         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19906         * doc/posix-functions/wmemset.texi: Mention the new module.
19907
19908 2011-02-05  Bruno Haible  <bruno@clisp.org>
19909
19910         New module 'wmemmove'.
19911         * modules/wmemmove: New file.
19912         * lib/wchar.in.h (wmemmove): New declaration.
19913         * lib/wmemmove.c: New file.
19914         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19915         * m4/wmemmove.m4: New file.
19916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19918         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19919         HAVE_WMEMMOVE.
19920         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19921         * doc/posix-functions/wmemmove.texi: Mention the new module.
19922
19923 2011-02-05  Bruno Haible  <bruno@clisp.org>
19924
19925         New module 'wmemcpy'.
19926         * modules/wmemcpy: New file.
19927         * lib/wchar.in.h (wmemcpy): New declaration.
19928         * lib/wmemcpy.c: New file.
19929         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19930         * m4/wmemcpy.m4: New file.
19931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19933         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19934         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19935         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19936
19937 2011-02-05  Bruno Haible  <bruno@clisp.org>
19938
19939         New module 'wmemcmp'.
19940         * modules/wmemcmp: New file.
19941         * lib/wchar.in.h (wmemcmp): New declaration.
19942         * lib/wmemcmp.c: New file.
19943         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19944         * m4/wmemcmp.m4: New file.
19945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19947         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19948         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19949         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19950
19951 2011-02-07  Jim Meyering  <meyering@redhat.com>
19952
19953         di-set, ino-map: new modules, from coreutils
19954         * lib/di-set.c: New file.
19955         * lib/di-set.h: Likewise.
19956         * lib/ino-map.c: Likewise.
19957         * lib/ino-map.h: Likewise.
19958         * modules/di-set: Likewise.
19959         * modules/di-set-tests: Likewise.
19960         * modules/ino-map: Likewise.
19961         * modules/ino-map-tests: Likewise.
19962         * tests/test-di-set.c: Likewise.
19963         * tests/test-ino-map.c: Likewise.
19964
19965 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19966
19967         getloadavg: merge minor changes from Emacs
19968
19969         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19970         (getloadavg): Use memset, not bzero.
19971
19972         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19973         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19974         clash (bug#86).
19975
19976 2010-11-14  Bruno Haible  <bruno@clisp.org>
19977
19978         Allow multiple gnulib generated replacements to coexist.
19979         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19980         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19981         * lib/langinfo.in.h (nl_item): Likewise.
19982         * lib/math.in.h (_NaN, NAN): Likewise.
19983         * lib/netdb.in.h (struct addrinfo): Likewise.
19984         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19985         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19986         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19987         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19988         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19989         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19990         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19991         pthread_mutexattr_init, pthread_mutexattr_settype,
19992         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19993         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19994         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19995         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19996         * lib/sched.in.h (struct sched_param): Likewise.
19997         * lib/se-selinux.in.h (security_class_t, security_context_t,
19998         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19999         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20000         lsetfilecon, fsetfilecon, security_check_context,
20001         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20002         Likewise.
20003         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20004         Likewise.
20005         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20006         _gl_function_taking_int_returning_void_t, union sigval,
20007         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20008         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20009         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20010         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20011         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20012         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20013         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20014         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20015         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20016         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20017         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20018         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20019         socklen_t, rpl_fd_isset): Likewise.
20020         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20021         * lib/sys_time.in.h (struct timeval): Likewise.
20022         * lib/sys_times.in.h (struct tms): Likewise.
20023         * lib/sys_utsname.in.h (struct utsname):
20024         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20025         * lib/unistd.in.h (getpagesize): Likewise.
20026         * lib/wchar.in.h (mbstate_t): Likewise.
20027         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20028         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20029         towlower, towupper): Likewise.
20030         Reported by Sam Steingold <sds@gnu.org>.
20031
20032 2011-02-05  Eric Blake  <eblake@redhat.com>
20033
20034         unsetenv: work around Haiku issues
20035         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20036         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20037
20038 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20039
20040         libposix: avoid calling error() within libposix
20041         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20042         is defined.
20043
20044 2011-02-05  Eric Blake  <eblake@redhat.com>
20045
20046         strerror_r-posix: port to cygwin
20047         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20048         implementation.
20049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20050         * tests/test-strerror_r.c (main): Fix test.
20051         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20052         issue.
20053
20054 2011-02-05  Bruno Haible  <bruno@clisp.org>
20055
20056         New module 'wmemchr'.
20057         * modules/wmemchr: New file.
20058         * lib/wchar.in.h (wmemchr): New declaration.
20059         * lib/wmemchr.c: New file.
20060         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20061         * m4/wmemchr.m4: New file.
20062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20064         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20065         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20066         * doc/posix-functions/wmemchr.texi: Mention the new module.
20067
20068 2011-02-04  Eric Blake  <eblake@redhat.com>
20069
20070         fdopendir: detect FreeBSD bug
20071         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20072         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20073
20074 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20075
20076         stdbool: do not define HAVE_STDBOOL_H
20077         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20078         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20079         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20080         imported from the latest Autoconf git.  It was motivated by Emacs,
20081         which uses gnulib but does not need HAVE_STDBOOL_H.
20082
20083 2011-02-04  Bruno Haible  <bruno@clisp.org>
20084
20085         wcsnrtombs: Prepare for new module wwcsnrtombs.
20086         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20087         * lib/wcsnrtombs.c: Include it.
20088         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20089
20090         wcsrtombs: Prepare for new module wwcsrtombs.
20091         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20092         * lib/wcsrtombs.c: Include it.
20093         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20094
20095         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20096         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20097         * lib/mbsnrtowcs.c: Include it.
20098         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20099
20100         mbsrtowcs: Prepare for new module mbsrtowwcs.
20101         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20102         * lib/mbsrtowcs.c: Include it.
20103         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20104
20105 2011-02-04  Bruno Haible  <bruno@clisp.org>
20106
20107         vasnprintf: Reduce use of malloc for small format strings.
20108         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20109         (arguments): Add room for the first 7 arguments.
20110         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20111         (char_directives, u8_directives, u16_directives, u32_directives): Add
20112         room for the first 7 directives.
20113         * lib/printf-parse.c: Include <string.h>.
20114         (PRINTF_PARSE): Change memory handling code so that it uses the first
20115         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20116         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20117         Reported by Pádraig Brady <P@draigbrady.com>.
20118
20119 2011-01-31  Eric Blake  <eblake@redhat.com>
20120
20121         dup2: work around Haiku bug
20122         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20123         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20124         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20125         * tests/test-dup2.c (main): Enhance test.
20126
20127 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20128
20129         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20130         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20131         declared by eglibc 2.11.2.
20132         * lib/stdio.in.h: Likewise.
20133
20134 2011-01-31  Eric Blake  <eblake@redhat.com>
20135
20136         ignore-value: add missing test dependency
20137         * tests/test-ignore-value.c: Revert previous change; stdio.h
20138         provides off_t.
20139         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20140
20141 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20142
20143         mktime: clarify long_int width checking
20144         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20145         the top level, to make it clearer that the assumption about
20146         long_int width is being checked.  See
20147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20148
20149 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20150
20151         ignore-value: Fix self-test.
20152         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20153
20154 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20155
20156         TYPE_MAXIMUM: avoid theoretically undefined behavior
20157         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20158         negative number, which the C Standard says has undefined behavior.
20159         In practice this is not a problem, but might as well do it by the book.
20160         Reported by Rich Felker and Eric Blake; see
20161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20162         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20163         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20165         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20166         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20167         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20168
20169         mktime: #undef mktime before #defining it
20170         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20171
20172         mktime: systematically normalize tm_isdst comparisons
20173         * lib/mktime.c (isdst_differ): New function.
20174         (__mktime_internal): Use it systematically for all isdst comparisons.
20175         This completes the fix for libc BZ #6723, and removes the need for
20176         normalizing tm_isdst.  See
20177         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20178         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20179
20180         mktime: fix some integer overflow issues and sidestep the rest
20181
20182         This was prompted by a bug report by Benjamin Lindner for MinGW
20183         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20184         His bug is due to signed integer overflow (0 - INT_MIN), and I
20185         I scanned through mktime.c looking for other integer overflow
20186         problems, fixing all the bugs I found.
20187
20188         Although the C Standard says the resulting code is still not safe
20189         in the presence of integer overflow, in practice it should be good
20190         enough for all real-world two's-complement implementations, except
20191         for debugging environments that deliberately trap on integer
20192         overflow (e.g., gcc -ftrapv).
20193
20194         * lib/mktime.c (WRAPV): New macro.
20195         (SHR): Also check that long_int and time_t shift right in the
20196         usual way, before using the fast-but-unportable method.
20197         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20198         used.  The code already assumed two's complement, so there's
20199         no need to test for alternatives.  All uses removed.
20200         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20201         the C standard.  Problem reported by Rich Felker in
20202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20203         (twos_complement_arithmetic): Also check long_int and time_t.
20204         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20205         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20206         (__mktime_internal): Avoid integer overflow with unary subtraction
20207         in two instances where -1 - X is an adequate replacement for -X,
20208         since the calculations are approximate.
20209
20210 2011-01-29  Eric Blake  <eblake@redhat.com>
20211
20212         mktime: avoid infinite loop
20213         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20214         type; behavior is still undefined but portable to all known targets.
20215         Reported by Rich Felker.
20216
20217 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20218
20219         rename, unlink, same-inode: Relicense.
20220         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20221         * modules/unlink (License): Likewise.
20222         * modules/same-inode (License): Likewise.
20223
20224 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20225
20226         mktime: avoid problems on NetBSD 5 / i386
20227         * lib/mktime.c (long_int): New type.  This works around a problem
20228         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20229         but time_t is 64 bits, and where I expect the existing code is
20230         wrong in some cases.
20231         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20232         (ydhms_diff): Bring back the compile-time check for wide-enough
20233         year and yday.
20234
20235         mktime: fix misspelling in comment
20236         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20237         This merges all recent glibc changes of importance.
20238
20239 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20240
20241         move-if-change: cope with concurrent mv of identical file.
20242         * build-aux/move-if-change (CMPPROG): Accept environment
20243         variable as an override for `cmp'.
20244         (usage): Document CMPPROG.
20245         Adjust comparison to drop stdout.  Cope with failure of mv if
20246         the target file exists and is identical to the source, for
20247         parallel builds.
20248         Report from H.J. Lu against binutils in PR binutils/12283.
20249
20250 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20251
20252         * users.txt: Mention sharutils.
20253
20254 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20255
20256         * users.txt: Mention OATH Toolkit.
20257
20258 2011-01-27  Bruno Haible  <bruno@clisp.org>
20259
20260         Prepare for supporting FreeBSD 10.
20261         * build-aux/config.libpath: Remove handling of freebsd1*.
20262
20263 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20264
20265         Prepare for supporting FreeBSD 10.
20266         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20267         match FreeBSD 10.0.
20268
20269 2011-01-27  Bruno Haible  <bruno@clisp.org>
20270
20271         vma-iter, get-rusage-as: Add OpenBSD support.
20272         * modules/vma-iter (configure.ac): Test for mquery.
20273         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20274         * lib/vma-iter.c: Include <sys/mman.h>.
20275         (vma_iterate): Add an implementation based on mquery().
20276         * lib/resource-ext.h (get_rusage_as): Update comments.
20277         * lib/get-rusage-as.c: Likewise.
20278         * lib/get-rusage-data.c: Likewise.
20279
20280 2011-01-26  Karl Berry  <karl@gnu.org>
20281
20282         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20283         variables to make it easier to override the makeinfo program used.
20284
20285 2011-01-26  Eric Blake  <eblake@redhat.com>
20286
20287         fcntl: work around Haiku F_DUPFD bugs
20288         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20289         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20290         cloexec bit on duplication.
20291         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20292
20293 2011-01-26  Bruno Haible  <bruno@clisp.org>
20294
20295         Enable memory leak tests on AIX.
20296         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20297         * tests/test-fprintf-posix3.c (main): Likewise.
20298
20299 2011-01-26  Bruno Haible  <bruno@clisp.org>
20300
20301         Tests for module 'get-rusage-data'.
20302         * modules/get-rusage-data-tests: New file.
20303         * tests/test-get-rusage-data.c: New file.
20304
20305         New module 'get-rusage-data'.
20306         * lib/resource-ext.h (get_rusage_data): New declaration.
20307         * lib/get-rusage-data.c: New file.
20308         * modules/get-rusage-data: New file.
20309
20310 2011-01-25  Bruno Haible  <bruno@clisp.org>
20311
20312         get-rusage-as: Allow for easier testing.
20313         * lib/resource-ext.h (get_rusage_as): Add comment.
20314         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20315         (main): New function for interactive testing.
20316
20317 2011-01-25  Bruno Haible  <bruno@clisp.org>
20318
20319         vma-iter: Treat Haiku like BeOS.
20320         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20321         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20322
20323 2011-01-25  Eric Blake  <eblake@redhat.com>
20324
20325         c-stack: fix regression on cygwin when libsigsegv is present
20326         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20327
20328 2011-01-24  Bruno Haible  <bruno@clisp.org>
20329
20330         vma-iter: Avoid empty intervals.
20331         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20332         on an empty interval.
20333
20334 2011-01-24  Jim Meyering  <meyering@redhat.com>
20335
20336         u64: remove unnecessary #include
20337         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20338
20339 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20340
20341         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20342         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20343
20344 2011-01-23  Bruno Haible  <bruno@clisp.org>
20345
20346         New module 'vma-iter'.
20347         * lib/vma-iter.h: New file.
20348         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20349         * modules/vma-iter: New file.
20350         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20351         for get_rusage_as_via_iterator.
20352         (vma_iterate_callback): New function.
20353         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20354         * modules/get-rusage-as (Depends-on): Add vma-iter.
20355
20356 2011-01-23  Bruno Haible  <bruno@clisp.org>
20357
20358         uninorm: Tweak includes.
20359         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20360         Reported by Jim Meyering.
20361
20362 2011-01-23  Bruno Haible  <bruno@clisp.org>
20363
20364         get-rusage-as: Improve on NetBSD.
20365         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20366         /proc, like on FreeBSD.
20367
20368 2011-01-23  Jim Meyering  <meyering@redhat.com>
20369
20370         xreadlink.h: remove unnecessary #include
20371         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20372
20373         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20374         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20375
20376 2011-01-23  Bruno Haible  <bruno@clisp.org>
20377
20378         get-rusage-as: Fix bug.
20379         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20380         original limit when aborting the first loop.
20381
20382 2011-01-23  Bruno Haible  <bruno@clisp.org>
20383
20384         wctype: Ensure valid C syntax.
20385         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20386         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20387
20388 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20389
20390         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20392         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20393         as they are needed only for configure's test case.
20394         This removes two unnecessary symbols from config.h.
20395
20396         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20397         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20399         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20400         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20401         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20402         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20403         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20404         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20405         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20406         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20407         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20408         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20409         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20410         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20411         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20412         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20413         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20414
20415 2011-01-21  Eric Blake  <eblake@redhat.com>
20416
20417         maintainer-makefile: work with older git for submodule check
20418         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20419         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20420         Reported by Matthias Bolte.
20421
20422         bootstrap: minor portability fixes
20423         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20424         (usage): Omit leading capital and trailing . on help phrases, per
20425         GNU Coding Standards.
20426         (check_versions, top level): Prefix messages with script name.
20427
20428 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20429
20430         bootstrap: support --no-git option
20431         * build-aux/bootstrap: Add --no-git option, to be used when
20432         --gnulib-srcdir points to the exact desired checkout.
20433
20434 2011-01-21  Eric Blake  <eblake@redhat.com>
20435
20436         strerror_r-posix: work with glibc 2.13
20437         * lib/strerror_r.c (strerror_r): Fix return type.
20438
20439 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20440             Bruno Haible  <bruno@clisp.org>
20441
20442         uN_strstr: New unit tests.
20443         * modules/unistr/u8-strstr-tests: New file.
20444         * modules/unistr/u16-strstr-tests: New file.
20445         * modules/unistr/u32-strstr-tests: New file.
20446         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20447         * tests/unistr/test-u8-strstr.c: New file.
20448         * tests/unistr/test-u16-strstr.c: New file.
20449         * tests/unistr/test-u32-strstr.c: New file.
20450
20451 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20452             Bruno Haible  <bruno@clisp.org>
20453
20454         Make uN_strstr functions O(n) worst-case.
20455         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20456         16-bit and 32-bit unit cases, use the unibyte algorithm from
20457         lib/mbsstr.c.
20458         * lib/unistr/u8-strstr.c: Include <string.h>.
20459         (UNIT_IS_UINT8_T): New macro.
20460         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20461         (U_STRLEN, U_STRNLEN): New macros.
20462         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20463         (U_STRLEN, U_STRNLEN): New macros.
20464         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20465         (configure.ac): Update required libunistring version.
20466         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20467         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20468         malloca.
20469         (configure.ac): Update required libunistring version.
20470         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20471         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20472         malloca.
20473         (configure.ac): Update required libunistring version.
20474
20475 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20476             Bruno Haible  <bruno@clisp.org>
20477
20478         Prepare for faster uN_strstr functions.
20479         * lib/str-kmp.h: Support definable UNITs.
20480         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20481         needle_len argument.
20482         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20483         * lib/mbscasestr.c (mbscasestr): Likewise.
20484
20485 2011-01-21  Pádraig Brady <P@draigBrady.com>
20486
20487         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20488         * tests/test-malloca.c (main): Unset the environment variable
20489         to greatly speed up the test.
20490         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20491         * modules/malloca-tests: Depend on unsetenv.
20492
20493 2011-01-21  Pádraig Brady <P@draigBrady.com>
20494
20495         ignore-value: remove stdint dependency
20496         * lib/ignore-value.h: Remove <stdint.h>
20497         * modules/ignore-value: Remove stdint dependency.
20498
20499 2011-01-21  Jim Meyering  <meyering@redhat.com>
20500
20501         maint.mk: adjust variable name to be consistent with other gl_ vars
20502         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20503         to be lower case.
20504
20505 2011-01-20  Jim Meyering  <meyering@redhat.com>
20506
20507         maint.mk: make "check" depend on public-submodule-commit by default
20508         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20509
20510 2011-01-20  Bruno Haible  <bruno@clisp.org>
20511
20512         mbfile, mbiter: Complete change from 2008-12-21.
20513         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20514         * m4/mbiter.m4 (gl_MBITER): Likewise.
20515
20516 2011-01-20  Jim Meyering  <meyering@redhat.com>
20517
20518         init.sh: insert space between each function name and "()"
20519         * tests/init.sh: Make it a little easier to see that a function's
20520         name is "warn_", and not "warn" when looking at the first part of
20521         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20522
20523 2011-01-20  Jim Meyering  <meyering@redhat.com>
20524
20525         mountlist: clean up code formatting
20526         * lib/mountlist.c (read_file_system_list): Split a long line,
20527         correct bracing style, use NULL in place of "(struct statfs *)0",
20528         don't parenthesize return value, add spaces around "=" and after
20529         ";-in-for-stmt".
20530
20531 2011-01-14  Markus Duft <mduft@gentoo.org>
20532
20533         mountlist: add support for Interix
20534         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20535         Apply statvfs to all entries of /dev/fs.
20536         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20537         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20538
20539 2011-01-20  Jim Meyering  <meyering@redhat.com>
20540
20541         maint.mk: improve the public-submodule-commit rule
20542         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20543         to suppress printing of its commands... unless V=1.
20544         Add git submodule's --quiet option to suppress printing of e.g.,
20545         "Entering gnulib" output.
20546         "cd" into $(srcdir) before running git submodule.
20547
20548 2011-01-20  Bruno Haible  <bruno@clisp.org>
20549
20550         include_next: Fix bug introduced on 2011-01-18.
20551         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20552         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20553         ac_cv_header_... variable if the second argument is not 'check'.
20554         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20555         gl_NEXT_HEADERS_INTERNAL.
20556
20557 2011-01-20  Bruno Haible  <bruno@clisp.org>
20558
20559         Allow the user to avoid the GNULIB_TEST_* macros.
20560         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20561         Suggested by Paul Eggert.
20562
20563 2011-01-14  Jim Meyering  <meyering@redhat.com>
20564
20565         bootstrap: avoid failure when there is no .gitmodules file
20566         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20567         has been assigned to, even when its value is the empty string.
20568         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20569         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20570         Reported by John W. Eaton <jwe@gnu.org>.
20571
20572 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20573
20574         assume <ctype.h>, ..., <time.h> exist
20575         For years gnulib has been assuming the existence of the headers
20576         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20577         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20578         them, since they don't appear to be needed.
20579         * README (Portability guidelines): Document this.
20580         * lib/flock.c: Assume <fcntl.h> exists.
20581         * lib/regex_internal.h: Assume <locale.h> exists.
20582         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20583         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20584         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20585         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20586         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20587         * m4/regex.m4 (gl_REGEX): Likewise.
20588         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20589         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20590         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20591         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20592         * tests/test-argp.c: Likewise.
20593         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20594
20595         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20596         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20597         AA_APPLE_UNIVERSAL_BUILD.  See
20598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20599         * NEWS: Document this.
20600
20601 2011-01-19  Eric Blake  <eblake@redhat.com>
20602
20603         c-stack: assume stack overflow if SA_SIGINFO unsupported
20604         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20605         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20606         sigaction will work.
20607         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20608         behavior match Linux.
20609         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20610
20611         stdbool-tests: accomodate Haiku
20612         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20613
20614         binary-io: fix O_TEXT on Haiku
20615         * modules/binary-io (Depends-on): Add fcntl-h.
20616         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20617         than blindly undefining O_TEXT.
20618         Reported by Scott McCreary.
20619
20620 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20621
20622         include_next: do not check for standard headers like stddef.h
20623
20624         I found this problem when modifying Emacs to use gnulib.
20625         I noticed that it added HAVE_STDDEF_H to config.h, even though
20626         gnulib always assumes <stddef.h> exists as per README and this
20627         symbol is unnecessary.
20628         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20629         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20630         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20631         faster for headers like stddef.h that are known to exist.
20632         (gl_CHECK_NEXT_HEADERS): Use it.
20633         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20634         rather than gl_CHECK_NEXT_HEADERS.
20635         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20636         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20637
20638 2011-01-18  Eric Blake  <eblake@redhat.com>
20639
20640         ansi-c++-opt: skip C++ dependency style if C++ is unused
20641         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20642         tests when we know C++ compilation is not desired.
20643         Reported by Scott McCreary.
20644
20645 2011-01-18  Bruno Haible  <bruno@clisp.org>
20646
20647         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20648         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20649         (main): Perform test also when getrlimit and setrlimit don't exist or
20650         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20651         limiting the address space size using setrlimit, compare the address
20652         space size before and after the the test.
20653         * tests/test-dprintf-posix2.c: Likewise.
20654         * tests/test-fprintf-posix3.sh: Update skip messages.
20655         * tests/test-dprintf-posix2.sh: Likewise.
20656         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20657         * modules/dprintf-posix-tests (Depends-on): Likewise.
20658         Reported by Bruce Korb <bkorb@gnu.org> and
20659         Gary V. Vaughan <gary@gnu.org>.
20660
20661 2011-01-18  Bruno Haible  <bruno@clisp.org>
20662
20663         get-rusage-as: Improvement for Cygwin.
20664         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20665         areas that are merely reserved.
20666
20667 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20668
20669         strftime: remove dependencies on multibyte modules
20670
20671         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20672         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20673         only if __osf__ is defined, and I suspect OSF doesn't need these
20674         other modules.  If my guess is wrong, we'll need to come up with a
20675         variant of strftime that doesn't need the multibyte modules.
20676
20677         I discovered this problem when attempting modify Emacs to use the
20678         strftime module.  With the previous gnulib, this caused Emacs to
20679         need 31 new files, ranging from lib/config.charset to
20680         m4/wint_t.m4.  This was overkill and I expect would be offputting
20681         to the Emacs maintainers.  After this change, only 6 new files are
20682         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20683         stdbool.m4, and tm_gmtoff.m4.
20684
20685         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20686         Suggested by Bruno Haible in
20687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20688         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20689         and do not check for wchar.h.
20690         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20691         (Depends-on): Remove mbrlen, mbsinit, wchar.
20692
20693 2011-01-18  Bruno Haible  <bruno@clisp.org>
20694
20695         Tests for module 'get-rusage-as'.
20696         * modules/get-rusage-as-tests: New file.
20697         * tests/test-get-rusage-as.c: New file.
20698
20699         New module 'get-rusage-as'.
20700         * modules/get-rusage-as: New file.
20701         * lib/resource-ext.h: New file.
20702         * lib/get-rusage-as.c: New file.
20703
20704 2011-01-17  Eric Blake  <eblake@redhat.com>
20705
20706         sigaction: relax license from LGPLv3+ to LGPLv2+
20707         * modules/sigaction (License): Relax to LGPLv2+.
20708
20709 2011-01-14  Bruno Haible  <bruno@clisp.org>
20710
20711         filemode: Make function declarations usable in C++ mode.
20712         * lib/filemode.h: Enclose function declarations in extern "C" block.
20713         Reported by John W. Eaton <jwe@gnu.org>.
20714
20715 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20716
20717         save-cwd: no longer include "xgetcwd.h"
20718         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20719         This avoids a compilation failure in projects that use save-cwd
20720         without also using the xgetcwd module.
20721
20722 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20723
20724         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20725         This is so that a program like Emacs, which needs only dtoastr,
20726         does not have to bother with distributing and compiling ftoastr
20727         and ldtoastr.
20728         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20729         * modules/dtoastr, modules/ldtoastr: New files.
20730         * modules/ftoastr: Now works just for 'float'.
20731         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20732         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20733         dtoastr.c, ldtoastr.c.
20734
20735 2011-01-11  Jim Meyering  <meyering@redhat.com>
20736
20737         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20738         There is no need to work around the lack of the fchdir function,
20739         since gnulib can now provide a replacement when required.
20740         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20741         * modules/save-cwd (Depends-on): Add fchdir.
20742
20743 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20744
20745         openat, save-cwd: avoid xmalloc
20746
20747         This removes a direct (but undocumented) dependency of openat on
20748         xalloc, along with an indirect dependency via save-cwd.  It also
20749         removes a dependency of save-cwd on xgetcwd, and thereby
20750         indirectly on xalloc.  This change causes the openat substitute
20751         to fall back on save_cwd when memory is tight, and for save_cwd to
20752         fail instead of dying when memory is tight, but that's good enough.
20753         Problem and initial idea for fix reported by Bastien Roucaries in
20754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20755
20756         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20757         xalloc.h (for xmalloc).
20758         (openat_proc_name): Use malloc, not xmalloc.
20759         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20760         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20761
20762         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20763         This avoids heap allocation for file names whose lengths are in
20764         the range 512..1023, with the upper bound increasing to at most
20765         4031 depending on the platform's PATH_MAX.  (We do not want
20766         pathmax.h here as it might supply a non-constant PATH_MAX.)
20767         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20768         Perhaps they should be moved to malloca.h?
20769         (OPENAT_BUFFER_SIZE): Use them.
20770
20771 2011-01-10  Bruno Haible  <bruno@clisp.org>
20772
20773         doc: Update users.txt.
20774         * users.txt: Add recutils.
20775
20776 2011-01-09  Karl Berry  <karl@gnu.org>
20777
20778         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20779
20780         * doc/configmake.texi: New file.
20781         * doc/gnulib.texi: Include it.
20782         * modules/configmake: Move documentation from here.
20783
20784 2011-01-09  Bruno Haible  <bruno@clisp.org>
20785
20786         Update to Unicode 6.0.0.
20787         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20788         (get_lbp): Update for Unicode 6.0.0.
20789         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20790         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20791         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20792         U+11001, U+11038..U+11046. Remove U+06DE.
20793         (uc_width): Fix bounds of planes.
20794         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20795         lib/uniwidth/width.c.
20796         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20797         trailing whitespace removed.
20798         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20799         without comments, but with the original copyright notice.
20800         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20801         * lib/unicase/ignorable.h: Likewise.
20802         * lib/unicase/tocasefold.h: Likewise.
20803         * lib/unicase/tolower.h: Likewise.
20804         * lib/unicase/totitle.h: Likewise.
20805         * lib/unicase/toupper.h: Likewise.
20806         * lib/unictype/bidi_of.h: Likewise.
20807         * lib/unictype/blocks.h: Likewise.
20808         * lib/unictype/categ_C.h: Likewise.
20809         * lib/unictype/categ_Cn.h: Likewise.
20810         * lib/unictype/categ_L.h: Likewise.
20811         * lib/unictype/categ_Ll.h: Likewise.
20812         * lib/unictype/categ_Lm.h: Likewise.
20813         * lib/unictype/categ_Lo.h: Likewise.
20814         * lib/unictype/categ_Lu.h: Likewise.
20815         * lib/unictype/categ_M.h: Likewise.
20816         * lib/unictype/categ_Mc.h: Likewise.
20817         * lib/unictype/categ_Me.h: Likewise.
20818         * lib/unictype/categ_Mn.h: Likewise.
20819         * lib/unictype/categ_N.h: Likewise.
20820         * lib/unictype/categ_Nd.h: Likewise.
20821         * lib/unictype/categ_No.h: Likewise.
20822         * lib/unictype/categ_P.h: Likewise.
20823         * lib/unictype/categ_Po.h: Likewise.
20824         * lib/unictype/categ_S.h: Likewise.
20825         * lib/unictype/categ_Sc.h: Likewise.
20826         * lib/unictype/categ_Sk.h: Likewise.
20827         * lib/unictype/categ_Sm.h: Likewise.
20828         * lib/unictype/categ_So.h: Likewise.
20829         * lib/unictype/categ_of.h: Likewise.
20830         * lib/unictype/combining.h: Likewise.
20831         * lib/unictype/ctype_alnum.h: Likewise.
20832         * lib/unictype/ctype_alpha.h: Likewise.
20833         * lib/unictype/ctype_graph.h: Likewise.
20834         * lib/unictype/ctype_lower.h: Likewise.
20835         * lib/unictype/ctype_print.h: Likewise.
20836         * lib/unictype/ctype_punct.h: Likewise.
20837         * lib/unictype/ctype_upper.h: Likewise.
20838         * lib/unictype/decdigit.h: Likewise.
20839         * lib/unictype/digit.h: Likewise.
20840         * lib/unictype/numeric.h: Likewise.
20841         * lib/unictype/pr_alphabetic.h: Likewise.
20842         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20843         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20844         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20845         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20846         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20847         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20848         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20849         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20850         * lib/unictype/pr_case_ignorable.h: Likewise.
20851         * lib/unictype/pr_cased.h: Likewise.
20852         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20853         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20854         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20855         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20856         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20857         * lib/unictype/pr_combining.h: Likewise.
20858         * lib/unictype/pr_composite.h: Likewise.
20859         * lib/unictype/pr_currency_symbol.h: Likewise.
20860         * lib/unictype/pr_decimal_digit.h: Likewise.
20861         * lib/unictype/pr_deprecated.h: Likewise.
20862         * lib/unictype/pr_format_control.h: Likewise.
20863         * lib/unictype/pr_grapheme_base.h: Likewise.
20864         * lib/unictype/pr_grapheme_extend.h: Likewise.
20865         * lib/unictype/pr_grapheme_link.h: Likewise.
20866         * lib/unictype/pr_id_continue.h: Likewise.
20867         * lib/unictype/pr_id_start.h: Likewise.
20868         * lib/unictype/pr_ideographic.h: Likewise.
20869         * lib/unictype/pr_lowercase.h: Likewise.
20870         * lib/unictype/pr_math.h: Likewise.
20871         * lib/unictype/pr_numeric.h: Likewise.
20872         * lib/unictype/pr_other_alphabetic.h: Likewise.
20873         * lib/unictype/pr_other_id_continue.h: Likewise.
20874         * lib/unictype/pr_other_math.h: Likewise.
20875         * lib/unictype/pr_punctuation.h: Likewise.
20876         * lib/unictype/pr_sentence_terminal.h: Likewise.
20877         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20878         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20879         * lib/unictype/pr_unified_ideograph.h: Likewise.
20880         * lib/unictype/pr_uppercase.h: Likewise.
20881         * lib/unictype/pr_xid_continue.h: Likewise.
20882         * lib/unictype/pr_xid_start.h: Likewise.
20883         * lib/unictype/scripts.h: Likewise.
20884         * lib/unictype/scripts_byname.gperf: Likewise.
20885         * lib/unictype/sy_java_ident.h: Likewise.
20886         * lib/unigbrk/gbrkprop.h: Likewise.
20887         * lib/unilbrk/lbrkprop1.h: Likewise.
20888         * lib/unilbrk/lbrkprop2.h: Likewise.
20889         * lib/uninorm/decomposition-table2.h: Likewise.
20890         * lib/uniwbrk/wbrkprop.h: Likewise.
20891         * tests/unicase/test-cased.c: Likewise.
20892         * tests/unicase/test-ignorable.c: Likewise.
20893         * tests/unicase/test-uc_tolower.c: Likewise.
20894         * tests/unicase/test-uc_totitle.c: Likewise.
20895         * tests/unicase/test-uc_toupper.c: Likewise.
20896         * tests/unictype/test-categ_C.c: Likewise.
20897         * tests/unictype/test-categ_Cn.c: Likewise.
20898         * tests/unictype/test-categ_L.c: Likewise.
20899         * tests/unictype/test-categ_Ll.c: Likewise.
20900         * tests/unictype/test-categ_Lm.c: Likewise.
20901         * tests/unictype/test-categ_Lo.c: Likewise.
20902         * tests/unictype/test-categ_Lu.c: Likewise.
20903         * tests/unictype/test-categ_M.c: Likewise.
20904         * tests/unictype/test-categ_Mc.c: Likewise.
20905         * tests/unictype/test-categ_Me.c: Likewise.
20906         * tests/unictype/test-categ_Mn.c: Likewise.
20907         * tests/unictype/test-categ_N.c: Likewise.
20908         * tests/unictype/test-categ_Nd.c: Likewise.
20909         * tests/unictype/test-categ_No.c: Likewise.
20910         * tests/unictype/test-categ_P.c: Likewise.
20911         * tests/unictype/test-categ_Po.c: Likewise.
20912         * tests/unictype/test-categ_S.c: Likewise.
20913         * tests/unictype/test-categ_Sc.c: Likewise.
20914         * tests/unictype/test-categ_Sk.c: Likewise.
20915         * tests/unictype/test-categ_Sm.c: Likewise.
20916         * tests/unictype/test-categ_So.c: Likewise.
20917         * tests/unictype/test-ctype_alnum.c: Likewise.
20918         * tests/unictype/test-ctype_alpha.c: Likewise.
20919         * tests/unictype/test-ctype_graph.c: Likewise.
20920         * tests/unictype/test-ctype_lower.c: Likewise.
20921         * tests/unictype/test-ctype_print.c: Likewise.
20922         * tests/unictype/test-ctype_punct.c: Likewise.
20923         * tests/unictype/test-ctype_upper.c: Likewise.
20924         * tests/unictype/test-decdigit.h: Likewise.
20925         * tests/unictype/test-digit.h: Likewise.
20926         * tests/unictype/test-numeric.h: Likewise.
20927         * tests/unictype/test-pr_alphabetic.c: Likewise.
20928         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20929         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20930         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20931         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20932         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20933         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20934         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20935         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20936         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20937         * tests/unictype/test-pr_cased.c: Likewise.
20938         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20939         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20940         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20941         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20942         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20943         * tests/unictype/test-pr_combining.c: Likewise.
20944         * tests/unictype/test-pr_composite.c: Likewise.
20945         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20946         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20947         * tests/unictype/test-pr_deprecated.c: Likewise.
20948         * tests/unictype/test-pr_format_control.c: Likewise.
20949         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20950         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20951         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20952         * tests/unictype/test-pr_id_continue.c: Likewise.
20953         * tests/unictype/test-pr_id_start.c: Likewise.
20954         * tests/unictype/test-pr_ideographic.c: Likewise.
20955         * tests/unictype/test-pr_lowercase.c: Likewise.
20956         * tests/unictype/test-pr_math.c: Likewise.
20957         * tests/unictype/test-pr_numeric.c: Likewise.
20958         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20959         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20960         * tests/unictype/test-pr_other_math.c: Likewise.
20961         * tests/unictype/test-pr_punctuation.c: Likewise.
20962         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20963         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20964         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20965         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20966         * tests/unictype/test-pr_uppercase.c: Likewise.
20967         * tests/unictype/test-pr_xid_continue.c: Likewise.
20968         * tests/unictype/test-pr_xid_start.c: Likewise.
20969         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20970         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20971         changes.
20972         * lib/unictype/categ_Cc.h: Likewise.
20973         * lib/unictype/categ_Cf.h: Likewise.
20974         * lib/unictype/categ_Co.h: Likewise.
20975         * lib/unictype/categ_Cs.h: Likewise.
20976         * lib/unictype/categ_Lt.h: Likewise.
20977         * lib/unictype/categ_Nl.h: Likewise.
20978         * lib/unictype/categ_Pc.h: Likewise.
20979         * lib/unictype/categ_Pd.h: Likewise.
20980         * lib/unictype/categ_Pe.h: Likewise.
20981         * lib/unictype/categ_Pf.h: Likewise.
20982         * lib/unictype/categ_Pi.h: Likewise.
20983         * lib/unictype/categ_Ps.h: Likewise.
20984         * lib/unictype/categ_Z.h: Likewise.
20985         * lib/unictype/categ_Zl.h: Likewise.
20986         * lib/unictype/categ_Zp.h: Likewise.
20987         * lib/unictype/categ_Zs.h: Likewise.
20988         * lib/unictype/ctype_blank.h: Likewise.
20989         * lib/unictype/ctype_cntrl.h: Likewise.
20990         * lib/unictype/ctype_digit.h: Likewise.
20991         * lib/unictype/ctype_space.h: Likewise.
20992         * lib/unictype/ctype_xdigit.h: Likewise.
20993         * lib/unictype/mirror.h: Likewise.
20994         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20995         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20996         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20997         * lib/unictype/pr_bidi_control.h: Likewise.
20998         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20999         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21000         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21001         * lib/unictype/pr_bidi_pdf.h: Likewise.
21002         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21003         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21004         * lib/unictype/pr_dash.h: Likewise.
21005         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21006         * lib/unictype/pr_diacritic.h: Likewise.
21007         * lib/unictype/pr_extender.h: Likewise.
21008         * lib/unictype/pr_hex_digit.h: Likewise.
21009         * lib/unictype/pr_hyphen.h: Likewise.
21010         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21011         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21012         * lib/unictype/pr_ignorable_control.h: Likewise.
21013         * lib/unictype/pr_iso_control.h: Likewise.
21014         * lib/unictype/pr_join_control.h: Likewise.
21015         * lib/unictype/pr_left_of_pair.h: Likewise.
21016         * lib/unictype/pr_line_separator.h: Likewise.
21017         * lib/unictype/pr_logical_order_exception.h: Likewise.
21018         * lib/unictype/pr_non_break.h: Likewise.
21019         * lib/unictype/pr_not_a_character.h: Likewise.
21020         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21021         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21022         * lib/unictype/pr_other_id_start.h: Likewise.
21023         * lib/unictype/pr_other_lowercase.h: Likewise.
21024         * lib/unictype/pr_other_uppercase.h: Likewise.
21025         * lib/unictype/pr_paired_punctuation.h: Likewise.
21026         * lib/unictype/pr_paragraph_separator.h: Likewise.
21027         * lib/unictype/pr_pattern_syntax.h: Likewise.
21028         * lib/unictype/pr_pattern_white_space.h: Likewise.
21029         * lib/unictype/pr_private_use.h: Likewise.
21030         * lib/unictype/pr_quotation_mark.h: Likewise.
21031         * lib/unictype/pr_radical.h: Likewise.
21032         * lib/unictype/pr_soft_dotted.h: Likewise.
21033         * lib/unictype/pr_space.h: Likewise.
21034         * lib/unictype/pr_titlecase.h: Likewise.
21035         * lib/unictype/pr_variation_selector.h: Likewise.
21036         * lib/unictype/pr_white_space.h: Likewise.
21037         * lib/unictype/pr_zero_width.h: Likewise.
21038         * lib/unictype/sy_c_ident.h: Likewise.
21039         * lib/unictype/sy_c_whitespace.h: Likewise.
21040         * lib/unictype/sy_java_whitespace.h: Likewise.
21041         * lib/uninorm/composition-table.gperf: Likewise.
21042         * lib/uninorm/decomposition-table1.h: Likewise.
21043         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21044         LB8.
21045         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21046         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21047         * modules/unictype/*: Bump version number of expected libunistring
21048         version.
21049
21050 2011-01-09  Bruno Haible  <bruno@clisp.org>
21051
21052         Update to Unicode 5.2.0.
21053         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21054         trailing whitespace removed.
21055
21056 2011-01-09  Bruno Haible  <bruno@clisp.org>
21057
21058         New Unicode character properties, from Unicode 5.2.0.
21059         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21060         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21061         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21062         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21063         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21064         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21065         uc_is_property_cased, uc_is_property_case_ignorable,
21066         uc_is_property_changes_when_lowercased,
21067         uc_is_property_changes_when_uppercased,
21068         uc_is_property_changes_when_titlecased,
21069         uc_is_property_changes_when_casefolded,
21070         uc_is_property_changes_when_casemapped): New declarations.
21071         * lib/unictype/pr_byname.gperf: Add the new properties.
21072         * modules/unictype/property-byname (Depends-on): Depend on the new
21073         properties modules.
21074         * modules/unictype/property-all (Depends-on): Likewise.
21075         * MODULES.html.sh (Unicode string functions): Add
21076         unictype/property-case-ignorable, unictype/property-cased,
21077         unictype/property-changes-when-casefolded,
21078         unictype/property-changes-when-casemapped,
21079         unictype/property-changes-when-lowercased,
21080         unictype/property-changes-when-titlecased,
21081         unictype/property-changes-when-uppercased.
21082
21083         New module 'unictype/property-changes-when-casemapped'.
21084         * modules/unictype/property-changes-when-casemapped: New file.
21085         * lib/unictype/pr_changes_when_casemapped.c: New file.
21086         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21087         generated by gen-uni-tables.
21088         * modules/unictype/property-changes-when-casemapped-tests: New file.
21089         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21090         automatically generated by gen-uni-tables.
21091
21092         New module 'unictype/property-changes-when-casefolded'.
21093         * modules/unictype/property-changes-when-casefolded: New file.
21094         * lib/unictype/pr_changes_when_casefolded.c: New file.
21095         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21096         generated by gen-uni-tables.
21097         * modules/unictype/property-changes-when-casefolded-tests: New file.
21098         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21099         automatically generated by gen-uni-tables.
21100
21101         New module 'unictype/property-changes-when-titlecased'.
21102         * modules/unictype/property-changes-when-titlecased: New file.
21103         * lib/unictype/pr_changes_when_titlecased.c: New file.
21104         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21105         generated by gen-uni-tables.
21106         * modules/unictype/property-changes-when-titlecased-tests: New file.
21107         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21108         automatically generated by gen-uni-tables.
21109
21110         New module 'unictype/property-changes-when-uppercased'.
21111         * modules/unictype/property-changes-when-uppercased: New file.
21112         * lib/unictype/pr_changes_when_uppercased.c: New file.
21113         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21114         generated by gen-uni-tables.
21115         * modules/unictype/property-changes-when-uppercased-tests: New file.
21116         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21117         automatically generated by gen-uni-tables.
21118
21119         New module 'unictype/property-changes-when-lowercased'.
21120         * modules/unictype/property-changes-when-lowercased: New file.
21121         * lib/unictype/pr_changes_when_lowercased.c: New file.
21122         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21123         generated by gen-uni-tables.
21124         * modules/unictype/property-changes-when-lowercased-tests: New file.
21125         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21126         automatically generated by gen-uni-tables.
21127
21128         New module 'unictype/property-case-ignorable'.
21129         * modules/unictype/property-case-ignorable: New file.
21130         * lib/unictype/pr_case_ignorable.c: New file.
21131         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21132         by gen-uni-tables.
21133         * modules/unictype/property-case-ignorable-tests: New file.
21134         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21135         generated by gen-uni-tables.
21136
21137         New module 'unictype/property-cased'.
21138         * modules/unictype/property-cased: New file.
21139         * lib/unictype/pr_cased.c: New file.
21140         * lib/unictype/pr_cased.h: New file, automatically generated by
21141         gen-uni-tables.
21142         * modules/unictype/property-cased-tests: New file.
21143         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21144         gen-uni-tables.
21145
21146 2011-01-09  Bruno Haible  <bruno@clisp.org>
21147
21148         Update to Unicode 5.2.0.
21149         * lib/gen-uni-tables.c (output_predicate, output_category,
21150         output_combclass, output_bidi_category, output_decimal_digit_test,
21151         output_decimal_digit, output_digit_test, output_digit,
21152         output_numeric_test, output_numeric, output_mirror, output_scripts,
21153         output_scripts_byname, output_blocks, output_ident_category): Fix
21154         comment header.
21155         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21156         get_wbp.
21157         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21158         items.
21159         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21160         Changes_When_Lowercased, Changes_When_Uppercased,
21161         Changes_When_Titlecased, Changes_When_Casefolded,
21162         Changes_When_Casemapped.
21163         (is_property_alphabetic, is_property_default_ignorable_code_point):
21164         Update for Unicode 5.2.0.
21165         (is_property_cased, is_property_case_ignorable,
21166         is_property_changes_when_lowercased,
21167         is_property_changes_when_uppercased,
21168         is_property_changes_when_titlecased,
21169         is_property_changes_when_casefolded,
21170         is_property_changes_when_casemapped): New functions.
21171         (output_properties): Output also the properties cased, case_ignorable,
21172         changes_when_lowercased, changes_when_uppercased,
21173         changes_when_titlecased, changes_when_casefolded,
21174         changes_when_casemapped.
21175         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21176         Unicode TR#11 revision 17 -> 19.
21177         (LBP_CP): New enumeration value.
21178         (LBP_*): Adjust values accordingly.
21179         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21180         TR#14 revision 22 -> 24.
21181         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21182         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21183         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21184         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21185         is_WBP_MIDLETTER.
21186         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21187         the code1 and code2 of each composition rule.
21188         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21189         * lib/unicase/ignorable.h: Likewise.
21190         * lib/unicase/tocasefold.h: Likewise.
21191         * lib/unicase/tolower.h: Likewise.
21192         * lib/unicase/totitle.h: Likewise.
21193         * lib/unicase/toupper.h: Likewise.
21194         * lib/unictype/bidi_of.h: Likewise.
21195         * lib/unictype/blocks.h: Likewise.
21196         * lib/unictype/categ_C.h: Likewise.
21197         * lib/unictype/categ_Cf.h: Likewise.
21198         * lib/unictype/categ_Cn.h: Likewise.
21199         * lib/unictype/categ_L.h: Likewise.
21200         * lib/unictype/categ_Ll.h: Likewise.
21201         * lib/unictype/categ_Lm.h: Likewise.
21202         * lib/unictype/categ_Lo.h: Likewise.
21203         * lib/unictype/categ_Lu.h: Likewise.
21204         * lib/unictype/categ_M.h: Likewise.
21205         * lib/unictype/categ_Mc.h: Likewise.
21206         * lib/unictype/categ_Mn.h: Likewise.
21207         * lib/unictype/categ_N.h: Likewise.
21208         * lib/unictype/categ_Nd.h: Likewise.
21209         * lib/unictype/categ_Nl.h: Likewise.
21210         * lib/unictype/categ_No.h: Likewise.
21211         * lib/unictype/categ_P.h: Likewise.
21212         * lib/unictype/categ_Pd.h: Likewise.
21213         * lib/unictype/categ_Po.h: Likewise.
21214         * lib/unictype/categ_S.h: Likewise.
21215         * lib/unictype/categ_Sc.h: Likewise.
21216         * lib/unictype/categ_So.h: Likewise.
21217         * lib/unictype/categ_of.h: Likewise.
21218         * lib/unictype/combining.h: Likewise.
21219         * lib/unictype/ctype_alnum.h: Likewise.
21220         * lib/unictype/ctype_alpha.h: Likewise.
21221         * lib/unictype/ctype_graph.h: Likewise.
21222         * lib/unictype/ctype_lower.h: Likewise.
21223         * lib/unictype/ctype_print.h: Likewise.
21224         * lib/unictype/ctype_punct.h: Likewise.
21225         * lib/unictype/ctype_upper.h: Likewise.
21226         * lib/unictype/decdigit.h: Likewise.
21227         * lib/unictype/digit.h: Likewise.
21228         * lib/unictype/numeric.h: Likewise.
21229         * lib/unictype/pr_alphabetic.h: Likewise.
21230         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21231         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21232         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21233         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21234         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21235         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21236         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21237         * lib/unictype/pr_combining.h: Likewise.
21238         * lib/unictype/pr_composite.h: Likewise.
21239         * lib/unictype/pr_currency_symbol.h: Likewise.
21240         * lib/unictype/pr_dash.h: Likewise.
21241         * lib/unictype/pr_decimal_digit.h: Likewise.
21242         * lib/unictype/pr_deprecated.h: Likewise.
21243         * lib/unictype/pr_diacritic.h: Likewise.
21244         * lib/unictype/pr_extender.h: Likewise.
21245         * lib/unictype/pr_grapheme_base.h: Likewise.
21246         * lib/unictype/pr_grapheme_extend.h: Likewise.
21247         * lib/unictype/pr_grapheme_link.h: Likewise.
21248         * lib/unictype/pr_id_continue.h: Likewise.
21249         * lib/unictype/pr_id_start.h: Likewise.
21250         * lib/unictype/pr_ideographic.h: Likewise.
21251         * lib/unictype/pr_ignorable_control.h: Likewise.
21252         * lib/unictype/pr_logical_order_exception.h: Likewise.
21253         * lib/unictype/pr_lowercase.h: Likewise.
21254         * lib/unictype/pr_numeric.h: Likewise.
21255         * lib/unictype/pr_other_alphabetic.h: Likewise.
21256         * lib/unictype/pr_punctuation.h: Likewise.
21257         * lib/unictype/pr_sentence_terminal.h: Likewise.
21258         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21259         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21260         * lib/unictype/pr_unified_ideograph.h: Likewise.
21261         * lib/unictype/pr_uppercase.h: Likewise.
21262         * lib/unictype/pr_xid_continue.h: Likewise.
21263         * lib/unictype/pr_xid_start.h: Likewise.
21264         * lib/unictype/pr_zero_width.h: Likewise.
21265         * lib/unictype/scripts.h: Likewise.
21266         * lib/unictype/scripts_byname.gperf: Likewise.
21267         * lib/unictype/sy_java_ident.h: Likewise.
21268         * lib/unigbrk/gbrkprop.h: Likewise.
21269         * lib/unilbrk/lbrkprop1.h: Likewise.
21270         * lib/unilbrk/lbrkprop2.h: Likewise.
21271         * lib/unilbrk/lbrktables.h: Likewise.
21272         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21273         LBP_CP. Implement rule LB30.
21274         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21275         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21276         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21277         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21278         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21279         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21280         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21281         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21282         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21283         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21284         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21285         bits instead of 16 bits in the code1 and code2 of each composition
21286         rule.
21287         (uc_composition): Update for Unicode 5.2.0.
21288         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21289         * lib/uninorm/decomposition-table2.h: Likewise.
21290         * lib/uniwbrk/wbrkprop.h: Likewise.
21291         * tests/unicase/test-cased.c: Likewise.
21292         * tests/unicase/test-ignorable.c: Likewise.
21293         * tests/unicase/test-uc_tolower.c: Likewise.
21294         * tests/unicase/test-uc_totitle.c: Likewise.
21295         * tests/unicase/test-uc_toupper.c: Likewise.
21296         * tests/unictype/test-categ_C.c: Likewise.
21297         * tests/unictype/test-categ_Cf.c: Likewise.
21298         * tests/unictype/test-categ_Cn.c: Likewise.
21299         * tests/unictype/test-categ_L.c: Likewise.
21300         * tests/unictype/test-categ_Ll.c: Likewise.
21301         * tests/unictype/test-categ_Lm.c: Likewise.
21302         * tests/unictype/test-categ_Lo.c: Likewise.
21303         * tests/unictype/test-categ_Lu.c: Likewise.
21304         * tests/unictype/test-categ_M.c: Likewise.
21305         * tests/unictype/test-categ_Mc.c: Likewise.
21306         * tests/unictype/test-categ_Mn.c: Likewise.
21307         * tests/unictype/test-categ_N.c: Likewise.
21308         * tests/unictype/test-categ_Nd.c: Likewise.
21309         * tests/unictype/test-categ_Nl.c: Likewise.
21310         * tests/unictype/test-categ_No.c: Likewise.
21311         * tests/unictype/test-categ_P.c: Likewise.
21312         * tests/unictype/test-categ_Pd.c: Likewise.
21313         * tests/unictype/test-categ_Po.c: Likewise.
21314         * tests/unictype/test-categ_S.c: Likewise.
21315         * tests/unictype/test-categ_Sc.c: Likewise.
21316         * tests/unictype/test-categ_So.c: Likewise.
21317         * tests/unictype/test-ctype_alnum.c: Likewise.
21318         * tests/unictype/test-ctype_alpha.c: Likewise.
21319         * tests/unictype/test-ctype_graph.c: Likewise.
21320         * tests/unictype/test-ctype_lower.c: Likewise.
21321         * tests/unictype/test-ctype_print.c: Likewise.
21322         * tests/unictype/test-ctype_punct.c: Likewise.
21323         * tests/unictype/test-ctype_upper.c: Likewise.
21324         * tests/unictype/test-decdigit.h: Likewise.
21325         * tests/unictype/test-digit.h: Likewise.
21326         * tests/unictype/test-numeric.h: Likewise.
21327         * tests/unictype/test-pr_alphabetic.c: Likewise.
21328         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21329         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21330         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21331         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21332         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21333         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21334         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21335         * tests/unictype/test-pr_combining.c: Likewise.
21336         * tests/unictype/test-pr_composite.c: Likewise.
21337         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21338         * tests/unictype/test-pr_dash.c: Likewise.
21339         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21340         * tests/unictype/test-pr_deprecated.c: Likewise.
21341         * tests/unictype/test-pr_diacritic.c: Likewise.
21342         * tests/unictype/test-pr_extender.c: Likewise.
21343         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21344         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21345         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21346         * tests/unictype/test-pr_id_continue.c: Likewise.
21347         * tests/unictype/test-pr_id_start.c: Likewise.
21348         * tests/unictype/test-pr_ideographic.c: Likewise.
21349         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21350         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21351         * tests/unictype/test-pr_lowercase.c: Likewise.
21352         * tests/unictype/test-pr_numeric.c: Likewise.
21353         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21354         * tests/unictype/test-pr_punctuation.c: Likewise.
21355         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21356         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21357         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21358         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21359         * tests/unictype/test-pr_uppercase.c: Likewise.
21360         * tests/unictype/test-pr_xid_continue.c: Likewise.
21361         * tests/unictype/test-pr_xid_start.c: Likewise.
21362         * tests/unictype/test-pr_zero_width.c: Likewise.
21363         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21364         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21365         changed behaviour: line breaking is now disallowed between a letter
21366         or '=' and '('.
21367         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21368         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21369         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21370         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21371         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21372         lib/uniwidth/width.c.
21373         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21374         without comments, but with the original copyright notice.
21375         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21376         changes.
21377         * lib/unictype/categ_Cc.h: Likewise.
21378         * lib/unictype/categ_Co.h: Likewise.
21379         * lib/unictype/categ_Cs.h: Likewise.
21380         * lib/unictype/categ_Lt.h: Likewise.
21381         * lib/unictype/categ_Me.h: Likewise.
21382         * lib/unictype/categ_Pc.h: Likewise.
21383         * lib/unictype/categ_Pe.h: Likewise.
21384         * lib/unictype/categ_Pf.h: Likewise.
21385         * lib/unictype/categ_Pi.h: Likewise.
21386         * lib/unictype/categ_Ps.h: Likewise.
21387         * lib/unictype/categ_Sk.h: Likewise.
21388         * lib/unictype/categ_Sm.h: Likewise.
21389         * lib/unictype/categ_Z.h: Likewise.
21390         * lib/unictype/categ_Zl.h: Likewise.
21391         * lib/unictype/categ_Zp.h: Likewise.
21392         * lib/unictype/categ_Zs.h: Likewise.
21393         * lib/unictype/ctype_blank.h: Likewise.
21394         * lib/unictype/ctype_cntrl.h: Likewise.
21395         * lib/unictype/ctype_digit.h: Likewise.
21396         * lib/unictype/ctype_space.h: Likewise.
21397         * lib/unictype/ctype_xdigit.h: Likewise.
21398         * lib/unictype/mirror.h: Likewise.
21399         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21400         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21401         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21402         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21403         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21404         * lib/unictype/pr_bidi_control.h: Likewise.
21405         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21406         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21407         * lib/unictype/pr_bidi_pdf.h: Likewise.
21408         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21409         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21410         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21411         * lib/unictype/pr_format_control.h: Likewise.
21412         * lib/unictype/pr_hex_digit.h: Likewise.
21413         * lib/unictype/pr_hyphen.h: Likewise.
21414         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21415         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21416         * lib/unictype/pr_iso_control.h: Likewise.
21417         * lib/unictype/pr_join_control.h: Likewise.
21418         * lib/unictype/pr_left_of_pair.h: Likewise.
21419         * lib/unictype/pr_line_separator.h: Likewise.
21420         * lib/unictype/pr_math.h: Likewise.
21421         * lib/unictype/pr_non_break.h: Likewise.
21422         * lib/unictype/pr_not_a_character.h: Likewise.
21423         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21424         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21425         * lib/unictype/pr_other_id_continue.h: Likewise.
21426         * lib/unictype/pr_other_id_start.h: Likewise.
21427         * lib/unictype/pr_other_lowercase.h: Likewise.
21428         * lib/unictype/pr_other_math.h: Likewise.
21429         * lib/unictype/pr_other_uppercase.h: Likewise.
21430         * lib/unictype/pr_paired_punctuation.h: Likewise.
21431         * lib/unictype/pr_paragraph_separator.h: Likewise.
21432         * lib/unictype/pr_pattern_syntax.h: Likewise.
21433         * lib/unictype/pr_pattern_white_space.h: Likewise.
21434         * lib/unictype/pr_private_use.h: Likewise.
21435         * lib/unictype/pr_quotation_mark.h: Likewise.
21436         * lib/unictype/pr_radical.h: Likewise.
21437         * lib/unictype/pr_soft_dotted.h: Likewise.
21438         * lib/unictype/pr_space.h: Likewise.
21439         * lib/unictype/pr_titlecase.h: Likewise.
21440         * lib/unictype/pr_variation_selector.h: Likewise.
21441         * lib/unictype/pr_white_space.h: Likewise.
21442         * lib/unictype/sy_c_ident.h: Likewise.
21443         * lib/unictype/sy_c_whitespace.h: Likewise.
21444         * lib/unictype/sy_java_whitespace.h: Likewise.
21445         * modules/uni*/*: Bump version number of expected libunistring version.
21446         Reported by Simon Josefsson.
21447
21448 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21449
21450         useless-if-before-free: fix typo in --help and make the internal,
21451         automatic version date update process work once again.
21452         --help output contained a NUL character instead of the
21453         backslash-zero that was intended.  Also, the "must lie within
21454         the first 8 lines" line is on line 9, and hence not getting
21455         automatically updated.
21456         * build-aux/useless-if-before-free: Fix the former by adding a
21457         backslash, and the latter by condensing the three lines of what-it-does
21458         to a single line, leaving one line of slack for the future.
21459
21460 2011-01-09  Bruno Haible  <bruno@clisp.org>
21461
21462         uniwidth/width: Fix width of U+1D173..U+1D17A.
21463         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21464         symbolic_width, output_width_property_test): New functions.
21465         (main): Invoke output_nonspacing_property, output_width_property_test.
21466         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21467         U+1D173..U+1D17A.
21468         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21469         1.
21470         * modules/uniwidth/*: Bump version number of expected libunistring
21471         version.
21472         * modules/unilbrk/*: Likewise.
21473
21474 2011-01-08  Bruno Haible  <bruno@clisp.org>
21475
21476         uninorm tests: Preserve copyright of Unicode data file.
21477         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21478         Mention modifications.
21479
21480 2011-01-08  Bruno Haible  <bruno@clisp.org>
21481
21482         gen-uni-tables: Prepare for Unicode 5.2.0.
21483         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21484         (debug_output_lbp, output_lbp): Update.
21485
21486 2011-01-08  Bruno Haible  <bruno@clisp.org>
21487
21488         unilbrk: Clarify gen-uni-tables.c code.
21489         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21490         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21491         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21492
21493 2011-01-07  Bruno Haible  <bruno@clisp.org>
21494
21495         strtod: Restore errno when successfully parsing Infinity or NaN.
21496         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21497         restore the original errno.
21498
21499 2011-01-07  Bruno Haible  <bruno@clisp.org>
21500
21501         remove test: Avoid failure on HP-UX 11.
21502         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21503
21504 2011-01-07  Bruno Haible  <bruno@clisp.org>
21505
21506         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21507         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21508         error code.
21509
21510 2011-01-07  Pádraig Brady <P@draigBrady.com>
21511
21512         ignore-value: fixup comments, and add Eric Blake
21513         as an author since he rewrote the macros.
21514         * lib/ignore-value.h (ignore_value):  State that
21515         we now support aggregates.  Also specify exactly
21516         when the GCC warn_unused_result feature was added.
21517
21518 2011-01-06  Eric Blake  <eblake@redhat.com>
21519
21520         ignore-value: support aggregate types
21521         * lib/ignore-value.h (ignore_value): Provide separate gcc
21522         definition.
21523         * modules/ignore-value-tests: New test module.
21524         * tests/test-ignore-value.c: New test.
21525
21526         maint.mk: improve sc_prohibit_strcmp regex
21527         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21528         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21529         definition of STRNEQ.
21530
21531         signal: work around Haiku issue with SIGBUS
21532         * lib/siglist.h: Add comment.
21533         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21534         strsignal's favoring of SIGSEGV.
21535         * tests/test-signal.c (main): Avoid test failure.
21536         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21537         Reported by Scott McCreary.
21538
21539         maint.mk: add pre-release check to ensure submodule commits are public
21540         * top/maint.mk (public-submodule-commit): New rule.
21541         (submodule-checks): New variable.
21542         (alpha beta stable): Depend on the variable.
21543
21544 2011-01-05  Pádraig Brady <P@draigBrady.com>
21545         and Jim Meyering  <meyering@redhat.com>
21546
21547         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21548         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21549         (ATTRIBUTE_DEPRECATED): Define.
21550         (_ignore_case): New function.
21551         (ignore_value): New macro, to replace the old function.
21552         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21553         * modules/ignore-value (Depends-on): Add stdint.
21554
21555 2011-01-04  Eric Blake  <eblake@redhat.com>
21556
21557         doc: regenerate INSTALL
21558         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21559         @firstparagraphindent support, now that autoconf dropped it.
21560         (INSTALL_PRELUDE): Reinstate old macro.
21561         * doc/install.texi: Resync from autoconf.
21562         * doc/INSTALL: Reflect recent autoconf update.
21563         * doc/INSTALL.ISO: Likewise.
21564         * doc/INSTALL.UTF-8: Likewise.
21565         Reported by Karl Berry.
21566
21567 2011-01-04  Bruce Korb  <address@hidden>
21568
21569         git-version-gen: avoid a sub-shell
21570         * build-aux/git-version-gen: Redirect stderr in `...` via
21571         "exec 2>...", rather than via an added sub-shell.
21572
21573 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21574
21575         git-version-gen: use (...) rather than sh -c '...'
21576         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21577         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21578
21579 2011-01-03  Jim Meyering  <meyering@redhat.com>
21580
21581         git-version-gen: convert leading TABs to spaces
21582         * build-aux/git-version-gen: Expand leading TABs.
21583
21584         git-version-gen: handle failed "git rev-list"
21585         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21586         from git and proceeding as if it had succeeded but printed no SHA1
21587         checksums, suppress the diagnostic and handle the failure.
21588         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21589
21590         git-version-gen: include command name in one more diagnostic
21591         * build-aux/git-version-gen: When the required .tarball-version file
21592         was missing or unreadable, you might see the diagnostic from "cat",
21593         but no trace of the name of the invoking script.  Now, you still see
21594         the diagnostic from cat, but also get one from "git-version-gen: ".
21595         Inspired by a patch from Bruce Korb.
21596
21597         update-copyright: adjust test to match changed code
21598         * tests/test-update-copyright.sh: Change test's expected output
21599         to match new actual output.
21600
21601 2011-01-02  Bruno Haible  <bruno@clisp.org>
21602
21603         getlogin_r: Avoid test failure on HP-UX 11.
21604         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21605         ERANGE when the second argument is zero.
21606         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21607         portability problem.
21608
21609 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21610
21611         * build-aux/update-copyright: doc Simon's changes
21612
21613 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21614
21615         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21616         environment variable.
21617
21618 2011-01-02  Bruno Haible  <bruno@clisp.org>
21619
21620         unigbrk: Avoid gcc warnings.
21621         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21622         unused variable.
21623         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21624         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21625         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21626         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21627         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21628         Change type of first argument to 'const char *'.
21629         (main): Remove unused variable.
21630         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21631         type of first argument to 'const char *'.
21632         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21633         Likewise.
21634         (main): Change type of variable 's'.
21635         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21636         to 'int'.
21637
21638 2011-01-02  Bruno Haible  <bruno@clisp.org>
21639
21640         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21641         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21642         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21643         bug.
21644         * lib/pwrite.c: Undo 2010-12-31 patch.
21645         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21646
21647 2011-01-02  Bruno Haible  <bruno@clisp.org>
21648
21649         pread: Fix test whether it works.
21650         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21651
21652 2011-01-02  Bruno Haible  <bruno@clisp.org>
21653
21654         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21655         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21656         ends in "6". Don't require a specific month name. Try also the locale
21657         names found on HP-UX 11 and Solaris 7.
21658
21659 2011-01-02  Bruno Haible  <bruno@clisp.org>
21660
21661         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21662         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21663         C linkage.
21664         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21665
21666 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21667
21668         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21669         for consistency, since the "cluster" term is not used elsewhere.
21670         * lib/unigbrk.in.h: Update name.
21671         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21672         * lib/unigbrk/u16-grapheme-next.c: Update name.
21673         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21674         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21675         * lib/unigbrk/u32-grapheme-next.c: Update name.
21676         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21677         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21678         * lib/unigbrk/u8-grapheme-next.c: Update name.
21679         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21680         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21681         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21682         Suggested by Bruno Haible.
21683
21684 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21685
21686         Remove module 'u8-grapheme-len' as too redundant with
21687         'u8-grapheme-next'.
21688         * modules/unigbrk/u8-grapheme-len: Delete file.
21689         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21690         * lib/unigbrk.in.h: Remove prototype for deleted function.
21691         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21692         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21693
21694         Remove module 'u16-grapheme-len' as too redundant with
21695         'u16-grapheme-next'.
21696         * modules/unigbrk/u16-grapheme-len: Delete file.
21697         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21698         * lib/unigbrk.in.h: Remove prototype for deleted function.
21699         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21700         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21701
21702         Remove module 'u32-grapheme-len' as too redundant with
21703         'u32-grapheme-next'.
21704         * modules/unigbrk/u32-grapheme-len: Delete file.
21705         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21706         * lib/unigbrk.in.h: Remove prototype for deleted function.
21707         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21708         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21709
21710         Suggested by Bruno Haible.
21711
21712 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21713
21714         * unigbrk.in.h: Fix typo: "ben" => "been".
21715         Reported by Bruno Haible.
21716
21717 2011-01-01  Jim Meyering  <meyering@redhat.com>
21718
21719         maint: update almost all copyright ranges to include 2011
21720         Run the new "make update-copyright" rule.
21721
21722 2011-01-01  Jim Meyering  <meyering@redhat.com>
21723
21724         maint: update-copyright: exempt doc/INSTALL*
21725         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21726         since they are generated.  Suggested by Bruno Haible.
21727
21728 2011-01-01  Jim Meyering  <meyering@redhat.com>
21729
21730         maint: refine the update-copyright rule
21731         * Makefile (update-copyright): Also exclude any file that includes
21732         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21733         code that merely generates the comment.
21734
21735 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21736
21737         New module 'u8-grapheme-len'.
21738         * modules/unigbrk/u8-grapheme-len: New file.
21739         * modules/unigbrk/u8-grapheme-len-tests: New file.
21740         * lib/unigbrk.in.h: Add prototype for new function.
21741         * lib/unigbrk/u8-grapheme-len.c: New file.
21742         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21743
21744         New module 'u16-grapheme-len'.
21745         * modules/unigbrk/u16-grapheme-len: New file.
21746         * modules/unigbrk/u16-grapheme-len-tests: New file.
21747         * lib/unigbrk.in.h: Add prototype for new function.
21748         * lib/unigbrk/u16-grapheme-len.c: New file.
21749         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21750
21751         New module 'u32-grapheme-len'.
21752         * modules/unigbrk/u32-grapheme-len: New file.
21753         * modules/unigbrk/u32-grapheme-len-tests: New file.
21754         * lib/unigbrk.in.h: Add prototype for new function.
21755         * lib/unigbrk/u32-grapheme-len.c: New file.
21756         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21757
21758         New module 'u8-grapheme-next'.
21759         * modules/unigbrk/u8-grapheme-next: New file.
21760         * modules/unigbrk/u8-grapheme-next-tests: New file.
21761         * lib/unigbrk.in.h: Add prototype for new function.
21762         * lib/unigbrk/u8-grapheme-next.c: New file.
21763         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21764
21765         New module 'u16-grapheme-next'.
21766         * modules/unigbrk/u16-grapheme-next: New file.
21767         * modules/unigbrk/u16-grapheme-next-tests: New file.
21768         * lib/unigbrk.in.h: Add prototype for new function.
21769         * lib/unigbrk/u16-grapheme-next.c: New file.
21770         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21771
21772         New module 'u32-grapheme-next'.
21773         * modules/unigbrk/u32-grapheme-next: New file.
21774         * modules/unigbrk/u32-grapheme-next-tests: New file.
21775         * lib/unigbrk.in.h: Add prototype for new function.
21776         * lib/unigbrk/u32-grapheme-next.c: New file.
21777         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21778
21779         New module 'u8-grapheme-prev'.
21780         * modules/unigbrk/u8-grapheme-prev: New file.
21781         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21782         * lib/unigbrk.in.h: Add prototype for new function.
21783         * lib/unigbrk/u8-grapheme-prev.c: New file.
21784         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21785
21786         New module 'u16-grapheme-prev'.
21787         * modules/unigbrk/u16-grapheme-prev: New file.
21788         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21789         * lib/unigbrk.in.h: Add prototype for new function.
21790         * lib/unigbrk/u16-grapheme-prev.c: New file.
21791         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21792
21793         New module 'u32-grapheme-prev'.
21794         * modules/unigbrk/u32-grapheme-prev: New file.
21795         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21796         * lib/unigbrk.in.h: Add prototype for new function.
21797         * lib/unigbrk/u32-grapheme-prev.c: New file.
21798         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21799
21800         New module 'u8-grapheme-breaks'.
21801         * modules/unigbrk/u8-grapheme-breaks: New file.
21802         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21803         * lib/unigbrk.in.h: Add prototype for new function.
21804         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21805         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21806
21807         New module 'u16-grapheme-breaks'.
21808         * modules/unigbrk/u16-grapheme-breaks: New file.
21809         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21810         * lib/unigbrk.in.h: Add prototype for new function.
21811         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21812         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21813
21814         New module 'u32-grapheme-breaks'.
21815         * modules/unigbrk/u32-grapheme-breaks: New file.
21816         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21817         * lib/unigbrk.in.h: Add prototype for new function.
21818         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21819         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21820
21821         New module 'ulc-grapheme-breaks'.
21822         * modules/unigbrk/ulc-grapheme-breaks: New file.
21823         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21824         * m4/locale-ar.m4: New file.
21825         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21826         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21827         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21828
21829 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21830
21831         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21832         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21833         modified how this file was generated before I initially submitted
21834         the module, but failed to regenerate it.  This meant that several
21835         of the level2 entries were wrong.
21836         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21837         Remove the division-by-2 that is folded into the table now that
21838         gbrkprop.h has been regenerated properly.  Now -1 entries are
21839         handled correctly.
21840
21841         New module 'unigbrk/uc-gbrk-prop-tests'.
21842         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21843         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21844         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21845         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21846
21847 2011-01-01  Bruno Haible  <bruno@clisp.org>
21848
21849         Avoid use of hexadecimal escapes.
21850         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21851         instead of hexadecimal escapes.
21852
21853 2011-01-01  Jim Meyering  <meyering@redhat.com>
21854
21855         maint: new rule to update copyright year ranges
21856         * Makefile (update-copyright): New rule.
21857
21858         maint: indent with TABs in Makefile
21859         * Makefile: Expand leading sequences of spaces to TABs
21860
21861         version-etc: update the copyright year it reports
21862         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21863
21864 2010-12-31  Bruno Haible  <bruno@clisp.org>
21865
21866         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21867         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21868         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21869         zero.
21870
21871 2010-12-31  Bruno Haible  <bruno@clisp.org>
21872
21873         pwrite: Work around HP-UX 11.11 bug.
21874         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21875         works and set REPLACE_PWRITE if not.
21876         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21877         function.
21878         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21879
21880 2010-12-31  Bruno Haible  <bruno@clisp.org>
21881
21882         pread: Work around HP-UX 11 bugs.
21883         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21884         and set REPLACE_PREAD if not.
21885         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21886
21887 2010-12-31  Eric Blake  <eblake@redhat.com>
21888
21889         nl_langinfo: fix YESEXPR on Irix 6.5
21890         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21891         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21892         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21893         it.
21894
21895 2010-12-31  Bruno Haible  <bruno@clisp.org>
21896
21897         iconv: Document HP-UX 11 bug.
21898         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21899
21900 2010-12-31  Bruno Haible  <bruno@clisp.org>
21901
21902         ldexpl: Fix link error on HP-UX 11.
21903         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21904         LDEXPL_LIBM, using $ISNANL_LIBM.
21905
21906 2010-12-31  Eric Blake  <eblake@redhat.com>
21907
21908         ftello: avoid compilation failure with SunStudio c89
21909         * lib/ftello.c (ftello): Use lseek, not llseek.
21910
21911         tests: avoid failing coreutils tests on cygwin
21912         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21913         (create_exe_shims_): Return 0 when skipping.
21914
21915 2010-12-31  Bruno Haible  <bruno@clisp.org>
21916
21917         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21918         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21919
21920 2010-12-31  Bruno Haible  <bruno@clisp.org>
21921
21922         waitpid: Fix link error in C++ mode.
21923         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21924
21925 2010-12-31  Bruno Haible  <bruno@clisp.org>
21926
21927         isnan: Use GCC built-ins when possible.
21928         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21929         __builtin_isnan.
21930         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21931         (isnan): Define using GCC built-ins for GCC >= 4.0.
21932
21933 2010-12-31  Bruno Haible  <bruno@clisp.org>
21934
21935         isnand: Fix mistake.
21936         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21937         __builtin_isnand.
21938
21939 2010-12-31  Bruno Haible  <bruno@clisp.org>
21940
21941         open: Avoid C++ error on HP-UX 11.
21942         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21943
21944 2010-12-31  Bruno Haible  <bruno@clisp.org>
21945
21946         time_r: Add missing declarations on HP-UX 11.
21947         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21948         instead of HAVE_LOCALTIME_R.
21949         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21950         HAVE_LOCALTIME_R always.
21951         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21952         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21953         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21954         HAVE_LOCALTIME_R.
21955         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21956         * doc/posix-functions/localtime_r.texi: Likewise.
21957
21958 2010-12-29  Eric Blake  <eblake@redhat.com>
21959
21960         mountlist: tweak previous commit
21961         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21962         Reported by Paul Eggert.
21963
21964         mountlist: fix local drive detection on cygwin
21965         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21966         that works for cygwin.
21967
21968 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21969
21970         ftoastr, snprintf: ftoastr + snprintf module
21971         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21972         since the snprintf module now should be good enough here.
21973         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21974         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21975         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21976         GNULIB_SNPRINTF only for the test directory, and the latter
21977         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21978         seems to suffice by itself.
21979
21980 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21981
21982         alloca: one step towards thread-safety
21983         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21984         need for a static variable.  All callers changed.  This does not
21985         make the alloca replacement thread-safe, but it's one step.
21986
21987         tests: minor indenting change
21988         * tests/init.sh: Sync from coreutils housekeeping patch
21989         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21990         to keep lines within 80 columns.
21991
21992 2010-12-28  Jim Meyering  <meyering@redhat.com>
21993
21994         regex: don't infloop on persistent failing calloc
21995         * lib/regexec.c (build_trtable): Return failure indication upon
21996         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21997         In glibc, this was fixed for version 2.13:
21998         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21999
22000 2010-12-28  Bruno Haible  <bruno@clisp.org>
22001             Paul Eggert <eggert@cs.ucla.edu>
22002
22003         linkat: Make implementation robust against system behaviour variations.
22004         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22005         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22006         way, and to -2 if it needs a generic runtime test.
22007         * lib/linkat.c (solaris_optimized_link_immediate,
22008         solaris_optimized_link_follow): New functions.
22009         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22010         (check_same_link): Use it.
22011
22012 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22013
22014         New module 'unigbrk/base'.
22015         * modules/unigbrk/base: New file.
22016         * lib/unigbrk.in.h: New file.
22017
22018         New module 'unigbrk/uc-gbrk-prop'.
22019         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22020         * modules/unigbrk/uc-gbrk-prop: New file.
22021         * lib/unigbrk/gbrkprop.h: New file.
22022         * lib/unigbrk/uc-gbrk-prop.c: New file.
22023
22024         New module 'unigbrk/uc-is-grapheme-break'.
22025         * modules/unigbrk/uc-is-grapheme-break: New file.
22026         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22027         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22028         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22029         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22030         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22031
22032         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22033
22034 2010-12-27  Bruno Haible  <bruno@clisp.org>
22035
22036         linkat test: Avoid failure on Solaris 11 2010-11.
22037         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22038
22039 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22040
22041         utimens: work around glibc rounding bug on more platforms
22042         * lib/utimens.c (fdutimens): Work around rounding bug even if
22043         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22044         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22045
22046 2010-12-27  Bruno Haible  <bruno@clisp.org>
22047
22048         select tests: Improve comments.
22049         * tests/test-select.c (do_select): Add comments.
22050
22051 2010-12-27  Bruno Haible  <bruno@clisp.org>
22052
22053         select tests: Safer way of handling timeout.
22054         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22055         at every invocation.
22056
22057 2010-12-27  Bruno Haible  <bruno@clisp.org>
22058
22059         select tests: Use 'bool' where appropriate.
22060         * tests/test-select.c (connect_to_socket): Change argument type to
22061         'bool'.
22062
22063 2010-12-27  Bruno Haible  <bruno@clisp.org>
22064
22065         select tests: Use existing modules.
22066         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22067         (configure.ac): Don't test for unistd.h.
22068         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22069         declared in <unistd.h>.
22070
22071 2010-12-27  Bruno Haible  <bruno@clisp.org>
22072
22073         mbrtowc: Work around a Solaris 7 bug.
22074         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22075         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22076         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22077         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22078         MBRTOWC_NULL_ARG1_BUG.
22079         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22080         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22081         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22082         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22083
22084 2010-12-27  Jim Meyering  <meyering@redhat.com>
22085
22086         read-file.c: tweak syntax
22087         * lib/read-file.c (fread_file): Remove space after "*" in function
22088         definitions.
22089
22090 2010-12-27  Bruno Haible  <bruno@clisp.org>
22091
22092         times test: Avoid gcc warnings on OSF/1.
22093         * tests/test-times.c (main): Cast printf arguments from clock_t to
22094         'long int'.
22095
22096 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22097
22098         utimens: work around glibc rounding bug on older Linux kernels
22099         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22100         on Linux with a glibc whose utimes might not work, then work
22101         around a longstanding glibc bug involving rounding rather than
22102         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22103         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22104
22105 2010-12-26  Bruno Haible  <bruno@clisp.org>
22106
22107         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22108         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22109         _GL_CXXALIAS_SYS.
22110         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22111
22112 2010-12-26  Bruno Haible  <bruno@clisp.org>
22113
22114         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22115         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22116         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22117         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22118         looking for the declaration.
22119         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22120         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22121         problem.
22122         * doc/posix-functions/inet_pton.texi: Likewise.
22123
22124 2010-12-26  Bruno Haible  <bruno@clisp.org>
22125
22126         arpa_inet: Use the common idioms with C++ support.
22127         * lib/arpa_inet.in.h: Include c++defs.h.
22128         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22129         support.
22130         * modules/arpa_inet (Depends-on): Add c++defs.
22131         (Makefile.am): Substitute the contents of c++defs.h.
22132         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22133         * modules/arpa_inet-c++-tests: New file.
22134         * tests/test-arpa_inet-c++.cc: New file.
22135
22136 2010-12-25  Bruno Haible  <bruno@clisp.org>
22137
22138         Fix more C++ link errors on Solaris 8.
22139         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22140         $(LIB_EACCESS).
22141         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22142         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22143         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22144         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22145         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22146
22147 2010-12-25  Bruno Haible  <bruno@clisp.org>
22148
22149         printf-posix: Fix link error when a non-GCC compiler is used.
22150         * lib/stdio.in.h (printf): When not using GCC, override printf
22151         correctly.
22152         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22153
22154 2010-12-25  Bruno Haible  <bruno@clisp.org>
22155
22156         strerror_r-posix: Update doc.
22157         * doc/posix-functions/strerror_r.texi: Update doc about the return
22158         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22159
22160 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22161
22162         utimens: simplify the logic of the previous change
22163         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22164         This should not affect whether the test succeeds or fails.
22165
22166         utimens: configure better on hosts with NFS clock skew
22167         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22168         uses the clock of the local host.  It might use the clock of the
22169         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22170         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22171
22172 2010-12-25  Bruno Haible  <bruno@clisp.org>
22173
22174         ptsname test: Avoid failure on Solaris.
22175         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22176         open a pseudo-terminal; don't use BSD-style ptys.
22177         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22178
22179 2010-12-25  Bruno Haible  <bruno@clisp.org>
22180
22181         ptsname: Avoid ERANGE failure on some systems.
22182         * lib/ptsname.c (buffer): Increase size.
22183
22184 2010-12-25  Bruno Haible  <bruno@clisp.org>
22185
22186         rename, renameat: Avoid test failures at NFS mounted locations.
22187         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22188         so that subsequent mkdir calls succeed.
22189
22190 2010-12-25  Bruno Haible  <bruno@clisp.org>
22191
22192         iswblank: Fix C++ link error on Solaris 8.
22193         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22194         _GL_FUNCDECL_SYS.
22195
22196 2010-12-25  Bruno Haible  <bruno@clisp.org>
22197
22198         unistd: Fix C++ link error on Solaris 8.
22199         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22200
22201 2010-12-25  Bruno Haible  <bruno@clisp.org>
22202
22203         readlink doc: Mention an old glibc bug.
22204         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22205
22206 2010-12-25  Bruno Haible  <bruno@clisp.org>
22207
22208         fcntl-h: Fix for use of C++ on glibc systems.
22209         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22210         also on glibc systems in C++ mode.
22211         Reported by Gary V. Vaughan <gary@gnu.org>.
22212
22213 2010-12-25  Bruno Haible  <bruno@clisp.org>
22214
22215         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22216         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22217
22218 2010-12-25  Bruno Haible  <bruno@clisp.org>
22219
22220         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22221         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22222         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22223         test whether truncl works according to ISO C 99 with IEC 60559.
22224         * m4/truncl-ieee.m4: New file.
22225         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22226         m4/signbit.m4.
22227         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22228
22229 2010-12-25  Bruno Haible  <bruno@clisp.org>
22230
22231         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22232         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22233         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22234         test whether ceill works according to ISO C 99 with IEC 60559.
22235         * m4/ceill-ieee.m4: New file.
22236         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22237         m4/signbit.m4.
22238         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22239
22240 2010-12-25  Bruno Haible  <bruno@clisp.org>
22241
22242         Ensure all prerequisites of <wchar.h> are included.
22243         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22244         before <wchar.h>.
22245         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22246         gl_MBRLEN_NUL_RETVAL): Likewise.
22247         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22248         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22249         AC_FUNC_MBRTOWC): Likewise.
22250         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22251         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22253         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22254         Likewise.
22255         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22256         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22257         (gl_WCHAR_H): Improve comments.
22258         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22259
22260 2010-12-25  Bruno Haible  <bruno@clisp.org>
22261
22262         strtok_r: Fix C syntax error in autoconf macro.
22263         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22264         characters in test program.
22265
22266 2010-12-24  Bruno Haible  <bruno@clisp.org>
22267
22268         ceil, trunc, round: Fix gcc warnings.
22269         * lib/ceil.c (MIN): Undefine before redefining.
22270         * lib/trunc.c (MIN): Likewise.
22271         * lib/round.c (MIN): Likewise.
22272         Include <math.h> first.
22273
22274 2010-12-24  Bruno Haible  <bruno@clisp.org>
22275
22276         select tests: Avoid failures on OSF/1 5.1.
22277         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22278         failure of closing the last socket; it may fail with ECONNRESET.
22279
22280 2010-12-24  Eric Blake  <eblake@redhat.com>
22281
22282         stdint: avoid HP-UX 10.20 preprocessor bug
22283         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22284         than #if.
22285         * tests/test-floor2.c (main): Likewise.
22286         Reported by Peter O'Gorman.
22287
22288         pipe: make obsoletion transition easier
22289         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22290         * modules/pipe (Files): Include revived file.
22291         (Include): Drop reference, to mirror getdate's behavior.
22292
22293 2010-12-24  Bruno Haible  <bruno@clisp.org>
22294
22295         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22296         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22297         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22298         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22299
22300 2010-12-24  Bruno Haible  <bruno@clisp.org>
22301
22302         gethostname: Ensure declaration on NonStop Kernel.
22303         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22304         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22305
22306 2010-12-24  Bruno Haible  <bruno@clisp.org>
22307
22308         sys_select: Ensure all necessary types on NonStop Kernel.
22309         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22310         include <sys/time.h>.
22311         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22312         NonStop Kernel.
22313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22314
22315 2010-12-24  Bruno Haible  <bruno@clisp.org>
22316
22317         sys_select: Remove unneeded include.
22318         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22319         have <sys/select.h>.
22320
22321 2010-12-24  Bruno Haible  <bruno@clisp.org>
22322
22323         gethostname: Provide a fallback for HOST_NAME_MAX.
22324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22325         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22326         instead.
22327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22328
22329 2010-12-24  Bruno Haible  <bruno@clisp.org>
22330
22331         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22332         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22333         (SA_RESTART): Likewise.
22334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22335
22336 2010-12-24  Bruno Haible  <bruno@clisp.org>
22337
22338         signal: Define NSIG.
22339         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22340         * tests/test-signal.c (nsig): New variable.
22341         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22342
22343 2010-12-24  Bruno Haible  <bruno@clisp.org>
22344
22345         rename, renameat: Avoid test failures on OSF/1 5.1.
22346         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22347         alternative error codes.
22348         * tests/test-renameat.c (main): Likewise.
22349
22350 2010-12-24  Bruno Haible  <bruno@clisp.org>
22351
22352         *printf: Detect large precisions bug on Solaris 10/SPARC.
22353         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22354         by Paul Eggert.
22355         * tests/test-snprintf-posix.h (test_function): Add this test code here
22356         too.
22357         * tests/test-sprintf-posix.h (test_function): Likewise.
22358         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22359         * tests/test-vasprintf-posix.c (test_function): Likewise.
22360         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22361         around by gnulib.
22362         * doc/posix-functions/printf.texi: Likewise.
22363         * doc/posix-functions/snprintf.texi: Likewise.
22364         * doc/posix-functions/sprintf.texi: Likewise.
22365         * doc/posix-functions/vfprintf.texi: Likewise.
22366         * doc/posix-functions/vprintf.texi: Likewise.
22367         * doc/posix-functions/vsnprintf.texi: Likewise.
22368         * doc/posix-functions/vsprintf.texi: Likewise.
22369         * doc/posix-functions/dprintf.texi: Undo last commit.
22370         * doc/posix-functions/vdprintf.texi: Likewise.
22371
22372 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22373
22374         tests: port test-fdutimensat.c to Solaris 8
22375         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22376         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22377         On Solaris 8, it fails with errno == ENOSYS, because there is no
22378         futimens (so it can't use the fd), and there is no lutimens (so it
22379         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22380
22381         vsnprintf: make more consistent with snprintf; doc fixes
22382
22383         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22384         the byte count return problem was promoted from the snprintf-posix
22385         to the snprintf module.
22386         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22387         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22388         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22389         * tests/test-snprintf.c (main): Check the byte count returned.
22390         * tests/test-vsnprintf.c (main): Likewise.
22391
22392 2010-12-23  Eric Blake  <eblake@redhat.com>
22393
22394         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22395         * modules/sigpipe (License): Relax license.
22396
22397 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22398
22399         doc: document Solaris printf bug with large float precisions
22400         * doc/posix-functions/dprintf.texi (dprintf):
22401         * doc/posix-functions/fprintf.texi (fprintf):
22402         * doc/posix-functions/printf.texi (printf):
22403         * doc/posix-functions/snprintf.texi (snprintf):
22404         * doc/posix-functions/sprintf.texi (sprintf):
22405         * doc/posix-functions/vdprintf.texi (vdprintf):
22406         * doc/posix-functions/vfprintf.texi (vfprintf):
22407         * doc/posix-functions/vprintf.texi (vprintf):
22408         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22409         * doc/posix-functions/vsprintf.texi (vsprintf):
22410         Mention that these functions mishandle large floating point
22411         precisions on Solaris 10.  The same bug is also present in Solaris
22412         8, and I assume earlier.  This causes "cd gnulib-tests; make
22413         check" to fail on Solaris 8 (and I assume, later) when building
22414         the latest coreutils, in test-vasprintf-posix's call to
22415         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22416         the wide flavors (e.g., wprintf) so this patch just updates the
22417         documentation for the narrow ones.
22418
22419         test-posixtm.c: add two tests
22420         * tests/test-posixtm.c: Add two tests, to highlight the
22421         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22422         around this bug; this is merely to document it.
22423
22424 2010-12-22  Bruno Haible  <bruno@clisp.org>
22425
22426         getlogin_r: Work around portability problem on OSF/1.
22427         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22428         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22429         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22430         test for a truncated result.
22431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22432         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22433         * modules/getlogin_r (Depends-on): Add memchr.
22434         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22435
22436 2010-12-22  Bruno Haible  <bruno@clisp.org>
22437
22438         ptsname: Avoid test failure on OSF/1 5.1.
22439         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22440         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22441         (same_slave): New function.
22442         (main): Use it to compare ptsname's result with the expected file name.
22443
22444 2010-12-22  Bruno Haible  <bruno@clisp.org>
22445
22446         Port extended stdio modules to HP NonStop Kernel.
22447         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22448         macros.
22449         * lib/fbufmode.c: Update comments.
22450         * lib/fflush.c: Likewise.
22451         * lib/fpurge.c: Likewise.
22452         * lib/freadable.c: Likewise.
22453         * lib/freadahead.c: Likewise.
22454         * lib/freading.c: Likewise.
22455         * lib/freadptr.c: Likewise.
22456         * lib/freadseek.c: Likewise.
22457         * lib/fseeko.c: Likewise.
22458         * lib/fseterr.c: Likewise.
22459         * lib/fwritable.c: Likewise.
22460         * lib/fwriting.c: Likewise.
22461         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22462
22463 2010-12-22  Bruno Haible  <bruno@clisp.org>
22464
22465         ttyname_r: Work around bug on OSF/1 5.1.
22466         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22467         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22468         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22469         present.
22470         * lib/ttyname_r.c (ttyname_r): Update comments.
22471
22472 2010-12-22  Bruno Haible  <bruno@clisp.org>
22473
22474         round: Implement result sign according to IEEE 754.
22475         * lib/round.c (MIN, MINUS_ZERO): New macros.
22476         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22477         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22478         * tests/test-round-ieee.c (main): Likewise.
22479         * tests/test-roundl-ieee.c (main): Likewise.
22480
22481         trunc: Implement result sign according to IEEE 754.
22482         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22483         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22484         * tests/test-trunc2.c: Include minus-zero.h.
22485         (MINUS_ZERO): New macro.
22486         (trunc_reference): Keep in sync with lib/trunc.c.
22487         * tests/test-truncf2.c: Include minus-zero.h.
22488         (MINUS_ZERO): New macro.
22489         (truncf_reference): Keep in sync with lib/trunc.c.
22490         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22491         * tests/test-trunc-ieee.c (main): Likewise.
22492         * tests/test-truncl-ieee.c (main): Likewise.
22493
22494         ceil: Implement result sign according to IEEE 754.
22495         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22496         (FUNC): Return -0.0 for -1 < x < 0.
22497         * tests/test-ceil2.c: Include minus-zero.h.
22498         (MINUS_ZERO): New macro.
22499         (ceil_reference): Keep in sync with lib/ceil.c.
22500         * tests/test-ceilf2.c: Include minus-zero.h.
22501         (MINUS_ZERO): New macro.
22502         (ceilf_reference): Keep in sync with lib/ceil.c.
22503         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22504         * tests/test-ceil-ieee.c (main): Likewise.
22505         * tests/test-ceill-ieee.c (main): Likewise.
22506
22507         floor: Implement result sign according to IEEE 754.
22508         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22509         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22510         * tests/test-floorf2.c (floorf_reference): Likewise.
22511         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22512         * tests/test-floor-ieee.c (main): Likewise.
22513         * tests/test-floorl-ieee.c (main): Likewise.
22514
22515 2010-12-22  Bruno Haible  <bruno@clisp.org>
22516
22517         getaddrinfo: Update doc.
22518         * doc/posix-functions/gai_strerror.texi: Return type is also different
22519         on AIX and HP-UX.
22520
22521 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22522
22523         getaddrinfo, inet_ntop: Update doc for Solaris.
22524         * doc/posix-functions/gai_strerror.texi: Return type is also an
22525         issue on Solaris 9 and earlier.
22526         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22527         on Solaris 10 and earlier.
22528
22529 2010-12-21  Bruno Haible  <bruno@clisp.org>
22530
22531         New module 'roundl-ieee'.
22532         * modules/roundl-ieee: New file.
22533         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22534         test whether roundl works according to ISO C 99 with IEC 60559.
22535         * m4/roundl-ieee.m4: New file.
22536         * modules/roundl-ieee-tests: New file.
22537         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22538         * tests/test-roundl.c (main): Remove signbit tests.
22539         * modules/roundl-tests (Depends-on): Remove signbit.
22540         * doc/posix-functions/roundl.texi: Mention the new module.
22541
22542 2010-12-21  Bruno Haible  <bruno@clisp.org>
22543
22544         New module 'truncl-ieee'.
22545         * modules/truncl-ieee: New file.
22546         * modules/truncl-ieee-tests: New file.
22547         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22548         * tests/test-truncl.c (main): Remove signbit tests.
22549         * modules/truncl-tests (Depends-on): Remove signbit.
22550         * doc/posix-functions/truncl.texi: Mention the new module.
22551
22552 2010-12-21  Bruno Haible  <bruno@clisp.org>
22553
22554         New module 'ceill-ieee'.
22555         * modules/ceill-ieee: New file.
22556         * modules/ceill-ieee-tests: New file.
22557         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22558         * tests/test-ceill.c (main): Remove signbit tests.
22559         * modules/ceill-tests (Depends-on): Remove signbit.
22560         * doc/posix-functions/ceill.texi: Mention the new module.
22561
22562 2010-12-21  Bruno Haible  <bruno@clisp.org>
22563
22564         New module 'floorl-ieee'.
22565         * modules/floorl-ieee: New file.
22566         * modules/floorl-ieee-tests: New file.
22567         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22568         * tests/test-floorl.c (main): Remove signbit tests.
22569         * modules/floorl-tests (Depends-on): Remove signbit.
22570         * doc/posix-functions/floorl.texi: Mention the new module.
22571
22572 2010-12-21  Bruno Haible  <bruno@clisp.org>
22573
22574         New module 'round-ieee'.
22575         * modules/round-ieee: New file.
22576         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22577         whether round works according to ISO C 99 with IEC 60559.
22578         * m4/round-ieee.m4: New file.
22579         * modules/round-ieee-tests: New file.
22580         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22581         * tests/test-round1.c (main): Remove signbit tests.
22582         * modules/round-tests (Depends-on): Remove 'signbit'.
22583         * doc/posix-functions/round.texi: Mention the new module.
22584
22585 2010-12-21  Bruno Haible  <bruno@clisp.org>
22586
22587         New module 'trunc-ieee'.
22588         * modules/trunc-ieee: New file.
22589         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22590         whether trunc works according to ISO C 99 with IEC 60559.
22591         * m4/trunc-ieee.m4: New file.
22592         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22594         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22595         * modules/trunc-ieee-tests: New file.
22596         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22597         * tests/test-trunc1.c (main): Remove signbit tests.
22598         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22599         * doc/posix-functions/trunc.texi: Mention the new module.
22600
22601 2010-12-21  Bruno Haible  <bruno@clisp.org>
22602
22603         New module 'ceil-ieee'.
22604         * modules/ceil-ieee: New file.
22605         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22606         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22607         ISO C 99 with IEC 60559.
22608         * m4/ceil-ieee.m4: New file.
22609         * modules/ceil (Files): Add lib/ceil.c.
22610         (Depends-on): Add 'float'.
22611         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22612         * lib/math.in.h (ceil): New declaration.
22613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22614         REPLACE_CEIL.
22615         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22616         * modules/ceil-ieee-tests: New file.
22617         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22618         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22619         * doc/posix-functions/ceil.texi: Mention the new module.
22620
22621 2010-12-21  Bruno Haible  <bruno@clisp.org>
22622
22623         New module 'floor-ieee'.
22624         * modules/floor-ieee: New file.
22625         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22626         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22627         ISO C 99 with IEC 60559.
22628         * m4/floor-ieee.m4: New file.
22629         * modules/floor (Files): Add lib/floor.c.
22630         (Depends-on): Add 'float'.
22631         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22632         * lib/math.in.h (floor): New declaration.
22633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22634         REPLACE_FLOOR.
22635         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22636         * modules/floor-ieee-tests: New file.
22637         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22638         * tests/test-math-c++.cc: Check the signature of 'floor'.
22639         * doc/posix-functions/floor.texi: Mention the new module.
22640
22641 2010-12-21  Bruno Haible  <bruno@clisp.org>
22642
22643         New module 'roundf-ieee'.
22644         * modules/roundf-ieee: New file.
22645         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22646         test whether roundf works according to ISO C 99 with IEC 60559.
22647         * m4/roundf-ieee.m4: New file.
22648         * modules/roundf-ieee-tests: New file.
22649         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22650         * tests/test-roundf1.c (main): Remove signbit tests.
22651         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22652         * doc/posix-functions/roundf.texi: Mention the new module.
22653
22654 2010-12-21  Bruno Haible  <bruno@clisp.org>
22655
22656         New module 'truncf-ieee'.
22657         * modules/truncf-ieee: New file.
22658         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22659         test whether truncf works according to ISO C 99 with IEC 60559.
22660         * m4/truncf-ieee.m4: New file.
22661         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22663         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22664         * modules/truncf-ieee-tests: New file.
22665         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22666         * tests/test-truncf1.c (main): Remove signbit tests.
22667         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22668         * doc/posix-functions/truncf.texi: Mention the new module.
22669
22670 2010-12-21  Bruno Haible  <bruno@clisp.org>
22671
22672         New module 'ceilf-ieee'.
22673         * modules/ceilf-ieee: New file.
22674         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22675         test whether ceilf works according to ISO C 99 with IEC 60559.
22676         * m4/ceilf-ieee.m4: New file.
22677         * modules/ceilf-ieee-tests: New file.
22678         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22679         * tests/test-ceilf1.c (main): Remove signbit tests.
22680         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22681         * doc/posix-functions/ceilf.texi: Mention the new module.
22682
22683 2010-12-21  Bruno Haible  <bruno@clisp.org>
22684
22685         New module 'floorf-ieee'.
22686         * modules/floorf-ieee: New file.
22687         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22688         test whether floorf works according to ISO C 99 with IEC 60559.
22689         * m4/floorf-ieee.m4: New file.
22690         * modules/floorf-ieee-tests: New file.
22691         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22692         * tests/test-floorf1.c (main): Remove signbit tests.
22693         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22694         * doc/posix-functions/floorf.texi: Mention the new module.
22695
22696 2010-12-21  Bruno Haible  <bruno@clisp.org>
22697
22698         Support for minus zero in autoconf macros.
22699         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22700         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22701         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22702         * tests/minus-zero.h: Update comments.
22703
22704 2010-12-21  Bruno Haible  <bruno@clisp.org>
22705
22706         Tests for module 'ceil'.
22707         * modules/ceil-tests: New file.
22708         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22709         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22710
22711 2010-12-21  Bruno Haible  <bruno@clisp.org>
22712
22713         Tests for module 'floor'.
22714         * modules/floor-tests: New file.
22715         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22716         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22717
22718 2010-12-21  Bruno Haible  <bruno@clisp.org>
22719
22720         math: Fix indentation.
22721         * lib/math.in.h (floorf): Fix indentation.
22722
22723 2010-12-21  Bruno Haible  <bruno@clisp.org>
22724
22725         Fix cross-compilation guesses on Solaris.
22726         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22727         not match "solaris2.10".
22728         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22729         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22730         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22731
22732 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22733
22734         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22735         This fixes a problem observed with the latest coreutils snapshot
22736         that caused a test to fail on Solaris 8.  src/csplit.c's call
22737         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22738         earlier, instead of returning the number of bytes that would have
22739         been generated; this causes csplit to incorrectly report memory
22740         exhaustion.
22741         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22742         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22743         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22744         comments to match.
22745         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22746         Fix typo in matching older versions of Solaris: "solaris2.10"
22747         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22748         only for guessing while cross-compiling.
22749         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22750
22751 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22752
22753         ftoastr: fix comment again
22754         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22755         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22756         Also, simplify example a bit by using flags = 0.
22757
22758 2010-12-20  Bruno Haible  <bruno@clisp.org>
22759
22760         round*, trunc*: Update documentation regarding glibc.
22761         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22762         * doc/posix-functions/round.texi: Likewise.
22763         * doc/posix-functions/roundl.texi: Likewise.
22764         * doc/posix-functions/truncf.texi: Likewise.
22765         * doc/posix-functions/trunc.texi: Likewise.
22766         * doc/posix-functions/truncl.texi: Likewise.
22767
22768 2010-12-20  Bruno Haible  <bruno@clisp.org>
22769
22770         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22771         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22772         * doc/posix-functions/round.texi: Likewise.
22773         * doc/posix-functions/roundl.texi: Likewise.
22774
22775 2010-12-20  Bruno Haible  <bruno@clisp.org>
22776
22777         ttyname_r: Add missing declaration on HP-UX 11.
22778         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22779         HAVE_TTYNAME_R.
22780         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22781         declared. Set HAVE_TTYNAME_R always.
22782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22783         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22784         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22785         HAVE_TTYNAME_R.
22786         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22787
22788 2010-12-20  Bruno Haible  <bruno@clisp.org>
22789
22790         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22791         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22792         * doc/posix-functions/getlogin_r.texi: Likewise.
22793         * tests/test-getlogin.c: Include <errno.h>.
22794         (main): Avoid test failure on HP-UX 11.11.
22795         * tests/test-getlogin_r.c (main): Likewise.
22796
22797 2010-12-20  Bruno Haible  <bruno@clisp.org>
22798
22799         getlogin_r: Add missing declaration on HP-UX 11.
22800         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22801         declared also when it exists as a function.
22802         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22803
22804 2010-12-20  Bruno Haible  <bruno@clisp.org>
22805
22806         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22807         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22808         through wcrtomb.
22809
22810 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22811
22812         ftoastr: fix comment
22813         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22815
22816 2010-12-19  Bruno Haible  <bruno@clisp.org>
22817
22818         isnan: Ensure it is a macro.
22819         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22820         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22821         Solaris.
22822
22823 2010-12-19  Bruno Haible  <bruno@clisp.org>
22824
22825         ldexpl test: Fix link error on OSF/1 5.1.
22826         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22827
22828 2010-12-19  Bruno Haible  <bruno@clisp.org>
22829
22830         wctype: Make it work in C++ mode on OSF/1 5.1.
22831         * lib/wctype.in.h (iswblank): Declare but not define here.
22832         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22833         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22834         * modules/wctype (Files): Add lib/iswblank.c.
22835
22836 2010-12-19  Bruno Haible  <bruno@clisp.org>
22837
22838         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22839         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22840         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22841
22842 2010-12-19  Bruno Haible  <bruno@clisp.org>
22843
22844         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22845         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22846         _POSIX_PII_SOCKET.
22847         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22848         * doc/posix-functions/recvfrom.texi: Likewise.
22849         * doc/posix-functions/send.texi: Likewise.
22850         * doc/posix-functions/sendto.texi: Likewise.
22851
22852 2010-12-19  Bruno Haible  <bruno@clisp.org>
22853
22854         tcgetsid: Add missing declaration on OSF/1 5.1.
22855         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22856         HAVE_TCGETSID.
22857         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22858         Don't set HAVE_TCGETSID.
22859         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22860         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22861         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22862         HAVE_TCGETSID.
22863         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22864
22865 2010-12-19  Bruno Haible  <bruno@clisp.org>
22866
22867         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22868         * lib/stdio.in.h: During the include_next statement, let recursive
22869         includes of this file include only the system header file.
22870
22871 2010-12-19  Bruno Haible  <bruno@clisp.org>
22872
22873         iconv_open: Fix regression from 2010-12-04.
22874         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22875         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22876
22877 2010-12-19  Bruno Haible  <bruno@clisp.org>
22878
22879         stdbool test: Avoid a gcc warning.
22880         * tests/test-stdbool.c (main): Fail if e1 is false.
22881         Reported by Jim Meyering.
22882
22883 2010-12-19  Jim Meyering  <meyering@redhat.com>
22884
22885         setenv: restore to working order
22886         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22887         mistakenly removed.
22888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22889         HAVE_SETENV.
22890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22891         HAVE_SETENV.
22892
22893 2010-12-19  Bruno Haible  <bruno@clisp.org>
22894
22895         Document some different function declarations on OSF/1 5.1.
22896         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22897         * doc/posix-functions/inet_ntop.texi: Likewise.
22898         * doc/posix-functions/gethostname.texi: Likewise.
22899         * lib/unistd.in.h (gethostname): Update comment.
22900
22901 2010-12-19  Bruno Haible  <bruno@clisp.org>
22902
22903         doc: Mention vasprintf-posix module.
22904         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22905         the 'vasprintf-posix' module.
22906         * doc/glibc-functions/vasprintf.texi: Likewise.
22907
22908 2010-12-19  Bruno Haible  <bruno@clisp.org>
22909
22910         unsetenv: Add missing declaration on OSF/1 5.1.
22911         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22912         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22913         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22915         not HAVE_UNSETENV.
22916         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22917         HAVE_UNSETENV.
22918         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22919
22920 2010-12-19  Bruno Haible  <bruno@clisp.org>
22921
22922         setenv: Add missing declaration on OSF/1 5.1.
22923         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22924         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22925         declared. Don't set HAVE_SETENV.
22926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22927         not HAVE_SETENV.
22928         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22929         HAVE_SETENV.
22930         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22931
22932 2010-12-19  Bruno Haible  <bruno@clisp.org>
22933
22934         nl_langinfo tests: Avoid gcc warning.
22935         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22936
22937 2010-12-19  Bruno Haible  <bruno@clisp.org>
22938
22939         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22940         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22941         _GL_CXXALIAS_SYS.
22942
22943 2010-12-19  Bruno Haible  <bruno@clisp.org>
22944
22945         stdbool: Relax test.
22946         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22947         address to 'bool' work in static initializer, for compilers other than
22948         GCC.
22949
22950 2010-12-19  Bruno Haible  <bruno@clisp.org>
22951
22952         ftello: Add missing declaration on OSF/1 5.1.
22953         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22954         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22956         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22957         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22958
22959 2010-12-19  Bruno Haible  <bruno@clisp.org>
22960
22961         fseeko: Add missing declaration on OSF/1 5.1.
22962         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22963         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22965         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22966         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22967
22968 2010-12-19  Bruno Haible  <bruno@clisp.org>
22969
22970         fchdir: Add missing declaration on OSF/1 5.1.
22971         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22974         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22975         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22976
22977 2010-12-19  Bruno Haible  <bruno@clisp.org>
22978
22979         relocatable-prog-wrapper: Separate from relocatable-prog.
22980         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22981         uninstall-relocwrapper rule here.
22982         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22983         Reported by Ian Beckwith <ianb@erislabs.net>.
22984
22985 2010-12-19  Bruno Haible  <bruno@clisp.org>
22986
22987         unistr/u8-mbsnlen: Add missing dependency.
22988         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22989         Reported by Ian Beckwith <ianb@erislabs.net>.
22990
22991 2010-12-19  Bruno Haible  <bruno@clisp.org>
22992
22993         iconv: Make it possible again to use this module without 'iconv-h'.
22994         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22995         if it is not defined.
22996         Reported by Ian Beckwith <ianb@erislabs.net>.
22997
22998 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22999
23000         acl: port to Solaris 8 when copying from tmpfs to ufs
23001         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23002         error number.  Problem observed on Solaris 8 with latest
23003         coreutils, with "mv A B", where A is on a tmpfs file system and B
23004         is on a ufs file system.  This caused coreutils' mv/part-symlink
23005         test to fail.
23006
23007         tests: set fail=0 at start
23008         * tests/init.sh (setup_): Move fail=0 initialization here ...
23009         (mktempd_): ... from here, so that tests can rely on fail being
23010         set to 0 initially.  This fixes a problem in coreutils; see:
23011         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23012
23013 2010-12-18  Bruno Haible  <bruno@clisp.org>
23014
23015         memmem-simple: Stylistic changes.
23016         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23017         Fix preprocessor directive indentation.
23018
23019 2010-12-15  Pádraig Brady <P@draigBrady.com>
23020
23021         memmem, memmem-simple: reorganize and expand empty needle check
23022         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23023         functional checks to memmem-simple so that one has a fully functional
23024         memmem by using just this module.
23025         Restrict the performance only check to the memmem module.
23026         Also expand the empty needle check to ensure the correct
23027         pointer is returned, not just a non NULL pointer.
23028         * doc/glibc-functions/memmem.texi: Rearrange the portability
23029         documentation to correlate with the rearranged checks.
23030         Clarify exactly how the memmem and memmem-simple modules
23031         relate to each other.
23032
23033 2010-12-15  Pádraig Brady <P@draigBrady.com>
23034             Bruno Haible  <bruno@clisp.org>
23035
23036         Improve cross-compilation guesses for uClibc.
23037         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23038         that uClibc does not have the glibc bug.
23039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23040         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23041
23042 2010-12-14  Eric Blake  <eblake@redhat.com>
23043
23044         configmake: provide fallbacks for oldest supported autotools
23045         * m4/configmake.m4: New file.
23046         * modules/configmake (Files): Ship it.
23047         (configure.ac): Use it to guarantee fallbacks.
23048
23049 2010-12-13  Pádraig Brady <P@draigBrady.com>
23050
23051         read-file: Improve handling of large files
23052         * lib/read-file.c (fread_file): Minimize realloc()s
23053         for regular files, and better manage sizes around SIZE_MAX.
23054
23055 2010-12-13  Eric Blake  <eblake@redhat.com>
23056
23057         cloexec, fcntl: relax license
23058         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23059         consent from all contributors.
23060         * modules/fcntl (License): Likewise.
23061
23062 2010-12-10  Bruno Haible  <bruno@clisp.org>
23063
23064         Tests for module 'pipe-posix'.
23065         * modules/pipe-posix-tests: New file.
23066         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23067
23068 2010-12-10  Bruno Haible  <bruno@clisp.org>
23069
23070         pipe-posix: Make it work in C++ mode.
23071         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23072         (pipe): Use common idiom, not a macro definition.
23073         * lib/pipe.c: New file.
23074         * m4/pipe.m4: New file.
23075         * modules/pipe-posix (Description): Enhance.
23076         (Files): Add lib/pipe.c, m4/pipe.m4.
23077         (configure.ac): Invoke gl_FUNC_PIPE.
23078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23079         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23080         * tests/test-unistd-c++.cc: Check the signature of pipe.
23081
23082 2010-12-10  Bruno Haible  <bruno@clisp.org>
23083
23084         Rename module 'pipe' to 'spawn-pipe'.
23085         * modules/spawn-pipe: New file, renamed from modules/pipe.
23086         (Files, configure.ac, Makefile.am): Update.
23087         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23088         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23089         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23090         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23091         "spawn-pipe.h" instead of "pipe.h".
23092         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23093         to gl_SPAWN_PIPE.
23094         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23095         (Files, Makefile.am): Update.
23096         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23097         Update.
23098         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23099         Include "spawn-pipe.h" instead of "pipe.h".
23100         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23101         * lib/javacomp.c: Likewise.
23102         * lib/javaversion.c: Likewise.
23103         * lib/pipe-filter-gi.c: Likewise.
23104         * lib/pipe-filter-ii.c: Likewise.
23105         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23106         * modules/javacomp (Depends-on): Likewise.
23107         * modules/javaversion (Depends-on): Likewise.
23108         * modules/pipe-filter-gi (Depends-on): Likewise.
23109         * modules/pipe-filter-ii (Depends-on): Likewise.
23110         * MODULES.html.sh (Executing programs): Update.
23111         * NEWS: Mention the change.
23112
23113 2010-12-10  Eric Blake  <eblake@redhat.com>
23114
23115         pipe-posix: new module
23116         * modules/pipe-posix: New file.
23117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23118         (gl_UNISTD_H): Check for declaration.
23119         * modules/unistd (Makefile.am): Substitute it.
23120         * lib/unistd.in.h (pipe): Provide it for mingw.
23121         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23122         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23123
23124 2010-12-07  Bruno Haible  <bruno@clisp.org>
23125
23126         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23127         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23128         u8_strcmp_gnu.
23129         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23130
23131 2010-12-06  Bruno Haible  <bruno@clisp.org>
23132
23133         Update internal documentation.
23134         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23135
23136 2010-12-04  Bruno Haible  <bruno@clisp.org>
23137
23138         Put more information about failed tests into the test return codes.
23139         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23140         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23141         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23142         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23143         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23144         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23145         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23146         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23147         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23149         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23150         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23151         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23152         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23153         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23154         returns a bit mask.
23155         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23156         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23157         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23158         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23159         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23160         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23161         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23163         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23164         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23165         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23166         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23167         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23168         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23169         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23170         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23171         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23172         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23173         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23174         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23175         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23176         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23178         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23179         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23180         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23181         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23182         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23183         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23184         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23185         gl_PRINTF_PRECISION): Likewise.
23186         * m4/regex.m4 (gl_REGEX): Likewise.
23187         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23188         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23189         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23190         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23191         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23193         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23194         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23195         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23196         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23197         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23198         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23199         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23200         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23201         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23202         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23203         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23204         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23206         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23207         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23208         enumerated value.
23209         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23210
23211 2010-12-04  Bruno Haible  <bruno@clisp.org>
23212
23213         Update for Solaris 11 2010-11.
23214         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23215         Express, released in November 2010.
23216
23217 2010-12-04  Bruno Haible  <bruno@clisp.org>
23218
23219         nproc: Relax license.
23220         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23221         and Paul Eggert.
23222         Requested by Ludovic Courtès <ludo@gnu.org>.
23223
23224 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23225
23226         utimecmp: fine-grained src to nearby coarse-grained dest
23227
23228         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23229         and the source is on a file system with higher-resolution time
23230         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23231         not work, and the time stamps are close together, the algorithm to
23232         determine the exact resolution from the read-back mtime was buggy:
23233         it had a "!=" where it should have had an "==".  This bug has been
23234         in the code ever since it was introduced to gnulib.
23235         Problem reported by Dan Jacobson in
23236         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23237
23238 2010-11-30  Bruno Haible  <bruno@clisp.org>
23239
23240         strerror_r-posix: Fix autoconf test.
23241         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23242
23243 2010-11-28  Bruno Haible  <bruno@clisp.org>
23244             Paul Eggert  <eggert@cs.ucla.edu>
23245
23246         Tests for module 'getdomainname'.
23247         * modules/getdomainname-tests: New file.
23248         * tests/test-getdomainname.c: New file, based on
23249         tests/test-gethostname.c.
23250
23251 2010-11-28  Bruno Haible  <bruno@clisp.org>
23252             Paul Eggert  <eggert@cs.ucla.edu>
23253
23254         getdomainname: Use the system function when possible.
23255         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23256         (getdomainname): Replace if needed. Provide the declaration if it is
23257         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23258         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23259         (getdomainname): When the system has getdomainname, call the system
23260         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23261         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23262         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23263         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23264         the function if its second argument is of type 'int' or if it is found
23265         in libnsl.
23266         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23267         <sys/systeminfo.h> and sysinfo().
23268         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23270         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23271         HAVE_GETDOMAINNAME.
23272         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23273         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23274         * doc/glibc-functions/getdomainname.texi: Document the problems with
23275         the getdomainname declaration.
23276
23277 2010-11-28  Bruno Haible  <bruno@clisp.org>
23278
23279         sys_socket: Ensure ss_family field on AIX.
23280         * lib/sys_socket.in.h (ss_family): New macro definition.
23281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23282         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23283         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23284         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23285         * modules/sys_socket (Makefile.am): Substitute
23286         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23287         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23288
23289 2010-11-27  Bruno Haible  <bruno@clisp.org>
23290
23291         readline: Improve configure output.
23292         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23293         "checking for readline..." result understandable.
23294
23295 2010-11-27  Bruno Haible  <bruno@clisp.org>
23296
23297         *printf-posix: Detect a bug on Solaris 10/x86.
23298         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23299         for floating-point output.
23300         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23301         directive.
23302         * tests/test-snprintf-posix.h (test_function): Likewise.
23303         * tests/test-sprintf-posix.h (test_function): Likewise.
23304         * tests/test-vasprintf-posix.c (test_function): Likewise.
23305         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23306         * doc/posix-functions/printf.texi: Likewise.
23307         * doc/posix-functions/snprintf.texi: Likewise.
23308         * doc/posix-functions/sprintf.texi: Likewise.
23309         * doc/posix-functions/vfprintf.texi: Likewise.
23310         * doc/posix-functions/vprintf.texi: Likewise.
23311         * doc/posix-functions/vsnprintf.texi: Likewise.
23312         * doc/posix-functions/vsprintf.texi: Likewise.
23313         * doc/glibc-functions/obstack_printf.texi: Likewise.
23314         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23315
23316 2010-11-27  Bruno Haible  <bruno@clisp.org>
23317
23318         Fix link error when module libunistring-optional is in use.
23319         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23320         * modules/striconveha-tests (Makefile.am): Likewise.
23321
23322 2010-11-27  Bruno Haible  <bruno@clisp.org>
23323
23324         regex: Mention link dependencies.
23325         * modules/regex (Link): New section.
23326         * modules/rpmatch (Link): Likewise.
23327         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23328
23329 2010-11-27  Bruno Haible  <bruno@clisp.org>
23330
23331         ftoastr: Fix compilation error on Solaris.
23332         * lib/ftoastr.c: Include <config.h>.
23333
23334 2010-11-27  Bruno Haible  <bruno@clisp.org>
23335
23336         getloadavg: Update documentation.
23337         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23338
23339 2010-11-27  Bruno Haible  <bruno@clisp.org>
23340
23341         sys_socket: Fix test whether the functions are declared.
23342         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23343         not <sys/select.h>.
23344
23345 2010-11-27  Bruno Haible  <bruno@clisp.org>
23346
23347         getpass: Make sure to get system declaration on some platforms.
23348         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23349         gl_USE_SYSTEM_EXTENSIONS.
23350         * modules/getpass (Depends-on): Add extensions.
23351
23352 2010-11-26  Bruno Haible  <bruno@clisp.org>
23353
23354         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23355         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23356         'iconv' module is present.
23357         (ICONV_CONST): New macro.
23358         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23359         ICONV_CONST.
23360         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23361         set ICONV_CONST.
23362         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23363         here.
23364         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23365         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23366         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23367         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23368         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23369         present.
23370
23371 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23372
23373         ftoastr: comment fix
23374         * lib/ftoastr.c: "little" -> "little or no" in comment
23375
23376 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23377
23378         stdint: port to GCC 4.3 + OSX + Octave
23379         On this platform, stdint.h is buggy and defines int64_t to long
23380         long int.  The replacement defined it to long int, causing
23381         problems with C++ style name mangling.  Instead, trust the system
23382         definition if INT64_MAX is defined, and likewise for the unsigned
23383         variant.   Problem reported by Jarno Rajahalme in
23384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23385         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23386         and don't mess with int64_t and INT64_MAX in this case.
23387         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23388
23389 2010-11-24  Bruno Haible  <bruno@clisp.org>
23390
23391         doc: Corrections regarding MacOS X 10.4 and 10.5.
23392         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23393         MacOS X.
23394         Reported by Simon Josefsson.
23395
23396 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23397
23398         Uninstall ".bin" files installed by relocwrapper.
23399         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23400         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23401         unless it is already there.
23402
23403 2010-11-21  Bruno Haible  <bruno@clisp.org>
23404
23405         Update for NetBSD 5.0.
23406         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23407         NetBSD; the test fails on NetBSD 5.0.
23408         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23409         about NetBSD.
23410
23411 2010-11-21  Bruno Haible  <bruno@clisp.org>
23412
23413         Update for HP-UX 11.23 and HP-UX 11.31.
23414         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23415         HP-UX.
23416
23417 2010-11-21  Bruno Haible  <bruno@clisp.org>
23418
23419         Update for MacOS X 10.5.
23420         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23421         MacOS X; the test fails on MacOS X 10.5.8.
23422         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23423         about MacOS X.
23424
23425 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23426
23427         bootstrap: add bootstrap_sync option.
23428         See discussion at
23429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23431         * build-aux/bootstrap: Accept --bootstrap-sync to update
23432         bootstrap if it is not identical to the local gnulib's
23433         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23434         enable this by default.  Accept --no-bootstrap-sync to disable
23435         it.
23436
23437 2010-11-20  Bruno Haible  <bruno@clisp.org>
23438
23439         Ensure that <features.h> is included before __GLIBC__ is tested.
23440         * lib/printf-parse.h: Include <features.h>.
23441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23442         Reported by Mike Frysinger <vapier@gentoo.org>.
23443
23444         Ensure that <features.h> is included before __GLIBC__ is tested.
23445         * lib/wchar.in.h: Include <features.h>.
23446         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23447         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23448         Reported by Mike Frysinger <vapier@gentoo.org>.
23449
23450         Ensure that <features.h> is included before __GLIBC__ is tested.
23451         * lib/arpa_inet.in.h: Include <features.h>.
23452         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23453         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23454         Reported by Mike Frysinger <vapier@gentoo.org>.
23455
23456         Ensure that <features.h> is included before __GLIBC__ is tested.
23457         * build-aux/link-warning.h: Include <features.h>.
23458         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23459         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23460         Reported by Mike Frysinger <vapier@gentoo.org>.
23461
23462         Ensure that <features.h> is included before __GLIBC__ is tested.
23463         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23464         Reported by Mike Frysinger <vapier@gentoo.org>.
23465
23466 2010-11-20  Bruno Haible  <bruno@clisp.org>
23467
23468         memmem: Fix autoconf test.
23469         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23470
23471 2010-11-20  Bruno Haible  <bruno@clisp.org>
23472
23473         Port to uClibc.
23474         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23475         * lib/fcntl.in.h: Likewise.
23476         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23477         * lib/mbrtowc.c (mbrtowc): Likewise.
23478         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23479         * lib/strerror_r.c: Likewise.
23480         * lib/unistr/u8-strnlen.c: Likewise.
23481         * lib/vasnprintf.c (decimal_point_char): Likewise.
23482         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23483         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23484         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23485         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23486         * tests/test-sigaction.c (handler, main): Likewise.
23487         * lib/freading.h: Treat uClibc like a non-glibc platform.
23488         * lib/freading.c: Likewise.
23489         * lib/gettext.h: Likewise.
23490         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23491         Likewise.
23492         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23493         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23494         * lib/propername.c (proper_name_utf8): Likewise.
23495         * lib/spawn.in.h: Likewise.
23496         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23497         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23498         mem_cd_iconveh_internal): Likewise.
23499         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23500         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23501         strstr, strcasestr): Likewise.
23502         * lib/unicodeio.c (unicode_to_mb): Likewise.
23503         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23504         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23505         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23506         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23507         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23508         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23509         * lib/unistr/u8-stpncpy.c: Likewise.
23510         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23511         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23512         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23513         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23514         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23515         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23516         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23519         Likewise.
23520         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23521         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23522         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23523         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23524         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23525         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23526         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23527         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23528         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23529         * tests/test-striconveha.c (main): Likewise.
23530         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23531         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23532         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23533         * doc/posix-functions/getline.texi: Likewise.
23534         Reported by Mike Frysinger <vapier@gentoo.org>.
23535
23536 2010-11-20  Bruno Haible  <bruno@clisp.org>
23537
23538         nproc: Fix condition.
23539         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23540         HAVE_PTHREAD_AFFINITY_NP.
23541
23542 2010-11-20  Bruno Haible  <bruno@clisp.org>
23543
23544         Fix a comment.
23545         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23546
23547 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23548
23549         ftoastr: don't assume snprintf
23550         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23551         Implement a subset of snprintf here, by using sprintf safely.
23552         * modules/ftoastr (Depends-on): Remove snprintf.
23553
23554 2010-11-19  Jim Meyering  <meyering@redhat.com>
23555
23556         test-rename.h: fix compilation failure
23557         * tests/test-rename.h (test_rename): Add omitted "}".
23558
23559 2010-11-17  Jim Meyering  <meyering@redhat.com>
23560
23561         maint.mk: add a URL discussing the no-@acronym policy
23562         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23563
23564 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23565
23566         ftoastr: depend on snprintf, improve comments
23567         * lib/ftoastr.c: Also mention Loitsch's draft.
23568         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23569         needed in the current implementation, but it might simplify
23570         speeding up the code later.
23571         * modules/ftoastr: Depend on snprintf; this improves portability.
23572         Suggested by Bruno Haible in the same email.
23573
23574         ftoastr: port to hosts lacking strtof and strtold
23575         Problem reported by Bruno Haible in
23576         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23577         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23578         environment and strtold (and presumably strtof) are not available.
23579         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23580         (configure.ac): Require gl_C99_STRTOLD.
23581
23582 2010-11-18  Bruno Haible  <bruno@clisp.org>
23583
23584         c-strtold: Avoid link error on AIX 7.
23585         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23586         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23587         (gl_C_STRTOLD): Test whether strtold_l exists.
23588         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23589
23590 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23591
23592         intprops: new macro INT_BITS_STRLEN_BOUND
23593         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23594         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23595         not exposed.  Also, it uses a slightly tighter bound than before;
23596         though this makes no practical difference, we might as well be as
23597         tight as we easily can.
23598
23599         ftoastr: new module, for lossless conversion of floats to short strings
23600         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23601         * modules/ftoastr: New files.
23602
23603 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23604
23605         bootstrap: port to Solaris sed
23606         * build-aux/bootstrap (get_version): Port to Solaris sed.
23607         See Ralf Wildenhues's note in
23608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23609
23610 2010-11-14  Jim Meyering  <meyering@redhat.com>
23611
23612         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23613         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23614         and move definition closer to sole use.
23615
23616 2010-11-13  Jim Meyering  <meyering@redhat.com>
23617
23618         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23619         Now we require at least autoconf-2.59, which means the work-around
23620         is no longer needed.
23621         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23622         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23623         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23624         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23625         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23626
23627 2010-11-13  Bruno Haible  <bruno@clisp.org>
23628
23629         rename, renameat: Avoid test failures at NFS mounted locations.
23630         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23631         functions.
23632         (test_rename): Use assert_nonexistent.
23633         * tests/test-rename.c: Include <dirent.h>.
23634         * tests/test-renameat.c: Likewise.
23635         Reported by Gary V. Vaughan <gary@gnu.org>.
23636
23637         rename, renameat: Document Linux bug with NFS
23638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23639         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23640         * doc/posix-functions/renameat.texi: Likewise.
23641         Suggested by Eric Blake.
23642
23643 2010-11-13  Bruno Haible  <bruno@clisp.org>
23644
23645         rename test: Add comments.
23646         * tests/test-rename.h (test_rename): Add structure and comments.
23647
23648 2010-11-13  Eric Blake  <eblake@redhat.com>
23649
23650         maintainer-makefile: cover a few more files
23651         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23652         scripts generated within C files, for libvirt.
23653
23654 2010-11-13  Bruno Haible  <bruno@clisp.org>
23655
23656         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23657         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23658         character, return the number of bytes that belong together, not always
23659         1.
23660         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23661         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23662         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23663         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23664         number of bytes of an invalid character.
23665         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23666         (main): Invoke it.
23667         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23668         results.
23669         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23670         malformed byte sequences.
23671         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23672         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23673         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23674         Reported by Ben Pfaff and Paolo Bonzini.
23675
23676 2010-11-13  Bruno Haible  <bruno@clisp.org>
23677
23678         openat: Work around glibc bug with fchownat() and empty file names.
23679         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23680         (gl_FUNC_FCHOWNAT): Invoke it.
23681         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23682         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23683         Reported by Gary V. Vaughan <gary@gnu.org>.
23684
23685 2010-11-13  Bruno Haible  <bruno@clisp.org>
23686
23687         openat: Ensure autoconf macro ordering.
23688         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23689         gl_USE_SYSTEM_EXTENSIONS.
23690         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23691
23692 2010-11-13  Bruno Haible  <bruno@clisp.org>
23693
23694         Update comments.
23695         * lib/unistr/u8-check.c: Update file name in comments.
23696         * lib/unistr/u8-mblen.c: Likewise.
23697         * lib/unistr/u8-prev.c: Likewise.
23698         * lib/unistr/u8-strmblen.c: Likewise.
23699         * lib/unistr/u8-strmbtouc.c: Likewise.
23700
23701 2010-11-13  Jim Meyering  <meyering@redhat.com>
23702
23703         tests: avoid test failure on Solaris 10 due to lack of PATH export
23704         * tests/test-update-copyright.sh: Don't forget to export PATH.
23705
23706         init.sh: ensure that IFS is defined, just in case...
23707         * tests/init.sh (setup_): Ensure that IFS is defined,
23708         so that saving and restoring it works as expected.  This
23709         appears to be useful at least for an old version of dash
23710         from a long time ago (RH 6).  See here for details:
23711         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23712
23713         maint.mk: tighten "test a == b" check
23714         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23715         test to files that contain something like #!/bin/sh.
23716         Without this, coreutils would get two false positives in
23717         the comments of C source files.
23718
23719 2010-11-12  Eric Blake  <eblake@redhat.com>
23720
23721         bootstrap: fix typo in previous attempt
23722         * build-aux/bootstrap (buildreq): Correct the grouping.
23723         Reported by Paul Eggert.
23724
23725         maintainer-makefile: prohibit test x == x
23726         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23727         Based on a report by Matthias Bolte.
23728
23729         bootstrap: allow FreeBSD gzip
23730         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23731         which has no '.' and goes to stderr.
23732         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23733         Reported by Matthias Bolte.
23734
23735         maintainer-makefile: check for i18n setup
23736         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23737         will likely work.
23738
23739 2010-11-12  Bruno Haible  <bruno@clisp.org>
23740
23741         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23742         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23743         * lib/nanosleep.c (nanosleep): Likewise.
23744
23745 2010-11-11  Bruno Haible  <bruno@clisp.org>
23746
23747         fcntl-h: Fix for use of C++ on glibc systems.
23748         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23749         also on glibc systems in C++ mode.
23750         Reported by Gary V. Vaughan <gary@gnu.org>.
23751
23752 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23753
23754         mknod: avoid false failure with dash
23755         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23756
23757 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23758
23759         unlink: Fix "is it should" typo in diagnostic.
23760         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23761         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23762
23763 2010-11-11  Bruno Haible  <bruno@clisp.org>
23764
23765         Tests for module 'strerror_r-posix'.
23766         * modules/strerror_r-posix-tests: New file.
23767         * tests/test-strerror_r.c: New file.
23768         * tests/test-string-c++.cc: Check the signature of strerror_r.
23769
23770         New module 'strerror_r-posix'.
23771         * lib/string.in.h (strerror_r): New declaration.
23772         * lib/strerror_r.c: New file.
23773         * m4/strerror_r.m4: New file.
23774         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23775         of strerror_r.
23776         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23777         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23778         * modules/strerror_r-posix: New file.
23779         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23780         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23781         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23782         portability problems.
23783
23784 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23785
23786         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23787         line is also considered for output. Quoted function name in shell
23788         command, so temporary files for functions like MyClass::operator()
23789         are removed correctly without errors.
23790
23791 2010-11-09  Bruno Haible  <bruno@clisp.org>
23792
23793         * doc/posix-functions/strerror.texi: List more failing platforms.
23794
23795         * doc/posix-functions/strerror.texi: Add a comment.
23796
23797 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23798
23799         fdopendir: fix bug on MacOS X when low on file descriptors
23800
23801         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23802         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23803         All callers changed.
23804         (fdopendir): Invoke save_cwd at the top level, not after using
23805         multiple dup() calls to use up file descriptors.  Then retry
23806         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23807         less than the maximum number of open file descriptors, because
23808         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23809         on Mac OS X 10.6.4 for tar 1.24
23810         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23811         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23812         and for tar 1.25
23813         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23814
23815 2010-11-07  Bruno Haible  <bruno@clisp.org>
23816
23817         vasnprintf: Support I flag on glibc systems.
23818         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23819         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23820         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23821         snprintf function.
23822         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23823         glibc systems.
23824         * tests/test-vasnprintf-posix3.c: New file.
23825         * modules/vasnprintf-posix-tests (Files): Add it.
23826         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23827
23828 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23829
23830         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23831         * MODULES.html.sh: For compiler warnings, use name
23832         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23833
23834 2010-11-05  Eric Blake  <eblake@redhat.com>
23835
23836         ceil, floor: avoid spurious failure with icc
23837         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23838         [denormals-as-zero] when optimizing without -mieee-fp option.
23839         * tests/test-floorf2.c (floorf_reference): Likewise.
23840         * tests/test-ceilf1.c (dummy): New function.
23841         (main): Use it to outsmart icc's optimization.
23842         * tests/test-floorf1.c (dummy, main): Likewise.
23843
23844         tests: require working signbit
23845         * modules/ceilf-tests (Depends-on): Add signbit.
23846         * modules/ceill-tests (Depends-on): Likewise.
23847         * modules/floorf-tests (Depends-on): Likewise.
23848         * modules/floorl-tests (Depends-on): Likewise.
23849         * modules/round-tests (Depends-on): Likewise.
23850         * modules/roundf-tests (Depends-on): Likewise.
23851         * modules/roundl-tests (Depends-on): Likewise.
23852         * modules/trunc-tests (Depends-on): Likewise.
23853         * modules/truncf-tests (Depends-on): Likewise.
23854         * modules/truncl-tests (Depends-on): Likewise.
23855
23856         strtod: work around icc bug
23857         * lib/strtod.c (minus_zero): Define to working value.
23858         (strtod): Use it to avoid icc bug.
23859
23860         copysign: enhance tests
23861         * modules/copysign-tests (Files): Add minus-zero.h.
23862         * tests/test-copysign.c (main): Also test zeros.
23863
23864 2010-11-04  Eric Blake  <eblake@redhat.com>
23865
23866         ceil, floor, round, trunc: enhance tests of -0
23867         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23868         * tests/test-ceill.c (main): Likewise.
23869         * tests/test-floorf1.c (main): Likewise.
23870         * tests/test-floorl.c (main): Likewise.
23871         * tests/test-round1.c (main): Likewise.
23872         * tests/test-roundf1.c (main): Likewise.
23873         * tests/test-roundl.c (main): Likewise.
23874         * tests/test-trunc1.c (main): Likewise.
23875         * tests/test-truncf1.c (main): Likewise.
23876         * tests/test-truncl.c (main): Likewise.
23877
23878 2010-11-04  Eric Blake  <eblake@redhat.com>
23879
23880         frexp, tests: work around ICC bug with -zero
23881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23882         works with more compilers.
23883         * tests/minus-zero.h: New file.
23884         * modules/ceilf-tests (Files): Include it.
23885         * modules/ceill-tests (Files): Likewise.
23886         * modules/floorf-tests (Files): Likewise.
23887         * modules/floorl-tests (Files): Likewise.
23888         * modules/frexp-nolibm-tests (Files): Likewise.
23889         * modules/frexp-tests (Files): Likewise.
23890         * modules/frexpl-nolibm-tests (Files): Likewise.
23891         * modules/frexpl-tests (Files): Likewise.
23892         * modules/isnan-tests (Files): Likewise.
23893         * modules/isnand-nolibm-tests (Files): Likewise.
23894         * modules/isnand-tests (Files): Likewise.
23895         * modules/isnanf-nolibm-tests (Files): Likewise.
23896         * modules/isnanf-tests (Files): Likewise.
23897         * modules/isnanl-nolibm-tests (Files): Likewise.
23898         * modules/isnanl-tests (Files): Likewise.
23899         * modules/round-tests (Files): Likewise.
23900         * modules/roundf-tests (Files): Likewise.
23901         * modules/roundl-tests (Files): Likewise.
23902         * modules/ldexpl-tests (Files): Likewise.
23903         * modules/signbit-tests (Files): Likewise.
23904         * modules/snprintf-posix-tests (Files): Likewise.
23905         * modules/sprintf-posix-tests (Files): Likewise.
23906         * modules/strtod-tests (Files): Likewise.
23907         * modules/trunc-tests (Files): Likewise.
23908         * modules/truncf-tests (Files): Likewise.
23909         * modules/truncl-tests (Files): Likewise.
23910         * modules/vsnprintf-posix-tests (Files): Likewise.
23911         * modules/vsprintf-posix-tests (Files): Likewise.
23912         * modules/vasnprintf-posix-tests (Files): Likewise.
23913         * modules/vasprintf-posix-tests (Files): Likewise.
23914         * tests/test-ceilf1.c (main): Use it.
23915         * tests/test-ceill.c (main): Likewise.
23916         * tests/test-floorf1.c (main): Likewise.
23917         * tests/test-floorl.c (main): Likewise.
23918         * tests/test-frexp.c (main): Likewise.
23919         * tests/test-frexpl.c (main): Likewise.
23920         * tests/test-isnan.c (main): Likewise.
23921         * tests/test-isnand.h (main): Likewise.
23922         * tests/test-isnanf.h (main): Likewise.
23923         * tests/test-isnanl.h (main): Likewise.
23924         * tests/test-ldexpl.c (main): Likewise.
23925         * tests/test-round.c (main): Likewise.
23926         * tests/test-roundf.c (main): Likewise.
23927         * tests/test-roundl.c (main): Likewise.
23928         * tests/test-signbit.c (test_signbitf, test_signbitd)
23929         (test_signbitl): Likewise.
23930         * tests/test-snprintf-posix.h (test_function): Likewise.
23931         * tests/test-sprintf-posix.h (test_function): Likewise.
23932         * tests/test-strtod.c (main): Likewise.
23933         * tests/test-trunc1.c (main): Likewise.
23934         * tests/test-truncf1.c (main): Likewise.
23935         * tests/test-truncl.c (main): Likewise.
23936
23937         isnanl: work around icc bug
23938         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23939
23940 2010-11-03  Eric Blake  <eblake@redhat.com>
23941
23942         tests: fix compiler warnings
23943         * tests/test-getopt.h (test_getopt): Fix condition.
23944         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23945         * tests/test-pipe2.c (main): Likewise.
23946         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23947
23948         utimens: fix broken m4 test
23949         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23950
23951 2010-10-28  Bruno Haible  <bruno@clisp.org>
23952
23953         posix_spawn*, getdtablesize: Relax license.
23954         * modules/posix_spawn (License): Change to LGPLv2+.
23955         * modules/posix_spawnp (License): Likewise.
23956         * modules/posix_spawn-internal (License): Likewise.
23957         * modules/posix_spawnattr_init (License): Likewise.
23958         * modules/posix_spawnattr_getflags (License): Likewise.
23959         * modules/posix_spawnattr_setflags (License): Likewise.
23960         * modules/posix_spawnattr_getpgroup (License): Likewise.
23961         * modules/posix_spawnattr_setpgroup (License): Likewise.
23962         * modules/posix_spawnattr_getschedparam (License): Likewise.
23963         * modules/posix_spawnattr_setschedparam (License): Likewise.
23964         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23965         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23966         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23967         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23968         * modules/posix_spawnattr_getsigmask (License): Likewise.
23969         * modules/posix_spawnattr_setsigmask (License): Likewise.
23970         * modules/posix_spawnattr_destroy (License): Likewise.
23971         * modules/posix_spawn_file_actions_init (License): Likewise.
23972         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23973         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23974         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23975         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23976         * modules/getdtablesize (License): Likewise.
23977         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23978
23979 2010-10-26  Bruno Haible  <bruno@clisp.org>
23980
23981         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23982         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23983         Cygwin and mingw.
23984         Suggested by Eric Blake.
23985
23986 2010-10-26  Bruno Haible  <bruno@clisp.org>
23987
23988         stdio: Work around compilation error due to renameat() on Solaris 10.
23989         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23990         * lib/renameat.c: Don't include <unistd.h> here.
23991         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23992         Reported by Paul Eggert and Eric Blake.
23993
23994 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23995
23996         renameat: port to Solaris 10, which declares renameat in unistd.h
23997
23998         * lib/renameat.c: Include unistd.h before stdio.h, because
23999         Solaris 10 declares renameat in unistd.h.  Problem encountered
24000         when building GNU tar 1.24 on Solaris 10.
24001
24002 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24003
24004         fdopendir: fix C89 compilation
24005         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24006         compilers.
24007
24008 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24009
24010         inttostr: simplify by removing unnecessary redundancy
24011         * lib/anytostr.c: Don't include verify.h.
24012         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24013         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24014         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24015         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24016         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24017         Likewise.
24018         * modules/inttostr (Depends-on): Remove 'verify'.
24019
24020 2010-10-23  Bruno Haible  <bruno@clisp.org>
24021
24022         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24023         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24024         Reported by Eric Blake.
24025
24026 2010-10-23  Bruno Haible  <bruno@clisp.org>
24027
24028         Tests: Fix LOCALE_JA on MirBSD 10.
24029         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24030         to an UTF-8 locale.
24031         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24032         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24033         Reported by Eric Blake.
24034
24035 2010-10-21  Bruno Haible  <bruno@clisp.org>
24036
24037         nl_langinfo test: Avoid test failure on NetBSD 5.
24038         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24039         Reported by Eric Blake.
24040
24041 2010-10-21  Eric Blake  <eblake@redhat.com>
24042
24043         c-stack: work around libsigsegv 2.8 bug
24044         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24045         overflow on at least PowerPC64.
24046
24047 2010-10-17  Bruno Haible  <bruno@clisp.org>
24048
24049         userspec: Drop redundant file.
24050         * modules/userspec (Files): Remove lib/inttostr.h.
24051
24052 2010-10-17  Bruno Haible  <bruno@clisp.org>
24053
24054         nl_langinfo tests: Silence some warnings.
24055         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24056         Reported by Jim Meyering.
24057
24058 2010-10-17  Bruno Haible  <bruno@clisp.org>
24059
24060         Make use of GCC's attribute __alloc_size__.
24061         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24062         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24063         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24064         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24065         __alloc_size__.
24066         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24067         Suggested by Jim Meyering.
24068
24069 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24070
24071         bootstrap: anchor .gitignore entries.
24072         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24073         with...
24074         (insert_vc_ignore): ... this new function, which prepends `/' to
24075         all .gitignore entries before passing them to
24076         insert_sorted_if_absent.
24077
24078 2010-10-16  Bruno Haible  <bruno@clisp.org>
24079
24080         nextafter: Fix configure check.
24081         * modules/nextafter (configure.ac): Correct expected prototype.
24082
24083 2010-10-16  Bruno Haible  <bruno@clisp.org>
24084
24085         termios: Update documentation.
24086         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24087
24088 2010-10-16  Bruno Haible  <bruno@clisp.org>
24089
24090         tests: Make them compile with TinyCC.
24091         * tests/test-strstr.c (main): Remove parentheses around array
24092         initializer.
24093
24094 2010-10-15  Eric Blake  <eblake@redhat.com>
24095
24096         ignore-value: make header idempotent
24097         * lib/ignore-value.h: Add double-inclusion guards.
24098         Reported by Stefan Berger.
24099
24100 2010-10-15  Jim Meyering  <meyering@redhat.com>
24101
24102         GNUmakefile: handle "stable" target, not "major"
24103         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24104         lists in maint.mk and announce-gen.  Without this, "make stable"
24105         would fail to ensure that $(VERSION) is up to date.
24106
24107 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24108
24109         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24110         & co.
24111
24112 2010-10-14  Bruno Haible  <bruno@clisp.org>
24113
24114         vasnprintf: Don't set errno to 0.
24115         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24116         block that sets it to 0.
24117         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24118
24119 2010-10-14  Bruno Haible  <bruno@clisp.org>
24120
24121         socketlib: Fix.
24122         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24123         gl_PREREQ_SYS_H_WINSOCK2.
24124         Reported by Ian Beckwith <ianb@erislabs.net>.
24125
24126 2010-10-13  Jim Meyering  <meyering@redhat.com>
24127
24128         test-select-stdin.c: avoid warn_unused_result warnings
24129         * tests/test-select-stdin.c: Include "macros.h".
24130         ASSERT that read and fflush succeed.
24131
24132 2010-10-13  Jim Meyering  <meyering@redhat.com>
24133
24134         git-version-gen: do require git-VC'd files in cwd
24135         * build-aux/git-version-gen: Reject a git version string
24136         if there are no commits associated with the current directory.
24137         This avoids an unlikely false-positive (unrelated dir whose parent
24138         repository also contains a tag matching v*), as pointed out
24139         by Giuseppe Scrivano in
24140         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24141
24142 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24143
24144         argv-iter: omit nonconforming declaration
24145         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24146         enum arg_iter_err declaration, which doesn't conform to C99.
24147         Solaris 10 cc warns about this.
24148
24149 2010-10-13  Eric Blake  <eblake@redhat.com>
24150
24151         termios: fix compilation on mingw
24152         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24153         (gl_TERMIOS_H): Adjust it on mingw.
24154         * modules/termios (Makefile.am): Substitute new key.
24155         * lib/termios.in.h (includes): Make include_next conditional.
24156         * doc/posix-headers/termios.texi (termios.h): Update
24157         documentation.
24158         Reported by Daniel P. Berrange.
24159
24160 2010-10-13  Jim Meyering  <meyering@redhat.com>
24161
24162         git-version-gen: don't require that .git/ be in the current dir
24163         * build-aux/git-version-gen: Adjust this script so that it works
24164         when run from any working directory beneath the top-level .git/-
24165         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24166         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24167
24168         test-select: avoid warn_unused_result warnings
24169         * tests/test-select.c: Include "macros.h".
24170         ASSERT that each call to read, write, and pipe succeeds.
24171         While not technically required, also check each "close".
24172         * modules/select-tests (Files): Add tests/macros.h.
24173
24174         test-symlinkat: remove declaration of unused local
24175         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24176
24177         test-inttostr: avoid shadowing warnings
24178         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24179         and use malloc rather than the stack for the same reason as
24180         mentioned in the comment justifying the other allocation.
24181
24182 2010-10-11  Bruno Haible  <bruno@clisp.org>
24183
24184         stdlib: Allow multiple gnulib generated replacements to coexist.
24185         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24186         Reported by Sam Steingold <sds@gnu.org>.
24187
24188 2010-10-11  Jim Meyering  <meyering@redhat.com>
24189
24190         fix a documentation typo
24191         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24192
24193 2010-10-11  Eric Blake  <eblake@redhat.com>
24194
24195         futimens: work around Solaris 11 bug
24196         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24197         * tests/test-futimens.h (test_futimens): Enhance, rather than
24198         weaken test.
24199         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24200
24201 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24202
24203         Indentation.
24204         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24205         higher-level operators more to the left.
24206
24207 2010-10-11  Jim Meyering  <meyering@redhat.com>
24208
24209         test-futimens: avoid unwarranted test failure on Solaris 5.11
24210         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24211         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24212         because it tries to dereference the NULL name argument.
24213
24214 2010-10-11  Bruno Haible  <bruno@clisp.org>
24215
24216         Indentation.
24217         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24218         indentation.
24219
24220 2010-10-11  Jim Meyering  <meyering@redhat.com>
24221
24222         spawn.in.h: make indentation consistent with parentheses
24223         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24224         Make indentation consistent with parentheses.
24225
24226 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24227
24228         Fix mismatched parens in previous commit
24229         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24230         parens.
24231
24232 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24233
24234         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24235
24236         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24237         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24238         * lib/malloca.c: Include "verify.h".
24239         (verify1): Remove, replacing with a verify call.
24240         * lib/relocwrapper.c (verify1): Likewise.
24241         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24242         Likewise.
24243         * modules/malloca (Depends-on): Add 'verify'.
24244         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24245         * modules/vasnprintf (Depends-on): Add 'verify'.
24246         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24247         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24248         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24249         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24250         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24251         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24252         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24253
24254         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24255
24256         Formerly the style was sometimes 2*X - 1, because the C standard
24257         was wrongly thought to disallow ?: in integral constant expressions.
24258         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24259         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24260         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24261         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24262         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24263         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24264         verify that time_t cannot be floating.
24265
24266 2010-10-08  Eric Blake  <eblake@redhat.com>
24267
24268         time: enforce recent POSIX ruling that time_t is integral
24269         * lib/time.in.h (__time_t_must_be_integral): Detect any
24270         problematic systems, allowing the rest of gnulib to assume POSIX.
24271
24272 2010-10-08  Jim Meyering  <meyering@redhat.com>
24273
24274         fdopendir: fix a bug on systems lacking openat and /proc support
24275         OpenBSD 4.7 is one such system.  The most noticeable effect was
24276         failure of any application making nontrivial use of fts: rm, du,
24277         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24278           ./rm: traversal failed: `a': Bad file descriptor
24279         Debugging that, you see that even though FD 6 was closed just
24280         prior to the opendir call in fd_clone_opendir, its resulting
24281         dir->dd_fd was 8, rather than the expected value of 6:
24282
24283         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24284         93                close (fd);
24285         (gdb) n
24286         94                dir = fd_clone_opendir (dupfd);
24287         (gdb) n
24288         95                saved_errno = errno;
24289         (gdb) p dir->dd_fd
24290         $11 = 8
24291
24292         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24293         The problem is that on OpenBSD, fd_clone_opendir has to resort
24294         to using the old-style save/restore CWD mechanism, due to its
24295         lack of openat/proc support, and *that* would steal the FD (6)
24296         that opendir was supposed to use.
24297
24298         The fix is to squirrel away the desired FD so that save_cwd uses a
24299         different one, and then free the dest FD right before calling opendir.
24300         That guarantees opendir will use the required file descriptor.
24301
24302         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24303
24304 2010-10-08  Bruno Haible  <bruno@clisp.org>
24305
24306         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24307         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24308
24309 2010-10-08  Bruno Haible  <bruno@clisp.org>
24310
24311         nanosleep: Make replacement POSIX compliant.
24312         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24313         is out of range.
24314         Reported by Jim Meyering.
24315
24316 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24317
24318         bootstrap: add hook for altering gnulib.mk, for Bison
24319         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24320         the Bison bootstrapping process can rewrite file names and variables
24321         in this file before later parts of 'bootstrap' use the file.
24322         Bison wants to include lib/gnulib.mk from the top-level makefile,
24323         so it needs the file names in this file to be relative to the top
24324         level, not relative to lib; plus it needs variable names to be
24325         rewritten.
24326         (slurp): Use the new function.
24327
24328         bootstrap: reformat for readability
24329         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24330
24331 2010-10-08  Eric Blake  <eblake@redhat.com>
24332
24333         docs: update cygwin progress
24334         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24335         1.7.7.
24336         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24337         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24338         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24339         * doc/posix-functions/carg.texi (carg): Likewise.
24340         * doc/posix-functions/cargf.texi (cargf): Likewise.
24341         * doc/posix-functions/casin.texi (casin): Likewise.
24342         * doc/posix-functions/casinf.texi (casinf): Likewise.
24343         * doc/posix-functions/casinh.texi (casinh): Likewise.
24344         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24345         * doc/posix-functions/catan.texi (catan): Likewise.
24346         * doc/posix-functions/catanf.texi (catanf): Likewise.
24347         * doc/posix-functions/catanh.texi (catanh): Likewise.
24348         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24349         * doc/posix-functions/ccos.texi (ccos): Likewise.
24350         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24351         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24352         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24353         * doc/posix-functions/cexp.texi (cexp): Likewise.
24354         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24355         * doc/posix-functions/cimag.texi (cimag): Likewise.
24356         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24357         * doc/posix-functions/clog.texi (clog): Likewise.
24358         * doc/posix-functions/clogf.texi (clogf): Likewise.
24359         * doc/posix-functions/conj.texi (conj): Likewise.
24360         * doc/posix-functions/conjf.texi (conjf): Likewise.
24361         * doc/posix-functions/cpow.texi (cpow): Likewise.
24362         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24363         * doc/posix-functions/cproj.texi (cproj): Likewise.
24364         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24365         * doc/posix-functions/creal.texi (creal): Likewise.
24366         * doc/posix-functions/crealf.texi (crealf): Likewise.
24367         * doc/posix-functions/csin.texi (csin): Likewise.
24368         * doc/posix-functions/csinf.texi (csinf): Likewise.
24369         * doc/posix-functions/csinh.texi (csinh): Likewise.
24370         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24371         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24372         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24373         * doc/posix-functions/ctan.texi (ctan): Likewise.
24374         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24375         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24376         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24377         * doc/posix-headers/complex.texi (complex.h): Likewise.
24378
24379 2010-10-07  Jim Meyering  <meyering@redhat.com>
24380
24381         parse-datetime: avoid compilation failure on OpenBSD 4.7
24382         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24383         This works around a compilation failure on OpenBSD 4.7:
24384         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24385
24386 2010-10-07  Eric Blake  <eblake@redhat.com>
24387
24388         docs: update cygwin progress
24389         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24390         1.7.6.
24391         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24392         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24393         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24394         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24395         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24396         Likewise.
24397         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24398         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24399         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24400         Likewise.
24401         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24402         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24403         Likewise.
24404         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24405         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24406         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24407         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24408         Likewise.
24409         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24410         Likewise.
24411         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24412
24413         docs: update parse-datetime history
24414         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24415         documentation of this function's history and alternatives.
24416
24417         cygwin: use more robust version check
24418         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24419         exclude an eventual cygwin 1.9.1.
24420         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24422         (gl_FUNC_STRCASESTR): Likewise.
24423         Reported by Bruno Haible.
24424
24425 2010-10-06  Bruno Haible  <bruno@clisp.org>
24426
24427         string, sys_select: Avoid #including large headers unless necessary.
24428         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24429         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24430         OSF/1, BeOS, Haiku.
24431         Reported by Jim Meyering.
24432
24433 2010-10-05  Eric Blake  <eblake@redhat.com>
24434
24435         memmem, strstr, strcasestr: fix bug with long periodic needle
24436         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24437         periodic needle having false positive.
24438         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24439         and cygwin 1.7.7.
24440         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24442         (gl_FUNC_STRCASESTR): Likewise.
24443         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24444         * tests/test-memmem.c (main): Expose the bug.
24445         * tests/test-strcasestr.c (main): Likewise.
24446         * tests/test-strstr.c (main): Likewise.
24447         * tests/test-c-strcasestr.c (main): Likewise.
24448         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24449         * doc/posix-functions/strstr.texi (strstr): Likewise.
24450         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24451         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24452
24453 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24454
24455         parse-datetime: do some more renaming
24456         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24457         parse_datetime, not get_date.  Mention the renaming.
24458         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24459         in comments.
24460         * m4/bison.m4: Likewise.
24461
24462 2010-10-05  Eric Blake  <eblake@redhat.com>
24463
24464         parse-datetime: better name than get_date
24465         * NEWS: Reword the deprecation notice.
24466         * modules/get_date: Rename to modules/parse-datetime.
24467         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24468         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24469         * lib/get_date.y: Rename to lib/parse-datetime.y.
24470         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24471         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24472         * doc/getdate.texi: Provide fallback wrapper.
24473         * lib/getdate.h: Move guts, and wrap...
24474         * lib/parse-datetime.h: ...new file.
24475         * lib/parse-datetime.y (get_date): Rename...
24476         (parse_datetime): ...to this.
24477         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24478         (gl_PARSE_DATETIME): ...to this.
24479         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24480         documentation.
24481         * modules/getdate (Files): Provide fallback docs and header.
24482         (Notice, Depends-on): Update references.
24483         * tests/test-parse-datetime.c: Likewise.
24484         * DEPENDENCIES: Likewise.
24485         * MODULES.html.sh (Date and time <time.h>): Likewise.
24486         * doc/parse-datetime.texi (Date input formats)
24487         (Authors of parse_datetime): Likewise.
24488         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24489         (Include): Likewise.
24490         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24491         * gnulib-tool: Likewise.
24492         * m4/bison.m4 (gl_BISON): Likewise.
24493         Suggested by Bruno Haible.
24494
24495 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24496
24497         more ports to Solaris tr, which needs [] around ranges
24498         * gnulib-tool: Solaris tr needs [] around ranges.
24499         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24500         * tests/test-pipe-filter-gi1.c (main): Likewise.
24501         * tests/test-pipe-filter-ii1.c (main): Likewise.
24502
24503 2010-10-05  Eric Blake  <eblake@redhat.com>
24504
24505         bootstrap: fix Solaris regression
24506         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24507         around ranges.
24508         Reported by Pádraig Brady.
24509
24510         bootstrap: work with pkg-config
24511         * build-aux/bootstrap (check_versions): Also transliterate - in
24512         prerequisite name.
24513         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24514         prerequisites that were already found, to avoid confusion.
24515         Reported by Justin Clift.
24516
24517         faccessat: remove unused wrappers
24518         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24519         presence of these wrappers dragged in -lgen on Solaris.
24520         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24521
24522 2010-10-05  Jim Meyering  <meyering@redhat.com>
24523
24524         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24525         * Makefile (sc_pragma_columns): New syntax-check rule.
24526
24527 2010-10-04  Bruno Haible  <bruno@clisp.org>
24528
24529         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24530         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24531         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24532         Reported by Bruce Korb and Eric Blake.
24533
24534 2010-10-04  Bruno Haible  <bruno@clisp.org>
24535
24536         threadlib: Make option --with-libpth-prefix work.
24537         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24538         use $LIBPTH, not just -lpth.
24539
24540 2010-10-04  Bruno Haible  <bruno@clisp.org>
24541
24542         Avoid line length limitation from HP NonStop system header files.
24543         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24544         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24545         * lib/ctype.in.h: Likewise.
24546         * lib/dirent.in.h: Likewise.
24547         * lib/errno.in.h: Likewise.
24548         * lib/fcntl.in.h: Likewise.
24549         * lib/float.in.h: Likewise.
24550         * lib/getopt.in.h: Likewise.
24551         * lib/iconv.in.h: Likewise.
24552         * lib/inttypes.in.h: Likewise.
24553         * lib/langinfo.in.h: Likewise.
24554         * lib/locale.in.h: Likewise.
24555         * lib/math.in.h: Likewise.
24556         * lib/netdb.in.h: Likewise.
24557         * lib/netinet_in.in.h: Likewise.
24558         * lib/poll.in.h: Likewise.
24559         * lib/pthread.in.h: Likewise.
24560         * lib/pty.in.h: Likewise.
24561         * lib/sched.in.h: Likewise.
24562         * lib/se-selinux.in.h: Likewise.
24563         * lib/search.in.h: Likewise.
24564         * lib/signal.in.h: Likewise.
24565         * lib/spawn.in.h: Likewise.
24566         * lib/stdarg.in.h: Likewise.
24567         * lib/stddef.in.h: Likewise.
24568         * lib/stdint.in.h: Likewise.
24569         * lib/stdio.in.h: Likewise.
24570         * lib/stdlib.in.h: Likewise.
24571         * lib/string.in.h: Likewise.
24572         * lib/strings.in.h: Likewise.
24573         * lib/sys_file.in.h: Likewise.
24574         * lib/sys_ioctl.in.h: Likewise.
24575         * lib/sys_select.in.h: Likewise.
24576         * lib/sys_socket.in.h: Likewise.
24577         * lib/sys_stat.in.h: Likewise.
24578         * lib/sys_time.in.h: Likewise.
24579         * lib/sys_times.in.h: Likewise.
24580         * lib/sys_utsname.in.h: Likewise.
24581         * lib/sys_wait.in.h: Likewise.
24582         * lib/sysexits.in.h: Likewise.
24583         * lib/termios.in.h: Likewise.
24584         * lib/time.in.h: Likewise.
24585         * lib/unistd.in.h: Likewise.
24586         * lib/wchar.in.h: Likewise.
24587         * lib/wctype.in.h: Likewise.
24588         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24589         * modules/ctype (Makefile.am): Likewise.
24590         * modules/dirent (Makefile.am): Likewise.
24591         * modules/errno (Makefile.am): Likewise.
24592         * modules/fcntl-h (Makefile.am): Likewise.
24593         * modules/float (Makefile.am): Likewise.
24594         * modules/getopt-posix (Makefile.am): Likewise.
24595         * modules/iconv-h (Makefile.am): Likewise.
24596         * modules/inttypes (Makefile.am): Likewise.
24597         * modules/langinfo (Makefile.am): Likewise.
24598         * modules/locale (Makefile.am): Likewise.
24599         * modules/math (Makefile.am): Likewise.
24600         * modules/netdb (Makefile.am): Likewise.
24601         * modules/netinet_in (Makefile.am): Likewise.
24602         * modules/poll-h (Makefile.am): Likewise.
24603         * modules/pthread (Makefile.am): Likewise.
24604         * modules/pty (Makefile.am): Likewise.
24605         * modules/sched (Makefile.am): Likewise.
24606         * modules/search (Makefile.am): Likewise.
24607         * modules/selinux-h (Makefile.am): Likewise.
24608         * modules/signal (Makefile.am): Likewise.
24609         * modules/spawn (Makefile.am): Likewise.
24610         * modules/stdarg (Makefile.am): Likewise.
24611         * modules/stddef (Makefile.am): Likewise.
24612         * modules/stdint (Makefile.am): Likewise.
24613         * modules/stdio (Makefile.am): Likewise.
24614         * modules/stdlib (Makefile.am): Likewise.
24615         * modules/string (Makefile.am): Likewise.
24616         * modules/strings (Makefile.am): Likewise.
24617         * modules/sys_file (Makefile.am): Likewise.
24618         * modules/sys_ioctl (Makefile.am): Likewise.
24619         * modules/sys_select (Makefile.am): Likewise.
24620         * modules/sys_socket (Makefile.am): Likewise.
24621         * modules/sys_stat (Makefile.am): Likewise.
24622         * modules/sys_time (Makefile.am): Likewise.
24623         * modules/sys_times (Makefile.am): Likewise.
24624         * modules/sys_utsname (Makefile.am): Likewise.
24625         * modules/sys_wait (Makefile.am): Likewise.
24626         * modules/sysexits (Makefile.am): Likewise.
24627         * modules/termios (Makefile.am): Likewise.
24628         * modules/time (Makefile.am): Likewise.
24629         * modules/unistd (Makefile.am): Likewise.
24630         * modules/wchar (Makefile.am): Likewise.
24631         * modules/wctype (Makefile.am): Likewise.
24632
24633 2010-10-04  Bruno Haible  <bruno@clisp.org>
24634
24635         read-file tests: Avoid a test failure on NonStop Kernel.
24636         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24637         a regular file.
24638         Reported by Joachim Schmitz <schmitz@hp.com>.
24639
24640 2010-10-03  Bruno Haible  <bruno@clisp.org>
24641
24642         gnulib-tool: Fixes for --create-testdir with --libtool.
24643         * gnulib-tool (func_get_automake_snippet): Don't augment
24644         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24645         an executable.
24646         (func_create_testdir): Handle module 'alloca' like func_import.
24647         Reported by Bruce Korb <bruce.korb@gmail.com>.
24648
24649 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24650
24651         Avoid some lines longer than 80 characters.
24652         * lib/stdint.in.h: Break long comment lines.
24653         * lib/math.in.h: Likewise.
24654         (_GL_NUM_UINT_WORDS): New macro, for readability.
24655         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24656         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24657         * lib/stdlib.in.h: Likewise.
24658         * lib/spawn.in.h: Likewise.
24659         * lib/sys_socket.in.h: Update an URL.
24660         * lib/sys_stat.in.h: Break long line.
24661
24662 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24663
24664         Improve pmccabe2html.
24665         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24666         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24667         when the sources change. Remove the line in the HTML about "Used
24668         ranges" (which implied that there might be other unused ranges),
24669         rename "Resume" to "Summary" (easier to understand for more users).
24670         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24671         styles, and some unnecessary blank lines.
24672
24673 2010-10-03  Bruno Haible  <bruno@clisp.org>
24674             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24675
24676         acl: Add support for ACLs on NonStop Kernel.
24677         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24678         Check whether the function aclsort() exists.
24679         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24680         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24681         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24682         (acl_nontrivial [HAVE_ACLSORT]: New function.
24683         (file_has_acl): Implement for NonStop Kernel.
24684         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24685         (qset_acl): Implement for NonStop Kernel.
24686         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24687         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24688         (main): Implement for NonStop Kernel.
24689         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24690         Kernel. Handle this flavor.
24691         * tests/test-set-mode-acl.sh: Likewise.
24692         * tests/test-copy-acl.sh: Likewise.
24693         * tests/test-copy-file.sh: Likewise.
24694
24695 2010-10-03  Bruno Haible  <bruno@clisp.org>
24696
24697         Info about ACLs on NonStop Kernel.
24698         * doc/acl-resources.txt: Add info about NonStop Kernel.
24699         References by Joachim Schmitz <schmitz@hp.com>.
24700
24701 2010-10-02  Bruno Haible  <bruno@clisp.org>
24702
24703         Define missing EDQUOT on NonStop Kernel.
24704         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24705         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24706         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24707         missing.
24708         * doc/posix-headers/errno.texi: Mention the NSK bug.
24709         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24710         Reported by Joachim Schmitz <schmitz@hp.com>.
24711
24712 2010-10-02  Bruno Haible  <bruno@clisp.org>
24713
24714         Update doc for POSIX:2008.
24715         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24716         Update URL of POSIX specification.
24717
24718 2010-10-02  Bruno Haible  <bruno@clisp.org>
24719
24720         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24721         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24722         from gnulib, not from Automake.
24723
24724 2010-10-02  Bruno Haible  <bruno@clisp.org>
24725
24726         New module 'system-posix'.
24727         * modules/system-posix: New file.
24728         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24729         module is present.
24730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24731         GNULIB_SYSTEM_POSIX.
24732         * modules/stdlib (Depends-on): Remove sys_wait.
24733         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24734         * doc/posix-functions/system.texi: Mention the new module.
24735         * doc/posix-headers/stdlib.texi: Likewise.
24736         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24737         define test_sys_wait_macros to a no-op.
24738         Reported by Sam Steingold <sds@gnu.org>.
24739
24740 2010-09-30  Bruno Haible  <bruno@clisp.org>
24741
24742         More renaming from 'getdate' to 'get_date'.
24743         * doc/get_date.texi: Renamed from doc/getdate.texi.
24744         * modules/get_date (Files): Update.
24745         * MODULES.html.sh (Date and time <time.h>): Update.
24746         * DEPENDENCIES: Update.
24747         * gnulib-tool: Update comment.
24748         * m4/bison.m4 (gl_BISON): Likewise.
24749         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24750
24751 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24752
24753         bootstrap: support ACLOCAL_FLAGS during aclocal
24754         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24755         can add additional -I dir for third-party .m4 files.
24756
24757 2010-09-30  Eric Blake  <eblake@redhat.com>
24758
24759         bootstrap: use glibtoolize on MacOS
24760         * build-aux/bootstrap (check_versions): Convert libtool into
24761         libtoolize.
24762         (tool search): Move libtool check earlier, and look for
24763         glibtoolize for MacOS.
24764         (gnulib_tool_options): Auto-add --libtool when appropriate.
24765         Reported by Justin Clift.
24766
24767         poll: fix typo that broke test on MacOS
24768         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24769         Reported by Justin Clift.
24770
24771         getdate: rename to get_date
24772         Note: getdate.h is not renamed, to minimize client impact.
24773         * modules/getdate: Mark obsolete.  Move old contents...
24774         * modules/get_date: ...to new module name.
24775         * modules/getdate-tests: Move...
24776         * modules/get_date-tests: ...here.
24777         * m4/getdate.m4: Move...
24778         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24779         * lib/getdate.y: Move...
24780         * lib/get_date.y: ...here.
24781         * tests/test-getdate.c: Move...
24782         * tests/test-get_date.c: ...here.
24783         * doc/posix-functions/getdate.texi (getdate): Update name.
24784         * NEWS: Mention the change.
24785
24786 2010-09-29  Bruno Haible  <bruno@clisp.org>
24787
24788         Separate the module 'waitpid' from the module 'sys_wait'.
24789         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24790         present.
24791         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24792         gl_MODULE_INDICATOR_FOR_TESTS.
24793         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24794         * modules/sys_wait (Depends-on): Remove waitpid.
24795         (Makefile.am): Substitute GNULIB_WAITPID.
24796         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24797         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24798         signature only if the 'waitpid' module is present.
24799         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24800         * NEWS: Mention the change.
24801         * modules/grantpt (Depends-on): Add waitpid.
24802         * modules/wait-process (Depends-on): Likewise.
24803
24804 2010-09-29  Bruno Haible  <bruno@clisp.org>
24805
24806         More tests for module 'sys_wait'.
24807         * modules/sys_wait-c++-tests: New file.
24808         * tests/test-sys_wait-c++.cc: New file.
24809         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24810         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24811
24812 2010-09-29  Bruno Haible  <bruno@clisp.org>
24813
24814         New module 'waitpid'.
24815         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24816         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24817         Don't include <process.h>.
24818         (waitpid): Declare only, using modern idiom.
24819         * m4/waitpid.m4: New file.
24820         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24821         * modules/waitpid: New file.
24822         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24823         (Makefile.am): Update.
24824         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24825
24826 2010-09-28  Bruno Haible  <bruno@clisp.org>
24827
24828         poll: Assume ANSI C.
24829         * lib/poll.c (poll): Use an ANSI C declaration.
24830
24831 2010-09-28  Bruno Haible  <bruno@clisp.org>
24832
24833         poll-h: Create poll.h on all platforms.
24834         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24835         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24836         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24837         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24838         (gl_REPLACE_POLL_H): Don't set POLL_H.
24839         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24840         * modules/poll-h (Depends-on): Add include_next.
24841         (Makefile.am): Create poll.h unconditionally. Substitute also
24842         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24843
24844 2010-09-28  Bruno Haible  <bruno@clisp.org>
24845
24846         Tests for module 'poll-h'.
24847         * modules/poll-h-c++-tests: New file.
24848         * tests/test-poll-h-c++.cc: New file.
24849
24850         Tests for module 'poll-h'.
24851         * modules/poll-h-tests: New file.
24852         * tests/test-poll-h.c: New file.
24853
24854 2010-09-28  Bruno Haible  <bruno@clisp.org>
24855
24856         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24857         * modules/poll-h (Depends-on): Add 'extensions'.
24858
24859 2010-09-28  Bruno Haible  <bruno@clisp.org>
24860
24861         New module 'poll-h'.
24862         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24863         (poll): Use modern idiom.
24864         * modules/poll-h: New file.
24865         * modules/poll (Files): Remove lib/poll.in.h.
24866         (Depends-on): Add poll-h.
24867         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24868         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24869         * m4/poll_h.m4: New file.
24870         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24871         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24872         and invoke gl_REPLACE_POLL_H.
24873         * lib/poll.c: Use common idiom.
24874         * tests/test-poll.c: Likewise.
24875         * doc/posix-headers/poll.texi: Mention the poll-h module.
24876         Suggested by Eric Blake.
24877
24878 2010-09-26  Bruno Haible  <bruno@clisp.org>
24879
24880         sys_wait: Implement WSTOPSIG.
24881         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24882         Reported by Simon Josefsson.
24883
24884 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24885
24886         stdlib, sys_wait: Avoid compilation error on mingw.
24887         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24888
24889 2010-09-26  Bruno Haible  <bruno@clisp.org>
24890
24891         stdlib tests: Avoid code duplication.
24892         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24893         * modules/sys_wait-tests (Files): Likewise.
24894         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24895         * tests/test-stdlib.c: Include test-sys_wait.h.
24896         (main): Invoke test_sys_wait_macros.
24897         * tests/test-sys_wait.c: Include test-sys_wait.h.
24898         (main): Invoke test_sys_wait_macros.
24899
24900 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24901
24902         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24903         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24904         sure Windows sockets are working before calling getaddrinfo.
24905         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24906         * doc/gnulib.texi (Windows sockets): Fix typo.
24907
24908 2010-09-25  Bruno Haible  <bruno@clisp.org>
24909
24910         Tests for module 'regex-quote'.
24911         * modules/regex-quote-tests: New file.
24912         * tests/test-regex-quote.c: New file.
24913
24914         New module 'regex-quote'.
24915         * lib/regex-quote.h: New file.
24916         * lib/regex-quote.c: New file.
24917         * modules/regex-quote: New file.
24918         Suggested by Reuben Thomas <rrt@sc3d.org>.
24919
24920 2010-09-24  Bruno Haible  <bruno@clisp.org>
24921
24922         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24923         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24924
24925 2010-09-23  Bruno Haible  <bruno@clisp.org>
24926
24927         setenv: Relax license.
24928         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24929         Blake.
24930         Requested by Eric Blake.
24931
24932 2010-09-22  Bruno Haible  <bruno@clisp.org>
24933
24934         termios: Relax license.
24935         * modules/termios (License): Change to LGPLv2+.
24936         Requested by Eric Blake.
24937
24938 2010-09-22  Bruno Haible  <bruno@clisp.org>
24939
24940         threadlib: Allow the package to change the default to 'no'.
24941         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24942         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24943         Reported by Paul Eggert.
24944
24945 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24946             Bruno Haible  <bruno@clisp.org>
24947
24948         Fix endless loop in mbmemcasecoll.
24949         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24950         byte.
24951         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24952
24953 2010-09-22  Bruno Haible  <bruno@clisp.org>
24954
24955         Tests for module 'memcoll'.
24956         * modules/memcoll-tests: New file.
24957         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24958
24959         memcoll, xmemcoll: Clarify size vs. length.
24960         * modules/memcoll.c (memcoll0): Clarify specification.
24961         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24962         passed to collate_error.
24963
24964 2010-09-22  Bruno Haible  <bruno@clisp.org>
24965
24966         Tests for module 'memcasecmp'.
24967         * modules/memcasecmp-tests: New file.
24968         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24969
24970 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24971
24972         * lib/pthread.in.h: Add split double-inclusion guard, and include
24973         system <pthread.h> if there is one.  Use @@-style as in other
24974         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24975         pthread.h doesn't.
24976         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24977         (pthread_mutexattr_settype, pthread_mutex_trylock):
24978         New static inline functions, if there's no system <pthread.h>.
24979         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24980         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24981         Approximate with mutexes if the system lacks spinlocks, as in
24982         MacOS.
24983         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24984         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24985         @@-style.  Check for spinlocks separately.
24986         (gl_PTHREAD_DEFAULTS): New macro.
24987         * modules/pthread: Redo to use a more typical style for in.h files.
24988
24989 2010-09-21  Eric Blake  <eblake@redhat.com>
24990
24991         net_if: enhance tests
24992         * tests/test-net_if.c (main): Move signature checks earlier.
24993         Print failures to stderr.
24994         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24995         Document the bug that we do not yet fix.
24996
24997 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24998
24999         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25000         about gnulib, not GSS.
25001
25002 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25003
25004         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25005         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25006         for Emacs.
25007         * build-aux/pmccabe2html: Make Makefile.am example code more
25008         cut-and-paste friendly.
25009
25010 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25011
25012         * tests/test-net_if.c: New file.
25013         * modules/net_if-tests: New file.
25014
25015 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25016
25017         pthread: add pthread_spin_destroy
25018         * lib/pthread.in.h (pthread_spin_destroy): New function.
25019
25020 2010-09-19  Bruno Haible  <bruno@clisp.org>
25021
25022         gnulib-tool: Fix --help output.
25023         * gnulib-tool (func_usage): Fix help message.
25024         Reported by Reuben Thomas <rrt@sc3d.org>.
25025
25026 2010-09-18  Jim Meyering  <meyering@redhat.com>
25027
25028         maint.mk: avoid unexpanded \n in two diagnostics
25029         * top/maint.mk (sc_prohibit_always_true_header_tests):
25030         Don't use a literal \n in a halt=... assignment.  It would not be
25031         expanded, and the two \n bytes would appear in the diagnostic output
25032         rather than the desired newline.  Use halt=$$(printf ... instead.
25033         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25034
25035 2010-09-18  Bruno Haible  <bruno@clisp.org>
25036
25037         netinet_in: Doc tweak.
25038         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25039         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25040
25041 2010-09-18  Jim Meyering  <meyering@redhat.com>
25042
25043         init.sh: correct an outdated comment
25044         * tests/init.sh (create_exe_shims_):  s/function/alias/
25045
25046         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25047         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25048         a file named "*.exe" is removed between the glob expansion and the
25049         processing of that oddly named file.
25050
25051 2010-09-17  Eric Blake  <eblake@redhat.com>
25052
25053         mirbsd: add some more support
25054         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25055         in BSD family.
25056         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25057         devices as OpenBSD.
25058         * m4/host-os.m4 (mirbsd): Add MirBSD.
25059
25060         tests: fix unportable assumption on sys/wait.h
25061         * tests/test-sys_wait.c (main): Relax test.
25062         * tests/test-stdlib.c (main): Likewise.
25063
25064         init.sh: accomodate directory with no .exes
25065         * tests/init.sh: Accomodate directory containing only scripts.
25066
25067         tests: avoid compiler warning
25068         * tests/test-stdlib.c (main): Use the variable.
25069
25070         fdutimens, fdutimensat: update signature, again
25071         * lib/utimens.h (gl_futimens): Delete, and move signature...
25072         (fdutimens): ...here.
25073         (fdutimensat): Rearrange signature.
25074         (lutimensat): Rename variable for clarity.
25075         * lib/fdutimensat.c (fdutimensat): Update signature.
25076         * lib/utimens.c (fdutimens): Likewise.
25077         (gl_futimens): Delete.
25078         (utimens, lutimens): Update callers.
25079         * lib/futimens.c (futimens): Likewise.
25080         * tests/test-fdutimensat.c: Likewise.
25081         * tests/test-utimens.c: Likewise.
25082         * tests/test-futimens.h: Update comment.
25083         * NEWS: Mention this.
25084         Suggested by Paul Eggert.
25085
25086 2010-09-17  Bruno Haible  <bruno@clisp.org>
25087
25088         Take over the maintenance of some older macros from Autoconf.
25089         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25090         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25091         GNU Autoconf.
25092         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25093         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25094
25095 2010-09-17  Eric Blake  <eblake@redhat.com>
25096
25097         fdutimensat: drop atflag validation
25098         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25099         with valid fd, to close a race scenario where futimens is
25100         unsupported and FILE was replaced by a symlink.
25101         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25102         accordingly.
25103         Suggested by Paul Eggert.
25104
25105 2010-09-16  Bruno Haible  <bruno@clisp.org>
25106
25107         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25108         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25109
25110 2010-09-16  Bruno Haible  <bruno@clisp.org>
25111
25112         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25113         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25114         login_tty exists.
25115         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25116
25117 2010-09-16  Bruno Haible  <bruno@clisp.org>
25118
25119         login_tty: Make the replacement code work on BSD systems.
25120         * lib/login_tty.c: Include <sys/ioctl.h>.
25121         (login_tty): Use ioctl TIOCSCTTY when available.
25122         * modules/login_tty (Depends-on): Add sys_ioctl.
25123         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25124
25125 2010-09-16  Bruno Haible  <bruno@clisp.org>
25126
25127         login_tty: Stricter unit test.
25128         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25129         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25130         and tcgetsid() after login_tty.
25131         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25132
25133 2010-09-16  Bruno Haible  <bruno@clisp.org>
25134
25135         New module 'tcgetsid'.
25136         * lib/tcgetsid.c: New file.
25137         * m4/tcgetsid.m4: New file.
25138         * modules/tcgetsid: New file.
25139         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25140         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25141         GNULIB_TCGETSID, HAVE_TCGETSID.
25142         * lib/termios.in.h: Include <sys/types.h>.
25143         (tcgetsid): New declaration.
25144         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25145         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25146         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25147         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25148
25149 2010-09-16  Bruno Haible  <bruno@clisp.org>
25150
25151         Tests for module 'termios'.
25152         * modules/termios-c++-tests: New file.
25153         * modules/termios-tests: New file.
25154         * tests/test-termios-c++.cc: New file.
25155         * tests/test-termios.c: New file.
25156
25157         New module 'termios'.
25158         * modules/termios: New file.
25159         * lib/termios.in.h: New file.
25160         * m4/termios_h.m4: New file.
25161         * doc/posix-headers/termios.texi: Mention the new module.
25162
25163 2010-09-16  Eric Blake  <eblake@redhat.com>
25164
25165         fdutimensat: add an atflag parameter
25166         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25167         * lib/utimens.h (fdutimensat): Update prototype.
25168         * tests/test-fdutimensat.c: Adjust test to match.
25169         * NEWS: Document the change.
25170         Suggested by Paul Eggert.
25171
25172 2010-09-16  Bruno Haible  <bruno@clisp.org>
25173
25174         Fix typos in comments.
25175         * lib/striconveh.h: Fix typo in comment.
25176         * lib/login_tty.c (login_tty): Likewise.
25177
25178 2010-09-15  Bruno Haible  <bruno@clisp.org>
25179
25180         stdlib: clarify MirBSD WEXITSTATUS bug
25181         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25182         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25183
25184 2010-09-15  Eric Blake  <eblake@redhat.com>
25185
25186         stdlib: work around MirBSD WEXITSTATUS bug
25187         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25188         * modules/stdlib (Depends-on): Add sys_wait.
25189         * tests/test-sys_wait.c (main): Enhance test.
25190         * tests/test-stdlib.c (main): Likewise.
25191         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25192
25193         docs: mention MacOS issue with WEXITSTATUS(constant)
25194         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25195         issue.
25196         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25197
25198         strnlen: add tests
25199         * modules/strnlen-tests: New file.
25200         * tests/test-strnlen.c: Likewise.
25201
25202 2010-09-14  Bruno Haible  <bruno@clisp.org>
25203
25204         unistr/base: Avoid link errors when module 'libunistring' is also used.
25205         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25206         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25207         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25208         Declare also when HAVE_LIBUNISTRING is set.
25209         Reported by Pádraig Brady <P@draigbrady.com>.
25210
25211 2010-09-14  Eric Blake  <eblake@redhat.com>
25212
25213         test-rawmemchr: make more robust
25214         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25215         (Depends-on, configure.ac): Add needed prerequisites to use it.
25216         * modules/memchr-tests (Files, Depends-on, configure.ac):
25217         Likewise, to avoid implicit reliance on memchr module prereqs.
25218         * tests/test-memchr.c (main): Ensure proper masking.
25219         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25220         reads.
25221
25222         memchr: detect glibc Alpha bug
25223         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25224         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25225         Alpha.
25226         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25227         * tests/test-memchr.c (main): Enhance test.
25228         Reported by Nelson H. F. Beebe.
25229
25230 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25231
25232         fts, getcwd, glob: audit for dirfd returning -1
25233         * lib/fts.c (opendir): Remove #define; no longer used.
25234         (opendirat): New arg PDIR_FD.  All callers changed.
25235         (fts_build, _opendir2): Use new opendirat to avoid the need for
25236         dirfd, or for checking whether dirfd returns a negative value.
25237         Don't use opendir; always use openat followed by fdopendir.
25238         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25239         it.
25240         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25241         returns -1 here.
25242         * modules/fts (Depends-on): Remove dirfd.
25243         * modules/getcwd (Depends-on): Likewise.
25244
25245 2010-09-13  Eric Blake  <eblake@redhat.com>
25246
25247         float: fix broken MirBSD header
25248         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25249         * doc/posix-headers/float.texi (float.h): Document it.
25250
25251 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25252
25253         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25254         * lib/fts.c (opendirat): New arg extra_flags.
25255         (__opendir2): Use it to avoid following symlinks when opening
25256         a directory, if symlinks are not supposed to be followed.  See
25257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25258
25259         fdopendir: preserve argument fd before returning
25260         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25261         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25262         (fdopendir): Use them, arranging for FD to be open to the same
25263         directory that it was when it started.  (It might be temporarily
25264         closed while fdopendir is running, so this not thread- or
25265         signal-safe.)  Be careful to do the right thing even when file
25266         descriptors are scarce and dup fails with errno == EMFILE.  See
25267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25268
25269 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25270
25271         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25272         * NEWS: Document change.
25273         * m4/regex.m4: Disable test for regoff_t size.
25274
25275 2010-09-13  Jim Meyering  <meyering@redhat.com>
25276
25277         fts: don't operate on an invalid file descriptor after failed dup
25278         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25279         negative file descriptor.
25280
25281 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25282
25283         savedir: add streamsavedir, deprecate fdsavedir
25284         * NEWS: Mention deprecation of fdsavedir.
25285         * lib/savedir.c (streamsavedir): New extern function, whose name
25286         ends in "savedir" to be consistent with the others.  This differs
25287         from savedirstream in that it doesn't close its argument.  The
25288         next version of GNU tar will use this instead of fdsavedir, to
25289         avoid some race conditions and conserve file descriptors.
25290         (savedirstream): Reimplement as a wrapper around streamsavedir.
25291         (fdsavedir): Add a comment deprecating this function.  As far as
25292         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25293         * lib/savedir.h (streamsavedir): New decl.
25294         (fdsavedir): Add a comment deprecating this.
25295
25296 2010-09-10  Bruno Haible  <bruno@clisp.org>
25297
25298         langinfo: Fix last commit.
25299         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25300         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25302
25303 2010-09-10  Bruno Haible  <bruno@clisp.org>
25304
25305         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25306         * lib/progreloc.c (O_EXEC): Define fallback.
25307
25308 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25309
25310         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25311         * NEWS: Document recent changes to fcntl-h.
25312         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25313         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25314         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25315         Similarly for O_SEARCH; this last was already true, but not documented.
25316         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25317         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25318         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25319         Likewise.
25320         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25321         is zero, not whether it is defined.
25322         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25323         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25324         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25325
25326 2010-09-10  Bruno Haible  <bruno@clisp.org>
25327
25328         langinfo, nl_langinfo: Fix for IRIX 5.3.
25329         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25330         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25331         HAVE_LANGINFO_YESEXPR.
25332         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25333         HAVE_LANGINFO_YESEXPR.
25334         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25335         HAVE_LANGINFO_T_FMT_AMPM is 0.
25336         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25337         HAVE_LANGINFO_YESEXPR is 0.
25338         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25339         NOEXPR.
25340         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25341         * doc/posix-functions/nl_langinfo.texi: Likewise.
25342         Reported by Eric Blake.
25343
25344 2010-09-10  Bruno Haible  <bruno@clisp.org>
25345
25346         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25347         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25348         on FreeBSD 8.0 and OpenBSD 4.6.
25349         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25350         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25351         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25352         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25353         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25354         ac_includes_default.
25355         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25356
25357 2010-09-09  Eric Blake  <eblake@redhat.com>
25358
25359         strsignal: work around NetBSD bug
25360         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25361         * lib/string.in.h (includes): Likewise.
25362         * doc/posix-functions/strsignal.texi (strsignal): Document the
25363         bug.
25364         Reported by Nelson H. F. Beebe.
25365
25366         gnulib-tool: work with NetBSD /bin/sh
25367         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25368         (func_get_description, func_get_comment, func_get_status)
25369         (func_get_notice, func_get_applicability, func_get_filelist)
25370         (func_get_dependencies, func_get_autoconf_early_snippet)
25371         (func_get_autoconf_snippet, func_get_automake_snippet)
25372         (func_get_include_directive, func_get_link_directive)
25373         (func_get_license, func_get_maintainer, func_import): Avoid
25374         shell syntax errors from parsing syntax extensions.
25375
25376 2010-09-09  Bruno Haible  <bruno@clisp.org>
25377
25378         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25379         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25380         a reliable way to determine whether the 'alias' command works.
25381
25382 2010-09-08  Jim Meyering  <meyering@redhat.com>
25383
25384         init.sh: penalize a set-x-impaired shell; don't disqualify it
25385         * tests/init.sh: Too many shells corrupt application stderr when
25386         you set -x, so we can't afford to disqualify them, since at least
25387         on Irix-6.5, that would disqualify all bourne shells.
25388         Instead, use a two-pass approach.
25389         On the first pass, try to find a shell that meets the stricter
25390         condition that set -x does not corrupt stderr.
25391         If no shell meets the stricter condition, retest each candidate
25392         shell, but without that extra condition.  Finally, when
25393         VERBOSE=yes is requested and set -x might cause trouble, simply
25394         issue a warning and refrain from enabling debug output.
25395
25396 2010-09-08  Eric Blake  <eblake@redhat.com>
25397
25398         unsetenv: fix OpenBSD bug
25399         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25400         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25401         documentation.
25402         Reported by Jim Meyering.
25403
25404         strtod: work around IRIX 6.5 bug
25405         * lib/strtod.c (strtod): Reparse number on shorter string if
25406         exponent parse was invalid.
25407         * tests/test-strtod.c (main): Add check for "0x1p 2".
25408         Reported by Tom G. Christensen.
25409
25410         getopt: optimize previous patch
25411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25412         empty variable.  Speed up awk script.
25413         Reported by Paolo Bonzini.
25414
25415 2010-09-08  Jim Meyering  <meyering@redhat.com>
25416
25417         test.sh: disqualify shells for which set -x corrupts stderr
25418         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25419         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25420         appear in stderr output.  For example, this command:
25421             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25422         prints "P=1" on those two systems:
25423
25424 2010-09-08  Bruno Haible  <bruno@clisp.org>
25425
25426         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25427         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25428         commands, because some shells ignore redirections when there is an
25429         error in the command lookup.
25430         Reported by Eric Blake.
25431
25432 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25433
25434         * lib/regex.h: Fix a mention of `regex_compile' (should be
25435         `re_compile_pattern').
25436         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25437         (re_set_registers): Correct name of parameter in comment.
25438
25439         * doc/regex.texi: Add documentation for missing syntax flags.
25440         Remove commented-out documentation of defunct syntax option
25441         RE_NO_EMPTY_ALTS.
25442         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25443         Add documentation of re_set_registers.
25444         Document trick to re-use a pattern buffer by setting fastmap manually.
25445         Update documentation of struct re_pattern_buffer per public members.
25446         Uncomment documentation of equivalence class operators and
25447         collating symbol operators, since they are now implemented,
25448         Explain leftmost-longest matching in relation to alternatives.
25449         Tidy documentation of substring matching.
25450         Remove POSIX documentation, which is done better in
25451         glibc, and refer the reader there. Keep BSD API documentation, as
25452         that is not readily available elsewhere.
25453
25454 2010-09-07  Eric Blake  <eblake@redhat.com>
25455
25456         getopt: handle POSIXLY_CORRECT set but not exported
25457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25458         export state of POSIXLY_CORRECT, due to bash set -o posix.
25459         Reported by Dustin J. Mitchell.
25460
25461 2010-09-05  Bruno Haible  <bruno@clisp.org>
25462
25463         gnulib-tool: Highlight the changed options.
25464         * gnulib-tool (func_usage): Display the --import, --add-import,
25465         --remove-import explanations in bold font.
25466
25467 2010-09-06  Karl Berry  <karl@gnu.org>
25468
25469         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25470
25471 2010-09-05  Bruno Haible  <bruno@clisp.org>
25472
25473         uniwidth/width: Update comment.
25474         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25475         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25476
25477 2010-09-05  Bruno Haible  <bruno@clisp.org>
25478
25479         isinf, isnan: Relax license.
25480         * modules/isinf (License): Change from GPL to LGPL, with consent from
25481         Ben Pfaff.
25482         * modules/isnan (License): Likewise.
25483         Requested by Ludovic Courtès.
25484
25485 2010-09-04  Bruno Haible  <bruno@clisp.org>
25486
25487         gnulib-tool: Help migration from --import to --add-import or --update.
25488         * gnulib-tool: Emit a verbose error message when --import is used
25489         without any module name.
25490
25491 2010-09-04  Bruno Haible  <bruno@clisp.org>
25492
25493         Update doc about gnulib-tool.
25494         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25495         'gnulib-tool --update' in more detail.
25496         Reported by Eric Blake.
25497
25498 2010-09-04  Bruno Haible  <bruno@clisp.org>
25499
25500         gnulib-tool: Change --import. New options --add/remove-import.
25501         * gnulib-tool: New options --add-import, --remove-import.
25502         (func_usage): Document them.
25503         (have_associative): Define always.
25504         (func_import): In import mode, don't merge the specified settings with
25505         the cached settings. Implement remove-import mode.
25506         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25507         Explain when to use them versus --import.
25508         (Simple update): Use --add-import instead of --import.
25509         * NEWS: Mention the change.
25510
25511 2010-09-04  Bruno Haible  <bruno@clisp.org>
25512
25513         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25514         separate gnulib.mk.
25515
25516 2010-09-04  Bruno Haible  <bruno@clisp.org>
25517
25518         gnulib-tool: Don't talk about CVS any more.
25519         * gnulib-tool (func_usage, func_import): Write "version control"
25520         instead of CVS.
25521
25522 2010-09-04  Jim Meyering  <meyering@redhat.com>
25523
25524         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25525         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25526         false positives (whose names may be ill-chosen) when searching
25527         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25528         would cause a false-positive.
25529
25530         avoid coreutils "make distcheck" failure
25531         Coreutils tests with an absolute build directory name that contains
25532         a space.  Not quoting this directory name caused a failure.
25533         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25534         * tests/test-vc-list-files-cvs.sh: Likewise.
25535
25536 2010-09-04  Bruno Haible  <bruno@clisp.org>
25537
25538         gnulib-tool: Avoid error when run in a package without Makefile.am.
25539         * gnulib-tool: When collecting the m4dirs in a package that does not
25540         have a Makefile.am, eliminate those directories that contain no
25541         gnulib-cache.m4. Fix expression that counts these directories.
25542
25543 2010-09-04  Bruno Haible  <bruno@clisp.org>
25544
25545         update-copyright test: Improve output when perl is missing or too old.
25546         * tests/test-update-copyright.sh: Move test of Perl version down after
25547         the test whether Perl exists. Provide an explanation relating Perl's
25548         error message to Automake's SKIP: message.
25549
25550 2010-09-04  Bruno Haible  <bruno@clisp.org>
25551
25552         Don't augment PATH in TESTS_ENVIRONMENT.
25553         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25554         set abs_aux_dir instead of augmenting PATH.
25555         * modules/vc-list-files-tests (Makefile.am): Likewise.
25556         * tests/test-update-copyright.sh: Augment PATH here.
25557         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25558         path_prepend_.
25559         * tests/test-vc-list-files-git.sh: Likewise.
25560
25561 2010-09-04  Jim Meyering  <meyering@redhat.com>
25562
25563         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25564         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25565
25566 2010-09-04  Bruno Haible  <bruno@clisp.org>
25567
25568         strdup: Fix compilation error in C++ mode.
25569         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25570         the macro.
25571
25572 2010-09-04  Bruno Haible  <bruno@clisp.org>
25573
25574         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25575         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25576         macro into a function.
25577         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25578
25579 2010-09-04  Bruno Haible  <bruno@clisp.org>
25580
25581         Set PATH_SEPARATOR the same way autoconf does.
25582         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25583         the value of PATH_SEPARATOR the same way autoconf-generated configure
25584         scripts do.
25585         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25586         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25587
25588 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25589
25590         Set PATH_SEPARATOR the same way autoconf does.
25591         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25592         the same way autoconf-generated configure scripts do.
25593         * posix-modules: Likewise.
25594
25595 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25596
25597         hash: fix safe_hasher const typo
25598         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25599         const; otherwise, there is a type error later.
25600
25601 2010-09-02  Jim Meyering  <meyering@redhat.com>
25602
25603         test-update-copyright.sh: require perl 5.8.0
25604         * tests/test-update-copyright.sh: Require 5.8.0,
25605         which Tom G. Christensen has confirmed is adequate,
25606         while 5.6.1 is not.
25607
25608 2010-09-02  Eric Blake  <eblake@redhat.com>
25609
25610         tests: init.sh improvements for re-exec'ing with zsh
25611         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25612         -vx through shell re-exec.
25613         Reported by Tom G. Christensen.
25614
25615         wctype: fix typo in previous commit
25616         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25617         Reported by Ludovic Courtès.
25618
25619 2010-09-02  Jim Meyering  <meyering@redhat.com>
25620
25621         test-update-copyright.sh: skip test if Perl is too old
25622         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25623         Reported by Tom G. Christensen.
25624
25625 2010-09-02  Bruno Haible  <bruno@clisp.org>
25626
25627         wctype: Avoid compilation error on IRIX 6.5.30.
25628         * lib/wctype.in.h (iswblank): Declare with a replacement if
25629         REPLACE_ISWBLANK is set.
25630         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25631         declared. Set REPLACE_ISWBLANK.
25632         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25633         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25634         * doc/posix-headers/wctype.texi: Likewise.
25635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25636
25637 2010-09-01  Bruno Haible  <bruno@clisp.org>
25638
25639         New module 'socketlib'.
25640         * modules/socketlib: New file.
25641         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25642         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25643         * modules/sockets (Depends-on): Add socketlib.
25644         Suggested by Sam Steingold <sds@gnu.org>.
25645
25646 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25647
25648         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25649
25650         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25651         when one needs search access to a directory but not read access.
25652         On systems where it is available, it works in some cases where
25653         O_RDONLY does not, namely on directories that are searchable but
25654         not readable, and which need only to be searchable.  If O_SEARCH
25655         is not available, fall back to the traditional method of using
25656         O_RDONLY.
25657
25658         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25659         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25660         when opening a directory that needs only to be searchable.
25661         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25662         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25663         * lib/openat-proc.c (openat_proc_name): Likewise.
25664         * lib/openat.c (openat_needs_fchdir): Likewise.
25665         * lib/save-cwd.c (save_cwd): Likewise.
25666         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25667
25668 2010-08-28  Bruno Haible  <bruno@clisp.org>
25669
25670         New module 'host-cpu-c-abi'.
25671         * modules/host-cpu-c-abi: New file.
25672         * m4/host-cpu-c-abi.m4: New file, based on part of
25673         clisp/src/m4/general.m4.
25674         Requested by Sam Steingold <sds@gnu.org>.
25675
25676 2010-08-31  Eric Blake  <eblake@redhat.com>
25677         and Jim Meyering  <meyering@redhat.com>
25678
25679         hash: factor, and guard against misbehaving hasher function
25680         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25681         of table->hasher's return value.  Also protect against a hash value
25682         so large that adding it to table->bucket results in a NULL pointer.
25683         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25684         Use it in place of open-coded check-and-abort.
25685
25686 2010-08-30  Bruno Haible  <bruno@clisp.org>
25687
25688         hash: silence spurious clang warning
25689         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25690         Reported by Eric Blake.
25691
25692 2010-08-30  Eric Blake  <eblake@redhat.com>
25693
25694         strstr, memmem, strcasestr: avoid leaked shell message
25695         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25696         FreeBSD.
25697         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25698         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25699
25700         tests: silence clang warning
25701         * tests/test-malloca.c (do_allocation): Avoid dead store.
25702
25703 2010-08-29  Bruno Haible  <bruno@clisp.org>
25704
25705         gettext: Fix recent mistake.
25706         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25707
25708 2010-08-29  Bruno Haible  <bruno@clisp.org>
25709
25710         selinux-h: Offer a --without-selinux option.
25711         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25712         --without-selinux was specified, skip all tests and define
25713         HAVE_SELINUX_SELINUX_H to 0.
25714         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25715         set LIB_SELINUX to empty.
25716         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25717         gl_LIBSELINUX. If --without-selinux was specified, replace
25718         selinux/context.h.
25719         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25720
25721 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25722             Bruno Haible  <bruno@clisp.org>
25723
25724         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25725         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25726         of HAVE_REALLOC.
25727         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25728         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25729         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25730         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25731
25732 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25733             Bruno Haible  <bruno@clisp.org>
25734
25735         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25736         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25737         HAVE_CALLOC.
25738         * lib/xmalloc.c: Update accordingly.
25739         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25740         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25741         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25742
25743 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25744             Bruno Haible  <bruno@clisp.org>
25745
25746         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25747         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25748         HAVE_MALLOC.
25749         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25750         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25751         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25752
25753 2010-08-29  Bruno Haible  <bruno@clisp.org>
25754
25755         Update modules list.
25756         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25757         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25758         (String handling <string.h>): Add astrxfrm.
25759         (File system functions): Add readlinkat.
25760
25761 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25762
25763         Tests for module 'realloc-gnu'.
25764         * modules/realloc-gnu-tests: New file.
25765         * tests/test-realloc-gnu.c: New file.
25766
25767         Tests for module 'calloc-gnu'.
25768         * modules/calloc-gnu-tests: New file.
25769         * tests/test-calloc-gnu.c: New file.
25770
25771         Tests for module 'malloc-gnu'.
25772         * modules/malloc-gnu-tests: New file.
25773         * tests/test-malloc-gnu.c: New file.
25774
25775 2010-08-28  Bruno Haible  <bruno@clisp.org>
25776
25777         Rename module 'realloc' -> 'realloc-gnu'.
25778         * modules/realloc-gnu: New file, copied from modules/realloc.
25779         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25780         obsolete.
25781         * modules/mgetgroups (Depends-on): Update.
25782         * doc/posix-functions/realloc.texi: Update.
25783         * NEWS: Mention the change.
25784
25785         Rename module 'calloc' -> 'calloc-gnu'.
25786         * modules/calloc-gnu: New file, copied from modules/calloc.
25787         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25788         obsolete.
25789         * doc/posix-functions/calloc.texi: Update.
25790         * NEWS: Mention the change.
25791
25792         Rename module 'malloc' -> 'malloc-gnu'.
25793         * modules/malloc-gnu: New file, copied from modules/malloc.
25794         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25795         obsolete.
25796         * modules/argp (Depends-on): Update.
25797         * modules/regex (Depends-on): Update.
25798         * doc/posix-functions/malloc.texi: Update.
25799         * NEWS: Mention the change.
25800
25801 2010-08-28  Eric Blake  <eblake@redhat.com>
25802
25803         pread, pwrite: add missing dependency
25804         * modules/pread (Depends-on): Add extensions.
25805         * modules/pwrite (Depends-on): Likewise.
25806
25807 2010-08-28  Bruno Haible  <bruno@clisp.org>
25808
25809         unistr/u*-strchr: Fix tests dependencies.
25810         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25811         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25812         Reported by Ian Beckwith <ianb@erislabs.net>.
25813
25814 2010-08-28  Bruno Haible  <bruno@clisp.org>
25815
25816         read-file: Don't occupy too much unused memory.
25817         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25818
25819 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25820             Eric Blake  <eblake@redhat.com>
25821             Bruno Haible  <bruno@clisp.org>
25822
25823         read-file: Avoid memory reallocations with regular files.
25824         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25825         (fread_file): With regular files, use the remaining length as the
25826         initial buffer size.  Check against overflow.
25827         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25828         sys_stat.
25829
25830 2010-08-28  Bruno Haible  <bruno@clisp.org>
25831
25832         ftello: Relax license.
25833         * modules/ftello (License): Relax to LGPLv2+.
25834         Reported by Eric Blake.
25835
25836 2010-08-28  Bruno Haible  <bruno@clisp.org>
25837
25838         Avoid relocwrapper link errors due to gnulib replacement functions.
25839         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25840         function.
25841         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25842
25843 2010-08-28  Bruno Haible  <bruno@clisp.org>
25844
25845         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25846         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25847         defined.
25848         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25849         Suggested by Eric Blake.
25850
25851 2010-08-28  Bruno Haible  <bruno@clisp.org>
25852
25853         sys_socket, netdb: Ensure socklen_t gets defined.
25854         * modules/sys_socket (Depends-on): Add socklen.
25855         * modules/netdb (Depends-on): Likewise.
25856         * modules/getaddrinfo (Depends-on): Remove socklen.
25857         * modules/getsockopt (Depends-on): Likewise.
25858         * modules/setsockopt (Depends-on): Likewise.
25859         * tests/test-sys_socket.c: Check that socklen_t is defined.
25860         * tests/test-netdb.c: Likewise.
25861         * m4/socklen.m4: Update comments.
25862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25863
25864 2010-08-27  Eric Blake  <eblake@redhat.com>
25865
25866         login_tty: add missing dependency
25867         * modules/login_tty (Depends-on): Add pty.
25868
25869 2010-08-26  Eric Blake  <eblake@redhat.com>
25870
25871         lib-symbol-versions: fix m4 quoting
25872         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25873         format for AC_LINK_IFELSE.
25874
25875         glob: fix compile test
25876         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25877
25878         btowc: fix missing file
25879         * modules/btowc (Files): Also ship locale-fr.m4.
25880
25881         lseek: fix link test
25882         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25883         AC_LINK_IFELSE.
25884
25885         include_next: silence autoconf 2.68 warning
25886         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25887         AC_COMPILE_IFELSE as special.
25888         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25889         autoconf < 2.68.
25890
25891         acl: fix compilation test
25892         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25893         AC_COMPILE_IFELSE.
25894
25895 2010-08-26  Bruno Haible  <bruno@clisp.org>
25896
25897         Modernize AC_TRY_RUN invocations.
25898         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25899         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25900         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25901         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25902         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25903         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25904         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25906         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25907         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25908         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25909         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25910         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25911         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25913         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25914         gl_MBRLEN_NUL_RETVAL): Likewise.
25915         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25916         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25917         Likewise.
25918         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25919         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25920         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25921         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25922         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25923         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25924         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25925         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25926         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25927         Likewise.
25928         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25929         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25930         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25931         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25932         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25933         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25934         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25935         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25936         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25938
25939 2010-08-26  Bruno Haible  <bruno@clisp.org>
25940
25941         Modernize AC_TRY_LINK invocations.
25942         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25943         AC_TRY_LINK.
25944         * m4/argp.m4 (gl_ARGP): Likewise.
25945         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25946         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25947         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25948         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25949         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25950         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25951         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25952         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25953         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25954         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25955         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25956         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25957         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25958         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25959         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25960         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25961         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25962         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25963         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25964         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25965         Likewise.
25966         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25967         Likewise.
25968         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25969         Likewise.
25970         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25971         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25972         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25973         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25974         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25975         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25976         * m4/servent.m4 (gl_SERVENT): Likewise.
25977         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25978         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25979         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25980         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25981         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25982         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25983         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25985         * modules/tsearch-tests (configure.ac): Likewise.
25986
25987 2010-08-26  Bruno Haible  <bruno@clisp.org>
25988
25989         Modernize AC_TRY_COMPILE invocations.
25990         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25991         AC_TRY_COMPILE.
25992         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25993         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25994         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25995         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25996         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25997         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25998         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25999         * m4/lock.m4 (gl_LOCK): Likewise.
26000         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26001         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26002         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26003         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26004         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26005         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26006         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26008         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26009         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26010         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26011         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26012         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26013         extraneous semicolon.
26014
26015 2010-08-26  Jim Meyering  <meyering@redhat.com>
26016
26017         stat-time: relax license LGPL
26018         * modules/stat-time (License): Change from GPL to LGPL,
26019         with consent from all contributors, for use in libguile.
26020         Requested by Ludovic Courtès.
26021
26022 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26023
26024         poll: return immediately on POLLHUP.
26025         * lib/poll.c (poll): Always set timeout before wait_timeout is
26026         computed.
26027
26028 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26029
26030         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26031         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26032         rmdir ("dir/.//"), unlinkat.
26033
26034 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26035
26036         stdbool: avoid spurious failure with modern xlc
26037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26038
26039 2010-08-24  Bruno Haible  <bruno@clisp.org>
26040
26041         getloadavg: simplify code
26042         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26043         gl_have_func. Update comments.
26044
26045 2010-08-24  Eric Blake  <eblake@redhat.com>
26046
26047         getloadavg: don't define SVR4 on cygwin
26048         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26049         only define SVR4 when -lkvm is required.
26050         Reported by Yaakov Selkowitz.
26051
26052 2010-08-24  Bruno Haible  <bruno@clisp.org>
26053
26054         priv-set: fix comment
26055         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26056
26057 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26058
26059         priv-set: fix comments
26060         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26061         to match code, as suggested by David Bartley in:
26062         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26063
26064 2010-08-23  Eric Blake  <eblake@redhat.com>
26065
26066         stdbool: avoid rejecting clang
26067         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26068         * tests/test-stdbool.c: Enable more tests if using the system
26069         <stdbool.h> instead of the gnulib replacement.
26070         (main): Move xlc bug test to a runtime test for all compilers.
26071         Reported by Anders Kaseorg.
26072
26073         argz: fix shell quoting issue
26074         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26075         Reported by Charles Wilson.
26076
26077 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26078             Erik Faye-Lund <kusmabite@gmail.com>
26079
26080         poll, select: handle ERROR_BROKEN_PIPE.
26081         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26082         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26083         * lib/select.c (win32_compute_revents): Do not mark a pipe
26084         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26085
26086 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26087
26088         fts: allow compilation with C++
26089         * lib/fts_.h: Specify extern "C" linkage with C++.
26090
26091 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26092
26093         Fix gnulib-tool sed script de-commentation for AIX sed.
26094         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26095         sed.
26096
26097 2010-08-17  Eric Blake  <eblake@redhat.com>
26098
26099         test-stddef: test for (some) offsetof bugs
26100         * tests/test-stddef.c: Enhance test to ensure correct type of
26101         offsetof.
26102         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26103         that we are not fixing at this time.
26104
26105 2010-08-15  Bruno Haible  <bruno@clisp.org>
26106
26107         stpncpy: Allow stpncpy to be defined as a macro.
26108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26109         if it's already correctly declared.
26110         * lib/string.in.h (stpncpy): Undefine before redefining.
26111         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26112
26113 2010-08-14  Bruno Haible  <bruno@clisp.org>
26114
26115         Rename module 'memxfrm' to 'amemxfrm'.
26116         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26117         (amemxfrm): Renamed from memxfrm.
26118         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26119         (amemxfrm): Renamed from memxfrm.
26120         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26121         * NEWS: Mention the change.
26122         * MODULES.html.sh (String handling <string.h>): Update.
26123         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26124         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26125         * lib/unicase/u16-casexfrm.c: Likewise.
26126         * lib/unicase/u32-casexfrm.c: Likewise.
26127         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26128         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26129         * lib/uninorm/u16-normxfrm.c: Likewise.
26130         * lib/uninorm/u32-normxfrm.c: Likewise.
26131         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26132         memxfrm.
26133         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26134         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26135         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26136         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26137         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26138         Suggested by Paul Eggert.
26139
26140 2010-08-14  Bruno Haible  <bruno@clisp.org>
26141
26142         Tests for module 'astrxfrm'.
26143         * modules/astrxfrm-tests: New file.
26144         * tests/test-astrxfrm.c: New file.
26145
26146         New module 'astrxfrm'.
26147         * lib/astrxfrm.h: New file.
26148         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26149         * modules/astrxfrm: New file.
26150
26151 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26152
26153         regex: Tweak doc.
26154         * doc/regex.texi (Overview): Don't mention regex.c.
26155         (GNU Regular Expression Compiling): Likewise.
26156         (Match-end-of-line Operator): Mention 'not_eol'.
26157
26158 2010-08-14  Brian Gough  <bjg@gnu.org>
26159             Bruno Haible  <bruno@clisp.org>
26160
26161         git-merge-changelog: add doc relating to use with bzr and hg.
26162         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26163
26164 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26165
26166         pthread: fix pthread.h creation for srcdir != builddir
26167         * modules/pthread (Makefile.am): Fix the rule to work also in a
26168         non-srcdir build.
26169
26170 2010-08-13  Karl Berry  <karl@gnu.org>
26171
26172         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26173         * doc/posix-*/*: force line break before @url of POSIX
26174         specifications.
26175         Suggested by Werner Lemberg.
26176
26177 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26178
26179         strtod: fix const diagnostic
26180         * lib/strtod.c (strtod): Don't assign const char * to char *,
26181         as this elicits a warning from GCC when warnings are enabled.
26182
26183 2010-08-10  Pádraig Brady <P@draigbrady.com>
26184         and Eric Blake  <eblake@redhat.com>
26185
26186         copy-acl: ignore ENOTSUP on HP-UX
26187         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26188         so that it is available for HP-UX.
26189         * lib/copy-acl.c (qcopy_acl): Use it.
26190         Reported by Patrick M. Callahan.
26191
26192 2010-08-10  Eric Blake  <eblake@redhat.com>
26193
26194         open, chown: relax license
26195         * modules/open (License): Change to LGPLv2+, with consent by all
26196         authors, for use in augeas.
26197         * modules/chown (License): Likewise.
26198         * modules/lchown (Likewise): Likewise.
26199         Requested by Adam Stokes.
26200
26201 2010-08-09  Karl Berry  <karl@gnu.org>
26202
26203         * build-aux/ar-lib: new file, import from Automake.
26204         * config/srclist.txt: autocheck for updates.
26205
26206 2010-08-09  Eric Blake  <eblake@redhat.com>
26207
26208         readlinkat: adjust client modules
26209         * modules/areadlinkat (Depends-on): Use readlinkat, not
26210         symlinkat.
26211         * modules/areadlinkat-with-size (Depends-on): Likewise.
26212
26213         mknod: be more vocal about danger of running tests as root
26214         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26215         root, since that is just asking for problems.
26216         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26217
26218         readlinkat: split into its own module
26219         * modules/symlinkat: Split readlinkat...
26220         * modules/readlinkat: ...into separate module.
26221         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26222         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26223         * lib/symlinkat.c (readlinkat): Move...
26224         * lib/readlinkat.c: ...into new file.
26225         * modules/symlinkat-tests: Split readlinkat test...
26226         * modules/readlinkat-tests: ...into separate module.
26227         * tests/test-symlinkat.c: Split...
26228         * tests/test-readlinkat.c: ...into new file.
26229         * NEWS: Document the split.
26230         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26231         * lib/unistd.in.h (readlinkat): Likewise.
26232         Suggested by Bruno Haible.
26233
26234 2010-08-08  Bruno Haible  <bruno@clisp.org>
26235
26236         memxfrm: Speed up.
26237         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26238         that usually only one call to strxfrm is necessary for each string
26239         part.
26240         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26241
26242 2010-08-07  Karl Berry  <karl@gnu.org>
26243
26244         * doc/posix-headers/limits.texi,
26245         * doc/posix-functions/malloc.texi,
26246         * doc/posix-functions/strsignal.texi: missing @item.
26247         * doc/ld-version-script.texi: spurious leading i.
26248         * doc/regex.texi (Interval Operators): no commas inside @var.
26249
26250 2010-08-01  Bruno Haible  <bruno@clisp.org>
26251
26252         Integrate the regex documentation.
26253         * doc/gnulib.texi: Define 'cn' index.
26254         (Regular expressions): New a chapter that includes regex.texi and
26255         regexprops-generic.texi.
26256         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26257         syntax.
26258
26259         Whitespace cleanup.
26260         * doc/regex.texi: Remove trailing spaces.
26261
26262         Add regex documentation.
26263         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26264         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26265         Written by Kathy A. Hargreaves and Karl Berry.
26266
26267 2010-08-01  Bruno Haible  <bruno@clisp.org>
26268
26269         link: Update documentation.
26270         * doc/posix-functions/link.texi: Update regarding Solaris.
26271
26272 2010-07-31  Bruno Haible  <bruno@clisp.org>
26273
26274         Update modules list.
26275         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26276         (String handling <string.h>): Add memcmp2, memxfrm.
26277         (Container data structures): Add xlist, xsublist, xoset.
26278         (Core language properties): Add alignof, unused-parameter.
26279         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26280         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26281         (Unibyte characters <ctype.h>): New section.
26282         (String handling <string.h>): New section.
26283         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26284         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26285         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26286         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26287         tan, tanh, tanl, y0, y1, yn.
26288         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26289         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26290         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26291         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26292         unlockpt, vdprintf, vdprintf-posix.
26293         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26294         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26295         xconcat-filename.
26296         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26297         getdtablesize, pipe2, pipe2-safer.
26298         (Security): New section.
26299         (Networking functions): Add accept4.
26300         (Signal handling): Add sigpipe.
26301         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26302         mbmemcasecoll.
26303         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26304         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26305         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26306         pipe-filter-ii.
26307         (Misc): Add argp-version-etc, login_tty, parse-duration.
26308
26309 2010-07-31  Bruno Haible  <bruno@clisp.org>
26310
26311         Improve doc in MODULES.html.
26312         * modules/linkat (Description): Add the word "function".
26313         * modules/mkfifo (Description): Likewise.
26314         * modules/mknod (Description): Likewise.
26315         * modules/remove (Description): Likewise.
26316         * modules/renameat (Description): Likewise.
26317         * modules/stat (Description): Likewise.
26318         * modules/symlink (Description): Likewise.
26319         * modules/unlink (Description): Likewise.
26320
26321 2010-07-31  Bruno Haible  <bruno@clisp.org>
26322
26323         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26324         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26325         option --enable/disable-c++ instead of --enable/disable-cxx.
26326         * NEWS: Mention the change.
26327
26328 2010-07-31  Bruno Haible  <bruno@clisp.org>
26329
26330         readlink, areadlink: Relax test a bit.
26331         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26332         alternative to ENOTDIR.
26333         * tests/test-areadlink.h (test_areadlink): Likewise.
26334         Reported by Rainer Tammer.
26335
26336 2010-07-31  Bruno Haible  <bruno@clisp.org>
26337
26338         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26339         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26340         character, perform the search using U_STRCHR.
26341         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26342         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26343         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26344         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26345         Suggested by Paolo Bonzini.
26346
26347 2010-07-31  Bruno Haible  <bruno@clisp.org>
26348
26349         unistr/u*-strstr: Fix dependencies.
26350         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26351         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26352         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26353
26354 2010-07-31  Bruno Haible  <bruno@clisp.org>
26355
26356         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26357         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26358         the beginning of the loop.
26359         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26360         cases in 'switch' statement.
26361
26362         unistr/u8-strchr: Fix several bugs.
26363         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26364         the string. When not found, return NULL, not a pointer near the end.
26365
26366         More tests for unistr/u8-strchr.
26367         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26368         that the function does not read past the first occurrence of the byte
26369         being searched.
26370         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26371         * tests/unistr/test-u16-strchr.c (main): New function.
26372         * tests/unistr/test-u32-strchr.c (main): New function.
26373
26374 2010-07-31  Bruno Haible  <bruno@clisp.org>
26375
26376         posix-modules: Ignore backup files of documentation files.
26377         * posix-modules: grep only through files named *.texi.
26378
26379 2010-07-31  Bruno Haible  <bruno@clisp.org>
26380
26381         symlinkat: Fix documentation.
26382         * doc/posix-functions/readlinkat.texi: Fix module name.
26383
26384 2010-07-31  Bruno Haible  <bruno@clisp.org>
26385
26386         fchownat: Replace also when chown has the trailing slash bug.
26387         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26388         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26389         introduced on 2010-04-10.
26390         Reported by Rainer Tammer.
26391
26392 2010-07-31  Bruno Haible  <bruno@clisp.org>
26393
26394         linkat: Work around AIX 7.1 bug.
26395         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26396         whether linkat handles trailing slash correctly. If not, replace linkat
26397         and define LINKAT_TRAILING_SLASH_BUG.
26398         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26399         check whether (fd1,file1) points to a directory if file1 or file2 ends
26400         in a slash. Code taken from lib/link.c.
26401         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26402         Reported by Rainer Tammer.
26403
26404 2010-07-31  Bruno Haible  <bruno@clisp.org>
26405
26406         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26407         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26408         This disables an xlc optimization that was causing wrong test results.
26409         Reported by Rainer Tammer.
26410
26411 2010-07-31  Bruno Haible  <bruno@clisp.org>
26412
26413         iconv: Work around AIX 6.1..7.1 bug.
26414         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26415         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26416         cross-compiling, guess no on all versions of AIX.
26417         Reported by Rainer Tammer.
26418
26419 2010-07-31  Bruno Haible  <bruno@clisp.org>
26420
26421         readlink: Relax test a bit.
26422         * tests/test-readlink.h (test_readlink): Allow different errno value
26423         when readlink is called with a file name that ends in / and refers to
26424         a file.
26425         Suggested by Eric Blake.
26426         Reported by Rainer Tammer.
26427
26428 2010-07-31  Bruno Haible  <bruno@clisp.org>
26429
26430         copysign: Does not require -lm on glibc systems.
26431         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26432         gl_COMMON_DOUBLE_MATHFUNC.
26433         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26434
26435 2010-07-31  Bruno Haible  <bruno@clisp.org>
26436
26437         duplocale: Work around AIX 7.1 bug.
26438         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26439         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26440         * lib/duplocale.c (rpl_duplocale): Update comment.
26441         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26442         Reported by Rainer Tammer.
26443
26444 2010-07-30  Bruno Haible  <bruno@clisp.org>
26445
26446         dirfd: Avoid link error on AIX 7.1.
26447         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26448         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26449         exist, set REPLACE_DIRFD.
26450         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26451         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26452         * doc/posix-functions/dirfd.texi: Update.
26453         Reported by Rainer Tammer.
26454
26455 2010-07-30  Eric Blake  <eblake@redhat.com>
26456
26457         strtod: next round of AIX fixes
26458         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26459         exponent.
26460         * tests/test-strtod.c (main): Enhance tests.
26461         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26462         Reported by Rainer Tammer.
26463
26464         futimens: fix configure check
26465         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26466         Reported by Bruno Haible.
26467
26468 2010-07-30  Bruno Haible  <bruno@clisp.org>
26469
26470         getline: Update regarding AIX.
26471         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26472         Reported by Rainer Tammer.
26473
26474 2010-07-30  Bruno Haible  <bruno@clisp.org>
26475
26476         wcwidth: Drop replacement on AIX 7.
26477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26478         AIX 7.
26479         Reported by Rainer Tammer.
26480
26481 2010-07-30  Bruno Haible  <bruno@clisp.org>
26482
26483         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26484         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26485         a 'char *'.
26486         Reported by Rainer Tammer.
26487
26488 2010-07-30  Bruno Haible  <bruno@clisp.org>
26489
26490         unlink: Update regarding AIX.
26491         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26492         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26493         Reported by Rainer Tammer.
26494
26495 2010-07-30  Bruno Haible  <bruno@clisp.org>
26496
26497         symlink: Update regarding AIX.
26498         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26499         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26500         Reported by Rainer Tammer.
26501
26502 2010-07-30  Bruno Haible  <bruno@clisp.org>
26503
26504         strndup: Update regarding AIX.
26505         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26506         AIX 7.
26507         Reported by Rainer Tammer.
26508
26509 2010-07-30  Bruno Haible  <bruno@clisp.org>
26510
26511         stat: Update regarding AIX.
26512         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26513         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26514         Reported by Rainer Tammer.
26515
26516 2010-07-30  Bruno Haible  <bruno@clisp.org>
26517
26518         truncl: Fix autoconf test.
26519         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26520         whether truncl works.
26521         Reported by Rainer Tammer.
26522
26523 2010-07-30  Bruno Haible  <bruno@clisp.org>
26524
26525         round: Update regarding AIX.
26526         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26527         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26528         Reported by Rainer Tammer.
26529
26530 2010-07-30  Bruno Haible  <bruno@clisp.org>
26531
26532         rename: Update regarding AIX.
26533         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26534         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26535         Reported by Rainer Tammer.
26536
26537 2010-07-30  Bruno Haible  <bruno@clisp.org>
26538
26539         printf.m4: Update regarding AIX.
26540         * m4/printf.m4: Update comments regarding AIX.
26541         Reported by Rainer Tammer.
26542
26543 2010-07-30  Bruno Haible  <bruno@clisp.org>
26544
26545         iconv: Update regarding AIX.
26546         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26547         AIX 7.
26548         Reported by Rainer Tammer.
26549
26550 2010-07-30  Bruno Haible  <bruno@clisp.org>
26551
26552         getopt: Update regarding AIX.
26553         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26554         no on AIX.
26555         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26556         Reported by Rainer Tammer.
26557
26558 2010-07-30  Bruno Haible  <bruno@clisp.org>
26559
26560         ldexpl; Update regarding AIX.
26561         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26562         on AIX 7.
26563         Reported by Rainer Tammer.
26564
26565 2010-07-30  Bruno Haible  <bruno@clisp.org>
26566
26567         frexpl: Update regarding AIX.
26568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26569         on AIX 7.
26570         Reported by Rainer Tammer.
26571
26572 2010-07-30  Bruno Haible  <bruno@clisp.org>
26573
26574         open, fopen: Update regarding AIX.
26575         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26576         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26577         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26578         * doc/posix-functions/fopen.texi: Likewise.
26579         Reported by Rainer Tammer.
26580
26581 2010-07-30  Bruno Haible  <bruno@clisp.org>
26582
26583         chown: Update doc regarding AIX.
26584         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26585         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26586         Reported by Rainer Tammer.
26587
26588 2010-07-30  Eric Blake  <eblake@redhat.com>
26589
26590         strtod: fix bug in replacement function on AIX
26591         * lib/strtod.c (strtod): Special case broken "0x" parse in
26592         underlying strtod.
26593         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26594         * doc/posix-functions/strtod.texi (strtod): Likewise.
26595         Reported by Rainer Tammer.
26596
26597 2010-07-30  Bruno Haible  <bruno@clisp.org>
26598
26599         mbrlen: Fix cross-compilation guess for AIX.
26600         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26601         guess. Leftover from 2008-12-22.
26602
26603 2010-07-30  Bruno Haible  <bruno@clisp.org>
26604
26605         mbrtowc: Fix cross-compilation guess for AIX.
26606         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26607         guess. Leftover from 2008-12-21.
26608
26609 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26610
26611         init.sh: work around trap limitation of some shells
26612         * tests/init.sh (setup_): Move exit trap outside of shell function.
26613
26614 2010-07-29  Eric Blake  <eblake@redhat.com>
26615
26616         strtod: aid debugging
26617         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26618         understanding why strtod is rejected.
26619
26620 2010-07-28  Bruno Haible  <bruno@clisp.org>
26621
26622         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26623         * lib/unistr/u8-chr.c: Include <string.h>.
26624         * tests/unistr/test-u8-chr.c: Likewise.
26625         * tests/unistr/test-u16-chr.c: Likewise.
26626         * tests/unistr/test-u32-chr.c: Likewise.
26627         * tests/unistr/test-u8-strchr.c: Likewise.
26628         * tests/unistr/test-u16-strchr.c: Likewise.
26629         * tests/unistr/test-u32-strchr.c: Likewise.
26630         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26631         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26632         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26633         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26634
26635 2010-07-28  Bruno Haible  <bruno@clisp.org>
26636
26637         Use spaces for indentation, not tabs.
26638         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26639
26640 2010-07-27  Bruno Haible  <bruno@clisp.org>
26641
26642         mbspcasecmp: Fix function specification.
26643         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26644         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26645         Reported by Eric Blake <eblake@redhat.com>.
26646
26647 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26648
26649         timespec: use cast and not conditional, as truncation isn't possible
26650         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26651         instead of a conditional.  Comment about the situation in more detail.
26652         This undoes most of the 2009-10-29 patch.
26653
26654 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26655
26656         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26657         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26658         * lib/unistr/u8-strchr.c: Likewise.
26659         * modules/unistr/u8-chr: Depend on memchr.
26660
26661         unistr/u*-strchr: add tests
26662         * modules/unistr/u8-strchr-tests: New file.
26663         * modules/unistr/u16-strchr-tests: New file.
26664         * modules/unistr/u32-strchr-tests: New file.
26665         * tests/unistr/test-strchr.h: New file.
26666         * tests/unistr/test-u8-strchr.c: New file.
26667         * tests/unistr/test-u16-strchr.c: New file.
26668         * tests/unistr/test-u32-strchr.c: New file.
26669
26670         unistr/u*-chr: test multibyte sequences more
26671         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26672         test vector.
26673         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26674         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26675         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26676
26677         unistr/u*-chr: test multibyte sequences
26678         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26679
26680         unistr/u*-chr: prepare for multibyte tests
26681         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26682         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26683         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26684         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26685         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26686         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26687
26688 2010-07-18  Bruno Haible  <bruno@clisp.org>
26689
26690         unistr/u8-strchr: Optimize non-ASCII argument case.
26691         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26692         because the first byte often matches anyway.
26693         Reported by Pádraig Brady <P@draigbrady.com>.
26694
26695 2010-07-15  Karl Berry  <karl@gnu.org>
26696
26697         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26698
26699 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26700
26701         getcwd: on Solaris, work better if ancestors are inaccessible
26702         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26703         buffer and size, try again with a large buffer.  This works better
26704         on Solaris, since its getcwd succeeds even if the path to the root
26705         is inaccessible, and this is helpful in common cases such as .zfs
26706         hidden directories.  Problem reported by J Chapman Flack in
26707         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26708         Use system getcwd if it's declared, not merely if it's partly
26709         working; use the partly-working test only to avoid needless effort
26710         if the system getcwd fails.
26711         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26712         comment that was already obsolete and is now even more obsolete.
26713         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26714         now might call strdup.
26715
26716 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26717
26718         pthread: Add enough so that coreutils/src/sort.c compiles.
26719         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26720         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26721         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26722         Include <sys/types.h>, in case it defines pthread_t.
26723         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26724         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26725         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26726         (pthread_rwlockattr_t, pthread_spinlock_t):
26727         New typedefs, if HAVE_PTHREAD_T is not defined.
26728         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26729         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26730         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26731         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26732         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26733         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26734         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26735         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26736         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26737         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26738         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26739         New macros.
26740         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26741         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26742         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26743         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26744         (pthread_spin_unlock): New dummy functions.
26745         (pthread_create): Return EAGAIN; don't set errno.
26746         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26747         require AC_C_INLINE.
26748         * modules/pthread (Depends-on): Add sched, time.
26749         (pthread.h): Use AM_V_GEN.
26750
26751 2010-07-13  Bruno Haible  <bruno@clisp.org>
26752
26753         striconveh: Don't malloc memory if the result buffer is sufficient.
26754         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26755         buffer if its size is sufficient.
26756         Reported by Ludovic Courtès <ludo@gnu.org>.
26757
26758 2010-07-13  Bruno Haible  <bruno@clisp.org>
26759
26760         strtod: Add safety check.
26761         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26762
26763 2010-07-12  Bruno Haible  <bruno@clisp.org>
26764
26765         Unify tests that set gl_cv_func_ldexpl_no_libm.
26766         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26767         gl_FUNC_LDEXPL.
26768         (gl_FUNC_LDEXPL): Invoke it.
26769         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26770
26771 2010-07-12  Bruno Haible  <bruno@clisp.org>
26772
26773         Unify tests that set gl_cv_func_ldexp_no_libm.
26774         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26775         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26776         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26777         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26778         * modules/strtod (Files): Add m4/ldexp.m4.
26779
26780 2010-07-12  Bruno Haible  <bruno@clisp.org>
26781
26782         Unify tests that set gl_cv_func_frexpl_no_libm.
26783         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26784         gl_FUNC_FREXPL_NO_LIBM.
26785         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26786         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26787
26788 2010-07-12  Bruno Haible  <bruno@clisp.org>
26789
26790         Unify tests that set gl_cv_func_frexp_no_libm.
26791         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26792         gl_FUNC_FREXP_NO_LIBM.
26793         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26794         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26795
26796 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26797
26798         memcoll: clarify sizes versus lengths, document better, and tweak perf
26799         * lib/memcoll.c (strcoll_loop, memcoll0):
26800         Improve quality of descriptive comments.  Name variables
26801         consistently as to whether they are lengths (which do not include
26802         terminating null) versus sizes (which do).
26803         * lib/xmemcoll.c (xmemcoll0): Likewise.
26804         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26805         returned when s1size == 0; this is easier to compile and saves
26806         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26807
26808 2010-07-12  Bruno Haible  <bruno@clisp.org>
26809
26810         Tests for module '_Exit'.
26811         * modules/_Exit-tests: New file.
26812         * tests/test-_Exit.sh: New file.
26813         * tests/test-_Exit.c: New file.
26814
26815         New module '_Exit'.
26816         * lib/stdlib.in.h (__attribute__): New macro.
26817         (_Exit): New declaration.
26818         * lib/_Exit.c: New file.
26819         * m4/_Exit.m4: New file.
26820         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26821         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26822         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26823         * modules/_Exit: New file.
26824         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26825         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26826
26827 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26828
26829         strtod: make it more-accurate typically, and don't require libm
26830         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26831         Include limits.h.  Don't include string.h.
26832         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26833         (locale_isspace): New function, so that no casts are needed to
26834         check whether *s is a space.
26835         (ldexp): Provide an unused dummy if not available.
26836         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26837         (strtod): Use them.  This implementation prefers to use the
26838         underlying strtod if available, falling back on our own code
26839         only to fix known bugs.  This is more likely to produce an
26840         accurate result.  Also, it avoids the use of libm functions.
26841         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26842         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26843         was absent, but it caused a test failure with coreutils.
26844         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26845         with libm.
26846         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26847         * modules/strtod-tests (Makefile.am): Likewise.
26848
26849 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26850             Bruno Haible  <bruno@clisp.org>
26851
26852         unistr/u8-strchr: Optimize ASCII argument case.
26853         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26854
26855 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26856
26857         (x)memcoll: minor tweaks
26858         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26859         is after the type that it qualifies.
26860         (memcoll0): Likewise.
26861         * lib/memcoll.h (memcoll0): Likewise.
26862         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26863         * lib/xmemcoll.h (xmemcoll0): Likewise.
26864         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26865         differs from memcoll in that the NUL byte is part of the argument.
26866         Omit the abort-checks, as performance is a real issue here.  Plus,
26867         the checks were wrong anyway (an off-by-one error).  Omit local
26868         variable 'diff', as it's a bit clearer that way.
26869         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26870         no longer needed.
26871
26872 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26873
26874         (x)memcoll: speedup when input is known to be NUL delimited
26875         * lib/memcoll.c: Include stdlib.
26876         (memcoll0): New function.
26877         (strcoll_loop): New function, refactored for use in both memcoll
26878         and memcoll0.
26879         * lib/memcoll.h (memcoll0): Add prototype.
26880         * lib/xmemcoll.c (xmemcoll0): New function.
26881         (collate_error): New function, refactored for use in both xmemcoll
26882         and xmemcoll0.
26883         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26884         * m4/memcoll.m4: add inline invocation.
26885
26886 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26887
26888         * build-aux/bootstrap: Remove any local translations
26889         from the translation project synchronization directory,
26890         so that local only translations are not distributed.
26891
26892 2010-07-04  Bruno Haible  <bruno@clisp.org>
26893
26894         fsusage: Clarify which code applies to which platforms.
26895         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26896         platform.
26897         * lib/fsusage.c (get_fs_usage): Likewise.
26898
26899 2010-07-04  Bruno Haible  <bruno@clisp.org>
26900
26901         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26902         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26903         Reported by Martin Lambers <marlam@marlam.de>.
26904
26905 2010-07-04  Jim Meyering  <meyering@redhat.com>
26906
26907         hash: once again explicitly disallow insertion of NULL
26908         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26909         inserting a NULL pointer cannot work with these functions.
26910         Add a comment with details.
26911         This reverts part of the 2010-07-01 commit, 5bef1a35
26912         "hash: extend module to deal with non-pointer keys".
26913
26914 2010-07-01  Bruno Haible  <bruno@clisp.org>
26915
26916         stdbool: Update doc.
26917         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26918         Info from Christian Weisgerber <naddy@mips.inka.de>.
26919
26920 2010-07-01  Jim Meyering  <meyering@redhat.com>
26921
26922         hash: extend module to deal with non-pointer keys
26923         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26924         but that allows insertion of non-pointer entries.
26925         Do not disallow an ENTRY value of NULL.
26926         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26927         * lib/hash.h (hash_insert0): Declare.
26928
26929 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26930
26931         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26932         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26933         not present (i.e. with autoconf 2.59 and when using gettextize, not
26934         gnulib), require AC_GNU_SOURCE instead.
26935
26936 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26937
26938         idpriv-drop: Fix tests.
26939         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26940         not to the test-idpriv-droptemp program.
26941
26942 2010-06-29  Bruno Haible  <bruno@clisp.org>
26943
26944         string: Fix syntax error with g++ 2.96.
26945         * lib/string.in.h (__pure__): Remove definition.
26946         (_GL_ATTRIBUTE_PURE): New macro.
26947         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26948         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26949         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26950
26951 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26952
26953         unitypes: Fix bug introduced on 2010-05-18.
26954         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26955
26956 2010-06-22  Eric Blake  <eblake@redhat.com>
26957
26958         memmem: slight optimization
26959         * lib/str-two-way.h (critical_factorization): Update comments.
26960         Reduce work during factorization phase.
26961         Reported by Carlos Bueno <carlos@bueno.org>.
26962
26963 2010-06-21  Bruno Haible  <bruno@clisp.org>
26964
26965         Fix HAVE_CALLOC_POSIX misnomer.
26966         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26967         !HAVE_CALLOC_POSIX.
26968         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26969         HAVE_CALLOC_POSIX.
26970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26971         instead of HAVE_CALLOC_POSIX.
26972         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26973         HAVE_CALLOC_POSIX.
26974
26975         Use modern idiom for calloc() replacement.
26976         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26977         AC_FUNC_CALLOC.
26978         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26979         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26980         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26981         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26982         (gl_REPLACE_CALLOC): New macro.
26983
26984 2010-06-21  Bruno Haible  <bruno@clisp.org>
26985
26986         Fix HAVE_REALLOC_POSIX misnomer.
26987         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26988         !HAVE_REALLOC_POSIX.
26989         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26990         HAVE_REALLOC_POSIX.
26991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26992         instead of HAVE_REALLOC_POSIX.
26993         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26994         HAVE_REALLOC_POSIX.
26995
26996         Use modern idiom for realloc() replacement.
26997         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26998         AC_FUNC_REALLOC.
26999         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27000         Autoconf's AC_FUNC_REALLOC.
27001         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27002         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27003         (gl_REPLACE_REALLOC): New macro.
27004         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27005
27006 2010-06-21  Bruno Haible  <bruno@clisp.org>
27007
27008         Fix HAVE_MALLOC_POSIX misnomer.
27009         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27010         !HAVE_MALLOC_POSIX.
27011         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27012         HAVE_MALLOC_POSIX.
27013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27014         instead of HAVE_MALLOC_POSIX.
27015         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27016         HAVE_MALLOC_POSIX.
27017
27018         Use modern idiom for malloc() replacement.
27019         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27020         AC_FUNC_MALLOC.
27021         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27022         Autoconf's AC_FUNC_MALLOC.
27023         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27024         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27025         (gl_REPLACE_MALLOC): New macro.
27026         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27027
27028 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27029
27030         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27031         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27032         This macro takes 3 arguments, not 4.
27033
27034 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27035
27036         ipv6: fix detection under mingw
27037         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27038         in6_addr.
27039
27040 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27041
27042         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27043         that strtod() works when cross-compiling to a glibc version known
27044         to work.
27045
27046 2010-06-15  Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27049
27050 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27051
27052         select: Correct timeout.
27053         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27054
27055 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27056
27057         git-version-gen: init shell var to avoid env var influence
27058         * build-aux/git-version-gen (v): Init shell var to empty.
27059
27060 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27061
27062         priv-set: Don't assume that priv.h exists merely because getppriv does.
27063         See Jan Andersen's bug report about AIX 5L in
27064         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27065         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27066         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27067         * lib/priv-set.h: Likewise.
27068         * tests/test-priv-set.c: Likewise.
27069
27070 2010-06-13  Bruno Haible  <bruno@clisp.org>
27071
27072         relocatable: Make it easier to test whether to install wrappers.
27073         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27074         RELOCATABLE_VIA_WRAPPER.
27075
27076 2010-06-13  Bruno Haible  <bruno@clisp.org>
27077
27078         gnulib-tool: Display specified modules and dependencies differently.
27079         * gnulib-tool (func_show_module_list): New function.
27080         (func_import, func_create_testdir): Invoke it.
27081         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27082
27083 2010-06-13  Bruno Haible  <bruno@clisp.org>
27084
27085         gnulib-tool: Align code of func_import and func_create_testdir.
27086         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27087         specified_modules.
27088
27089 2010-06-12  Jim Meyering  <meyering@redhat.com>
27090
27091         test-inttostr: avoid spurious failure on Solaris 9
27092         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27093         to accept "%ju".  Reported by Bruno Haible.
27094
27095 2010-06-11  Jim Meyering  <meyering@redhat.com>
27096
27097         test-sys_socket: mark variables as used more readably
27098         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27099         as "used" explicitly via (void) statement casts.  This is more
27100         readable than using them in an artificial return expression.
27101         Suggestion from Bruno Haible.
27102
27103 2010-06-11  Bruno Haible  <bruno@clisp.org>
27104
27105         Avoid some more warnings from "gcc -Wwrite-strings".
27106         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27107         to 'const char *'.
27108         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27109         * tests/test-c-strcasestr.c (main): Likewise.
27110         * tests/test-mbscasestr1.c (main): Likewise.
27111         * tests/test-mbscasestr2.c (main): Likewise.
27112         * tests/test-memmem.c (main): Likewise.
27113         * tests/test-strstr.c (main): Likewise.
27114         * tests/test-strcasestr.c (main): Likewise.
27115
27116 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27117
27118         init.sh: change framework_failure_ to fail with status 99, not 1
27119         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27120         automake's parallel-tests rule that this is an unexpected failure,
27121         even if the test is listed in XFAIL_TESTS.
27122
27123 2010-06-11  Jim Meyering  <meyering@redhat.com>
27124
27125         test-inttostr: avoid warnings about 4-6KB literal strings
27126         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27127         Include "macros.h", for its definition of ASSERT.
27128         (CK): s/assert/ASSERT/
27129         * modules/inttostr-tests (Files): Add macros.h.
27130
27131         init.sh: don't use $ME_ or skip_ before they are defined
27132         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27133         their first uses.  Also hoist their companions: warn_, fail_,
27134         framework_failure_, $stderr_fileno.  Prompted by a patch from
27135         Stefano Lattarini.
27136
27137         test-sys_socket: avoid set-but-not-used warnings from gcc
27138         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27139         avoid warning about set-but-not-used variables.
27140
27141         test-xvasprintf: avoid 'const' discard warnings
27142         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27143         "const" when assigning from literal strings.
27144         (test_xasprintf): Add "void" in function argument list to placate
27145         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27146
27147         tests: avoid compilation warnings in argmatch and exclude tests...
27148         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27149         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27150         Since it always exits, declare with the "noreturn" attribute.
27151         * tests/test-argmatch.c: Likewise.
27152
27153         tests: avoid 'const' discard warnings in mbsstr tests
27154         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27155         * tests/test-mbsstr2.c (main): Likewise.
27156
27157         test-verify: avoid warning from gcc's -Wmissing-declarations
27158         * tests/test-verify.c (function): Declare to be static.
27159
27160         test-inttostr.c: include <string.h> for use of strcmp
27161         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27162
27163         test-linkat: avoid failed assertion on "other" architectures
27164         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27165         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27166         sparc: https://bugs.launchpad.net/bugs/591968
27167
27168 2010-06-11  Jim Meyering  <meyering@redhat.com>
27169
27170         printf.m4: avoid autoconf's "Expanded Before Required" warning
27171         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27172         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27173         autoconf warning.
27174
27175 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27176
27177         Replacement header templates are now named with ".in", not "_".
27178         * doc/gnulib-intro.texi: Correct.
27179
27180 2010-06-10  Jim Meyering  <meyering@redhat.com>
27181
27182         inttostr-tests: depend on snprintf, not snprintf-posix
27183         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27184         snprintf-posix, to avoid this aclocal failure:
27185           missing file gnulib-tests/vasnprintf.c
27186           configure.ac:45: error: expected source file, required through \
27187           AC_LIBSOURCES, not found
27188
27189 2010-06-10  Jim Meyering  <meyering@redhat.com>
27190
27191         inttostr: add a new function, inttostr, and tests
27192         The namesake function was not available.  The existence of the
27193         template file, inttostr.c makes its addition nontrivial.
27194         * lib/anytostr.c: Rename from inttostr.c.
27195         (anytostr): Rename from inttostr.
27196         * lib/inttostr.c: New file.
27197         * modules/inttostr (Files): Add anytostr.c.
27198         (Makefile.am): Set lib_SOURCES instead of ...
27199         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27200         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27201         * lib/offtostr.c: Likewise.
27202         * lib/uinttostr.c: Likewise.
27203         * lib/umaxtostr.c: Likewise.
27204         * modules/inttostr-tests: New file.
27205         * tests/test-inttostr.c: New file.  Test these functions.
27206
27207 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27208             Bruno Haible  <bruno@clisp.org>
27209
27210         Add "Extending Gnulib" chapter to manual.
27211         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27212         chapter.
27213         (Extending Gnulib): New chapter.
27214         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27215         chapter.
27216
27217 2010-06-09  Bruno Haible  <bruno@clisp.org>
27218
27219         Avoid relocwrapper link errors due to gnulib replacement functions.
27220         * lib/areadlink.c: Use the system's malloc, realloc functions.
27221         (areadlink): Set errno to ENOMEM explicitly.
27222         * modules/areadlink (Depends-on): Remove malloc-posix.
27223         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27224
27225 2010-06-09  Bruno Haible  <bruno@clisp.org>
27226
27227         Avoid relocwrapper link errors due to gnulib replacement functions.
27228         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27229         * lib/malloca.c: Likewise.
27230         * lib/relocatable.c: Likewise.
27231         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27232         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27233         * lib/setenv.c: Use the system's malloc, realloc functions.
27234         * lib/strerror.c: Use the system's sprintf function.
27235         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27236
27237 2010-06-04  Bruno Haible  <bruno@clisp.org>
27238
27239         Prefer documented low-level autoconf macro names.
27240         * m4/lib-link.m4: Use m4_translit instead of translit.
27241         * m4/environ.m4: Likewise.
27242         * m4/mathfunc.m4: Likewise.
27243         * m4/onceonly.m4: Likewise.
27244         * m4/stdint.m4: Likewise.
27245         Suggested by Eric Blake.
27246
27247 2010-06-04  Martin Lambers  <marlam@marlam.de>
27248             Bruno Haible  <bruno@clisp.org>
27249
27250         havelib: Allow library names with '+' characters.
27251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27252         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27253
27254 2010-06-09  Bruno Haible  <bruno@clisp.org>
27255
27256         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27257         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27258         realloc failed.
27259
27260 2010-06-08  Peter Simons  <simons@cryp.to>
27261
27262         maint.mk: make the news-check rule more configurable
27263         * top/maint.mk (news-check-lines-spec): New variable.
27264         (news-check): Use "sed -n 1,10p" in place of "head".
27265
27266 2010-06-07  Jim Meyering  <meyering@redhat.com>
27267
27268         do-release-commit-and-tag: fix typo in --help
27269         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27270
27271         regex: avoid new dead-code warning with gcc-4.6.0
27272         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27273         if-block containing a while-loop.  It's been unused for at least
27274         5 years.
27275
27276 2010-06-05  Bruno Haible  <bruno@clisp.org>
27277
27278         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27279         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27280
27281 2010-06-04  Bruno Haible  <bruno@clisp.org>
27282
27283         Update to GNU gettext 0.18.1.
27284         * modules/gettext (configure.ac): Require gettext infrastructure from
27285         version 0.18.1.
27286
27287 2010-06-03  Bruno Haible  <bruno@clisp.org>
27288
27289         Don't use AC_LIBOBJ with file names in subdirectories.
27290         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27291         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27292         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27293         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27294         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27295         gl_LIBUNISTRING_LIBSOURCE.
27296         (Makefile.am): Augment lib_SOURCES here, conditionally.
27297         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27298
27299 2010-06-03  Bruno Haible  <bruno@clisp.org>
27300
27301         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27302         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27303         expansion does not end with a newline.
27304         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27305         unnecessary newline.
27306
27307 2010-06-03  Bruno Haible  <bruno@clisp.org>
27308
27309         Reduce dependencies.
27310         * tests/test-quotearg.h: New file, extracted from
27311         tests/test-quotearg.c.
27312         * tests/test-quotearg-simple.c: New file, extracted from
27313         tests/test-quotearg.c.
27314         * tests/test-quotearg.c: Don't include <ctype.h>.
27315         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27316         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27317         use_quote_double_quotes, use_quotearg_colon): Moved to
27318         tests/test-quotearg.h.
27319         (results_g, flag_results, custom_quotes, custom_results): Moved
27320         to tests/test-quotearg-simple.c.
27321         (main): Moved the part that does not depend on gettext to
27322         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27323         performed.
27324         * modules/quotearg-simple: New file.
27325         * modules/quotearg-simple-tests: New file.
27326         * modules/quotearg (Depends-on): Add quotearg-simple.
27327         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27328         (Files): Add tests/test-quotearg.h.
27329         Reported by Paolo Bonzini.
27330
27331 2010-06-03  Bruno Haible  <bruno@clisp.org>
27332
27333         Reduce dependencies.
27334         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27335
27336 2010-06-03  Bruno Haible  <bruno@clisp.org>
27337
27338         time: Undefine more broken macros.
27339         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27340         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27341         Reported by Eric Blake.
27342
27343 2010-06-03  Bruno Haible  <bruno@clisp.org>
27344
27345         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27346         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27347         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27348         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27349         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27350         Reported by Ludovic Courtès <ludo@gnu.org>.
27351
27352 2010-06-02  Eric Blake  <eblake@redhat.com>
27353
27354         time: work with mingw + pthreads-win32 library
27355         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27356         if timespec is defined only in pthread.h.
27357         * modules/time (Makefile.am): Substitute it.
27358         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27359         <pthread.h>, when needed.
27360         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27361         from the library.
27362
27363 2010-05-31  Bruno Haible  <bruno@clisp.org>
27364
27365         Avoid expanding two macros in the wrong order.
27366         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27367         gl_LIBUNISTRING if it is defined.
27368         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27369         autoconf >= 2.64.
27370         Reported by Ludovic Courtès <ludo@gnu.org>.
27371
27372 2010-05-27  Jim Meyering  <meyering@redhat.com>
27373
27374         maint.mk: also prohibit "#undef" of always-defined symbols
27375         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27376         Allow more than one space before the symbol name.
27377         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27378         the regexp uses alternation.
27379
27380 2010-05-26  Eric Blake  <eblake@redhat.com>
27381
27382         maint.mk: avoid echo -e
27383         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27384         Convert all uses of echo -* to printf.
27385         Reported by Matthias Bolte.
27386
27387 2010-05-25  Bruno Haible  <bruno@clisp.org>
27388
27389         Update to GNU gettext 0.18, part 2.
27390         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27391         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27392
27393 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27394
27395         Add missing include in test-pwrite.c.
27396         * tests/test-pwrite.c: Include string.h, for strcmp.
27397
27398 2010-05-24  Bruno Haible  <bruno@clisp.org>
27399
27400         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27401
27402 2010-05-24  Bruno Haible  <bruno@clisp.org>
27403
27404         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27405         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27406         iconveh_error argument.
27407         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27408         U_STRCONV_TO_LOCALE.
27409         * lib/unistr/u16-strcoll.c: Likewise.
27410         * lib/unistr/u32-strcoll.c: Likewise.
27411         * modules/unistr/u8-strcoll (Depends-on): Add
27412         uniconv/u8-strconv-to-enc, localcharset. Remove
27413         uniconv/u8-strconv-to-locale.
27414         (configure.ac): Bump version number.
27415         * modules/unistr/u16-strcoll (Depends-on): Add
27416         uniconv/u16-strconv-to-enc, localcharset. Remove
27417         uniconv/u16-strconv-to-locale.
27418         (configure.ac): Bump version number.
27419         * modules/unistr/u32-strcoll (Depends-on): Add
27420         uniconv/u32-strconv-to-enc, localcharset. Remove
27421         uniconv/u32-strconv-to-locale.
27422         (configure.ac): Bump version number.
27423
27424 2010-05-24  Bruno Haible  <bruno@clisp.org>
27425
27426         Avoid a test failure on NetBSD 5.0.
27427         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27428         an iconv() bug.
27429
27430 2010-05-24  Bruno Haible  <bruno@clisp.org>
27431
27432         Adjust #include directive style.
27433         * modules/regex (Includes): Recommend to write <regex.h>.
27434
27435 2010-05-24  Bruno Haible  <bruno@clisp.org>
27436
27437         regex: Don't require alloca.
27438         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27439         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27440         only inside if (0).
27441
27442 2010-05-23  Jim Meyering  <meyering@redhat.com>
27443
27444         test-renameat.c: include <sys/stat.h>
27445         * tests/test-renameat.c: Include <sys/stat.h>; required for
27446         definition of S_IS* macros.
27447
27448 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27449
27450         Update maintainer documentation for 'relocatable-prog' module.
27451         * doc/relocatable-maint.texi: Update.
27452         Comments by Bruno Haible.
27453
27454 2010-05-23  Bruno Haible  <bruno@clisp.org>
27455
27456         git-merge-changelog: Enable --split-merged-entry by default.
27457         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27458         (usage): Don't mention this option any more.
27459         Reported by Ralf Wildenhues.
27460
27461 2010-05-23  Jim Meyering  <meyering@redhat.com>
27462
27463         test-pwrite: do not leave behind a test file named "out"
27464         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27465         The trivial-looking use of init.sh is really necessary.
27466         It ensures that the temporary file, "out", is created in
27467         a temporary directory, and removed upon termination.
27468         * tests/test-pwrite.sh: Re-add file.
27469         * modules/pwrite-tests: Reference it.
27470
27471 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27472
27473         Fix output redirection buglet in init.sh.
27474         * tests/init.sh: Fix redirection of stderr.
27475
27476 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27477
27478         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27479
27480 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27481
27482         * modules/valgrind-tests: New file.
27483         * m4/valgrind-tests.m4: New file.
27484         * doc/valgrind-tests.texi: New file.
27485         * doc/gnulib.texi (Running self-tests under valgrind): New
27486         section.
27487
27488 2010-05-19  Bruno Haible  <bruno@clisp.org>
27489
27490         Clean up dead code in recent commit.
27491         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27492         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27493         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27494         Suggested by Paolo Bonzini.
27495
27496 2010-05-19  Bruno Haible  <bruno@clisp.org>
27497
27498         Avoid valgrind error reports from libunistring.
27499         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27500         * modules/libunistring (Files): Add it.
27501         * modules/libunistring-optional (Files): Likewise.
27502
27503 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27504             Bruno Haible  <bruno@clisp.org>
27505
27506         New module 'libunistring-optional'.
27507         * modules/libunistring-optional: New file.
27508         * m4/libunistring-base.m4: New file.
27509         * m4/libunistring-optional.m4: New file.
27510         * lib/unicase.in.h: Renamed from lib/unicase.h.
27511         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27512         * lib/unictype.in.h: Renamed from lib/unictype.h.
27513         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27514         * lib/uniname.in.h: Renamed from lib/uniname.h.
27515         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27516         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27517         * lib/unistr.in.h: Renamed from lib/unistr.h.
27518         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27519         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27520         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27521         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27522         gl_LIBUNISTRING. If the library was found, determine the installed
27523         version and set LIBUNISTRING_VERSION.
27524         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27525         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27526         handle a configuration option --with-included-libunistring.
27527         * modules/libunistring (Files): Add m4/absolute-header.m4.
27528         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27529         Add m4/libunistring-base.m4.
27530         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27531         (Makefile.am): Build unicase.h from unicase.in.h.
27532         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27533         Add m4/libunistring-base.m4.
27534         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27535         (Makefile.am): Build uniconv.h from uniconv.in.h.
27536         * modules/unictype/base (Files): Use unictype.in.h instead of
27537         unictype.h. Add m4/libunistring-base.m4.
27538         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27539         (Makefile.am): Build unictype.h from unictype.in.h.
27540         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27541         Add m4/libunistring-base.m4.
27542         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27543         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27544         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27545         Add m4/libunistring-base.m4.
27546         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27547         (Makefile.am): Build uniname.h from uniname.in.h.
27548         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27549         Add m4/libunistring-base.m4.
27550         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27551         (Makefile.am): Build uninorm.h from uninorm.in.h.
27552         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27553         unistdio.h. Add m4/libunistring-base.m4.
27554         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27555         (Makefile.am): Build unistdio.h from unistdio.in.h.
27556         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27557         Add m4/libunistring-base.m4.
27558         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27559         (Makefile.am): Build unistr.h from unistr.in.h.
27560         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27561         Add m4/libunistring-base.m4.
27562         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27563         (Makefile.am): Build unitypes.h from unitypes.in.h.
27564         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27565         Add m4/libunistring-base.m4.
27566         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27567         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27568         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27569         uniwidth.h. Add m4/libunistring-base.m4.
27570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27571         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27572         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27573         instead of augmenting lib_SOURCES.
27574         * modules/unicase/empty-suffix-context: Likewise.
27575         * modules/unicase/locale-language: Likewise.
27576         * modules/unicase/tolower: Likewise.
27577         * modules/unicase/totitle: Likewise.
27578         * modules/unicase/toupper: Likewise.
27579         * modules/unicase/u8-casecmp: Likewise.
27580         * modules/unicase/u8-casecoll: Likewise.
27581         * modules/unicase/u8-casefold: Likewise.
27582         * modules/unicase/u8-casexfrm: Likewise.
27583         * modules/unicase/u8-ct-casefold: Likewise.
27584         * modules/unicase/u8-ct-tolower: Likewise.
27585         * modules/unicase/u8-ct-totitle: Likewise.
27586         * modules/unicase/u8-ct-toupper: Likewise.
27587         * modules/unicase/u8-is-cased: Likewise.
27588         * modules/unicase/u8-is-casefolded: Likewise.
27589         * modules/unicase/u8-is-lowercase: Likewise.
27590         * modules/unicase/u8-is-titlecase: Likewise.
27591         * modules/unicase/u8-is-uppercase: Likewise.
27592         * modules/unicase/u8-prefix-context: Likewise.
27593         * modules/unicase/u8-suffix-context: Likewise.
27594         * modules/unicase/u8-tolower: Likewise.
27595         * modules/unicase/u8-totitle: Likewise.
27596         * modules/unicase/u8-toupper: Likewise.
27597         * modules/unicase/u16-casecmp: Likewise.
27598         * modules/unicase/u16-casecoll: Likewise.
27599         * modules/unicase/u16-casefold: Likewise.
27600         * modules/unicase/u16-casexfrm: Likewise.
27601         * modules/unicase/u16-ct-casefold: Likewise.
27602         * modules/unicase/u16-ct-tolower: Likewise.
27603         * modules/unicase/u16-ct-totitle: Likewise.
27604         * modules/unicase/u16-ct-toupper: Likewise.
27605         * modules/unicase/u16-is-cased: Likewise.
27606         * modules/unicase/u16-is-casefolded: Likewise.
27607         * modules/unicase/u16-is-lowercase: Likewise.
27608         * modules/unicase/u16-is-titlecase: Likewise.
27609         * modules/unicase/u16-is-uppercase: Likewise.
27610         * modules/unicase/u16-prefix-context: Likewise.
27611         * modules/unicase/u16-suffix-context: Likewise.
27612         * modules/unicase/u16-tolower: Likewise.
27613         * modules/unicase/u16-totitle: Likewise.
27614         * modules/unicase/u16-toupper: Likewise.
27615         * modules/unicase/u32-casecmp: Likewise.
27616         * modules/unicase/u32-casecoll: Likewise.
27617         * modules/unicase/u32-casefold: Likewise.
27618         * modules/unicase/u32-casexfrm: Likewise.
27619         * modules/unicase/u32-ct-casefold: Likewise.
27620         * modules/unicase/u32-ct-tolower: Likewise.
27621         * modules/unicase/u32-ct-totitle: Likewise.
27622         * modules/unicase/u32-ct-toupper: Likewise.
27623         * modules/unicase/u32-is-cased: Likewise.
27624         * modules/unicase/u32-is-casefolded: Likewise.
27625         * modules/unicase/u32-is-lowercase: Likewise.
27626         * modules/unicase/u32-is-titlecase: Likewise.
27627         * modules/unicase/u32-is-uppercase: Likewise.
27628         * modules/unicase/u32-prefix-context: Likewise.
27629         * modules/unicase/u32-suffix-context: Likewise.
27630         * modules/unicase/u32-tolower: Likewise.
27631         * modules/unicase/u32-totitle: Likewise.
27632         * modules/unicase/u32-toupper: Likewise.
27633         * modules/unicase/ulc-casecmp: Likewise.
27634         * modules/unicase/ulc-casecoll: Likewise.
27635         * modules/unicase/ulc-casexfrm: Likewise.
27636         * modules/uniconv/u8-conv-from-enc: Likewise.
27637         * modules/uniconv/u8-conv-to-enc: Likewise.
27638         * modules/uniconv/u8-strconv-from-enc: Likewise.
27639         * modules/uniconv/u8-strconv-from-locale: Likewise.
27640         * modules/uniconv/u8-strconv-to-enc: Likewise.
27641         * modules/uniconv/u8-strconv-to-locale: Likewise.
27642         * modules/uniconv/u16-conv-from-enc: Likewise.
27643         * modules/uniconv/u16-conv-to-enc: Likewise.
27644         * modules/uniconv/u16-strconv-from-enc: Likewise.
27645         * modules/uniconv/u16-strconv-from-locale: Likewise.
27646         * modules/uniconv/u16-strconv-to-enc: Likewise.
27647         * modules/uniconv/u16-strconv-to-locale: Likewise.
27648         * modules/uniconv/u32-conv-from-enc: Likewise.
27649         * modules/uniconv/u32-conv-to-enc: Likewise.
27650         * modules/uniconv/u32-strconv-from-enc: Likewise.
27651         * modules/uniconv/u32-strconv-from-locale: Likewise.
27652         * modules/uniconv/u32-strconv-to-enc: Likewise.
27653         * modules/uniconv/u32-strconv-to-locale: Likewise.
27654         * modules/unictype/bidicategory-byname: Likewise.
27655         * modules/unictype/bidicategory-name: Likewise.
27656         * modules/unictype/bidicategory-of: Likewise.
27657         * modules/unictype/bidicategory-test: Likewise.
27658         * modules/unictype/block-list: Likewise.
27659         * modules/unictype/block-test: Likewise.
27660         * modules/unictype/category-C: Likewise.
27661         * modules/unictype/category-Cc: Likewise.
27662         * modules/unictype/category-Cf: Likewise.
27663         * modules/unictype/category-Cn: Likewise.
27664         * modules/unictype/category-Co: Likewise.
27665         * modules/unictype/category-Cs: Likewise.
27666         * modules/unictype/category-L: Likewise.
27667         * modules/unictype/category-Ll: Likewise.
27668         * modules/unictype/category-Lm: Likewise.
27669         * modules/unictype/category-Lo: Likewise.
27670         * modules/unictype/category-Lt: Likewise.
27671         * modules/unictype/category-Lu: Likewise.
27672         * modules/unictype/category-M: Likewise.
27673         * modules/unictype/category-Mc: Likewise.
27674         * modules/unictype/category-Me: Likewise.
27675         * modules/unictype/category-Mn: Likewise.
27676         * modules/unictype/category-N: Likewise.
27677         * modules/unictype/category-Nd: Likewise.
27678         * modules/unictype/category-Nl: Likewise.
27679         * modules/unictype/category-No: Likewise.
27680         * modules/unictype/category-P: Likewise.
27681         * modules/unictype/category-Pc: Likewise.
27682         * modules/unictype/category-Pd: Likewise.
27683         * modules/unictype/category-Pe: Likewise.
27684         * modules/unictype/category-Pf: Likewise.
27685         * modules/unictype/category-Pi: Likewise.
27686         * modules/unictype/category-Po: Likewise.
27687         * modules/unictype/category-Ps: Likewise.
27688         * modules/unictype/category-S: Likewise.
27689         * modules/unictype/category-Sc: Likewise.
27690         * modules/unictype/category-Sk: Likewise.
27691         * modules/unictype/category-Sm: Likewise.
27692         * modules/unictype/category-So: Likewise.
27693         * modules/unictype/category-Z: Likewise.
27694         * modules/unictype/category-Zl: Likewise.
27695         * modules/unictype/category-Zp: Likewise.
27696         * modules/unictype/category-Zs: Likewise.
27697         * modules/unictype/category-and: Likewise.
27698         * modules/unictype/category-and-not: Likewise.
27699         * modules/unictype/category-byname: Likewise.
27700         * modules/unictype/category-name: Likewise.
27701         * modules/unictype/category-none: Likewise.
27702         * modules/unictype/category-of: Likewise.
27703         * modules/unictype/category-or: Likewise.
27704         * modules/unictype/category-test: Likewise.
27705         * modules/unictype/combining-class: Likewise.
27706         * modules/unictype/ctype-alnum: Likewise.
27707         * modules/unictype/ctype-alpha: Likewise.
27708         * modules/unictype/ctype-blank: Likewise.
27709         * modules/unictype/ctype-cntrl: Likewise.
27710         * modules/unictype/ctype-digit: Likewise.
27711         * modules/unictype/ctype-graph: Likewise.
27712         * modules/unictype/ctype-lower: Likewise.
27713         * modules/unictype/ctype-print: Likewise.
27714         * modules/unictype/ctype-punct: Likewise.
27715         * modules/unictype/ctype-space: Likewise.
27716         * modules/unictype/ctype-upper: Likewise.
27717         * modules/unictype/ctype-xdigit: Likewise.
27718         * modules/unictype/decimal-digit: Likewise.
27719         * modules/unictype/digit: Likewise.
27720         * modules/unictype/mirror: Likewise.
27721         * modules/unictype/numeric: Likewise.
27722         * modules/unictype/property-alphabetic: Likewise.
27723         * modules/unictype/property-ascii-hex-digit: Likewise.
27724         * modules/unictype/property-bidi-arabic-digit: Likewise.
27725         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27726         * modules/unictype/property-bidi-block-separator: Likewise.
27727         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27728         * modules/unictype/property-bidi-common-separator: Likewise.
27729         * modules/unictype/property-bidi-control: Likewise.
27730         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27731         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27732         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27733         * modules/unictype/property-bidi-european-digit: Likewise.
27734         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27735         * modules/unictype/property-bidi-left-to-right: Likewise.
27736         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27737         * modules/unictype/property-bidi-other-neutral: Likewise.
27738         * modules/unictype/property-bidi-pdf: Likewise.
27739         * modules/unictype/property-bidi-segment-separator: Likewise.
27740         * modules/unictype/property-bidi-whitespace: Likewise.
27741         * modules/unictype/property-byname: Likewise.
27742         * modules/unictype/property-combining: Likewise.
27743         * modules/unictype/property-composite: Likewise.
27744         * modules/unictype/property-currency-symbol: Likewise.
27745         * modules/unictype/property-dash: Likewise.
27746         * modules/unictype/property-decimal-digit: Likewise.
27747         * modules/unictype/property-default-ignorable-code-point: Likewise.
27748         * modules/unictype/property-deprecated: Likewise.
27749         * modules/unictype/property-diacritic: Likewise.
27750         * modules/unictype/property-extender: Likewise.
27751         * modules/unictype/property-format-control: Likewise.
27752         * modules/unictype/property-grapheme-base: Likewise.
27753         * modules/unictype/property-grapheme-extend: Likewise.
27754         * modules/unictype/property-grapheme-link: Likewise.
27755         * modules/unictype/property-hex-digit: Likewise.
27756         * modules/unictype/property-hyphen: Likewise.
27757         * modules/unictype/property-id-continue: Likewise.
27758         * modules/unictype/property-id-start: Likewise.
27759         * modules/unictype/property-ideographic: Likewise.
27760         * modules/unictype/property-ids-binary-operator: Likewise.
27761         * modules/unictype/property-ids-trinary-operator: Likewise.
27762         * modules/unictype/property-ignorable-control: Likewise.
27763         * modules/unictype/property-iso-control: Likewise.
27764         * modules/unictype/property-join-control: Likewise.
27765         * modules/unictype/property-left-of-pair: Likewise.
27766         * modules/unictype/property-line-separator: Likewise.
27767         * modules/unictype/property-logical-order-exception: Likewise.
27768         * modules/unictype/property-lowercase: Likewise.
27769         * modules/unictype/property-math: Likewise.
27770         * modules/unictype/property-non-break: Likewise.
27771         * modules/unictype/property-not-a-character: Likewise.
27772         * modules/unictype/property-numeric: Likewise.
27773         * modules/unictype/property-other-alphabetic: Likewise.
27774         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27775         * modules/unictype/property-other-grapheme-extend: Likewise.
27776         * modules/unictype/property-other-id-continue: Likewise.
27777         * modules/unictype/property-other-id-start: Likewise.
27778         * modules/unictype/property-other-lowercase: Likewise.
27779         * modules/unictype/property-other-math: Likewise.
27780         * modules/unictype/property-other-uppercase: Likewise.
27781         * modules/unictype/property-paired-punctuation: Likewise.
27782         * modules/unictype/property-paragraph-separator: Likewise.
27783         * modules/unictype/property-pattern-syntax: Likewise.
27784         * modules/unictype/property-pattern-white-space: Likewise.
27785         * modules/unictype/property-private-use: Likewise.
27786         * modules/unictype/property-punctuation: Likewise.
27787         * modules/unictype/property-quotation-mark: Likewise.
27788         * modules/unictype/property-radical: Likewise.
27789         * modules/unictype/property-sentence-terminal: Likewise.
27790         * modules/unictype/property-soft-dotted: Likewise.
27791         * modules/unictype/property-space: Likewise.
27792         * modules/unictype/property-terminal-punctuation: Likewise.
27793         * modules/unictype/property-test: Likewise.
27794         * modules/unictype/property-titlecase: Likewise.
27795         * modules/unictype/property-unassigned-code-value: Likewise.
27796         * modules/unictype/property-unified-ideograph: Likewise.
27797         * modules/unictype/property-uppercase: Likewise.
27798         * modules/unictype/property-variation-selector: Likewise.
27799         * modules/unictype/property-white-space: Likewise.
27800         * modules/unictype/property-xid-continue: Likewise.
27801         * modules/unictype/property-xid-start: Likewise.
27802         * modules/unictype/property-zero-width: Likewise.
27803         * modules/unictype/scripts: Likewise.
27804         * modules/unictype/syntax-c-ident: Likewise.
27805         * modules/unictype/syntax-c-whitespace: Likewise.
27806         * modules/unictype/syntax-java-ident: Likewise.
27807         * modules/unictype/syntax-java-whitespace: Likewise.
27808         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27809         * modules/unilbrk/u8-width-linebreaks: Likewise.
27810         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27811         * modules/unilbrk/u16-width-linebreaks: Likewise.
27812         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27813         * modules/unilbrk/u32-width-linebreaks: Likewise.
27814         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27815         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27816         * modules/uniname/uniname: Likewise.
27817         * modules/uninorm/canonical-decomposition: Likewise.
27818         * modules/uninorm/composition: Likewise.
27819         * modules/uninorm/decomposing-form: Likewise.
27820         * modules/uninorm/decomposition: Likewise.
27821         * modules/uninorm/filter: Likewise.
27822         * modules/uninorm/nfc: Likewise.
27823         * modules/uninorm/nfd: Likewise.
27824         * modules/uninorm/nfkc: Likewise.
27825         * modules/uninorm/nfkd: Likewise.
27826         * modules/uninorm/u8-normalize: Likewise.
27827         * modules/uninorm/u8-normcmp: Likewise.
27828         * modules/uninorm/u8-normcoll: Likewise.
27829         * modules/uninorm/u8-normxfrm: Likewise.
27830         * modules/uninorm/u16-normalize: Likewise.
27831         * modules/uninorm/u16-normcmp: Likewise.
27832         * modules/uninorm/u16-normcoll: Likewise.
27833         * modules/uninorm/u16-normxfrm: Likewise.
27834         * modules/uninorm/u32-normalize: Likewise.
27835         * modules/uninorm/u32-normcmp: Likewise.
27836         * modules/uninorm/u32-normcoll: Likewise.
27837         * modules/uninorm/u32-normxfrm: Likewise.
27838         * modules/unistdio/u8-asnprintf: Likewise.
27839         * modules/unistdio/u8-asprintf: Likewise.
27840         * modules/unistdio/u8-snprintf: Likewise.
27841         * modules/unistdio/u8-sprintf: Likewise.
27842         * modules/unistdio/u8-u8-asnprintf: Likewise.
27843         * modules/unistdio/u8-u8-asprintf: Likewise.
27844         * modules/unistdio/u8-u8-snprintf: Likewise.
27845         * modules/unistdio/u8-u8-sprintf: Likewise.
27846         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27847         * modules/unistdio/u8-u8-vasprintf: Likewise.
27848         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27849         * modules/unistdio/u8-u8-vsprintf: Likewise.
27850         * modules/unistdio/u8-vasnprintf: Likewise.
27851         * modules/unistdio/u8-vasprintf: Likewise.
27852         * modules/unistdio/u8-vsnprintf: Likewise.
27853         * modules/unistdio/u8-vsprintf: Likewise.
27854         * modules/unistdio/u16-asnprintf: Likewise.
27855         * modules/unistdio/u16-asprintf: Likewise.
27856         * modules/unistdio/u16-snprintf: Likewise.
27857         * modules/unistdio/u16-sprintf: Likewise.
27858         * modules/unistdio/u16-u16-asnprintf: Likewise.
27859         * modules/unistdio/u16-u16-asprintf: Likewise.
27860         * modules/unistdio/u16-u16-snprintf: Likewise.
27861         * modules/unistdio/u16-u16-sprintf: Likewise.
27862         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27863         * modules/unistdio/u16-u16-vasprintf: Likewise.
27864         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27865         * modules/unistdio/u16-u16-vsprintf: Likewise.
27866         * modules/unistdio/u16-vasnprintf: Likewise.
27867         * modules/unistdio/u16-vasprintf: Likewise.
27868         * modules/unistdio/u16-vsnprintf: Likewise.
27869         * modules/unistdio/u16-vsprintf: Likewise.
27870         * modules/unistdio/u32-asnprintf: Likewise.
27871         * modules/unistdio/u32-asprintf: Likewise.
27872         * modules/unistdio/u32-snprintf: Likewise.
27873         * modules/unistdio/u32-sprintf: Likewise.
27874         * modules/unistdio/u32-u32-asnprintf: Likewise.
27875         * modules/unistdio/u32-u32-asprintf: Likewise.
27876         * modules/unistdio/u32-u32-snprintf: Likewise.
27877         * modules/unistdio/u32-u32-sprintf: Likewise.
27878         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27879         * modules/unistdio/u32-u32-vasprintf: Likewise.
27880         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27881         * modules/unistdio/u32-u32-vsprintf: Likewise.
27882         * modules/unistdio/u32-vasnprintf: Likewise.
27883         * modules/unistdio/u32-vasprintf: Likewise.
27884         * modules/unistdio/u32-vsnprintf: Likewise.
27885         * modules/unistdio/u32-vsprintf: Likewise.
27886         * modules/unistdio/ulc-asnprintf: Likewise.
27887         * modules/unistdio/ulc-asprintf: Likewise.
27888         * modules/unistdio/ulc-fprintf: Likewise.
27889         * modules/unistdio/ulc-snprintf: Likewise.
27890         * modules/unistdio/ulc-sprintf: Likewise.
27891         * modules/unistdio/ulc-vasnprintf: Likewise.
27892         * modules/unistdio/ulc-vasprintf: Likewise.
27893         * modules/unistdio/ulc-vfprintf: Likewise.
27894         * modules/unistdio/ulc-vsnprintf: Likewise.
27895         * modules/unistdio/ulc-vsprintf: Likewise.
27896         * modules/unistr/u8-check: Likewise.
27897         * modules/unistr/u8-chr: Likewise.
27898         * modules/unistr/u8-cmp: Likewise.
27899         * modules/unistr/u8-cmp2: Likewise.
27900         * modules/unistr/u8-cpy: Likewise.
27901         * modules/unistr/u8-cpy-alloc: Likewise.
27902         * modules/unistr/u8-endswith: Likewise.
27903         * modules/unistr/u8-mblen: Likewise.
27904         * modules/unistr/u8-mbsnlen: Likewise.
27905         * modules/unistr/u8-mbtouc: Likewise.
27906         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27907         * modules/unistr/u8-mbtoucr: Likewise.
27908         * modules/unistr/u8-move: Likewise.
27909         * modules/unistr/u8-next: Likewise.
27910         * modules/unistr/u8-prev: Likewise.
27911         * modules/unistr/u8-set: Likewise.
27912         * modules/unistr/u8-startswith: Likewise.
27913         * modules/unistr/u8-stpcpy: Likewise.
27914         * modules/unistr/u8-stpncpy: Likewise.
27915         * modules/unistr/u8-strcat: Likewise.
27916         * modules/unistr/u8-strchr: Likewise.
27917         * modules/unistr/u8-strcmp: Likewise.
27918         * modules/unistr/u8-strcoll: Likewise.
27919         * modules/unistr/u8-strcpy: Likewise.
27920         * modules/unistr/u8-strcspn: Likewise.
27921         * modules/unistr/u8-strdup: Likewise.
27922         * modules/unistr/u8-strlen: Likewise.
27923         * modules/unistr/u8-strmblen: Likewise.
27924         * modules/unistr/u8-strmbtouc: Likewise.
27925         * modules/unistr/u8-strncat: Likewise.
27926         * modules/unistr/u8-strncmp: Likewise.
27927         * modules/unistr/u8-strncpy: Likewise.
27928         * modules/unistr/u8-strnlen: Likewise.
27929         * modules/unistr/u8-strpbrk: Likewise.
27930         * modules/unistr/u8-strrchr: Likewise.
27931         * modules/unistr/u8-strspn: Likewise.
27932         * modules/unistr/u8-strstr: Likewise.
27933         * modules/unistr/u8-strtok: Likewise.
27934         * modules/unistr/u8-to-u16: Likewise.
27935         * modules/unistr/u8-to-u32: Likewise.
27936         * modules/unistr/u8-uctomb: Likewise.
27937         * modules/unistr/u16-check: Likewise.
27938         * modules/unistr/u16-chr: Likewise.
27939         * modules/unistr/u16-cmp: Likewise.
27940         * modules/unistr/u16-cmp2: Likewise.
27941         * modules/unistr/u16-cpy: Likewise.
27942         * modules/unistr/u16-cpy-alloc: Likewise.
27943         * modules/unistr/u16-endswith: Likewise.
27944         * modules/unistr/u16-mblen: Likewise.
27945         * modules/unistr/u16-mbsnlen: Likewise.
27946         * modules/unistr/u16-mbtouc: Likewise.
27947         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27948         * modules/unistr/u16-mbtoucr: Likewise.
27949         * modules/unistr/u16-move: Likewise.
27950         * modules/unistr/u16-next: Likewise.
27951         * modules/unistr/u16-prev: Likewise.
27952         * modules/unistr/u16-set: Likewise.
27953         * modules/unistr/u16-startswith: Likewise.
27954         * modules/unistr/u16-stpcpy: Likewise.
27955         * modules/unistr/u16-stpncpy: Likewise.
27956         * modules/unistr/u16-strcat: Likewise.
27957         * modules/unistr/u16-strchr: Likewise.
27958         * modules/unistr/u16-strcmp: Likewise.
27959         * modules/unistr/u16-strcoll: Likewise.
27960         * modules/unistr/u16-strcpy: Likewise.
27961         * modules/unistr/u16-strcspn: Likewise.
27962         * modules/unistr/u16-strdup: Likewise.
27963         * modules/unistr/u16-strlen: Likewise.
27964         * modules/unistr/u16-strmblen: Likewise.
27965         * modules/unistr/u16-strmbtouc: Likewise.
27966         * modules/unistr/u16-strncat: Likewise.
27967         * modules/unistr/u16-strncmp: Likewise.
27968         * modules/unistr/u16-strncpy: Likewise.
27969         * modules/unistr/u16-strnlen: Likewise.
27970         * modules/unistr/u16-strpbrk: Likewise.
27971         * modules/unistr/u16-strrchr: Likewise.
27972         * modules/unistr/u16-strspn: Likewise.
27973         * modules/unistr/u16-strstr: Likewise.
27974         * modules/unistr/u16-strtok: Likewise.
27975         * modules/unistr/u16-to-u32: Likewise.
27976         * modules/unistr/u16-to-u8: Likewise.
27977         * modules/unistr/u16-uctomb: Likewise.
27978         * modules/unistr/u32-check: Likewise.
27979         * modules/unistr/u32-chr: Likewise.
27980         * modules/unistr/u32-cmp: Likewise.
27981         * modules/unistr/u32-cmp2: Likewise.
27982         * modules/unistr/u32-cpy: Likewise.
27983         * modules/unistr/u32-cpy-alloc: Likewise.
27984         * modules/unistr/u32-endswith: Likewise.
27985         * modules/unistr/u32-mblen: Likewise.
27986         * modules/unistr/u32-mbsnlen: Likewise.
27987         * modules/unistr/u32-mbtouc: Likewise.
27988         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27989         * modules/unistr/u32-mbtoucr: Likewise.
27990         * modules/unistr/u32-move: Likewise.
27991         * modules/unistr/u32-next: Likewise.
27992         * modules/unistr/u32-prev: Likewise.
27993         * modules/unistr/u32-set: Likewise.
27994         * modules/unistr/u32-startswith: Likewise.
27995         * modules/unistr/u32-stpcpy: Likewise.
27996         * modules/unistr/u32-stpncpy: Likewise.
27997         * modules/unistr/u32-strcat: Likewise.
27998         * modules/unistr/u32-strchr: Likewise.
27999         * modules/unistr/u32-strcmp: Likewise.
28000         * modules/unistr/u32-strcoll: Likewise.
28001         * modules/unistr/u32-strcpy: Likewise.
28002         * modules/unistr/u32-strcspn: Likewise.
28003         * modules/unistr/u32-strdup: Likewise.
28004         * modules/unistr/u32-strlen: Likewise.
28005         * modules/unistr/u32-strmblen: Likewise.
28006         * modules/unistr/u32-strmbtouc: Likewise.
28007         * modules/unistr/u32-strncat: Likewise.
28008         * modules/unistr/u32-strncmp: Likewise.
28009         * modules/unistr/u32-strncpy: Likewise.
28010         * modules/unistr/u32-strnlen: Likewise.
28011         * modules/unistr/u32-strpbrk: Likewise.
28012         * modules/unistr/u32-strrchr: Likewise.
28013         * modules/unistr/u32-strspn: Likewise.
28014         * modules/unistr/u32-strstr: Likewise.
28015         * modules/unistr/u32-strtok: Likewise.
28016         * modules/unistr/u32-to-u16: Likewise.
28017         * modules/unistr/u32-to-u8: Likewise.
28018         * modules/unistr/u32-uctomb: Likewise.
28019         * modules/uniwbrk/u8-wordbreaks: Likewise.
28020         * modules/uniwbrk/u16-wordbreaks: Likewise.
28021         * modules/uniwbrk/u32-wordbreaks: Likewise.
28022         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28023         * modules/uniwbrk/wordbreak-property: Likewise.
28024         * modules/uniwidth/u8-strwidth: Likewise.
28025         * modules/uniwidth/u8-width: Likewise.
28026         * modules/uniwidth/u16-strwidth: Likewise.
28027         * modules/uniwidth/u16-width: Likewise.
28028         * modules/uniwidth/u32-strwidth: Likewise.
28029         * modules/uniwidth/u32-width: Likewise.
28030         * modules/uniwidth/width: Likewise.
28031         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28032         with $(LIBUNISTRING).
28033         * modules/unicase/ignorable-tests: Likewise.
28034         * modules/unicase/locale-language-tests: Likewise.
28035         * modules/unicase/tolower-tests: Likewise.
28036         * modules/unicase/totitle-tests: Likewise.
28037         * modules/unicase/toupper-tests: Likewise.
28038         * modules/unicase/u8-casecmp-tests: Likewise.
28039         * modules/unicase/u8-casecoll-tests: Likewise.
28040         * modules/unicase/u8-casefold-tests: Likewise.
28041         * modules/unicase/u8-is-cased-tests: Likewise.
28042         * modules/unicase/u8-is-casefolded-tests: Likewise.
28043         * modules/unicase/u8-is-lowercase-tests: Likewise.
28044         * modules/unicase/u8-is-titlecase-tests: Likewise.
28045         * modules/unicase/u8-is-uppercase-tests: Likewise.
28046         * modules/unicase/u8-tolower-tests: Likewise.
28047         * modules/unicase/u8-totitle-tests: Likewise.
28048         * modules/unicase/u8-toupper-tests: Likewise.
28049         * modules/unicase/u16-casecmp-tests: Likewise.
28050         * modules/unicase/u16-casecoll-tests: Likewise.
28051         * modules/unicase/u16-casefold-tests: Likewise.
28052         * modules/unicase/u16-is-cased-tests: Likewise.
28053         * modules/unicase/u16-is-casefolded-tests: Likewise.
28054         * modules/unicase/u16-is-lowercase-tests: Likewise.
28055         * modules/unicase/u16-is-titlecase-tests: Likewise.
28056         * modules/unicase/u16-is-uppercase-tests: Likewise.
28057         * modules/unicase/u16-tolower-tests: Likewise.
28058         * modules/unicase/u16-totitle-tests: Likewise.
28059         * modules/unicase/u16-toupper-tests: Likewise.
28060         * modules/unicase/u32-casecmp-tests: Likewise.
28061         * modules/unicase/u32-casecoll-tests: Likewise.
28062         * modules/unicase/u32-casefold-tests: Likewise.
28063         * modules/unicase/u32-is-cased-tests: Likewise.
28064         * modules/unicase/u32-is-casefolded-tests: Likewise.
28065         * modules/unicase/u32-is-lowercase-tests: Likewise.
28066         * modules/unicase/u32-is-titlecase-tests: Likewise.
28067         * modules/unicase/u32-is-uppercase-tests: Likewise.
28068         * modules/unicase/u32-tolower-tests: Likewise.
28069         * modules/unicase/u32-totitle-tests: Likewise.
28070         * modules/unicase/u32-toupper-tests: Likewise.
28071         * modules/unicase/ulc-casecmp-tests: Likewise.
28072         * modules/unicase/ulc-casecoll-tests: Likewise.
28073         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28074         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28075         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28076         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28077         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28078         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28079         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28080         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28081         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28082         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28083         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28084         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28085         * modules/unictype/bidicategory-byname-tests: Likewise.
28086         * modules/unictype/bidicategory-name-tests: Likewise.
28087         * modules/unictype/bidicategory-of-tests: Likewise.
28088         * modules/unictype/bidicategory-test-tests: Likewise.
28089         * modules/unictype/block-list-tests: Likewise.
28090         * modules/unictype/block-of-tests: Likewise.
28091         * modules/unictype/block-test-tests: Likewise.
28092         * modules/unictype/category-C-tests: Likewise.
28093         * modules/unictype/category-Cc-tests: Likewise.
28094         * modules/unictype/category-Cf-tests: Likewise.
28095         * modules/unictype/category-Cn-tests: Likewise.
28096         * modules/unictype/category-Co-tests: Likewise.
28097         * modules/unictype/category-Cs-tests: Likewise.
28098         * modules/unictype/category-L-tests: Likewise.
28099         * modules/unictype/category-Ll-tests: Likewise.
28100         * modules/unictype/category-Lm-tests: Likewise.
28101         * modules/unictype/category-Lo-tests: Likewise.
28102         * modules/unictype/category-Lt-tests: Likewise.
28103         * modules/unictype/category-Lu-tests: Likewise.
28104         * modules/unictype/category-M-tests: Likewise.
28105         * modules/unictype/category-Mc-tests: Likewise.
28106         * modules/unictype/category-Me-tests: Likewise.
28107         * modules/unictype/category-Mn-tests: Likewise.
28108         * modules/unictype/category-N-tests: Likewise.
28109         * modules/unictype/category-Nd-tests: Likewise.
28110         * modules/unictype/category-Nl-tests: Likewise.
28111         * modules/unictype/category-No-tests: Likewise.
28112         * modules/unictype/category-P-tests: Likewise.
28113         * modules/unictype/category-Pc-tests: Likewise.
28114         * modules/unictype/category-Pd-tests: Likewise.
28115         * modules/unictype/category-Pe-tests: Likewise.
28116         * modules/unictype/category-Pf-tests: Likewise.
28117         * modules/unictype/category-Pi-tests: Likewise.
28118         * modules/unictype/category-Po-tests: Likewise.
28119         * modules/unictype/category-Ps-tests: Likewise.
28120         * modules/unictype/category-S-tests: Likewise.
28121         * modules/unictype/category-Sc-tests: Likewise.
28122         * modules/unictype/category-Sk-tests: Likewise.
28123         * modules/unictype/category-Sm-tests: Likewise.
28124         * modules/unictype/category-So-tests: Likewise.
28125         * modules/unictype/category-Z-tests: Likewise.
28126         * modules/unictype/category-Zl-tests: Likewise.
28127         * modules/unictype/category-Zp-tests: Likewise.
28128         * modules/unictype/category-Zs-tests: Likewise.
28129         * modules/unictype/category-and-not-tests: Likewise.
28130         * modules/unictype/category-and-tests: Likewise.
28131         * modules/unictype/category-byname-tests: Likewise.
28132         * modules/unictype/category-name-tests: Likewise.
28133         * modules/unictype/category-none-tests: Likewise.
28134         * modules/unictype/category-of-tests: Likewise.
28135         * modules/unictype/category-or-tests: Likewise.
28136         * modules/unictype/category-test-withtable-tests: Likewise.
28137         * modules/unictype/combining-class-tests: Likewise.
28138         * modules/unictype/ctype-alnum-tests: Likewise.
28139         * modules/unictype/ctype-alpha-tests: Likewise.
28140         * modules/unictype/ctype-blank-tests: Likewise.
28141         * modules/unictype/ctype-cntrl-tests: Likewise.
28142         * modules/unictype/ctype-digit-tests: Likewise.
28143         * modules/unictype/ctype-graph-tests: Likewise.
28144         * modules/unictype/ctype-lower-tests: Likewise.
28145         * modules/unictype/ctype-print-tests: Likewise.
28146         * modules/unictype/ctype-punct-tests: Likewise.
28147         * modules/unictype/ctype-space-tests: Likewise.
28148         * modules/unictype/ctype-upper-tests: Likewise.
28149         * modules/unictype/ctype-xdigit-tests: Likewise.
28150         * modules/unictype/decimal-digit-tests: Likewise.
28151         * modules/unictype/digit-tests: Likewise.
28152         * modules/unictype/mirror-tests: Likewise.
28153         * modules/unictype/numeric-tests: Likewise.
28154         * modules/unictype/property-alphabetic-tests: Likewise.
28155         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28156         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28157         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28158         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28159         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28160         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28161         * modules/unictype/property-bidi-control-tests: Likewise.
28162         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28163         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28164         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28165         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28166         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28167         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28168         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28169         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28170         * modules/unictype/property-bidi-pdf-tests: Likewise.
28171         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28172         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28173         * modules/unictype/property-byname-tests: Likewise.
28174         * modules/unictype/property-combining-tests: Likewise.
28175         * modules/unictype/property-composite-tests: Likewise.
28176         * modules/unictype/property-currency-symbol-tests: Likewise.
28177         * modules/unictype/property-dash-tests: Likewise.
28178         * modules/unictype/property-decimal-digit-tests: Likewise.
28179         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28180         * modules/unictype/property-deprecated-tests: Likewise.
28181         * modules/unictype/property-diacritic-tests: Likewise.
28182         * modules/unictype/property-extender-tests: Likewise.
28183         * modules/unictype/property-format-control-tests: Likewise.
28184         * modules/unictype/property-grapheme-base-tests: Likewise.
28185         * modules/unictype/property-grapheme-extend-tests: Likewise.
28186         * modules/unictype/property-grapheme-link-tests: Likewise.
28187         * modules/unictype/property-hex-digit-tests: Likewise.
28188         * modules/unictype/property-hyphen-tests: Likewise.
28189         * modules/unictype/property-id-continue-tests: Likewise.
28190         * modules/unictype/property-id-start-tests: Likewise.
28191         * modules/unictype/property-ideographic-tests: Likewise.
28192         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28193         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28194         * modules/unictype/property-ignorable-control-tests: Likewise.
28195         * modules/unictype/property-iso-control-tests: Likewise.
28196         * modules/unictype/property-join-control-tests: Likewise.
28197         * modules/unictype/property-left-of-pair-tests: Likewise.
28198         * modules/unictype/property-line-separator-tests: Likewise.
28199         * modules/unictype/property-logical-order-exception-tests: Likewise.
28200         * modules/unictype/property-lowercase-tests: Likewise.
28201         * modules/unictype/property-math-tests: Likewise.
28202         * modules/unictype/property-non-break-tests: Likewise.
28203         * modules/unictype/property-not-a-character-tests: Likewise.
28204         * modules/unictype/property-numeric-tests: Likewise.
28205         * modules/unictype/property-other-alphabetic-tests: Likewise.
28206         * modules/unictype/property-other-default-ignorable-code-point-tests:
28207         Likewise.
28208         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28209         * modules/unictype/property-other-id-continue-tests: Likewise.
28210         * modules/unictype/property-other-id-start-tests: Likewise.
28211         * modules/unictype/property-other-lowercase-tests: Likewise.
28212         * modules/unictype/property-other-math-tests: Likewise.
28213         * modules/unictype/property-other-uppercase-tests: Likewise.
28214         * modules/unictype/property-paired-punctuation-tests: Likewise.
28215         * modules/unictype/property-paragraph-separator-tests: Likewise.
28216         * modules/unictype/property-pattern-syntax-tests: Likewise.
28217         * modules/unictype/property-pattern-white-space-tests: Likewise.
28218         * modules/unictype/property-private-use-tests: Likewise.
28219         * modules/unictype/property-punctuation-tests: Likewise.
28220         * modules/unictype/property-quotation-mark-tests: Likewise.
28221         * modules/unictype/property-radical-tests: Likewise.
28222         * modules/unictype/property-sentence-terminal-tests: Likewise.
28223         * modules/unictype/property-soft-dotted-tests: Likewise.
28224         * modules/unictype/property-space-tests: Likewise.
28225         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28226         * modules/unictype/property-test-tests: Likewise.
28227         * modules/unictype/property-titlecase-tests: Likewise.
28228         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28229         * modules/unictype/property-unified-ideograph-tests: Likewise.
28230         * modules/unictype/property-uppercase-tests: Likewise.
28231         * modules/unictype/property-variation-selector-tests: Likewise.
28232         * modules/unictype/property-white-space-tests: Likewise.
28233         * modules/unictype/property-xid-continue-tests: Likewise.
28234         * modules/unictype/property-xid-start-tests: Likewise.
28235         * modules/unictype/property-zero-width-tests: Likewise.
28236         * modules/unictype/scripts-tests: Likewise.
28237         * modules/unictype/syntax-c-ident-tests: Likewise.
28238         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28239         * modules/unictype/syntax-java-ident-tests: Likewise.
28240         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28241         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28242         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28243         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28244         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28245         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28246         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28247         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28248         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28249         * modules/uniname/uniname-tests: Likewise.
28250         * modules/uninorm/canonical-decomposition-tests: Likewise.
28251         * modules/uninorm/compat-decomposition-tests: Likewise.
28252         * modules/uninorm/composition-tests: Likewise.
28253         * modules/uninorm/decomposing-form-tests: Likewise.
28254         * modules/uninorm/decomposition-tests: Likewise.
28255         * modules/uninorm/filter-tests: Likewise.
28256         * modules/uninorm/nfc-tests: Likewise.
28257         * modules/uninorm/nfd-tests: Likewise.
28258         * modules/uninorm/nfkc-tests: Likewise.
28259         * modules/uninorm/nfkd-tests: Likewise.
28260         * modules/uninorm/u8-normcmp-tests: Likewise.
28261         * modules/uninorm/u8-normcoll-tests: Likewise.
28262         * modules/uninorm/u16-normcmp-tests: Likewise.
28263         * modules/uninorm/u16-normcoll-tests: Likewise.
28264         * modules/uninorm/u32-normcmp-tests: Likewise.
28265         * modules/uninorm/u32-normcoll-tests: Likewise.
28266         * modules/unistdio/u8-asnprintf-tests: Likewise.
28267         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28268         * modules/unistdio/u8-vasprintf-tests: Likewise.
28269         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28270         * modules/unistdio/u8-vsprintf-tests: Likewise.
28271         * modules/unistdio/u16-asnprintf-tests: Likewise.
28272         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28273         * modules/unistdio/u16-vasprintf-tests: Likewise.
28274         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28275         * modules/unistdio/u16-vsprintf-tests: Likewise.
28276         * modules/unistdio/u32-asnprintf-tests: Likewise.
28277         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28278         * modules/unistdio/u32-vasprintf-tests: Likewise.
28279         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28280         * modules/unistdio/u32-vsprintf-tests: Likewise.
28281         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28282         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28283         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28284         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28285         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28286         * modules/unistr/u8-check-tests: Likewise.
28287         * modules/unistr/u8-chr-tests: Likewise.
28288         * modules/unistr/u8-cmp-tests: Likewise.
28289         * modules/unistr/u8-cmp2-tests: Likewise.
28290         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28291         * modules/unistr/u8-cpy-tests: Likewise.
28292         * modules/unistr/u8-mblen-tests: Likewise.
28293         * modules/unistr/u8-mbsnlen-tests: Likewise.
28294         * modules/unistr/u8-mbtouc-tests: Likewise.
28295         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28296         * modules/unistr/u8-mbtoucr-tests: Likewise.
28297         * modules/unistr/u8-move-tests: Likewise.
28298         * modules/unistr/u8-next-tests: Likewise.
28299         * modules/unistr/u8-prev-tests: Likewise.
28300         * modules/unistr/u8-set-tests: Likewise.
28301         * modules/unistr/u8-stpcpy-tests: Likewise.
28302         * modules/unistr/u8-stpncpy-tests: Likewise.
28303         * modules/unistr/u8-strcat-tests: Likewise.
28304         * modules/unistr/u8-strcmp-tests: Likewise.
28305         * modules/unistr/u8-strcoll-tests: Likewise.
28306         * modules/unistr/u8-strcpy-tests: Likewise.
28307         * modules/unistr/u8-strdup-tests: Likewise.
28308         * modules/unistr/u8-strlen-tests: Likewise.
28309         * modules/unistr/u8-strmblen-tests: Likewise.
28310         * modules/unistr/u8-strmbtouc-tests: Likewise.
28311         * modules/unistr/u8-strncat-tests: Likewise.
28312         * modules/unistr/u8-strncmp-tests: Likewise.
28313         * modules/unistr/u8-strncpy-tests: Likewise.
28314         * modules/unistr/u8-strnlen-tests: Likewise.
28315         * modules/unistr/u8-to-u16-tests: Likewise.
28316         * modules/unistr/u8-to-u32-tests: Likewise.
28317         * modules/unistr/u8-uctomb-tests: Likewise.
28318         * modules/unistr/u16-check-tests: Likewise.
28319         * modules/unistr/u16-chr-tests: Likewise.
28320         * modules/unistr/u16-cmp-tests: Likewise.
28321         * modules/unistr/u16-cmp2-tests: Likewise.
28322         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28323         * modules/unistr/u16-cpy-tests: Likewise.
28324         * modules/unistr/u16-mblen-tests: Likewise.
28325         * modules/unistr/u16-mbsnlen-tests: Likewise.
28326         * modules/unistr/u16-mbtouc-tests: Likewise.
28327         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28328         * modules/unistr/u16-mbtoucr-tests: Likewise.
28329         * modules/unistr/u16-move-tests: Likewise.
28330         * modules/unistr/u16-next-tests: Likewise.
28331         * modules/unistr/u16-prev-tests: Likewise.
28332         * modules/unistr/u16-set-tests: Likewise.
28333         * modules/unistr/u16-stpcpy-tests: Likewise.
28334         * modules/unistr/u16-stpncpy-tests: Likewise.
28335         * modules/unistr/u16-strcat-tests: Likewise.
28336         * modules/unistr/u16-strcmp-tests: Likewise.
28337         * modules/unistr/u16-strcoll-tests: Likewise.
28338         * modules/unistr/u16-strcpy-tests: Likewise.
28339         * modules/unistr/u16-strdup-tests: Likewise.
28340         * modules/unistr/u16-strlen-tests: Likewise.
28341         * modules/unistr/u16-strmblen-tests: Likewise.
28342         * modules/unistr/u16-strmbtouc-tests: Likewise.
28343         * modules/unistr/u16-strncat-tests: Likewise.
28344         * modules/unistr/u16-strncmp-tests: Likewise.
28345         * modules/unistr/u16-strncpy-tests: Likewise.
28346         * modules/unistr/u16-strnlen-tests: Likewise.
28347         * modules/unistr/u16-to-u32-tests: Likewise.
28348         * modules/unistr/u16-to-u8-tests: Likewise.
28349         * modules/unistr/u16-uctomb-tests: Likewise.
28350         * modules/unistr/u32-check-tests: Likewise.
28351         * modules/unistr/u32-chr-tests: Likewise.
28352         * modules/unistr/u32-cmp-tests: Likewise.
28353         * modules/unistr/u32-cmp2-tests: Likewise.
28354         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28355         * modules/unistr/u32-cpy-tests: Likewise.
28356         * modules/unistr/u32-mblen-tests: Likewise.
28357         * modules/unistr/u32-mbsnlen-tests: Likewise.
28358         * modules/unistr/u32-mbtouc-tests: Likewise.
28359         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28360         * modules/unistr/u32-mbtoucr-tests: Likewise.
28361         * modules/unistr/u32-move-tests: Likewise.
28362         * modules/unistr/u32-next-tests: Likewise.
28363         * modules/unistr/u32-prev-tests: Likewise.
28364         * modules/unistr/u32-set-tests: Likewise.
28365         * modules/unistr/u32-stpcpy-tests: Likewise.
28366         * modules/unistr/u32-stpncpy-tests: Likewise.
28367         * modules/unistr/u32-strcat-tests: Likewise.
28368         * modules/unistr/u32-strcmp-tests: Likewise.
28369         * modules/unistr/u32-strcoll-tests: Likewise.
28370         * modules/unistr/u32-strcpy-tests: Likewise.
28371         * modules/unistr/u32-strdup-tests: Likewise.
28372         * modules/unistr/u32-strlen-tests: Likewise.
28373         * modules/unistr/u32-strmblen-tests: Likewise.
28374         * modules/unistr/u32-strmbtouc-tests: Likewise.
28375         * modules/unistr/u32-strncat-tests: Likewise.
28376         * modules/unistr/u32-strncmp-tests: Likewise.
28377         * modules/unistr/u32-strncpy-tests: Likewise.
28378         * modules/unistr/u32-strnlen-tests: Likewise.
28379         * modules/unistr/u32-to-u16-tests: Likewise.
28380         * modules/unistr/u32-to-u8-tests: Likewise.
28381         * modules/unistr/u32-uctomb-tests: Likewise.
28382         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28383         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28384         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28385         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28386         * modules/uniwidth/u8-strwidth-tests: Likewise.
28387         * modules/uniwidth/u8-width-tests: Likewise.
28388         * modules/uniwidth/u16-strwidth-tests: Likewise.
28389         * modules/uniwidth/u16-width-tests: Likewise.
28390         * modules/uniwidth/u32-strwidth-tests: Likewise.
28391         * modules/uniwidth/u32-width-tests: Likewise.
28392         * modules/uniwidth/width-tests: Likewise.
28393
28394 2010-05-18  Richard Jones  <rjones@redhat.com>
28395
28396         doc: users.txt: list hivex
28397         * users.txt: Add hivex.
28398
28399 2010-05-18  Richard Jones  <rjones@redhat.com>
28400
28401         doc: users.txt: list febootstrap
28402         * users.txt: Add febootstrap.
28403
28404 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28405
28406         bootstrap: fix an error when gnulib is not used as a git submodule
28407         * build-aux/bootstrap (gnulib_path): If its length is zero then
28408         assign "gnulib" to it.
28409         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28410
28411 2010-05-16  Bruno Haible  <bruno@clisp.org>
28412
28413         Avoid autoconf warnings about AM_ICONV.
28414         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28415         2.64.
28416
28417 2010-05-16  Bruno Haible  <bruno@clisp.org>
28418
28419         absolute-header: Make the macro usable in more situations.
28420         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28421         from gl_ABSOLUTE_HEADER.
28422         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28423
28424 2010-05-16  James Youngman  <jay@gnu.org>
28425
28426         doc: update users.txt
28427         * users.txt: Add CSSC.
28428
28429 2010-05-16  Jim Meyering  <meyering@redhat.com>
28430
28431         init.sh: fix an error in the previous change; add more comments
28432         * tests/init.sh: Compare exit code in loop against 9, not 2.
28433         Patch by Bruno Haible.
28434         Make the two tests more similar by adding an empty "then" clause.
28435         Add comments.
28436
28437         init.sh: avoid unnecessary shell re-exec
28438         * tests/init.sh: Improve the re-exec-required check to first test the
28439         current shell.  If it passes the test, do not search for a shell that
28440         does pass, and do not re-exec.  This test is particularly contorted to
28441         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28442         of $(...) evokes a syntax error and causes immediate shell exit with
28443         status 2.  Bruno Haible reported that the re-exec made it impossible
28444         to single-step through any init.sh-using script.
28445
28446 2010-05-16  Bruno Haible  <bruno@clisp.org>
28447
28448         Fix collision between gnulib's and libintl's printf replacements.
28449         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28450         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28451         (printf): When using GNU C, map the __printf__ function to rpl_printf
28452         via __asm__. When not using GNU C, define rpl_printf instead of
28453         __printf__.
28454         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28455         commit.
28456         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28457         commit.
28458         * m4/asm-underscore.m4: New file.
28459         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28460         * modules/stdio (Files): Add m4/asm-underscore.m4.
28461         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28462         Reported by Ben Pfaff.
28463
28464 2010-05-16  Bruno Haible  <bruno@clisp.org>
28465
28466         verify: Avoid skipping the test on openSUSE 11.0.
28467         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28468
28469 2010-05-13  Bruno Haible  <bruno@clisp.org>
28470
28471         Avoid useless warnings from G++.
28472         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28473         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28474         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28475
28476 2010-05-11  Jim Meyering  <meyering@redhat.com>
28477
28478         maint.mk: tweak preceding change
28479         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28480         regexps tighter by anchoring at EOL, and make the new group "shy"
28481         for slightly decreased overhead.
28482
28483 2010-05-11  Eric Blake  <eblake@redhat.com>
28484
28485         maint.mk: gnulib doesn't guarantee NSIG
28486         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28487
28488 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28489
28490         test-pwrite.c: Remove unused variable declaration.
28491         * tests/test-pwrite.c (main): Remove read_buf declaration.
28492
28493         Remove useless test-pwrite.sh file.
28494         * tests/test-pwrite.sh: Delete file.
28495         * modules/pwrite-tests: Remove references.
28496         Reported by Bruno Haible.
28497
28498 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28499
28500         init.sh: fix a typo
28501         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28502
28503 2010-05-10  Jim Meyering  <meyering@redhat.com>
28504
28505         maint.mk: avoid using a temporary file in the always-defined-macros check
28506         * top/maint.mk (.re-defmac): Remove rule.
28507         (gl_trap_): Remove definition.
28508         (sc_prohibit_always-defined_macros): Rewrite not to create and
28509         depend on a temporary file.  Instead, depend on GNU grep's ability
28510         to read a list of regular expressions from stdin when given "-f -".
28511
28512 2010-05-09  Bruno Haible  <bruno@clisp.org>
28513
28514         Update to GNU gettext 0.18, part 1.
28515         * m4/gettext.m4: Update to GNU gettext 0.18.
28516         * m4/intl.m4: Likewise.
28517         * m4/po.m4: Likewise.
28518         * modules/gettext (Files): Add m4/fcntl-o.m4.
28519         (configure.ac): Require gettext infrastructure from version 0.18.
28520
28521 2010-05-09  Jim Meyering  <meyering@redhat.com>
28522
28523         init.sh: enable MALLOC_PERTURB_
28524         * tests/init.sh: Enable glibc's malloc-perturbing option.
28525
28526         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28527         With my recent change in init.sh from the two-line form:
28528             -#   : ${srcdir=.}
28529             -#   . "$srcdir/init.sh"; path_prepend_ .
28530             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28531         I noticed that using the one-line form would cause this test
28532         to fail with a false-positive, or to stop working altogether,
28533         depending on whether help-version changed or all the tests did.
28534         * top/maint.mk (_hv_regex): Remove this definition.
28535         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28536         (_hv_regex_strong): Use a stronger regex to check for conformance.
28537         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28538         Give a separate diagnostic for lack of conforming use.
28539
28540         maint.mk: prohibit definition of symbols defined by gnulib
28541         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28542         definition of symbols defined by gnulib.
28543
28544 2010-05-09  Bruno Haible  <bruno@clisp.org>
28545
28546         acl: Avoid test failure on Cygwin-hosted mingw.
28547         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28548
28549 2010-05-09  Bruno Haible  <bruno@clisp.org>
28550
28551         error: Use system's fcntl function.
28552         * lib/error.c (fcntl): Undefine.
28553
28554 2010-05-09  Jim Meyering  <meyering@redhat.com>
28555
28556         verify: adjust formatting to be more consistent
28557         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28558         argument-list '('s, and after one comma.
28559
28560 2010-05-09  Bruno Haible  <bruno@clisp.org>
28561
28562         error: More reliable output on mingw.
28563         * lib/error.c: Include <windows.h>.
28564         (is_open): New function.
28565         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28566         defined.
28567
28568 2010-05-09  Bruno Haible  <bruno@clisp.org>
28569
28570         vasnprintf: Fix syntax errors in libintl build on mingw.
28571         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28572         pad_ourselves and prec_ourselves after use.
28573
28574 2010-05-08  Bruno Haible  <bruno@clisp.org>
28575
28576         * lib/config.charset: Update comments for Cygwin 1.7.
28577         * lib/localcharset.c: Likewise.
28578
28579 2010-05-07  Jim Meyering  <meyering@redhat.com>
28580
28581         init.sh: improve comments
28582         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28583         . "${srcdir=.}/init.sh"; path_prepend_ .
28584         Add a note about path_prepend_ and the alternative of using
28585         TESTS_ENVIRONMENT.
28586
28587 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28588
28589         exclude: Unescape hashed patterns in wildcard mode.
28590         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28591         to the hash list.
28592         * tests/test-exclude8.sh: New test case.
28593         * modules/exclude-tests: Add new test.
28594
28595 2010-05-05  Eric Blake  <eblake@redhat.com>
28596
28597         verify: automate tests
28598         * modules/verify-tests: New module.
28599         * tests/test-verify.sh: New file.
28600         * tests/test-verify.c: Guard each negative test with a unique id.
28601         Also avoid warning about unused left hand of comma expressions.
28602
28603 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28604
28605         Further improvements to verify.h, suggested by Eric Blake.
28606         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28607         the GL_* versions, to avoid collision with OpenGL.
28608         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28609         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28610         than testing merely whether it's defined.
28611
28612         Modify verify.h to pacify gcc -Wredundant_decls.
28613         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28614         These use the prefix "GL_" since they're likely to be useful elsewhere.
28615         We may need to break them out into a different .h file.
28616         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28617         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28618         of verify_function__.
28619
28620 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28621
28622         Tests for module pwrite.
28623         * modules/pwrite-tests: New file.
28624         * tests/test-pwrite.sh: New file.
28625         * tests/test-pwrite.c: New file.
28626
28627         New module pwrite.
28628         * lib/unistd.in.h (pwrite): New declaration.
28629         * lib/pwrite.c: New file, from glibc with modifications.
28630         * m4/pwrite.m4: New file.
28631         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28632         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28633         REPLACE_PWRITE.
28634         * modules/pwrite: New file.
28635         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28636         REPLACE_PWRITE.
28637         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28638         * doc/posix-functions/pwrite.texi: Mention the new module.
28639
28640 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28641
28642         pread: Update documentation.
28643         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28644
28645 2010-05-04  Eric Blake  <eblake@redhat.com>
28646
28647         docs: update cygwin progress
28648         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28649         this bug.
28650         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28651         Added in cygwin 1.7.2.
28652         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28653         Likewise.
28654         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28655         Likewise.
28656         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28657         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28658         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28659         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28660         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28661         Mention nproc module.
28662         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28663         bug in cygwin 1.7.5 addition.
28664         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28665         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28666         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28667         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28668         1.7.5.
28669         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28670         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28671         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28672         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28673         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28674         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28675         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28676         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28677         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28678         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28679         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28680         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28681         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28682         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28683         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28684         Likewise.
28685         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28686         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28687         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28688         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28689         Likewise.
28690         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28691         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28692         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28693         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28694         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28695         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28696         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28697         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28698         Likewise.
28699         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28700         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28701         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28702         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28703         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28704         Likewise.
28705         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28706         Likewise.
28707         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28708         Likewise.
28709         * doc/glibc-functions/xdrrec_endofrecord.texi
28710         (xdrrec_endofrecord): Likewise.
28711         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28712         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28713         Likewise.
28714         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28715         Likewise.
28716
28717 2010-05-04  Jim Meyering  <meyering@redhat.com>
28718
28719         gendocs.sh: make its "-s FILE" option more useful
28720         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28721         $PACKAGE to reflect the probably-different basename of "FILE".
28722
28723 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28724
28725         bootstrap: don't ignore download_po_files failure
28726         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28727         failure.
28728
28729 2010-05-03  Jim Meyering  <meyering@redhat.com>
28730
28731         maint.mk: allow to pass options to gendocs.sh
28732         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28733         (gendocs_options_): New overridable variable.
28734
28735         gnu-web-doc-update: don't ignore configure or build failure
28736         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28737
28738         announce-gen: backslash-escape '@'s in --help output
28739         * build-aux/announce-gen: Fix syntax errors.
28740
28741         maint.mk, announce-gen: allow project-specific announcement mail headers
28742         * top/maint.mk (translation_project_): Define default.
28743         (announcement_Cc_, announcement_mail_headers_): Likewise.
28744         (announcement): Invoke announce-gen with new --mail-headers option.
28745         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28746
28747         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28748         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28749         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28750         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28751         line in the "err2" output file when running "make check" in verbose
28752         mode (i.e., with set -x enabled).
28753
28754 2010-05-03  Bruno Haible  <bruno@clisp.org>
28755
28756         wctob: Fix for weird platforms.
28757         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28758         argument value.
28759
28760 2010-05-03  Jim Meyering  <meyering@redhat.com>
28761
28762         maint.mk: prohibit unwarranted use of <strings.h>
28763         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28764         strings.h in a file that does not also use strcasecmp, strncasecmp,
28765         ffs or ffsll.
28766
28767         maint.mk: remove obsolete comments
28768         * top/maint.mk: Remove stale, commented-out rules.
28769
28770 2010-05-02  Bruno Haible  <bruno@clisp.org>
28771
28772         wcwidth: Declare also when it's aliased.
28773         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28774         macro.
28775
28776 2010-05-02  Bruno Haible  <bruno@clisp.org>
28777
28778         Fix regression from 2010-04-25.
28779         * gnulib-tool (func_modules_transitive_closure): Check the status of
28780         all modules, not only of the tests that are of the form foo-tests where
28781         foo is a module.
28782
28783 2010-05-02  Bruno Haible  <bruno@clisp.org>
28784
28785         wctob: Work around nasty Cygwin 1.7.2 bug.
28786         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28787         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28788
28789 2010-05-01  Bruno Haible  <bruno@clisp.org>
28790
28791         fpurge: Sharper test.
28792         * tests/test-fpurge.c (main): Add one more ftell check.
28793         * modules/fpurge-tests (Depends-on): Add ftell.
28794         Suggested by Eric Blake.
28795
28796 2010-05-01  Bruno Haible  <bruno@clisp.org>
28797
28798         ftello: Another test.
28799         * tests/test-ftello3.c: New file.
28800         * modules/ftello-tests (Files): Add it.
28801         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28802         MOSTLYCLEANFILES.
28803
28804         ftell: Another test.
28805         * tests/test-ftell3.c: New file.
28806         * modules/ftell-tests (Files): Add it.
28807         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28808         MOSTLYCLEANFILES.
28809
28810 2010-05-01  Bruno Haible  <bruno@clisp.org>
28811
28812         ftell, ftello: Work around Solaris bug.
28813         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28814         * lib/ftello.c: Include stdio-impl.h.
28815         (ftello): On Solaris, when _IOWRT is set, compute the result without
28816         looking at _IOREAD.
28817         * modules/ftello (Files): Add lib/stdio-impl.h.
28818         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28819         * doc/posix-functions/ftello.texi: Likewise.
28820         Reported by Eric Blake.
28821
28822 2010-05-01  Bruno Haible  <bruno@clisp.org>
28823
28824         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28825         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28826         the _IOWRT flag is also set.
28827
28828 2010-05-01  Bruno Haible  <bruno@clisp.org>
28829
28830         Fix doc about a HP-UX stdio bug.
28831         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28832         * doc/posix-functions/ftello.texi: Likewise.
28833
28834 2010-05-01  Bruno Haible  <bruno@clisp.org>
28835
28836         lseek test: Fix failure on Solaris.
28837         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28838         output.
28839
28840 2010-04-30  Jim Meyering  <meyering@redhat.com>
28841
28842         bootstrap: don't ignore failure to generate po*/Makevars
28843         * build-aux/bootstrap (with_gettext): Don't ignore failure
28844         to create po/Makevars or runtime-po/Makevars.
28845
28846 2010-04-29  Eric Blake  <eblake@redhat.com>
28847
28848         headers: relax license to LGPLv2+
28849         * modules/fcntl-h (License): Relax license.
28850         * modules/getopt-posix (License): Likewise.
28851         * modules/locale (License): Likewise.
28852         * modules/math (License): Likewise.
28853         * modules/pty (License): Likewise.
28854         * modules/sched (License): Likewise.
28855         * modules/search (License): Likewise.
28856         * modules/spawn (License): Likewise.
28857         * modules/stdarg (License): Likewise.
28858         * modules/sysexits (License): Likewise.
28859
28860 2010-04-29  Jim Meyering  <meyering@redhat.com>
28861
28862         inttypes: relax license to LGPLv2+
28863         * modules/inttypes (License): Relax license.
28864
28865 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28866
28867         * top/maint.mk (indent): Run twice to produce idempotent results.
28868
28869 2010-04-28  Bruno Haible  <bruno@clisp.org>
28870
28871         getdate: Generate getdate.c in the source directory.
28872         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28873         MOSTLYCLEANFILES.
28874         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28875
28876 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28877
28878         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28879         is not declared as a const *; avoid warnings in that case.
28880
28881 2010-04-28  Eric Blake  <eblake@redhat.com>
28882
28883         canonicalize-lgpl: avoid compiler warning
28884         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28885         declaration' / 'extraneous semicolon' warning with some compilers.
28886         Reported by Andreas Gruenbacher.
28887
28888 2010-04-28  Jim Meyering  <meyering@redhat.com>
28889
28890         init.sh: ensure a more reliable exit status when exiting via trap
28891         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28892         Inspired by patches from Dmitry V. Levin.
28893         Also trap on signal 3 (SIGQUIT).
28894
28895 2010-04-27  Bruno Haible  <bruno@clisp.org>
28896
28897         Update doc about utimes().
28898         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28899         'utimens' module.
28900         Reported by Andreas Gruenbacher <agruen@suse.de>.
28901
28902 2010-04-27  Eric Blake  <eblake@redhat.com>
28903
28904         full-read, full-write: relax license
28905         * modules/full-read (License): Drop to LGPLv2+.
28906         * modules/full-write (License): Likewise.
28907         * modules/safe-read (License): Likewise.
28908         * modules/safe-write (License): Likewise.
28909
28910         pthread: mention library for linking
28911         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28912
28913 2010-04-27  Jim Meyering  <meyering@redhat.com>
28914
28915         maint.mk: fix a bug introduced in last change
28916         * top/maint.mk (gl_assured_headers_): Now that all names are on
28917         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28918         is not anchored to end of word, it should be adequate.
28919
28920         maint.mk: avoid side-effect in latest syntax-check
28921         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28922         to run commands via $(shell...), and hence to incur cost only when
28923         the new rule is actually run.
28924
28925         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28926         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28927         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28928         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28929         (gl_assured_headers_, az_, AZ_): Define.
28930         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28931
28932 2010-04-26  Jim Meyering  <jim@meyering.net>
28933             Bruno Haible  <bruno@clisp.org>
28934
28935         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28936         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28937         Prompted by an exchange with Gilles Espinasse.
28938
28939 2010-04-26  Jim Meyering  <meyering@redhat.com>
28940
28941         git-version-gen: aesthetic tweak
28942         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28943         so that the command remains on a single line.
28944
28945 2010-04-26  Eric Blake  <eblake@redhat.com>
28946
28947         git-version-gen: allow use on EBCDIC hosts
28948         * build-aux/git-version-gen (dirty): Use literal rather than tying
28949         ourselves to ascii.
28950         Reported by Steve Goetze.
28951
28952 2010-04-25  Bruno Haible  <bruno@clisp.org>
28953
28954         netdb: Add support for GNULIB_POSIXCHECK.
28955         * lib/netdb.in.h: Include warn-on-use.h.
28956         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28957         functions are used when GNULIB_POSIXCHECK is defined and the
28958         getaddrinfo module is not in use.
28959         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28960         freeaddrinfo, gai_strerror, getnameinfo are declared.
28961         * modules/netdb (Depends-on): Add warn-on-use.
28962         (Makefile.am): Include warn-on-use.h in netdb.h.
28963
28964 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28965
28966         build: avoid "make check" failure without .git/ directory
28967         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28968         there is no .git/ directory.
28969
28970 2010-04-25  Bruno Haible  <bruno@clisp.org>
28971
28972         ptsname: Fix misuse of ttyname_r.
28973         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28974         of errno.
28975
28976 2010-04-25  Bruno Haible  <bruno@clisp.org>
28977
28978         ttyname_r: Make it work on Solaris 10.
28979         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28980         if the system function has the POSIX declaration. Test whether the
28981         function fails if the buffer is less than 128 bytes large.
28982         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28983         system's ttyname_r function. Provide a reasonably large buffer.
28984         * modules/ttyname_r (Depends-on): Add extensions.
28985         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28986
28987 2010-04-25  Bruno Haible  <bruno@clisp.org>
28988
28989         Use the 'extensions' module for some more functions on Solaris.
28990         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28991         module.
28992         * doc/posix-functions/ctime_r.texi: Likewise.
28993         * doc/posix-functions/getgrgid_r.texi: Likewise.
28994         * doc/posix-functions/getgrnam_r.texi: Likewise.
28995         * doc/posix-functions/getpwnam_r.texi: Likewise.
28996         * doc/posix-functions/getpwuid_r.texi: Likewise.
28997         * doc/posix-functions/readdir_r.texi: Likewise.
28998         * doc/posix-functions/sigwait.texi: Likewise.
28999         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29000         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29001
29002 2010-04-25  Bruno Haible  <bruno@clisp.org>
29003
29004         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29005         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29006         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29007         * lib/ttyname_r.c: Include <limits.h>.
29008         (ttyname_r): Define using the system's ttyname_r function, if it exists
29009         and not on Solaris.
29010         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29011         set.
29012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29013         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29014         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29015         Reported by Simon Josefsson.
29016
29017 2010-04-25  Bruno Haible  <bruno@clisp.org>
29018
29019         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29020         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29021         * doc/posix-functions/ctime_r.texi: Likewise.
29022         * doc/posix-functions/getgrgid_r.texi: Likewise.
29023         * doc/posix-functions/getgrnam_r.texi: Likewise.
29024         * doc/posix-functions/getlogin_r.texi: Likewise.
29025         * doc/posix-functions/getpwnam_r.texi: Likewise.
29026         * doc/posix-functions/getpwuid_r.texi: Likewise.
29027         * doc/posix-functions/readdir_r.texi: Likewise.
29028         * doc/posix-functions/sigwait.texi: Likewise.
29029         * doc/posix-functions/ttyname_r.texi: Likewise.
29030         Reported by Simon Josefsson.
29031
29032 2010-04-25  Bruno Haible  <bruno@clisp.org>
29033
29034         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29035         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29036         also to --create-testdir.
29037         (func_acceptable): Don't consider the status of *-tests modules here.
29038         (func_modules_transitive_closure): Consider it here, before including a
29039         test module.
29040         (func_import, func_create_testdir): Set inc_all_direct_tests,
29041         inc_all_indirect_tests.
29042         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29043         --create-testdir and --create-megatestdir.
29044
29045 2010-04-25  Bruno Haible  <bruno@clisp.org>
29046
29047         gnulib-tool: Add --without-*-tests options.
29048         * gnulib-tool (func_usage): Document the --without-*-tests options.
29049         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29050         excl_unportable_tests): New variables.
29051         Fail if they are specified with --import or --update.
29052         (func_acceptable): Respect the excl_*_tests variables.
29053         (func_import): Set the excl_*_tests variables to empty.
29054
29055 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29056             Bruno Haible  <bruno@clisp.org>
29057
29058         Work around a MacOS X 10.4 bug with openpty.
29059         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29060         * tests/test-openpty.c (main): Close the master side explicitly.
29061
29062 2010-04-25  Bruno Haible  <bruno@clisp.org>
29063
29064         strnlen: Fix a C++ test error on MacOS X and Solaris.
29065         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29066         the function is not declared.
29067         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29068         Simon Josefsson.
29069
29070 2010-04-24  Bruno Haible  <bruno@clisp.org>
29071
29072         Avoid a gcc warning.
29073         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29074         of correct type for %08lx directive.
29075         Reported by Eric Blake.
29076
29077 2010-04-24  Bruno Haible  <bruno@clisp.org>
29078
29079         vasnprintf: Correct errno value in case of out-of-memory.
29080         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29081         or sprintf. Use the errno value from SNPRINTF or sprintf.
29082         Reported by Ian Beckwith <ianb@erislabs.net>.
29083
29084 2010-04-24  Bruno Haible  <bruno@clisp.org>
29085
29086         ansi-c++-opt: Find correct compiler when cross-compiling.
29087         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29088         AC_CHECK_PROGS.
29089         Reported by Simon Josefsson.
29090
29091 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29092
29093         vc-list-files: Add support for subversion
29094         * build-aux/vc-list-files: Use "svn list" to generate the list of
29095         files controlled by subversion.
29096
29097 2010-04-23  Jim Meyering  <meyering@redhat.com>
29098
29099         vc-list-files tests: convert to use init.sh
29100         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29101         path_prepend_.
29102         Use Exit, not exit.
29103         Use skip_ rather than open coding it.
29104         Remove trap set-up and compare definitions.
29105         * tests/test-vc-list-files-git.sh: Likewise.
29106         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29107
29108 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29109
29110         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29111         backup files.
29112
29113 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29114
29115         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29116
29117 2010-04-20  Eric Blake  <eblake@redhat.com>
29118
29119         tests: be robust to ignored SIGPIPE
29120         * tests/test-select-in.sh: Consume all output.
29121         * tests/test-lseek.sh: Check correct exit status, while avoiding
29122         EPIPE.
29123
29124 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29125             Bruno Haible  <bruno@clisp.org>
29126
29127         visibility: Don't use -fvisibility if it leads to a warning.
29128         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29129         yes, don't pretend that visibility works if it leads to a warning.
29130         Reported by Mike Gran <spk121@yahoo.com>.
29131
29132 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29133
29134         * build-aux/bootstrap: Use "git -h" for testing for supported options
29135         instead of "git --help".  The short-form option only shows a summary,
29136         and doesn't layout the full man page.  Grep for the full option name
29137         in the summary, too.
29138
29139 2010-04-19  Bruno Haible  <bruno@clisp.org>
29140
29141         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29142         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29143         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29144         mention of RELOCATABLE_STRIP.
29145         Reported by Sylvain Beucler <beuc@beuc.net>.
29146
29147 2010-04-19  Bruno Haible  <bruno@clisp.org>
29148
29149         * lib/diffseq.h: Fix typo in comment.
29150         Reported by Eric Blake.
29151
29152 2010-04-19  Bruno Haible  <bruno@clisp.org>
29153
29154         ioctl: Move autoconf macro to a .m4 file.
29155         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29156         * modules/ioctl (Files): Add it.
29157         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29158         Reported by Ian Beckwith <ianb@erislabs.net>.
29159
29160 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29161             Bruno Haible  <bruno@clisp.org>
29162
29163         diffseq: Accommodate use-case with abstract arrays.
29164         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29165         is not defined.
29166         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29167         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29168
29169 2010-04-18  Bruno Haible  <bruno@clisp.org>
29170
29171         * doc/posix-headers/stdbool.texi: More precise wording.
29172
29173 2010-04-17  Jim Meyering  <meyering@redhat.com>
29174
29175         maint.mk: use gnu-style indentation in an embedded perl script
29176         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29177         Rename variable: s/two/last_two_bytes/
29178
29179 2010-04-16  Eric Blake  <eblake@redhat.com>
29180
29181         test-stdbool: skip test that fails with Solaris CC
29182         * tests/test-stdbool.c (f): Skip test that causes compilation
29183         error under buggy C++ compiler.
29184         * lib/stdbool.in.h: Document the limitation.
29185         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29186
29187         setenv: allow compilation with C++
29188         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29189         register keyword.
29190
29191         stdint: allow test to pass with C++
29192         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29193
29194         getopt: allow compilation with C++
29195         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29196         struct.
29197         * lib/getopt.c (_getopt_internal_r): Use correct type.
29198         Reported by Dagobert Michelson, via Joel E. Denny.
29199
29200 2010-04-16  Bruno Haible  <bruno@clisp.org>
29201
29202         Override netdb.h always.
29203         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29204         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29205         Reported by Ludovic Courtès <ludo@gnu.org>.
29206
29207 2010-04-15  Bruno Haible  <bruno@clisp.org>
29208
29209         openpty: Fix mistake from 2010-03-21.
29210         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29211         Reported by Simon Josefsson.
29212
29213 2010-04-15  Eric Blake  <eblake@redhat.com>
29214
29215         test-forkpty: fix expected signature
29216         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29217         Reported by Simon Josefsson.
29218
29219 2010-04-15  Jim Meyering  <meyering@redhat.com>
29220
29221         maint.mk: texinfo_suffix_re_: correct the default regexp
29222         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29223
29224         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29225         make it configurable via texinfo_suffix_re_.
29226
29227 2010-04-14  Eric Blake  <eblake@redhat.com>
29228
29229         strtok_r: relax license to LGPLv2+
29230         * modules/strtok_r (License): Relax license.
29231         Reported by Matthias Bolte.
29232
29233 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29234
29235         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29236         version 1.4.4 by default instead of requiring the libgcrypt
29237         version used during build.  This makes it possible to use the
29238         application with older but still binary compatible libgcrypt
29239         versions.
29240
29241 2010-04-13  Eric Blake  <eblake@redhat.com>
29242
29243         getopt-gnu: match recent glibc fixes and posix ruling
29244         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29245         '+' handling, when requesting extensions.
29246         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29247         'W;' handling.
29248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29249         * doc/posix-functions/getopt.texi (getopt): Document this.
29250         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29251         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29252         Likewise.
29253
29254         getopt: merge bug fixes from glibc
29255         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29256         diagnostics.  Honor '+:' correctly.  Reject ';'.
29257
29258         getopt-posix: detect MacOS bug
29259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29260         optind when missing a required argument.
29261         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29262         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29263         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29264         Likewise.
29265
29266         getopt-posix: avoid spurious failure on Solaris
29267         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29268         an indicator that setting optind=1 is sufficient for reset.
29269
29270         getopt-posix: avoid spurious failure on FreeBSD
29271         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29272         in POSIX mode, since the m4 test uses it.
29273
29274         gnulib-tool: silence warning on BSD sh
29275         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29276
29277 2010-04-13  Jim Meyering  <meyering@redhat.com>
29278
29279         doc: users.txt: GNU patch now uses gnulib
29280         * users.txt: Add patch.
29281
29282 2010-04-12  Jim Meyering  <meyering@redhat.com>
29283
29284         maint.mk: generate more concise timing data for syntax-check rules
29285         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29286         " done" from each line that reports a syntax-check test duration.
29287
29288 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29289
29290         git-version-gen: use "git update-index..." rather than "git status"
29291         * build-aux/git-version-gen: Use git update-index --refresh, not
29292         "git status".  With some versions of git, "git status" would fail
29293         to update the index and result in an unwarranted "-dirty" suffix.
29294
29295 2010-04-11  Jim Meyering  <meyering@redhat.com>
29296
29297         openat: correct formatting (no semantic change)
29298         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29299         Suggested by Bruno Haible.
29300
29301 2010-04-11  Bruno Haible  <bruno@clisp.org>
29302
29303         Stricter declaration checking in testdirs.
29304         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29305         If for_tests is true, augment AM_CPPFLAGS to define
29306         GNULIB_STRICT_CHECKING.
29307         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29308         GNULIB_STRICT_CHECKING is defined, verify that the function is
29309         declared.
29310
29311 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29312             Bruno Haible  <bruno@clisp.org>
29313
29314         libunistring: Improve configure output.
29315         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29316         Don't say "consider installing GNU libunistring" when checking again
29317         with libiconv.
29318
29319 2010-04-11  Bruno Haible  <bruno@clisp.org>
29320
29321         libunistring: Correct value of $LTLIBUNISTRING.
29322         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29323         correct the value of $LTLIBUNISTRING.
29324
29325 2010-04-11  Bruno Haible  <bruno@clisp.org>
29326
29327         havelib: Add static libraries to LIBS in the right order.
29328         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29329         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29330
29331 2010-04-11  Bruno Haible  <bruno@clisp.org>
29332
29333         libunistring: Detect libunistring also when it depends on libiconv.
29334         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29335         the second AC_LIB_HAVE_LINKFLAGS invocation.
29336
29337 2010-04-11  James Youngman  <jay@gnu.org>
29338
29339         close-stream: declare local scalars to be "const"
29340         * lib/close-stream.c (close_stream): Make boolean variables const
29341         to document the fact that we set but do not change them.
29342
29343 2010-04-11  Bruno Haible  <bruno@clisp.org>
29344
29345         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29346
29347 2010-04-11  Jim Meyering  <meyering@redhat.com>
29348
29349         maint.mk: don't include dist-check.mk
29350         * top/maint.mk: Remove bogus include directive.
29351
29352         maint.mk: improve empty-line-at-EOF check
29353         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29354         solution, rather than tail+Perl-based one.  The latter would read
29355         a few kilobytes from the end of each file, and did not handle empty
29356         files properly.
29357
29358         maint.mk: print the elapsed time for each syntax-check rule
29359         * top/maint.mk (sc_m_rules_): Save start time in a file.
29360         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29361         (local-check): Interpose the .z rules
29362
29363 2010-04-11  Jim Meyering  <meyering@redhat.com>
29364
29365         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29366         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29367         empty file with one that ends in an empty line.
29368
29369 2010-04-10  Bruno Haible  <bruno@clisp.org>
29370
29371         mkdir: Make it work on mingw64.
29372         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29373         * lib/mkdir.c: Update comment.
29374         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29375
29376 2010-04-10  Bruno Haible  <bruno@clisp.org>
29377
29378         Don't override improved macro from newer autoconf.
29379         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29380         autoconf >= 2.62.
29381         Reported by Joel E. Denny <jdenny@clemson.edu>.
29382
29383 2010-04-10  Jim Meyering  <meyering@redhat.com>
29384
29385         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29386         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29387
29388         maint.mk: correct a diagnostic
29389         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29390         in diagnostic; now use $prohibit.
29391
29392 2010-04-10  Bruno Haible  <address@hidden>
29393
29394         fchownat: Fix a C++ test error on Solaris 8.
29395         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29396         the function does not exist.
29397
29398 2010-04-10  Bruno Haible  <bruno@clisp.org>
29399
29400         vasnprintf: Add more tests.
29401         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29402         (test_function): Test converting an invalid wide string.
29403
29404         vasnprintf: Correct handling of unconvertible wide string arguments.
29405         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29406         VASNPRINTF.
29407         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29408         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29409         smaller than the expected maximum need for the directive. Set errno to
29410         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29411         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29412         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29413         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29414         * modules/vasnprintf (Files): Add m4/printf.m4.
29415         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29416
29417 2010-04-10  Bruno Haible  <bruno@clisp.org>
29418
29419         vasnprintf: Fix crash in %ls directive.
29420         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29421         string is passed as argument to %ls, with no precision and no width.
29422         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29423
29424 2010-04-10  Bruno Haible  <bruno@clisp.org>
29425
29426         vasnprintf: Fix multiple test failures on mingw.
29427         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29428         _snprintf, or snwprintf, not _snwprintf.
29429
29430 2010-04-10  Bruno Haible  <bruno@clisp.org>
29431
29432         write: Fix a C++ test error on mingw.
29433         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29434
29435 2010-04-10  Bruno Haible  <bruno@clisp.org>
29436
29437         vasnprintf test: Reduce code duplication.
29438         * tests/test-vasnprintf.c (test_function): New function, extracted from
29439         test_vasnprintf.
29440         (test_vasnprintf, test_asnprintf): Invoke it.
29441
29442 2010-04-10  Bruno Haible  <bruno@clisp.org>
29443
29444         strnlen: Fix warning in C++ mode on MacOS X.
29445         * lib/string.in.h (strnlen): Use the modern idiom.
29446         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29447         defining strnlen as a macro already in <config.h>.
29448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29449         REPLACE_STRNLEN.
29450         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29451         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29452
29453 2010-04-08  James Youngman  <jay@gnu.org>
29454
29455         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29456         the example.
29457
29458 2010-04-09  Jim Meyering  <meyering@redhat.com>
29459
29460         maint.mk: print better diagnostic when there is no $(_hv_file)
29461         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29462         announce that when $(_hv_file) (aka help-version) does not exist.
29463
29464         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29465         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29466         not try to interpret its random input bytes.  Jarno Rajahalme reported
29467         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29468         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29469         (mktempd_): Likewise, just in case.
29470
29471         ftruncate: add two years to projected module removal date: 2012
29472         * m4/ftruncate.m4: Adjust comments.
29473
29474         ftruncate: mark module as obsolete; even MinGW provides it, now
29475         * modules/ftruncate (Status): Obsolete.
29476         (Notice): Say that.
29477         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29478         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29479
29480 2010-04-08  Bruno Haible  <bruno@clisp.org>
29481
29482         Fix side effects from tests-related modules.
29483         * modules/dprintf-posix (Comment): New section.
29484         * modules/fprintf-posix (Comment): Likewise.
29485         * modules/obstack-printf-posix (Comment): Likewise.
29486         * modules/printf-posix (Comment): Likewise.
29487         * modules/snprintf-posix (Comment): Likewise.
29488         * modules/sprintf-posix (Comment): Likewise.
29489         * modules/vasnprintf-posix (Comment): Likewise.
29490         * modules/vasprintf-posix (Comment): Likewise.
29491         * modules/vdprintf-posix (Comment): Likewise.
29492         * modules/vfprintf-posix (Comment): Likewise.
29493         * modules/vprintf-posix (Comment): Likewise.
29494         * modules/vsnprintf-posix (Comment): Likewise.
29495         * modules/vsprintf-posix (Comment): Likewise.
29496         * modules/xprintf-posix (Comment): Likewise.
29497         * modules/xvasprintf-posix (Comment): Likewise.
29498         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29499         * modules/floorf-tests (Depends-on): Likewise.
29500         * modules/round-tests (Depends-on): Likewise.
29501         * modules/roundf-tests (Depends-on): Likewise.
29502         * modules/trunc-tests (Depends-on): Likewise.
29503         * modules/truncf-tests (Depends-on): Likewise.
29504         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29505         'fprintf-posix' module is not present.
29506         * tests/test-floorf2.c (check): Likewise.
29507         * tests/test-trunc2.c (check): Likewise.
29508         * tests/test-truncf2.c (check): Likewise.
29509         * tests/test-round2.c (equal): Likewise.
29510         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29511
29512 2010-04-07  Karl Berry  <karl@gnu.org>
29513
29514         * config/srclist.txt,
29515         * config/srclistvars.sh,
29516         * config/srclist-update: doc fixes.
29517
29518 2010-04-07  Jim Meyering  <meyering@redhat.com>
29519
29520         maint.mk: add a PATH crosschecking syntax-check rule
29521         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29522         Useful if you use a test like the one in help-version (coreutils,
29523         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29524         printed by prog --version.
29525
29526 2010-04-06  Bruno Haible  <bruno@clisp.org>
29527
29528         Fix link error on mingw.
29529         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29530         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29531
29532 2010-04-06  Bruno Haible  <bruno@clisp.org>
29533
29534         Assume rmdir exists.
29535         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29536
29537 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29538
29539         doc: update users.txt
29540         * users.txt: Add gcal.
29541
29542 2010-04-06  Jim Meyering  <meyering@redhat.com>
29543
29544         init.sh: simply unset TMPDIR rather than risking env -i
29545         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29546         although it probably works fine on all Unix-based systems, some
29547         systems (Cygwin?) cannot tolerate a totally cleared environment.
29548         Suggestion from Eric Blake.
29549
29550 2010-04-06  Jim Meyering  <meyering@redhat.com>
29551
29552         init.sh: portability fix: use env's POSIX-specified -i option not -u
29553         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29554         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29555
29556 2010-04-05  Bruno Haible  <bruno@clisp.org>
29557
29558         btowc: Work around Cygwin 1.7.2 bug.
29559         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29560         does not map NUL to 0.
29561         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29562
29563 2010-04-05  Bruno Haible  <bruno@clisp.org>
29564
29565         Make the multithread modules work on Cygwin 1.7.2.
29566         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29567         imported symbols can be declared weak, so that it returns "no" on
29568         Cygwin 1.7.2.
29569
29570 2010-04-05  Bruno Haible  <bruno@clisp.org>
29571
29572         Use the module 'strncat'.
29573         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29574
29575         Tests for module 'strncat'.
29576         * modules/strncat-tests: New file.
29577         * tests/test-strncat.c: New file.
29578
29579         New module 'strncat'.
29580         * lib/string.in.h (strncat): New declaration.
29581         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29582         * m4/strncat.m4: New file, based on m4/memchr.m4.
29583         * modules/strncat: New file.
29584         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29585         is declared.
29586         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29587         REPLACE_STRNCAT.
29588         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29589         REPLACE_STRNCAT.
29590         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29591         module.
29592         * tests/test-string-c++.cc: Check signature of strncat.
29593
29594 2010-04-05  Jim Meyering  <meyering@redhat.com>
29595
29596         xstrtoumax-tests: convert to use init.sh
29597         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29598         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29599         Use Exit, not exit.
29600         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29601
29602         xstrtoimax-tests: convert to use init.sh
29603         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29604         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29605         Use Exit, not exit.
29606         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29607
29608 2010-04-05  Bruno Haible  <bruno@clisp.org>
29609
29610         sys_socket: Avoid #define replacements in C++ mode.
29611         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29612         warning to the function if possible, rather than #defining the symbol
29613         to a dysfunctional alias.
29614
29615 2010-04-05  Bruno Haible  <bruno@clisp.org>
29616
29617         fseeko: Fix C++ test error on mingw.
29618         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29619         gl_FUNC_FSEEKO.
29620         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29621         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29622         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29623         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29624
29625 2010-04-05  Bruno Haible  <bruno@clisp.org>
29626
29627         duplocale: Improve test output.
29628         * tests/test-duplocale.c (main): Print reason for skipped test.
29629
29630 2010-04-05  Bruno Haible  <bruno@clisp.org>
29631
29632         Assume rmdir exists.
29633         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29634         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29635
29636 2010-04-05  Bruno Haible  <bruno@clisp.org>
29637
29638         Fix link error on Solaris 8 with cc.
29639         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29640
29641 2010-04-05  Bruno Haible  <bruno@clisp.org>
29642
29643         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29644         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29645
29646 2010-04-05  Bruno Haible  <bruno@clisp.org>
29647
29648         vasprintf: Update documentation.
29649         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29650
29651 2010-04-05  Bruno Haible  <bruno@clisp.org>
29652
29653         ptsname: Improve test.
29654         * tests/test-ptsname.c (main): Also try the various master names of BSD
29655         systems.
29656
29657 2010-04-05  Bruno Haible  <bruno@clisp.org>
29658
29659         memchr: Avoid a possible C++ test error.
29660         * lib/string.in.h (memchr): Provide declaration if function is missing.
29661         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29662         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29664         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29665
29666 2010-04-05  Bruno Haible  <bruno@clisp.org>
29667
29668         strtok_r: Improve idiom.
29669         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29670         AC_LIBOBJ is used.
29671
29672 2010-04-05  Bruno Haible  <bruno@clisp.org>
29673
29674         strdup: Improve idiom.
29675         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29676         AC_LIBOBJ is used.
29677         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29678         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29679         when AC_LIBOBJ is used.
29680
29681 2010-04-05  Bruno Haible  <bruno@clisp.org>
29682
29683         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29684         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29685         don't set REPLACE_MBSINIT to 1.
29686         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29687         don't set REPLACE_MBRTOWC to 1.
29688         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29689         exist, don't set REPLACE_MBSRTOWCS to 1.
29690         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29691         exist, don't set REPLACE_MBSNRTOWCS to 1.
29692         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29693         don't set REPLACE_WCRTOMB to 1.
29694         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29695         exist, don't set REPLACE_WCSRTOMBS to 1.
29696         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29697         exist, don't set REPLACE_WCSNRTOMBS to 1.
29698
29699 2010-04-05  Bruno Haible  <bruno@clisp.org>
29700
29701         ldexpl: Improve idiom.
29702         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29703         make sure to set HAVE_DECL_LDEXPL to 0.
29704
29705 2010-04-05  Jim Meyering  <meyering@redhat.com>
29706
29707         xstrtol-tests: convert to use init.sh
29708         * modules/xstrtol-tests (Files): Add tests/init.sh.
29709         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29710         Use Exit, not exit.
29711         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29712
29713         atexit-tests: convert to use init.sh
29714         * modules/atexit-tests (Files): Add tests/init.sh.
29715         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29716         Use Exit, not exit.
29717         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29718
29719         init.sh: fix typo
29720         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29721
29722         init.sh: make it easier for a test script to write to the tty, ...
29723         when using automake's parallel-tests mode.
29724         * tests/init.sh (stderr_fileno_): Define overridable variable.
29725         (warn_): New function, to use it.
29726         (fail_, skip_, framework_failure_): Use warn_.
29727
29728 2010-04-04  Bruno Haible  <bruno@clisp.org>
29729
29730         btowc: Avoid warning.
29731         * lib/btowc.c: Include <stdlib.h>.
29732         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29733
29734 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29735             Bruno Haible  <bruno@clisp.org>
29736
29737         wchar: Port to NetBSD 1.5.
29738         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29739         * lib/wctype.in.h (WEOF): Likewise.
29740
29741 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29742             Bruno Haible  <bruno@clisp.org>
29743
29744         Port extended stdio to NetBSD 1.5.
29745         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29746         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29747         older.
29748
29749 2010-04-04  Bruno Haible  <bruno@clisp.org>
29750
29751         string: Remove unused substitution.
29752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29753         HAVE_DECL_STRERROR.
29754         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29755
29756 2010-04-04  Bruno Haible  <bruno@clisp.org>
29757
29758         strtod: Avoid a possible C++ test error.
29759         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29760         set REPLACE_STRTOD.
29761
29762 2010-04-04  Bruno Haible  <bruno@clisp.org>
29763
29764         strerror: Update documentation.
29765         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29766
29767 2010-04-04  Bruno Haible  <bruno@clisp.org>
29768
29769         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29770         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29771         _GL_CXXALIAS_SYS_CAST.
29772
29773 2010-04-04  Bruno Haible  <bruno@clisp.org>
29774
29775         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29776         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29777         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29778         REPLACE_FREXPL to 1.
29779         * doc/posix-functions/frexpl.texi: Update documentation.
29780
29781 2010-04-04  Bruno Haible  <bruno@clisp.org>
29782
29783         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29784         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29785
29786 2010-04-04  Bruno Haible  <bruno@clisp.org>
29787
29788         Implement nanosleep for native Windows.
29789         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29790
29791 2010-04-04  Bruno Haible  <bruno@clisp.org>
29792
29793         math: Fix some C++ test errors on Solaris 8.
29794         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29795
29796 2010-04-04  Bruno Haible  <bruno@clisp.org>
29797
29798         math: Fix some C++ test errors on Cygwin.
29799         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29800         truncl): Provide declaration if the system does not have it.
29801         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29802         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29803         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29804         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29805         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29806         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29807         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29808         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29809         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29810         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29811         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29812         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29813         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29814         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29815         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29816         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29818         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29819         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29820         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29821         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29822         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29823
29824 2010-04-04  Bruno Haible  <bruno@clisp.org>
29825
29826         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29827         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29828         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29829         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29830         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29831         * m4/isinf.m4 (gl_ISINF): Likewise.
29832         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29833
29834 2010-04-04  Bruno Haible  <bruno@clisp.org>
29835
29836         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29837         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29838
29839 2010-04-04  Bruno Haible  <bruno@clisp.org>
29840
29841         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29842         * modules/tmpfile (configure.ac): Update.
29843
29844         tmpfile: Fix C++ test error on mingw.
29845         * lib/stdio.in.h (tmpfile): New declaration.
29846         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29847         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29848         * modules/tmpfile (Depends-on): Add stdio.
29849         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29850         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29851         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29852         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29853         REPLACE_TMPFILE.
29854         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29855
29856 2010-04-04  Bruno Haible  <bruno@clisp.org>
29857
29858         ioctl: Fix C++ test error on mingw.
29859         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29860         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29861         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29862
29863 2010-04-03  Bruno Haible  <bruno@clisp.org>
29864
29865         wcwidth: Fix C++ test error on mingw.
29866         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29868         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29869
29870 2010-04-03  Bruno Haible  <bruno@clisp.org>
29871
29872         nanosleep: Fix C++ test error on mingw.
29873         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29874         * lib/time.in.h (nanosleep): Use modern idiom.
29875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29876         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29877         REPLACE_NANOSLEEP to 1.
29878         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29879         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29880
29881 2010-04-03  Bruno Haible  <bruno@clisp.org>
29882
29883         strptime: Fix C++ test error on mingw.
29884         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29885         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29886         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29887         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29888         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29889         not REPLACE_STRPTIME.
29890         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29891         REPLACE_STRPTIME.
29892
29893 2010-04-03  Bruno Haible  <bruno@clisp.org>
29894
29895         timegm: Fix C++ test error on mingw.
29896         * lib/time.in.h (timegm): Use modern idiom.
29897         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29898         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29899         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29900         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29901
29902 2010-04-03  Bruno Haible  <bruno@clisp.org>
29903
29904         timegm: Assume declaration if function exists.
29905         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29906         if it exists. Don't clobber ac_cv_func_timegm.
29907
29908 2010-04-03  Bruno Haible  <bruno@clisp.org>
29909
29910         time_r: Fix C++ test error on mingw.
29911         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29912         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29913         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29914         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29915         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29916
29917 2010-04-03  Bruno Haible  <bruno@clisp.org>
29918
29919         time_r: Minor updates.
29920         * modules/time_r (Description): Mention the provided functions.
29921         * lib/time_r.c: Don't include <string.h>.
29922         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29923         * doc/posix-functions/localtime_r.texi: Likewise.
29924
29925 2010-04-03  Bruno Haible  <bruno@clisp.org>
29926
29927         time: Fix regression introduced on 2010-03-08.
29928         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29929         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29930
29931 2010-04-03  Jim Meyering  <meyering@redhat.com>
29932
29933         maint.mk: don't silently disable project-specific syntax-check rules
29934         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29935         that they need to convert their project-specific syntax-check rules
29936         to use the new _sc_search_regexp.
29937
29938 2010-04-03  Bruno Haible  <bruno@clisp.org>
29939
29940         fchdir: Fix regression introduced on 2010-03-08.
29941         * lib/unistd.in.h (fchdir): Fix declaration.
29942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29944         REPLACE_FCHDIR.
29945         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29946         REPLACE_FCHDIR.
29947
29948 2010-04-03  Bruno Haible  <bruno@clisp.org>
29949
29950         getpagesize: Fix C++ test error on mingw.
29951         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29952         system does not declare the function.
29953         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29954         declared.
29955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29956         HAVE_DECL_GETPAGESIZE.
29957         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29958
29959 2010-04-03  Bruno Haible  <bruno@clisp.org>
29960
29961         stdio: Make C++ tests work on mingw.
29962         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29963         does not declare the function.
29964
29965 2010-04-03  Bruno Haible  <bruno@clisp.org>
29966
29967         ftello: Fix C++ test error on mingw.
29968         * lib/stdio.in.h (ftello): Use modern idiom.
29969         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29970         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29971         is missing and that it needs to be replaced.
29972         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29974         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29975
29976 2010-04-03  Bruno Haible  <bruno@clisp.org>
29977
29978         fseeko: Fix C++ test error on mingw.
29979         * lib/stdio.in.h (fseeko): Use modern idiom.
29980         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29981         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29982         is missing and that it needs to be replaced.
29983         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29985         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29986
29987 2010-04-03  Bruno Haible  <bruno@clisp.org>
29988
29989         mkstemp: Fix C++ test error on mingw.
29990         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29991         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29992         function is missing and that it needs to be replaced.
29993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29994         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29995
29996 2010-04-03  Bruno Haible  <bruno@clisp.org>
29997
29998         stpncpy: Fix C++ test error on mingw.
29999         * lib/string.in.h (stpncpy): Use modern idiom.
30000         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30001         function is missing and that it needs to be replaced.
30002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30003         REPLACE_STPNCPY.
30004         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30005
30006 2010-04-03  Bruno Haible  <bruno@clisp.org>
30007
30008         sys_stat: Fix C++ test error on mingw.
30009         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30010         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30011
30012 2010-04-03  Bruno Haible  <bruno@clisp.org>
30013
30014         pty: Update doc.
30015         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30016
30017 2010-04-03  Bruno Haible  <bruno@clisp.org>
30018
30019         unistd: Fix C++ test error on mingw.
30020         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30021
30022 2010-04-03  Bruno Haible  <bruno@clisp.org>
30023
30024         Update doc regarding mingw.
30025         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30026         * doc/glibc-functions/login_tty.texi: Likewise.
30027         * doc/glibc-functions/forkpty.texi: Likewise.
30028
30029 2010-04-03  Bruno Haible  <bruno@clisp.org>
30030
30031         stdlib: Avoid compilation failure of c-strtold on mingw.
30032         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30033
30034 2010-04-03  Bruno Haible  <bruno@clisp.org>
30035
30036         locale: Make C++ tests work on Cygwin and mingw.
30037         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30038         cannot provide the function.
30039         Reported by Simon Josefsson.
30040
30041 2010-04-03  Bruno Haible  <bruno@clisp.org>
30042
30043         localename: Port to MacOS X 10.6.
30044         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30045         memory layout of the locales in MacOS X 10.6 as well.
30046         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30047
30048 2010-04-02  Bruno Haible  <bruno@clisp.org>
30049
30050         gnulib-tool: Ensure that long-running tests are executed last.
30051         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30052         running tests after the one for the other tests.
30053
30054 2010-04-02  Bruno Haible  <bruno@clisp.org>
30055
30056         gnulib-tool: Ensure the tests in the main directory are executed first.
30057         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30058         start with the current directory.
30059
30060 2010-04-02  Bruno Haible  <bruno@clisp.org>
30061
30062         Tests for module 'havelib', moved here from GNU gettext.
30063         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30064         modifications.
30065         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30066         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30067         with modifications.
30068         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30069         modifications.
30070         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30071         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30072         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30073         with modifications.
30074         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30075         with modifications.
30076         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30077         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30078         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30079         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30080         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30081         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30082         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30083         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30084         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30085         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30086         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30087         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30088         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30089         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30090         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30091         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30092         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30093         with modifications.
30094         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30095         with modifications.
30096         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30097         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30098         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30099         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30100         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30101         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30102         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30103         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30104         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30105         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30106         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30107         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30108         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30109         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30110         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30111         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30112         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30113         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30114         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30115         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30116         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30117         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30118         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30119         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30120         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30121         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30122         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30123         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30124         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30125         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30126         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30127         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30128         * tests/havelib/rpathx/rpathx.c: New file, from
30129         gettext/autoconf-lib-link.
30130         * tests/havelib/rpathx/Makefile.am: New file, from
30131         gettext/autoconf-lib-link.
30132         * tests/havelib/rpathx/configure.ac: New file, from
30133         gettext/autoconf-lib-link with modifications.
30134         * tests/havelib/rpathy/rpathy.c: New file, from
30135         gettext/autoconf-lib-link.
30136         * tests/havelib/rpathy/Makefile.am: New file, from
30137         gettext/autoconf-lib-link.
30138         * tests/havelib/rpathy/configure.ac: New file, from
30139         gettext/autoconf-lib-link with modifications.
30140         * tests/havelib/rpathz/rpathz.c: New file, from
30141         gettext/autoconf-lib-link.
30142         * tests/havelib/rpathz/Makefile.am: New file, from
30143         gettext/autoconf-lib-link.
30144         * tests/havelib/rpathz/configure.ac: New file, from
30145         gettext/autoconf-lib-link with modifications.
30146         * tests/havelib/rpathlx/usex.c: New file, from
30147         gettext/autoconf-lib-link.
30148         * tests/havelib/rpathlx/Makefile.am: New file, from
30149         gettext/autoconf-lib-link.
30150         * tests/havelib/rpathlx/configure.ac: New file, from
30151         gettext/autoconf-lib-link with modifications.
30152         * tests/havelib/rpathly/usey.c: New file, from
30153         gettext/autoconf-lib-link.
30154         * tests/havelib/rpathly/Makefile.am: New file, from
30155         gettext/autoconf-lib-link.
30156         * tests/havelib/rpathly/configure.ac: New file, from
30157         gettext/autoconf-lib-link with modifications.
30158         * tests/havelib/rpathlz/usez.c: New file, from
30159         gettext/autoconf-lib-link.
30160         * tests/havelib/rpathlz/Makefile.am: New file, from
30161         gettext/autoconf-lib-link.
30162         * tests/havelib/rpathlz/configure.ac: New file, from
30163         gettext/autoconf-lib-link with modifications.
30164         * tests/havelib/rpathlyx/usey.c: New file, from
30165         gettext/autoconf-lib-link.
30166         * tests/havelib/rpathlyx/Makefile.am: New file, from
30167         gettext/autoconf-lib-link.
30168         * tests/havelib/rpathlyx/configure.ac: New file, from
30169         gettext/autoconf-lib-link with modifications.
30170         * tests/havelib/rpathlzyx/usez.c: New file, from
30171         gettext/autoconf-lib-link.
30172         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30173         gettext/autoconf-lib-link.
30174         * tests/havelib/rpathlzyx/configure.ac: New file, from
30175         gettext/autoconf-lib-link with modifications.
30176         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30177         with modifications.
30178
30179 2010-04-02  Bruno Haible  <bruno@clisp.org>
30180
30181         gnulib-tool: Create distributed built sources also for the tests.
30182         * gnulib-tool (func_create_testdir): Also generate distributed built
30183         sources in the tests directory.
30184
30185 2010-04-02  Bruno Haible  <bruno@clisp.org>
30186
30187         gnulib-tool: Obey user's environment variables.
30188         * gnulib-tool (func_create_testdir): When creating built sources,
30189         respect the environment variables for autoconf, automake, etc. given by
30190         the user.
30191
30192 2010-04-02  Bruno Haible  <bruno@clisp.org>
30193
30194         gnulib-tool: Provide the value of --m4-base to modules.
30195         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30196         of gl_m4_base.
30197
30198 2010-04-02  Eric Blake  <eblake@redhat.com>
30199
30200         maint.mk: fix some fallout
30201         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30202         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30203
30204 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30205
30206         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30207         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30208         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30209         (sc_cast_of_x_alloc_return_value): Likewise.
30210         (sc_cast_of_alloca_return_value): Likewise.
30211         (sc_space_tab): Likewise.
30212         (sc_prohibit_atoi_atof): Likewise.
30213         (sc_prohibit_magic_number_exit): Likewise.
30214         (sc_error_exit_success): Likewise.
30215         (sc_file_system): Likewise.
30216         (sc_prohibit_have_config_h): Likewise.
30217         (sc_require_config_h): Likewise.
30218         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30219         (sc_obsolete_symbols): Likewise.
30220         (sc_changelog): Likewise.
30221         (sc_program_name): Likewise.
30222         (sc_the_the): Likewise.
30223         (sc_trailing_blank): Likewise.
30224         (sc_two_space_separator_in_usage): Likewise.
30225         (sc_useless_cpp_parens): Likewise.
30226         (sc_GPL_version): Likewise.
30227         (sc_GFDL_version): Likewise.
30228         (sc_texinfo_acronym): Likewise.
30229         (sc_prohibit_cvs_keyword): Likewise.
30230         (sc_prohibit_stat_st_blocks): Likewise.
30231         (sc_prohibit_S_IS_definition): Likewise.
30232         (sc_redundant_const): Likewise.
30233         (sc_makefile_TAB_only_indentation): Likewise.
30234         (sc_m4_quote_check): Likewise.
30235         (sc_makefile_path_separator_check): Likewise.
30236         (sc_copyright_check): Likewise.
30237         (sc_Wundef_boolean): Likewise.
30238         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30239
30240         maint.mk: match 0 or more whitespace-before-function-call '('
30241         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30242         that have zero or two-and-more spaces between the function name
30243         and the open parenthesis.
30244         (sc_error_message_warn_fatal): Likewise.
30245         (sc_error_message_uppercase): Likewise.
30246         (sc_error_message_period): Likewise.
30247
30248 2010-03-31  Eric Blake  <eblake@redhat.com>
30249
30250         maint.mk: check for [ as well as test
30251         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30252         Based on a libvirt report by Matthias Bolte.
30253
30254         gnumakefile: don't squelch _version output
30255         * top/GNUmakefile (_version): Create one-shot dependency rather
30256         than using $(shell) when version must be regenerated.
30257         (_autoreconf): Run verbosely, by default.
30258
30259         sys_time: avoid compiler warnings
30260         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30261         unconditional, fixing regression from 2010-03-29.
30262         Reported by Simon Josefsson.
30263
30264 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30265
30266         maint.mk: s/_header_without_use/_sc_header_without_use/
30267         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30268         (sc_prohibit_assert_without_use): Use the new name.
30269         (sc_prohibit_close_stream_without_use): Likewise.
30270         (sc_prohibit_getopt_without_use): Likewise.
30271         (sc_prohibit_quotearg_without_use): Likewise.
30272         (sc_prohibit_quote_without_use): Likewise.
30273         (sc_prohibit_long_options_without_use): Likewise.
30274         (sc_prohibit_inttostr_without_use): Likewise.
30275         (sc_prohibit_ignore_value_without_use): Likewise.
30276         (sc_prohibit_error_without_use): Likewise.
30277         (sc_prohibit_xalloc_without_use): Likewise.
30278         (sc_prohibit_hash_without_use): Likewise.
30279         (sc_prohibit_hash_pjw_without_use): Likewise.
30280         (sc_prohibit_safe_read_without_use): Likewise.
30281         (sc_prohibit_argmatch_without_use): Likewise.
30282         (sc_prohibit_canonicalize_without_use): Likewise.
30283         (sc_prohibit_root_dev_ino_without_use): Likewise.
30284         (sc_prohibit_openat_without_use): Likewise.
30285         (sc_prohibit_c_ctype_without_use): Likewise.
30286         (sc_prohibit_signal_without_use): Likewise.
30287         (sc_prohibit_intprops_without_use): Likewise.
30288
30289 2010-03-30  Eric Blake  <eblake@redhat.com>
30290
30291         maint: improve module indicators
30292         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30293         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30294         columns, and avoid extra macro expansion.
30295
30296         fdopendir: work around FreeBSD bug
30297         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30298         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30299         * modules/dirent (Makefile.am): Substitute it.
30300         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30301         declaration.
30302         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30303         fix.
30304         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30305
30306 2010-03-29  Bruno Haible  <bruno@clisp.org>
30307
30308         Emit #pragma system_header after the inclusion guard, not before.
30309         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30310         guard that spans the entire file, not before. This enables an
30311         optimization in GCC's preprocessor.
30312         * lib/ctype.in.h: Likewise.
30313         * lib/dirent.in.h: Likewise.
30314         * lib/errno.in.h: Likewise.
30315         * lib/float.in.h: Likewise.
30316         * lib/getopt.in.h: Likewise.
30317         * lib/iconv.in.h: Likewise.
30318         * lib/langinfo.in.h: Likewise.
30319         * lib/locale.in.h: Likewise.
30320         * lib/math.in.h: Likewise.
30321         * lib/netdb.in.h: Likewise.
30322         * lib/netinet_in.in.h: Likewise.
30323         * lib/pty.in.h: Likewise.
30324         * lib/sched.in.h: Likewise.
30325         * lib/se-selinux.in.h: Likewise.
30326         * lib/search.in.h: Likewise.
30327         * lib/spawn.in.h: Likewise.
30328         * lib/stdarg.in.h: Likewise.
30329         * lib/stdint.in.h: Likewise.
30330         * lib/string.in.h: Likewise.
30331         * lib/strings.in.h: Likewise.
30332         * lib/sys_file.in.h: Likewise.
30333         * lib/sys_ioctl.in.h: Likewise.
30334         * lib/sys_time.in.h: Likewise.
30335         * lib/sys_times.in.h: Likewise.
30336         * lib/sys_utsname.in.h: Likewise.
30337         * lib/sys_wait.in.h: Likewise.
30338         * lib/sysexits.in.h: Likewise.
30339         * lib/wctype.in.h: Likewise.
30340
30341 2010-03-28  James Youngman  <jay@gnu.org>
30342
30343         save-cwd: don't leak a file descriptor when the caller execs.
30344         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30345         saved file descriptor.
30346         * modules/save-cwd (Depends-on): Depend on cloexec.
30347
30348 2010-03-29  Bruno Haible  <bruno@clisp.org>
30349
30350         Remove vestiges of fts-lgpl module.
30351         * lib/fts_.h: Assume GNULIB_FTS is 1.
30352         * lib/fts.c: Likewise.
30353         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30354
30355 2010-03-28  Bruno Haible  <bruno@clisp.org>
30356
30357         Fix definition of tests witness macro.
30358         * gnulib-tool (func_import): Fix definition of witness macro.
30359
30360 2010-03-28  Bruno Haible  <bruno@clisp.org>
30361
30362         Fix ioctl's protoype on glibc systems.
30363         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30364         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30365         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30366         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30367         signature. If not, arrange to replace the ioctl function.
30368         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30369         REPLACE_IOCTL.
30370         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30371         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30372         Reported by Ludovic Courtès <ludo@gnu.org>.
30373
30374 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30375
30376         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30377         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30378         made it so grep -r --include=GLOB* ... did not work.
30379
30380 2010-03-26  Jim Meyering  <meyering@redhat.com>
30381             Eric Blake  <eblake@redhat.com>
30382
30383         maint.mk: prohibit use of test's -o and -a operators
30384         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30385
30386 2010-03-28  Bruno Haible  <bruno@clisp.org>
30387
30388         Remove unused GNULIB_XYZ macro definitions.
30389         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30390         invocation.
30391
30392 2010-03-28  Bruno Haible  <bruno@clisp.org>
30393
30394         Mark privileged tests modules.
30395         * modules/idpriv-drop-tests (Status): New section.
30396         * modules/idpriv-droptemp-tests (Status): New section.
30397
30398 2010-03-28  Bruno Haible  <bruno@clisp.org>
30399
30400         Split C++ tests into separate tests modules.
30401         * modules/dirent-c++-tests: New file, extracted from
30402         modules/dirent-tests.
30403         * modules/dirent-tests: Depend on it.
30404         * modules/fcntl-h-c++-tests: New file, extracted from
30405         modules/fcntl-h-tests.
30406         * modules/fcntl-h-tests: Depend on it.
30407         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30408         * modules/glob-tests: Depend on it.
30409         * modules/iconv-h-c++-tests: New file, extracted from
30410         modules/iconv-h-tests.
30411         * modules/iconv-h-tests: Depend on it.
30412         * modules/langinfo-c++-tests: New file, extracted from
30413         modules/langinfo-tests.
30414         * modules/langinfo-tests: Depend on it.
30415         * modules/locale-c++-tests: New file, extracted from
30416         modules/locale-tests.
30417         * modules/locale-tests: Depend on it.
30418         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30419         * modules/math-tests: Depend on it.
30420         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30421         * modules/pty-tests: Depend on it.
30422         * modules/search-c++-tests: New file, extracted from
30423         modules/search-tests.
30424         * modules/search-tests: Depend on it.
30425         * modules/signal-c++-tests: New file, extracted from
30426         modules/signal-tests.
30427         * modules/signal-tests: Depend on it.
30428         * modules/spawn-c++-tests: New file, extracted from
30429         modules/spawn-tests.
30430         * modules/spawn-tests: Depend on it.
30431         * modules/stdio-c++-tests: New file, extracted from
30432         modules/stdio-tests.
30433         * modules/stdio-tests: Depend on it.
30434         * modules/stdlib-c++-tests: New file, extracted from
30435         modules/stdlib-tests.
30436         * modules/stdlib-tests: Depend on it.
30437         * modules/string-c++-tests: New file, extracted from
30438         modules/string-tests.
30439         * modules/string-tests: Depend on it.
30440         * modules/sys_ioctl-c++-tests: New file, extracted from
30441         modules/sys_ioctl-tests.
30442         * modules/sys_ioctl-tests: Depend on it.
30443         * modules/sys_select-c++-tests: New file, extracted from
30444         modules/sys_select-tests.
30445         * modules/sys_select-tests: Depend on it.
30446         * modules/sys_socket-c++-tests: New file, extracted from
30447         modules/sys_socket-tests.
30448         * modules/sys_socket-tests: Depend on it.
30449         * modules/sys_stat-c++-tests: New file, extracted from
30450         modules/sys_stat-tests.
30451         * modules/sys_stat-tests: Depend on it.
30452         * modules/sys_time-c++-tests: New file, extracted from
30453         modules/sys_time-tests.
30454         * modules/sys_time-tests: Depend on it.
30455         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30456         * modules/time-tests: Depend on it.
30457         * modules/unistd-c++-tests: New file, extracted from
30458         modules/unistd-tests.
30459         * modules/unistd-tests: Depend on it.
30460         * modules/wchar-c++-tests: New file, extracted from
30461         modules/wchar-tests.
30462         * modules/wchar-tests: Depend on it.
30463         * modules/wctype-c++-tests: New file, extracted from
30464         modules/wctype-tests.
30465         * modules/wctype-tests: Depend on it.
30466         Reported by Simon Josefsson.
30467
30468 2010-03-28  Bruno Haible  <bruno@clisp.org>
30469
30470         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30471         * gnulib-tool (func_exists_module): New function, extracted from
30472         func_verify_module.
30473         (func_verify_module): Use it.
30474         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30475         'foo' only if 'foo' exists.
30476         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30477         module.
30478
30479 2010-03-28  Bruno Haible  <bruno@clisp.org>
30480
30481         gnulib-tool: Add support for special categories of tests.
30482         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30483         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30484         (func_usage): Document them.
30485         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30486         inc_unportable_tests, inc_all_tests): New variables.
30487         (func_acceptable): Consider these variables.
30488         (func_modules_transitive_closure): Make it work when the 'Status' field
30489         consists of multiple words.
30490         (func_import): Store and restore the values of inc_cxx_tests,
30491         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30492         inc_all_tests in gnulib-comp.m4.
30493         (func_create_testdir): Set inc_all_tests to true.
30494         * doc/gnulib.texi (Extra tests modules): New section.
30495         Suggested by Jim Meyering.
30496
30497 2010-03-28  Bruno Haible  <bruno@clisp.org>
30498
30499         ansi-c++-opt: Allow turning off the C++ build by default.
30500         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30501         gl_CXX_CHOICE_DEFAULT_NO is defined.
30502         Requested by Eric Blake.
30503
30504 2010-03-28  Bruno Haible  <bruno@clisp.org>
30505
30506         unistd: Avoid #define replacements in C++ mode.
30507         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30508         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30509         setsockopt, shutdown, select): In C++, attach a warning to the function
30510         if possible, rather than #defining the symbol to a dysfunctional alias.
30511         Reported by John W. Eaton <jwe@gnu.org>.
30512
30513 2010-03-28  Bruno Haible  <bruno@clisp.org>
30514
30515         Fix link errors on mingw.
30516         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30517         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30518         $(LIBSOCKET).
30519         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30520         $(LIBSOCKET).
30521
30522 2010-03-28  Bruno Haible  <bruno@clisp.org>
30523             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30524
30525         lib-ignore: Determine different options for different compilers.
30526         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30527         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30528         Add comments.
30529         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30530         * NEWS: Mention the change.
30531
30532 2010-03-27  Bruno Haible  <bruno@clisp.org>
30533
30534         Remove unused GNULIB_XYZ macro definitions.
30535         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30536         * modules/fseek (configure.ac): Likewise.
30537         * modules/ioctl (configure.ac): Likewise.
30538         * modules/open (configure.ac): Likewise.
30539         * modules/stdlib-safer (configure.ac): Likewise.
30540
30541 2010-03-27  Bruno Haible  <bruno@clisp.org>
30542
30543         Add a remark about certain modules.
30544         * modules/malloc (Comment): New section.
30545         * modules/realloc (Comment): Likewise.
30546         * modules/sigpipe (Comment): Likewise.
30547
30548 2010-03-27  Bruno Haible  <bruno@clisp.org>
30549
30550         Resolve conflict between the two kinds of module indicators.
30551         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30552         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30553         * modules/canonicalize (configure.ac): Invoke
30554         gl_MODULE_INDICATOR_FOR_TESTS.
30555         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30556         GNULIB_XYZ.
30557         * tests/test-dirent-c++.cc: Likewise.
30558         * tests/test-dirent-safer.c: Likewise.
30559         * tests/test-dup2.c: Likewise.
30560         * tests/test-fchdir.c: Likewise.
30561         * tests/test-fcntl-h-c++.cc: Likewise.
30562         * tests/test-getopt.c: Likewise.
30563         * tests/test-getopt.h: Likewise.
30564         * tests/test-langinfo-c++.cc: Likewise.
30565         * tests/test-locale-c++.cc: Likewise.
30566         * tests/test-math-c++.cc: Likewise.
30567         * tests/test-pty-c++.cc: Likewise.
30568         * tests/test-search-c++.cc: Likewise.
30569         * tests/test-signal-c++.cc: Likewise.
30570         * tests/test-spawn-c++.cc: Likewise.
30571         * tests/test-stdio-c++.cc: Likewise.
30572         * tests/test-stdlib-c++.cc: Likewise.
30573         * tests/test-string-c++.cc: Likewise.
30574         * tests/test-sys_ioctl-c++.cc: Likewise.
30575         * tests/test-sys_select-c++.cc: Likewise.
30576         * tests/test-sys_socket-c++.cc: Likewise.
30577         * tests/test-sys_stat-c++.cc: Likewise.
30578         * tests/test-sys_time-c++.cc: Likewise.
30579         * tests/test-time-c++.cc: Likewise.
30580         * tests/test-unistd-c++.cc: Likewise.
30581         * tests/test-wchar-c++.cc: Likewise.
30582         * tests/uninorm/test-u8-nfc.c: Likewise.
30583         * tests/uninorm/test-u8-nfd.c: Likewise.
30584         * tests/uninorm/test-u8-nfkc.c: Likewise.
30585         * tests/uninorm/test-u8-nfkd.c: Likewise.
30586         * tests/uninorm/test-u16-nfc.c: Likewise.
30587         * tests/uninorm/test-u16-nfd.c: Likewise.
30588         * tests/uninorm/test-u16-nfkc.c: Likewise.
30589         * tests/uninorm/test-u16-nfkd.c: Likewise.
30590         * tests/uninorm/test-u32-nfc.c: Likewise.
30591         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30592         * tests/uninorm/test-u32-nfd.c: Likewise.
30593         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30594         * tests/uninorm/test-u32-nfkc.c: Likewise.
30595         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30596         * tests/uninorm/test-u32-nfkd.c: Likewise.
30597         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30598         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30599
30600 2010-03-27  Bruno Haible  <bruno@clisp.org>
30601
30602         Distinguish two kinds of module indicators.
30603         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30604         gl_MODULE_INDICATOR.
30605         (gl_MODULE_INDICATOR): New macro.
30606         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30607         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30608         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30609         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30610         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30611         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30612         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30613         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30614         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30615         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30616         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30617         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30620         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30621         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30622         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30623         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30624         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30625         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30626         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30627         * modules/cloexec (configure.ac): Likewise.
30628         * modules/getopt-gnu (configure.ac): Likewise.
30629         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30630         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30631         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30632         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30633
30634 2010-03-27  Bruno Haible  <bruno@clisp.org>
30635
30636         New module description field 'Comment'.
30637         * gnulib-tool: New option --extract-comment.
30638         (func_usage): Document it.
30639         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30640         (func_get_comment): New function.
30641         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30642
30643 2010-03-27  Bruno Haible  <bruno@clisp.org>
30644
30645         Addendum to 2010-02-07 commit.
30646         * gnulib-tool (func_usage): Document --extract-applicability option.
30647
30648 2010-03-27  Bruno Haible  <bruno@clisp.org>
30649
30650         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30651         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30652         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30653         rather than link errors.
30654
30655 2010-03-27  Bruno Haible  <bruno@clisp.org>
30656
30657         Avoid side effects from tests-related modules on the compilation of lib.
30658         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30659         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30660         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30661         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30662         macro.
30663         (func_import): Define a witness macro. Assign it a value that depends
30664         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30665         tests-related modules.
30666         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30667         Reported by Jim Meyering.
30668
30669 2010-03-27  Bruno Haible  <bruno@clisp.org>
30670
30671         Factorize common .m4 code.
30672         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30673         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30674         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30675         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30676         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30677         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30678         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30679         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30680         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30681         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30682         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30683         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30684         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30685         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30686         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30687         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30688         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30689         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30691         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30692         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30693         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30694         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30695         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30696         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30697         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30698         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30699         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30700         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30701         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30702         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30703         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30704
30705 2010-03-27  Bruno Haible  <bruno@clisp.org>
30706
30707         Fix a compilation error on Cygwin with g++ >= 4.3.
30708         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30709         if it is undefined or if we alias it to chmod.
30710         (lstat): Don't warn about the use of this function if it is undefined
30711         or if we alias it to stat.
30712         Reported by Simon Josefsson.
30713
30714 2010-03-27  Bruno Haible  <bruno@clisp.org>
30715
30716         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30717         * modules/getlogin (configure.ac): Update.
30718
30719         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30720         * modules/getlogin_r (configure.ac): Update.
30721
30722         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30724         * modules/inet_ntop (configure.ac): Update.
30725
30726         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30727         * modules/inet_pton (configure.ac): Update.
30728
30729         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30730         * modules/mbslen (configure.ac): Update.
30731
30732         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30733         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30734         * modules/forkpty (configure.ac): Update.
30735         * modules/openpty (configure.ac): Update.
30736
30737 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30738
30739         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30740         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30741
30742 2010-03-25  Eric Blake  <eblake@redhat.com>
30743
30744         maint: use pragma consistently across replacement headers
30745         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30746         * lib/dirent.in.h (system_header): Likewise.
30747         * lib/errno.in.h (system_header): Likewise.
30748         * lib/float.in.h (system_header): Likewise.
30749         * lib/getopt.in.h (system_header): Likewise.
30750         * lib/iconv.in.h (system_header): Likewise.
30751         * lib/inttypes.in.h (system_header): Likewise.
30752         * lib/langinfo.in.h (system_header): Likewise.
30753         * lib/locale.in.h (system_header): Likewise.
30754         * lib/math.in.h (system_header): Likewise.
30755         * lib/netdb.in.h (system_header): Likewise.
30756         * lib/netinet_in.in.h (system_header): Likewise.
30757         * lib/pty.in.h (system_header): Likewise.
30758         * lib/sched.in.h (system_header): Likewise.
30759         * lib/se-selinux.in.h (system_header): Likewise.
30760         * lib/search.in.h (system_header): Likewise.
30761         * lib/spawn.in.h (system_header): Likewise.
30762         * lib/stdarg.in.h (system_header): Likewise.
30763         * lib/stdint.in.h (system_header): Likewise.
30764         * lib/string.in.h (system_header): Likewise.
30765         * lib/strings.in.h (system_header): Likewise.
30766         * lib/sys_file.in.h (system_header): Likewise.
30767         * lib/sys_ioctl.in.h (system_header): Likewise.
30768         * lib/sys_socket.in.h (system_header): Likewise.
30769         * lib/sys_times.in.h (system_header): Likewise.
30770         * lib/sys_utsname.in.h (system_header): Likewise.
30771         * lib/sys_wait.in.h (system_header): Likewise.
30772         * lib/sysexits.in.h (system_header): Likewise.
30773         * lib/unistd.in.h (system_header): Likewise.
30774         * lib/wctype.in.h (system_header): Likewise.
30775
30776         arpa/inet: fix mingw compilation warning
30777         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30778         Reported by Matthew Bolte.
30779
30780 2010-03-25  Bruno Haible  <bruno@clisp.org>
30781
30782         Avoid collision between gnulib wrapper and libintl wrapper.
30783         * lib/printf.c (printf): Don't define if a printf wrapper is already
30784         defined in intl/printf.c.
30785         Reported by Michel Boaventura <michel@michelboaventura.com>.
30786
30787 2010-03-25  Bruno Haible  <bruno@clisp.org>
30788
30789         Use ANSI C.
30790         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30791
30792 2010-03-25  Bruno Haible  <bruno@clisp.org>
30793
30794         Minor formatting changes.
30795         * lib/acosl.c: Insert space before function argument list.
30796         * lib/argz.c: Likewise.
30797         * lib/asinl.c: Likewise.
30798         * lib/expl.c: Likewise.
30799         * lib/gen-uni-tables.c: Likewise.
30800         * lib/gettext.h: Likewise.
30801         * lib/glthread/lock.h: Likewise.
30802         * lib/tanl.c: Likewise.
30803         * lib/uniname/uniname.c: Likewise.
30804         * tests/test-idpriv-drop.c: Likewise.
30805         * tests/test-idpriv-droptemp.c: Likewise.
30806         * tests/test-lock.c: Likewise.
30807         * tests/test-tls.c: Likewise.
30808         * lib/argp-help.c: Insert space before function-like macro argument
30809         list.
30810         * lib/memcmp.c: Likewise.
30811         * tests/test-base64.c: Likewise.
30812         * lib/localename.c: Insert space before sizeof's argument list.
30813         * lib/safe-alloc.h: Likewise.
30814         * lib/file-set.h: Insert space before macro argument list.
30815         * tests/test-argp.c: Likewise.
30816         * lib/argp-namefrob.h: Insert space before function parameter list.
30817         * lib/getaddrinfo.c: Likewise.
30818         * lib/netdb.in.h: Likewise.
30819         * lib/parse-duration.h: Likewise.
30820         * lib/parse-duration.c: Likewise.
30821         * lib/poll.c: Likewise.
30822         * lib/select.c: Likewise.
30823         * lib/trim.h: Likewise.
30824         * tests/test-usleep.c: Likewise.
30825         * lib/ldexpl.c: Insert space before function parameter list and before
30826         function argument list.
30827         * lib/logl.c: Likewise.
30828         * lib/sqrtl.c: Likewise.
30829         * lib/trim.c: Likewise.
30830         * lib/cosl.c: Use GNU style indentation. Insert space before function
30831         argument list.
30832         * lib/sinl.c: Likewise.
30833         * lib/tsearch.c: Insert space after 'for'.
30834         Reported by Jim Meyering.
30835
30836 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30837
30838         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30839         config header before grepping, as it's not present before
30840         autoreconf/configure are run.  Reported by Simon Josefsson.
30841
30842 2010-03-23  Bruno Haible  <bruno@clisp.org>
30843
30844         pt_chown: Make it work with automake < 1.11.
30845         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30846         Reported by Simon Josefsson.
30847
30848 2010-03-23  Bruno Haible  <bruno@clisp.org>
30849
30850         pt_chown: Don't depend on GPLed modules.
30851         * lib/pt_chown.c: Don't include idpriv.h.
30852         (main): Don't drop privileges.
30853         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30854         Reported by Simon Josefsson.
30855
30856 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30857
30858         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30859         suggestions from karl@freefriends.org (Karl Berry).
30860
30861 2010-03-22  Eric Blake  <eblake@redhat.com>
30862
30863         gethostname: further tweaks
30864         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30865         are overriding gethostname.
30866         Suggested by Bruno Haible.
30867
30868 2010-03-21  Bruno Haible  <bruno@clisp.org>
30869
30870         Fix comments.
30871         * lib/forkpty.c (rpl_forkpty): Fix comment.
30872         * lib/openpty.c (rpl_openpty): Likewise.
30873         Reported by Eric Blake.
30874
30875 2010-03-22  Eric Blake  <eblake@redhat.com>
30876
30877         gethostname: fix build on mingw
30878         * lib/unistd.in.h (includes): Work around fact that mingw
30879         <winsock2.h> re-includes <unistd.h>, by avoiding any
30880         redeclarations if we are being included by <winsock2.h>.
30881         Reported by Matthias Bolte.
30882
30883 2010-03-21  Bruno Haible  <bruno@clisp.org>
30884
30885         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30886         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30887         modifications.
30888         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30889         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30890         provide the replacement.
30891         * modules/forkpty (Depends-on): Add openpty, login_tty.
30892         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30893         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30894         * doc/glibc-functions/forkpty.texi: More supported platforms.
30895         * config/srclist.txt: Add forkpty.c (commented).
30896
30897 2010-03-21  Bruno Haible  <bruno@clisp.org>
30898
30899         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30900         (Makefile.am): Verify that PTY_LIB is defined.
30901
30902         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30903
30904 2010-03-21  Bruno Haible  <bruno@clisp.org>
30905
30906         Tests for module 'login_tty'.
30907         * modules/login_tty-tests: New file.
30908         * tests/test-login_tty.c: New file.
30909
30910         New module 'login_tty'.
30911         * lib/login_tty.c: New file.
30912         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30913         * modules/login_tty: New file.
30914         * doc/glibc-functions/login_tty.texi: Mention the new module.
30915
30916 2010-03-21  Bruno Haible  <bruno@clisp.org>
30917
30918         login_tty: Documentation.
30919         * doc/glibc-functions/login_tty.texi: New file.
30920         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30921
30922 2010-03-21  Bruno Haible  <bruno@clisp.org>
30923
30924         pty: Consistent macro naming.
30925         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30926         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30927         * modules/pty (configure.ac): Update.
30928
30929 2010-03-21  Bruno Haible  <bruno@clisp.org>
30930
30931         Tests for openpty: Make stricter.
30932         * tests/test-openpty.c (main): Add test of canonical processing and
30933         erase.
30934         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30935
30936         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30937         * lib/openpty.c (openpty): New replacement function.
30938         * lib/pty.in.h: Include <termios.h>.
30939         (openpty): Update declaration. Add comments.
30940         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30941         is not declared, arrange to provide the replacement. Check for _getpty
30942         and posix_openpt.
30943         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30944         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30945         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30946         * modules/pty-tests (test_pty_c___LDADD): New variable.
30947         * doc/glibc-functions/openpty.texi: More supported platforms.
30948
30949 2010-03-21  Bruno Haible  <bruno@clisp.org>
30950
30951         setenv: Tweaks.
30952         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30953         the test program.
30954         * doc/posix-functions/setenv.texi: Update platforms list.
30955
30956 2010-03-21  Bruno Haible  <bruno@clisp.org>
30957
30958         New module 'unlockpt'.
30959         * lib/unlockpt.c: New file, from glibc with modifications.
30960         * m4/unlockpt.m4: New file.
30961         * modules/unlockpt: New file.
30962         * lib/stdlib.in.h (unlockpt): New declaration.
30963         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30964         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30965         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30966         HAVE_UNLOCKPT.
30967         * doc/posix-functions/unlockpt.texi: Mention the new module.
30968         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30969         * config/srclist.txt: Add unlockpt.c (commented).
30970
30971 2010-03-21  Jim Meyering  <meyering@redhat.com>
30972
30973         maint.mk: prohibit inclusion of "intprops.h" without use
30974         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30975
30976 2010-03-21  Bruno Haible  <bruno@clisp.org>
30977
30978         New module 'grantpt'.
30979         * lib/grantpt.c: New file, from glibc with modifications.
30980         * m4/grantpt.m4: New file.
30981         * modules/grantpt: New file.
30982         * lib/stdlib.in.h (grantpt): New declaration.
30983         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30984         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30985         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30986         HAVE_GRANTPT.
30987         * doc/posix-functions/grantpt.texi: Mention the new module.
30988         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30989         * config/srclist.txt: Add grantpt.c (commented).
30990
30991 2010-03-21  Bruno Haible  <bruno@clisp.org>
30992
30993         New module 'pt_chown'.
30994         * lib/pt_chown.c: New file, from glibc with modifications.
30995         * lib/pty-private.h: New file, from glibc with modifications.
30996         * modules/pt_chown: New file.
30997         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30998
30999 2010-03-21  Bruno Haible  <bruno@clisp.org>
31000
31001         Tests for module 'ptsname'.
31002         * modules/ptsname-tests: New file.
31003         * tests/test-ptsname.c: New file.
31004
31005         New module 'ptsname'.
31006         * lib/ptsname.c: New file, from glibc with modifications.
31007         * m4/ptsname.m4: New file.
31008         * modules/ptsname: New file.
31009         * lib/stdlib.in.h (ptsname): New declaration.
31010         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31011         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31012         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31013         HAVE_PTSNAME.
31014         * doc/posix-functions/ptsname.texi: Mention the new module.
31015         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31016         * config/srclist.txt: Add ptsname.c (commented).
31017
31018 2010-03-21  Bruno Haible  <bruno@clisp.org>
31019
31020         Tests for module 'ttyname_r'.
31021         * modules/ttyname_r-tests: New file.
31022         * tests/test-ttyname_r.c: New file.
31023
31024         New module 'ttyname_r'.
31025         * lib/ttyname_r.c: New file.
31026         * m4/ttyname_r.m4: New file.
31027         * modules/ttyname_r: New file.
31028         * lib/unistd.in.h (ttyname_r): New declaration.
31029         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31030         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31031         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31032         HAVE_TTYNAME_R.
31033         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31034         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31035
31036 2010-03-20  Bruno Haible  <bruno@clisp.org>
31037
31038         signal: Undefine macro definitions in C++ mode.
31039         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31040         sigfillset): Undefine macro definitions from the system header in C++
31041         mode.
31042         Reported by John W. Eaton <jwe@gnu.org>.
31043
31044 2010-03-20  Bruno Haible  <bruno@clisp.org>
31045
31046         Ensure no #include statements inside extern "C" { ... }.
31047         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31048         contain #include statements.
31049         * lib/time.in.h: Likewise.
31050
31051 2010-03-20  Bruno Haible  <bruno@clisp.org>
31052
31053         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31054         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31055         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31056         Reported by John W. Eaton <jwe@gnu.org>.
31057
31058 2010-03-20  Bruno Haible  <bruno@clisp.org>
31059
31060         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31061         Reported by Jim Meyering.
31062
31063 2010-03-20  Bruno Haible  <bruno@clisp.org>
31064
31065         pipe: Set errno upon failure.
31066         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31067         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31068         errno value in error message.
31069
31070 2010-03-20  Bruno Haible  <bruno@clisp.org>
31071             Jim Meyering  <meyering@redhat.com>
31072
31073         lchown: Avoid "unused variable" warning.
31074         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31075
31076 2010-03-20  Bruno Haible  <bruno@clisp.org>
31077
31078         Work around unlink() bug on MacOS X 10.5.6.
31079         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31080         attempting to unlink a parent directory.
31081         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31082         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31083         activate for the replacement function.
31084         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31085
31086 2010-03-20  Bruno Haible  <bruno@clisp.org>
31087
31088         Fix link errors on Solaris 8.
31089         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31090         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31091
31092 2010-03-19  Jim Meyering  <meyering@redhat.com>
31093
31094         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31095         The _LIBC implementation of build_range_exp correctly honors the
31096         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31097         However, the non-_LIBC implementation would ignore that syntax-bit
31098         flag and return REG_ERANGE unconditionally.
31099         This change makes it honor that flag.
31100         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31101         Make two pointer parameters "const".
31102         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31103         (parse_bracket_exp): Update caller.
31104
31105         regex.m4: correct the reversed range endpoint ([b-a]) test
31106         * m4/regex.m4: When requiring that [b-a] evoke failure,
31107         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31108         test pass once again for x86-based systems.
31109
31110 2010-03-19  Bruno Haible  <bruno@clisp.org>
31111
31112         scandir: Fix link error on Solaris 8.
31113         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31114         macros.
31115
31116 2010-03-19  Bruno Haible  <bruno@clisp.org>
31117
31118         getusershell: Fix documentation.
31119         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31120         module.
31121         * doc/glibc-functions/setusershell.texi: Likewise.
31122
31123         getusershell: Provide declaration, missing on Solaris 9.
31124         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31125         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31126         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31127         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31129         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31130         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31131         HAVE_GETUSERSHELL.
31132         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31133
31134 2010-03-19  Bruno Haible  <bruno@clisp.org>
31135
31136         wctype: Provide iswblank function.
31137         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31138         exists and is fine.
31139         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31140         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31141         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31142         * doc/posix-functions/iswblank.texi: Update.
31143
31144 2010-03-19  Bruno Haible  <bruno@clisp.org>
31145
31146         Tests of module 'pty' in C++ mode.
31147         * modules/pty-tests: New file.
31148         * tests/test-pty-c++.cc: New file.
31149         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31150
31151 2010-03-19  Eric Blake  <eblake@redhat.com>
31152
31153         logb: fix documentation
31154         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31155         1.5 declaration bug.
31156
31157         forkpty, openpty: prefer glibc's const-safe prototype
31158         * lib/forkpty.c (rpl_forkpty): New file.
31159         * lib/openpty.c (rpl_openpty): Likewise.
31160         * modules/forkpty (Files): Distribute it.
31161         * modules/openpty (Files): Likewise.
31162         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31163         check...
31164         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31165         replacement for for non-const BSD signature.
31166         * modules/pty (Makefile.am): Substitute witnesses.
31167         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31168         * tests/test-forkpty.c: Update signature check.
31169         * tests/test-openpty.c: Likewise.
31170         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31171         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31172
31173         forkpty, openpty: split functions into new modules
31174         * modules/pty (Makefile.am): Substitute new witnesses.
31175         (Libraries): Move library detection...
31176         * modules/forkpty: ...into new module.
31177         * modules/openpty: Another new module.
31178         * modules/pty-tests: Rename and split...
31179         * modules/forkpty-tests: ...to this...
31180         * modules/openpty-tests: ...and this.
31181         * tests/test-pty.c: Rename and split...
31182         * tests/test-forkpty.c: ...to this...
31183         * tests/test-openpty.c: ...and this.
31184         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31185         (gl_PTY): Split library searching...
31186         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31187         (gl_FORKPTY, gl_OPENPTY): New macros.
31188         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31189         * NEWS: Mention the split.
31190         * MODULES.html.sh (Misc): Document the modules.
31191         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31192         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31193
31194         pty: improve replacement header
31195         * lib/pty.in.h: New file.
31196         * modules/pty (Files): Ship it.
31197         (Makefile.am): Always build replacement.
31198         * m4/pty.m4: Rename...
31199         * m4/pty_h.m4: ...to this.
31200         (gl_PTY): Modernize setting of witness macros; update check of
31201         forkpty to take proper advantage of cache.
31202         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31203
31204         getopt: avoid compiler warning
31205         * lib/getopt.c (attribute_hidden): Remove unused macro.
31206
31207 2010-03-18  Bruno Haible  <bruno@clisp.org>
31208
31209         Fix link errors on Solaris 8.
31210         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31211         * modules/search-tests (test_search_c___LDADD): Likewise.
31212         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31213         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31214         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31215         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31216         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31217         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31218         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31219
31220 2010-03-18  Bruno Haible  <bruno@clisp.org>
31221
31222         Fix bug introduced on 2010-03-14.
31223         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31224         (gl_SPAWN_H): Require it.
31225         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31226         Reported by Simon Josefsson.
31227
31228 2010-03-18  Bruno Haible  <bruno@clisp.org>
31229
31230         Fix typo introduced on 2009-12-31.
31231         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31232         posix_spawn_file_actions_adddup2.
31233
31234 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31235         and Eric Blake  <eblake@redhat.com>
31236
31237         test-vc-list-files-git: make more robust
31238         * tests/test-vc-list-files-git.sh: Unset problematic environment
31239         variables.  Chain commands together.
31240
31241 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31242
31243         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31244         `AC_CHECK_DECL' invocation.
31245
31246 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31247
31248         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31249         appears before executable statements. Suggested by Petr Sumbera
31250         <Petr.Sumbera@Sun.COM>.
31251
31252 2010-03-14  Bruno Haible  <bruno@clisp.org>
31253
31254         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31255         portability problems. Instead use a simpler test.
31256         (main): Check that invalid arguments are rejected only on Linux.
31257
31258 2010-03-14  Bruno Haible  <bruno@clisp.org>
31259
31260         Fix bug introduced on 2009-12-31.
31261         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31262         gl_PREREQ_SYS_H_WINSOCK2 always.
31263         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31264         SYS_SOCKET_H variable.
31265         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31266         Update comments.
31267         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31268         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31269         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31270         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31271         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31272
31273 2010-03-14  Bruno Haible  <bruno@clisp.org>
31274
31275         Fix values returned by sinl, cosl.
31276         * lib/trigl.h: Add specification comments.
31277         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31278         that combines the values from the precomputed table with the values of
31279         the Chebyshev polynomials.
31280
31281 2010-03-14  Bruno Haible  <bruno@clisp.org>
31282
31283         Fix compilation error when modules 'posix_spawn[p]' are not used.
31284         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31285         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31286
31287 2010-03-14  Bruno Haible  <bruno@clisp.org>
31288
31289         Fix compilation error on mingw when module 'time_r' is not used.
31290         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31291         is 1.
31292         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31293         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31294         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31295         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31296
31297 2010-03-14  Bruno Haible  <bruno@clisp.org>
31298
31299         Fix compilation error with Sun C.
31300         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31301         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31302         instead of GCC specific ULONG_LONG_MAX.
31303         * lib/xstrtoll.c: Likewise.
31304         * lib/xstrtoull.c: Likewise.
31305
31306 2010-03-13  Bruno Haible  <bruno@clisp.org>
31307
31308         Allow the user to disable C++ code and tests.
31309         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31310         (gl_PROG_ANSI_CXX): Require it.
31311
31312 2010-03-13  Bruno Haible  <bruno@clisp.org>
31313
31314         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31315         cases.
31316
31317 2010-03-13  Bruno Haible  <bruno@clisp.org>
31318
31319         Test that gnulib does not break the standard C++ headers.
31320         * tests/test-locale-c++2.cc: New file.
31321         * modules/locale-tests (Files): Add it.
31322         (Makefile.am): Compile it for test-locale-c++.
31323         * tests/test-math-c++2.cc: New file.
31324         * modules/math-tests (Files): Add it.
31325         (Makefile.am): Compile it for test-math-c++.
31326         * tests/test-signal-c++2.cc: New file.
31327         * modules/signal-tests (Files): Add it.
31328         (Makefile.am): Compile it for test-signal-c++.
31329         * tests/test-stdio-c++2.cc: New file.
31330         * modules/stdio-tests (Files): Add it.
31331         (Makefile.am): Compile it for test-stdio-c++.
31332         * tests/test-stdlib-c++2.cc: New file.
31333         * modules/stdlib-tests (Files): Add it.
31334         (Makefile.am): Compile it for test-stdlib-c++.
31335         * tests/test-string-c++2.cc: New file.
31336         * modules/string-tests (Files): Add it.
31337         (Makefile.am): Compile it for test-string-c++.
31338         * tests/test-time-c++2.cc: New file.
31339         * modules/time-tests (Files): Add it.
31340         (Makefile.am): Compile it for test-time-c++.
31341         Reported by John W. Eaton <jwe@gnu.org>.
31342
31343 2010-03-13  Bruno Haible  <bruno@clisp.org>
31344
31345         * gnulib-tool (func_usage): Clarify which options are available for
31346         --create-testdir and --create-megatestdir.
31347
31348 2010-03-13  Bruno Haible  <bruno@clisp.org>
31349
31350         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31351         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31352         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31353         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31354         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31355         when appropriate.
31356         Reported by Jim Meyering.
31357
31358 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31359
31360         * gnulib-tool (func_import): Explain origin of code.
31361
31362 2010-03-12  Bruno Haible  <bruno@clisp.org>
31363
31364         Fix problem with automake's definition of CXXLINK.
31365         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31366         Reported by Simon Josefsson and Ludovic Courtès.
31367
31368 2010-03-12  Bruno Haible  <bruno@clisp.org>
31369
31370         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31371         stable releases.
31372
31373 2010-03-11  Bruno Haible  <bruno@clisp.org>
31374
31375         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31376         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31377         whether the system provides one variant or multiple variants of the
31378         function.
31379         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31380         C++ compilers.
31381         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31382         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31383         Reported by Jim Meyering.
31384
31385 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31386
31387         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31388
31389 2010-03-08  Bruno Haible  <bruno@clisp.org>
31390
31391         gnulib-tool: Add support for --libtool in --create-testdir.
31392         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31393         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31394
31395 2010-03-08  Eric Blake  <eblake@redhat.com>
31396
31397         gnulib-tool.texi: mention possibility of git submodule
31398         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31399         submodules.
31400         * doc/.gitignore: Ignore another generated file.
31401
31402 2010-03-08  Karl Berry  <karl@gnu.org>
31403
31404         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31405         of committing gnulib files while skipping others.
31406
31407 2010-03-07  Bruno Haible  <bruno@clisp.org>
31408
31409         Tests of module 'wctype' in C++ mode.
31410         * tests/test-wctype-c++.cc: New file.
31411         * modules/wctype-tests (Files): Add it and tests/signature.h.
31412         (Depends-on): Add ansi-c++-opt.
31413         (Makefile.am): Arrange to compile and run test-wctype-c++.
31414
31415         Tests of module 'wchar' in C++ mode.
31416         * tests/test-wchar-c++.cc: New file.
31417         * modules/wchar-tests (Files): Add it and tests/signature.h.
31418         (Depends-on): Add ansi-c++-opt.
31419         (Makefile.am): Arrange to compile and run test-wchar-c++.
31420         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31421         gl_MODULE_INDICATOR.
31422
31423         Tests of module 'unistd' in C++ mode.
31424         * tests/test-unistd-c++.cc: New file.
31425         * modules/unistd-tests (Files): Add it and tests/signature.h.
31426         (Depends-on): Add ansi-c++-opt.
31427         (Makefile.am): Arrange to compile and run test-unistd-c++.
31428         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31429         gl_MODULE_INDICATOR.
31430
31431         Tests of module 'time' in C++ mode.
31432         * tests/test-time-c++.cc: New file.
31433         * modules/time-tests (Files): Add it and tests/signature.h.
31434         (Depends-on): Add ansi-c++-opt.
31435         (Makefile.am): Arrange to compile and run test-time-c++.
31436         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31437
31438         Tests of module 'sys_time' in C++ mode.
31439         * tests/test-sys_time-c++.cc: New file.
31440         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31441         (Depends-on): Add ansi-c++-opt.
31442         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31443         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31444         gl_MODULE_INDICATOR.
31445
31446         Tests of module 'sys_stat' in C++ mode.
31447         * tests/test-sys_stat-c++.cc: New file.
31448         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31449         (Depends-on): Add ansi-c++-opt.
31450         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31451         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31452         gl_MODULE_INDICATOR.
31453
31454         Tests of module 'sys_socket' in C++ mode.
31455         * tests/test-sys_socket-c++.cc: New file.
31456         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31457         (Depends-on): Add ansi-c++-opt.
31458         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31459         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31460         gl_MODULE_INDICATOR.
31461
31462         Tests of module 'sys_select' in C++ mode.
31463         * tests/test-sys_select-c++.cc: New file.
31464         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31465         (Depends-on): Add ansi-c++-opt.
31466         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31467         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31468         gl_MODULE_INDICATOR.
31469
31470         Tests of module 'sys_ioctl' in C++ mode.
31471         * tests/test-sys_ioctl-c++.cc: New file.
31472         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31473         (Depends-on): Add ansi-c++-opt.
31474         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31475         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31476         gl_MODULE_INDICATOR.
31477
31478         Tests of module 'string' in C++ mode.
31479         * tests/test-string-c++.cc: New file.
31480         * modules/string-tests (Files): Add it and tests/signature.h.
31481         (Depends-on): Add ansi-c++-opt.
31482         (Makefile.am): Arrange to compile and run test-string-c++.
31483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31484         gl_MODULE_INDICATOR.
31485
31486         Tests of module 'stdlib' in C++ mode.
31487         * tests/test-stdlib-c++.cc: New file.
31488         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31489         (Depends-on): Add ansi-c++-opt.
31490         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31491         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31492         gl_MODULE_INDICATOR.
31493
31494         Tests of module 'stdio' in C++ mode.
31495         * tests/test-stdio-c++.cc: New file.
31496         * modules/stdio-tests (Files): Add it and tests/signature.h.
31497         (Depends-on): Add ansi-c++-opt.
31498         (Makefile.am): Arrange to compile and run test-stdio-c++.
31499         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31500         gl_MODULE_INDICATOR.
31501
31502         Tests of module 'spawn' in C++ mode.
31503         * tests/test-spawn-c++.cc: New file.
31504         * modules/spawn-tests (Files): Add it and tests/signature.h.
31505         (Depends-on): Add ansi-c++-opt.
31506         (Makefile.am): Arrange to compile and run test-spawn-c++.
31507         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31508         gl_MODULE_INDICATOR.
31509
31510         Tests of module 'signal' in C++ mode.
31511         * tests/test-signal-c++.cc: New file.
31512         * modules/signal-tests (Files): Add it and tests/signature.h.
31513         (Depends-on): Add ansi-c++-opt.
31514         (Makefile.am): Arrange to compile and run test-signal-c++.
31515         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31516         gl_MODULE_INDICATOR.
31517
31518         Tests of module 'search' in C++ mode.
31519         * tests/test-search-c++.cc: New file.
31520         * modules/search-tests (Files): Add it and tests/signature.h.
31521         (Depends-on): Add ansi-c++-opt.
31522         (Makefile.am): Arrange to compile and run test-search-c++.
31523         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31524         gl_MODULE_INDICATOR.
31525
31526         Tests of module 'math' in C++ mode.
31527         * tests/test-math-c++.cc: New file.
31528         * modules/math-tests (Files): Add it and tests/signature.h.
31529         (Depends-on): Add ansi-c++-opt.
31530         (Makefile.am): Arrange to compile and run test-math-c++.
31531         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31532
31533         Tests of module 'locale' in C++ mode.
31534         * tests/test-locale-c++.cc: New file.
31535         * modules/locale-tests (Files): Add it and tests/signature.h.
31536         (Depends-on): Add ansi-c++-opt.
31537         (Makefile.am): Arrange to compile and run test-locale-c++.
31538         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31539         gl_MODULE_INDICATOR.
31540
31541         Tests of module 'langinfo' in C++ mode.
31542         * tests/test-langinfo-c++.cc: New file.
31543         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31544         (Depends-on): Add ansi-c++-opt.
31545         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31546         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31547         gl_MODULE_INDICATOR.
31548
31549         Tests of module 'iconv-h' in C++ mode.
31550         * tests/test-iconv-h-c++.cc: New file.
31551         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31552         (Depends-on): Add ansi-c++-opt.
31553         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31554
31555         Tests of module 'glob' in C++ mode.
31556         * tests/test-glob-c++.cc: New file.
31557         * modules/glob-tests (Files): Add it.
31558         (Depends-on): Add ansi-c++-opt.
31559         (Makefile.am): Arrange to compile and run test-glob-c++.
31560
31561         Tests of module 'fcntl-h' in C++ mode.
31562         * tests/test-fcntl-h-c++.cc: New file.
31563         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31564         (Depends-on): Add ansi-c++-opt.
31565         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31566         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31567         gl_MODULE_INDICATOR.
31568
31569         Tests of module 'dirent' in C++ mode.
31570         * tests/test-dirent-c++.cc: New file.
31571         * modules/dirent-tests (Files): Add it and tests/signature.h.
31572         (Depends-on): Add ansi-c++-opt.
31573         (Makefile.am): Arrange to compile and run test-dirent-c++.
31574         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31575         gl_MODULE_INDICATOR.
31576
31577         New module 'ansi-c++-opt'.
31578         * modules/ansi-c++-opt: New file.
31579         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31580
31581         Document C++ namespace mode.
31582         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31583
31584         wctype: Avoid #define replacements in C++ mode.
31585         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31586         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31587         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31588         In C++, define a namespaced alias symbol.
31589         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31590         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31591         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31592         rule.
31593
31594         wchar: Avoid #define replacements in C++ mode.
31595         * lib/wchar.in.h: Include c++defs.h.
31596         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31597         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31598         symbol.
31599         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31600         * modules/wchar (Depends-on): Add c++defs.
31601         (Makefile.am): Update wchar.h rule.
31602
31603         unistd: Avoid #define replacements in C++ mode.
31604         * lib/unistd.in.h: Include c++defs.h.
31605         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31606         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31607         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31608         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31609         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31610         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31611         symbol.
31612         (environ): Update.
31613         * modules/unistd (Depends-on): Add c++defs.
31614         (Makefile.am): Update unistd.h rule.
31615
31616         time: Avoid #define replacements in C++ mode.
31617         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31618         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31619         define a namespaced alias symbol.
31620         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31621         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31622         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31623         * modules/time (Depends-on): Add c++defs, warn-on-use.
31624         (Makefile.am): Update time.h rule.
31625         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31626         * modules/nanosleep (configure.ac): Likewise.
31627         * modules/strptime (configure.ac): Likewise.
31628         * modules/timegm (configure.ac): Likewise.
31629
31630         sys_time: Avoid #define replacements in C++ mode.
31631         * lib/sys_time.in.h: Include c++defs.h.
31632         (gettimeofday): In C++, define a namespaced alias symbol.
31633         * modules/sys_time (Depends-on): Add c++defs.
31634         (Makefile.am): Update sys/time.h rule.
31635
31636         sys_stat: Avoid #define replacements in C++ mode.
31637         * lib/sys_stat.in.h: Include c++defs.h.
31638         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31639         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31640         namespaced alias symbol.
31641         In C++, define a namespaced alias symbol.
31642         * modules/sys_stat (Depends-on): Add c++defs.
31643         (Makefile.am): Update sys/stat.h rule.
31644
31645         sys_socket: Avoid #define replacements in C++ mode.
31646         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31647         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31648         definitions also when the system has a <sys/socket.h>.
31649         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31650         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31651         In C++, define a namespaced alias symbol.
31652         * modules/sys_socket (Depends-on): Add c++defs.
31653         (Makefile.am): Update sys/socket.h rule.
31654
31655         sys_select: Avoid #define replacements in C++ mode.
31656         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31657         definitions also when the system has a <sys/select.h>.
31658         (select): In C++, define a namespaced alias symbol.
31659         * modules/sys_select (Depends-on): Add c++defs.
31660         (Makefile.am): Update sys/select.h rule.
31661
31662         sys_ioctl: Avoid #define replacements in C++ mode.
31663         * lib/sys_ioctl.in.h: Include c++defs.h.
31664         (ioctl): In C++, define a namespaced alias symbol.
31665         * modules/sys_ioctl (Depends-on): Add c++defs.
31666         (Makefile.am): Update sys/ioctl.h rule.
31667
31668         string: Avoid #define replacements in C++ mode.
31669         * lib/string.in.h: Include c++defs.h.
31670         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31671         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31672         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31673         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31674         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31675         * modules/string (Depends-on): Add c++defs.
31676         (Makefile.am): Update string.h rule.
31677
31678         stdlib: Avoid #define replacements in C++ mode.
31679         * lib/stdlib.in.h: Include c++defs.h.
31680         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31681         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31682         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31683         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31684         symbol.
31685         * modules/stdlib (Depends-on): Add c++defs.
31686         (Makefile.am): Update stdlib.h rule.
31687
31688         stdio: Avoid #define replacements in C++ mode.
31689         * lib/stdio.in.h: Include c++defs.h.
31690         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31691         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31692         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31693         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31694         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31695         namespaced alias symbol.
31696         * modules/stdio (Depends-on): Add c++defs.
31697         (Makefile.am): Update stdio.h rule.
31698
31699         spawn: Avoid #define replacements in C++ mode.
31700         * lib/spawn.in.h: Include c++defs.h.
31701         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31702         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31703         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31704         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31705         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31706         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31707         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31708         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31709         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31710         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31711         In C++, define a namespaced alias symbol.
31712         * modules/spawn (Depends-on): Add c++defs.
31713         (Makefile.am): Update spawn.h rule.
31714
31715         signal: Avoid #define replacements in C++ mode.
31716         * lib/signal.in.h: Include c++defs.h.
31717         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31718         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31719         namespaced alias symbol.
31720         * modules/signal (Depends-on): Add c++defs.
31721         (Makefile.am): Update signal.h rule.
31722
31723         search: Avoid #define replacements in C++ mode.
31724         * lib/search.in.h: Include c++defs.h.
31725         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31726         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31727         symbol.
31728         * modules/search (Depends-on): Add c++defs.
31729         (Makefile.am): Update search.h rule.
31730
31731         math: Avoid #define replacements in C++ mode.
31732         * lib/math.in.h: Include c++defs.h.
31733         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31734         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31735         trunc, truncl): In C++, define a namespaced alias symbol.
31736         * modules/math (Depends-on): Add c++defs.
31737         (Makefile.am): Update math.h rule.
31738
31739         locale: Avoid #define replacements in C++ mode.
31740         * lib/locale.in.h: Include c++defs.h.
31741         (duplocale): In C++, define a namespaced alias symbol.
31742         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31743         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31744         * modules/locale (Depends-on): Add c++defs.
31745         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31746
31747         langinfo: Avoid #define replacements in C++ mode.
31748         * lib/langinfo.in.h: Include c++defs.h.
31749         (nl_langinfo): In C++, define a namespaced alias symbol.
31750         * modules/langinfo (Depends-on): Add c++defs.
31751         (Makefile.am): Update langinfo.h rule.
31752
31753         iconv-h: Avoid #define replacements in C++ mode.
31754         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31755         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31756         symbol.
31757         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31758         whenever iconv is present.
31759         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31760         (Makefile.am): Update iconv.h rule.
31761
31762         glob: Avoid #define replacements in C++ mode.
31763         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31764         (_gl_glob_errfunc_fn): New type.
31765         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31766         symbol.
31767         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31768         (Makefile.am): Update glob.h rule.
31769
31770         fcntl-h: Avoid #define replacements in C++ mode.
31771         * lib/fcntl.in.h: Include c++defs.h.
31772         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31773         * modules/fcntl-h (Depends-on): Add c++defs.
31774         (Makefile.am): Update fcntl.h rule.
31775
31776         dirent: Avoid #define replacements in C++ mode.
31777         * lib/dirent.in.h: Include c++defs.h.
31778         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31779         namespaced alias symbol.
31780         (dirfd): Update declaration.
31781         * modules/dirent (Depends-on): Add c++defs.
31782         (Makefile.am): Update dirent.h rule.
31783
31784         ctype: Make it usable in C++ code.
31785         * lib/ctype.in.h: Include c++defs.h.
31786         (isblank): Declare as extern "C".
31787         * modules/ctype (Depends-on): Add c++defs.
31788         (Makefile.am): Update ctype.h rule.
31789
31790         New module 'c++defs'.
31791         * modules/c++defs: New file.
31792         * build-aux/c++defs.h: New file.
31793         Reported by John W. Eaton <jwe@gnu.org>.
31794
31795 2010-03-07  Bruno Haible  <bruno@clisp.org>
31796
31797         logb: Provide missing declaration for Cygwin.
31798         * lib/math.in.h (logb): New declaration.
31799         * m4/logb.m4: New file.
31800         * modules/logb (Files): Add m4/logb.m4.
31801         (Depends-on): Add math.
31802         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31803         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31805         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31806         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31807
31808 2010-03-07  Bruno Haible  <bruno@clisp.org>
31809
31810         Fix test-cond link error.
31811         * tests/test-cond.c: Include <stdio.h>.
31812
31813 2010-03-07  Bruno Haible  <bruno@clisp.org>
31814
31815         Fix test-dirent-safer link error.
31816         * modules/dirent-safer-tests (Makefile.am): Define
31817         test_dirent_safer_LDADD.
31818
31819 2010-03-07  Bruno Haible  <bruno@clisp.org>
31820
31821         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31822         among default module list.
31823
31824 2010-03-07  Bruno Haible  <bruno@clisp.org>
31825
31826         Fix link error on platforms with GNU libiconv.
31827         * modules/unistr/u8-strcoll-tests (Makefile): Define
31828         test_u8_strcoll_LDADD.
31829         * modules/unistr/u16-strcoll-tests (Makefile): Define
31830         test_u16_strcoll_LDADD.
31831         * modules/unistr/u32-strcoll-tests (Makefile): Define
31832         test_u32_strcoll_LDADD.
31833
31834 2010-03-07  Bruno Haible  <bruno@clisp.org>
31835
31836         Use POSIX declarations for socket functions.
31837         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31838         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31839         rpl_sendto): Change declaration to match POSIX.
31840         * lib/connect.c (rpl_connect): Likewise.
31841         * lib/accept.c (rpl_accept): Likewise.
31842         * lib/bind.c (rpl_bind): Likewise.
31843         * lib/getpeername.c (rpl_getpeername): Likewise.
31844         * lib/getsockname.c (rpl_getsockname): Likewise.
31845         * lib/recv.c (rpl_recv): Likewise.
31846         * lib/send.c (rpl_send): Likewise.
31847         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31848         * lib/sendto.c (rpl_sendto): Likewise.
31849
31850 2010-03-06  Bruno Haible  <bruno@clisp.org>
31851
31852         Clarify access, euidaccess, faccessat.
31853         * doc/posix-functions/faccessat.texi: Mention security problem under
31854         "Other problems", not "Portability problems".
31855         * doc/posix-functions/access.texi: Likewise. Mention a related security
31856         problem.
31857         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31858         * lib/euidaccess.c: Add comments about platforms.
31859         * lib/unistd.in.h (access, euidaccess): Add warnings.
31860
31861 2010-03-07  Bruno Haible  <bruno@clisp.org>
31862
31863         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31864         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31865         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31866         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31867         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31868         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31869         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31870         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31871         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31872         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31873         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31874         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31875         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31876         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31877         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31878         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31879         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31880         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31881         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31882         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31883         Likewise.
31884         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31885         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31886         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31887         Likewise.
31888         * tests/test-spawn.c (main): Make it work when
31889         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31890
31891 2010-03-07  Bruno Haible  <bruno@clisp.org>
31892
31893         Fix incorrect Makefile.am generation in German locale.
31894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31895         Execute sed command with character range in C locale.
31896
31897 2010-03-06  Bruno Haible  <bruno@clisp.org>
31898
31899         Tests for module 'iconv-h'.
31900         * modules/iconv-h-tests: New file.
31901         * tests/test-iconv-h.c: New file.
31902
31903         New module 'iconv-h'.
31904         * modules/iconv-h: New file.
31905         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31906         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31907         (configure.ac): Remove gl_ICONV_H.
31908         (Makefile.am): Remove rule for iconv.h.
31909
31910 2010-03-06  Bruno Haible  <bruno@clisp.org>
31911
31912         More consistent naming of *.m4 files.
31913         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31914         * modules/wctype (Files): Update.
31915
31916         More consistent naming of *.m4 files.
31917         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31918         * modules/wchar (Files): Update.
31919
31920 2010-03-06  Jim Meyering  <meyering@redhat.com>
31921
31922         euidaccess: relax license to LGPLv2+
31923         * modules/euidaccess (License): Relax to LGPLv2+.
31924
31925 2010-03-06  Bruno Haible  <bruno@clisp.org>
31926
31927         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31928         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31929         (Makefile.am): Augment lib_SOURCES instead.
31930
31931 2010-03-04  Jim Meyering  <meyering@redhat.com>
31932
31933         utime: remove obsolete module
31934         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31935         unnecessary for years, and has been marked as obsolete for 10 months.
31936         * modules/utime: Remove file.
31937         * lib/utime.c: Remove file.
31938         * m4/utime.m4: Remove file.
31939         * m4/utimes-null.m4: Remove file.
31940         * doc/posix-functions/utime.texi (utime): Remove reference to
31941         the module.  Move the sole "fixed by gnulib" item into the
31942         "problems not fixed by Gnulib" list.
31943         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31944
31945 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31946
31947         * modules/exit (License): Relax license to LGPLv2+.
31948         (Status): Mark as obsolete.
31949         * NEWS: Mention deprecated 'exit' module.
31950         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31951         of now obsolete 'exit'.
31952
31953 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31954
31955         fts-lgpl: remove unused module
31956         * modules/fts-lgpl: Remove.
31957         * MODULES.html.sh (func_all_modules): Adjust.
31958         * check-module (find_included_lib_files): Adjust.
31959         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31960
31961 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31962
31963         copy-acl: enhance Solaris ACL error handling
31964         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31965         * lib/set-mode-acl.c (qset_acl): Likewise.
31966
31967 2010-03-02  Bruno Haible  <bruno@clisp.org>
31968
31969         spawn: Don't override the system defined values on FreeBSD 8.
31970         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31971         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31972         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31973         if HAVE_POSIX_SPAWN is 1.
31974         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31975
31976 2010-03-01  Bruno Haible  <bruno@clisp.org>
31977
31978         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31979         regarding Automake.
31980
31981 2010-02-25  Bruno Haible  <bruno@clisp.org>
31982
31983         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31984         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31985         setting, not afterwards.
31986         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31987
31988 2010-02-24  Eric Blake  <eblake@redhat.com>
31989
31990         bootstrap, git-version-gen: use timestamp
31991         * build-aux/git-version-gen (scriptversion): Force UTC.
31992         * build-aux/bootstrap (scriptversion): New variable.
31993
31994         bootstrap: allow older git
31995         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31996         older than 1.6.4.  Requested by the libvirt project.
31997
31998 2010-02-23  Eric Blake  <eblake@redhat.com>
31999
32000         warn-on-use: work with old autoconf
32001         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32002         AS_VAR semantics of autoconf 2.60.
32003         Reported by Bruno Haible.
32004
32005         bootstrap: improve some comments
32006         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32007         clarification comments.
32008
32009         gettimeofday: provide correct function
32010         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32011         when replacement is declared, otherwise provide gettimeofday.
32012         Reported by Michael Goffioul.
32013
32014 2010-02-23  Jim Meyering  <meyering@redhat.com>
32015
32016         lib-ignore: relax license to "unlimited", not LGPLv2+
32017         * modules/lib-ignore (License): Relax to "unlimited".
32018
32019 2010-02-23  Jim Meyering  <meyering@redhat.com>
32020
32021         lib-ignore: relax license to LGPLv2+
32022         * modules/lib-ignore (License): Relax to LGPLv2+.
32023
32024 2010-02-22  Eric Blake  <eblake@redhat.com>
32025
32026         lseek: avoid bash 3.2 broken pipe bug
32027         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32028         warning from bash 3.2.
32029         Reported by Ben Pfaff, with analysis from Bruno Haible.
32030
32031         bootstrap: support non-FSF copyright holder
32032         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32033         bootstrap.conf override of COPYRIGHT_HOLDER.
32034         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32035
32036         bootstrap: interoperate with gettext 0.14.1
32037         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32038
32039         bootstrap: allow for alternate submodule location
32040         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32041         hardcoding submodule location.
32042         (gnulib_mk): Allow direct use of Makefile.am.
32043
32044         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32045         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32046         rather than reconfiguring where the submodule points.
32047
32048         gettimeofday: restore support for platforms that lack function
32049         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32050         replacement if function is missing.
32051         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32052         * modules/sys_time (Makefile.am): Substitute it.
32053         * lib/sys_time.in.h (gettimeofday): Check it.
32054         Reported by Michael Goffioul.
32055
32056 2010-02-21  Bruno Haible  <bruno@clisp.org>
32057
32058         * lib/stdio.in.h (obstack_printf): Fix typo.
32059
32060 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32061
32062         vc-list-files: use bzr ls's -R option
32063         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32064         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32065
32066 2010-02-21  Jim Meyering  <meyering@redhat.com>
32067
32068         init.sh: fix EXEEXT shims to work also for names like test-prog
32069         * tests/init.sh: Re-exec a better shell, when needed.
32070         If the current shell lacks support for posix $(...), an init.sh-using
32071         test will now try to find a shell that supports that.  If EXEEXT is
32072         nonempty, we also require support for hyphen-in-alias-name and shell
32073         substitutions like ${var#glob}.  Failure to find such a shell results
32074         in a skipped test.
32075
32076 2010-02-21  Bruno Haible  <bruno@clisp.org>
32077
32078         Really work around around "broken pipe" error message from bash 3.2.
32079         * gnulib-tool (func_reset_sigpipe): Remove function.
32080         (echo): In bash 3.2, define to a function that uses printf.
32081         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32082
32083 2010-02-20  Bruno Haible  <bruno@clisp.org>
32084
32085         Restore support for automake 1.9.6 with autoconf 2.61.
32086         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32087         Reported by James Youngman <jay@gnu.org>.
32088
32089 2010-02-20  Bruno Haible  <bruno@clisp.org>
32090
32091         Improve *printf warning condition.
32092         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32093         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32094         and the function is overridden due to SIGPIPE emulation.
32095
32096 2010-02-20  Bruno Haible  <bruno@clisp.org>
32097
32098         * lib/stdio.in.h: Tweak comments.
32099
32100 2010-02-19  Bruno Haible  <bruno@clisp.org>
32101
32102         Make it easier to find modules. New gnulib-tool option '--find'.
32103         * gnulib-tool: New option --find.
32104         (func_usage): Document it.
32105         (func_sanitize_modulelist): New function, extracted from
32106         func_all_modules.
32107         (func_all_modules): Invoke it.
32108         * doc/gnulib-tool.texi (Which modules?): New node.
32109
32110 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32111
32112         * lib/sys_select.in.h: Provide select replacement even if
32113         sys/select.h exists on a system, for Interix.
32114
32115 2010-02-18  Jim Meyering  <meyering@redhat.com>
32116
32117         init.sh: don't use $(...) just yet
32118         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32119         to accommodate e.g., Solaris' /bin/sh.
32120
32121 2010-02-17  Bruno Haible  <bruno@clisp.org>
32122
32123         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32124         Reported by Ludovic Courtès <ludo@gnu.org>.
32125
32126 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32127
32128         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32129         linking with -lintl.
32130
32131 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32132
32133         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32134         if not provided by the system's netdb.h.  Reported by
32135         ludo@gnu.org (Ludovic Courtès).
32136
32137 2010-02-15  Jim Meyering  <meyering@redhat.com>
32138
32139         init.sh: improve portability and efficiency
32140         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32141         "dummy" in a for loop.
32142         Use '!', not '^' to select the complement of a character set used
32143         in a "case" statement.
32144         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32145         Suggestions from Eric Blake.
32146
32147         init.sh: automatically accommodate programs with the .exe suffix
32148         Automatically arrange for an invocation of "prog" to execute the
32149         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32150         may use the simpler "prog", yet still work when built on a system
32151         that requires specifying the added suffix.
32152         Do this by constructing a function named "prog" that invokes
32153         "prog.exe" for each .exe file in selected directories.
32154         * tests/init.sh (find_exe_basenames_): New function.
32155         (create_exe_shim_functions_): New function.
32156         (path_prepend_): Use it.
32157
32158         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32159         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32160         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32161
32162 2010-02-14  Jim Meyering  <meyering@redhat.com>
32163
32164         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32165         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32166         (sc_prohibit_hash_pjw_without_use): New rule.
32167
32168         maint.mk: allow the default upload destination dir to be overridden
32169         * top/maint.mk (upload_dest_dir_): Define with a default that
32170         preserves the status quo.
32171         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32172         Reported by Peter Simons.
32173
32174         maint.mk: prohibit inclusion of "hash.h" without_use
32175         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32176
32177 2010-02-10  Jim Meyering  <meyering@redhat.com>
32178
32179         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32180         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32181
32182 2010-02-09  Eric Blake  <ebb9@byu.net>
32183         and Bruno Haible  <bruno@clisp.org>
32184
32185         obstack-printf-posix: ensure declaration
32186         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32187         extracted from gl_FUNC_OBSTACK_PRINTF.
32188         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32189         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32190         Likewise.
32191         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32192         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32193         0.
32194
32195 2010-02-08  Bruno Haible  <bruno@clisp.org>
32196
32197         gnulib-tool: Fix typo in 2010-02-07 commit.
32198         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32199         Reported by Eric Blake.
32200
32201 2010-02-07  Bruno Haible  <bruno@clisp.org>
32202
32203         gnulib-tool: Fix up caching patches.
32204         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32205         option --no-cache. Use associative arrays when supported by the shell.
32206         (sed_comments): New variable.
32207         (modcache): Renamed from do_cache.
32208         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32209         abbreviate unnecessarily.
32210         (have_associative): New variable.
32211         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32212         way also for ksh and zsh.
32213         (func_init_sed_convert_to_cache_statements): New function, extracted
32214         from func_cache_lookup_module. Add support for associative arrays.
32215         Don't set the c_MODULE_cached variable here. Ignore all lines before
32216         the first field header. Remove only the final newline, not all trailing
32217         newlines. Support empty fields correctly. Limit the use of 'eval' to
32218         assignments.
32219         (func_get_description, func_get_status, func_get_notice,
32220         func_get_applicability, func_get_filelist, func_get_dependencies,
32221         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32222         func_get_automake_snippet, func_get_include_directive,
32223         func_get_link_directive, func_get_license, func_get_maintainer):
32224         Update documentation. List the unoptimized code first. Add support for
32225         associative arrays. Limit the use of 'eval' to assignments.
32226         (func_get_applicability): Undo stylistic pessimisations.
32227         (func_get_automake_snippet, func_get_include_directive): Reduce code
32228         duplication.
32229         (func_modules_transitive_closure, func_modules_add_dummy,
32230         func_modules_notice, func_modules_to_filelist, func_add_file,
32231         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32232         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32233         func_create_testdir, func_create_megatestdir): Update documentation.
32234
32235 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32236
32237         * gnulib-tool (func_cache_lookup_module): Store the module name
32238         belonging to the cache variable; error out if two different
32239         module names map to the same cache variable name.
32240
32241 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32242
32243         gnulib-tool: Make caching optional.
32244         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32245         Update matching short versions of --no-changelog.
32246         (func_usage): Update.
32247         (sed_extract_cache_prog): Renamed from ...
32248         (sed_extract_prog): ... this; revert to old extraction script.
32249         (func_get_description, func_get_status)
32250         (func_get_notice, func_get_applicability, func_get_filelist)
32251         (func_get_dependencies, func_get_autoconf_early_snippet)
32252         (func_get_autoconf_snippet, func_get_automake_snippet)
32253         (func_get_include_directive, func_get_link_directive)
32254         (func_get_license, func_get_maintainer): If $do_cache is false,
32255         use old, non-caching extraction scripts.
32256         Suggestion by Bruno Haible.
32257
32258 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32259
32260         gnulib-tool: cache module metainformation.
32261         * gnulib-tool (sed_extract_prog): Match newline before each
32262         header, and rewrite header to a shell variable suffix.
32263         (func_cache_var, func_cache_lookup_module): New functions,
32264         to turn a module name into a cache variable prefix, and to
32265         look up and cache module metainformation.
32266         (func_get_description, func_get_status)
32267         (func_get_notice, func_get_applicability, func_get_filelist)
32268         (func_get_dependencies, func_get_autoconf_early_snippet)
32269         (func_get_autoconf_snippet, func_get_automake_snippet)
32270         (func_get_include_directive, func_get_link_directive)
32271         (func_get_license, func_get_maintainer): Use
32272         func_cache_lookup_module.
32273
32274 2010-02-07  Bruno Haible  <bruno@clisp.org>
32275
32276         fnctl: Fix missing dependency.
32277         * modules/fcntl (Depends-on): Add getdtablesize.
32278         Reported by John W. Eaton <jwe@gnu.org>.
32279
32280 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32281
32282         Argp: fix recognition of short alias options.
32283
32284         * lib/argp-parse.c (convert_options): Fix improper use of
32285         `|' between character values.
32286         * tests/test-argp.c (group1_option): New alias option
32287         --read (-r).
32288         (group1_parser): Special handling for 'r'.
32289         (test15): New test case.
32290         (test_fun): Add test15.
32291         * tests/test-argp-2.sh: Update expected --help and --usage
32292         outputs.
32293
32294 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32295
32296         * tests/test-argp.c: Fix indentation.
32297
32298 2010-02-04  Eric Blake  <ebb9@byu.net>
32299
32300         gettimeofday: expose type of second argument
32301         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32302         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32303         * tests/test-gettimeofday.c: Use it to silence warning.
32304         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32305         the issue.
32306
32307 2010-02-03  Jim Meyering  <meyering@redhat.com>
32308
32309         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32310         * lib/regcomp.c (TYPE_SIGNED): Define.
32311         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32312
32313         regcomp.c: avoid a new -Wshadow warning
32314         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32315
32316 2010-02-01  Jim Meyering  <meyering@redhat.com>
32317
32318         removing useless parentheses in cpp #define directives
32319         For motivation, see commit c0221df4, "define STREQ(a,b)
32320         consistently, removing useless parentheses"
32321         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32322         * lib/mountlist.c (MNT_IGNORE): Likewise.
32323         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32324
32325 2010-02-01  Eric Blake  <ebb9@byu.net>
32326
32327         sys_time: use link-warning
32328         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32329         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32330         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32331         * modules/sys_time (Depends-on): Add warn-on-use.
32332         (Makefile.am): Always build replacement.
32333         (configure.ac): Update substitutions.
32334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32335         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32336         bother with SYS_TIME_H.
32337         * modules/gettimeofday (configure.ac): Declare indicator.
32338         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32339         in use.
32340
32341         closein-tests: silence compiler warning
32342         * tests/test-closein.c (main): Ignore fread result.
32343         * modules/closein-tests (Depends-on): Add ignore-value.
32344
32345         tests: silence warning about system return
32346         * tests/test-areadlink-with-size.c (main): Ignore system result.
32347         * tests/test-areadlink.c (main): Likewise.
32348         * tests/test-areadlinkat-with-size.c (main): Likewise.
32349         * tests/test-areadlinkat.c (main): Likewise.
32350         * tests/test-canonicalize-lgpl.c (main): Likewise.
32351         * tests/test-canonicalize.c (main): Likewise.
32352         * tests/test-chown.c (main): Likewise.
32353         * tests/test-fchownat.c (main): Likewise.
32354         * tests/test-fdutimensat.c (main): Likewise.
32355         * tests/test-fstatat.c (main): Likewise.
32356         * tests/test-futimens.c (main): Likewise.
32357         * tests/test-lchown.c (main): Likewise.
32358         * tests/test-link.c (main): Likewise.
32359         * tests/test-linkat.c (main): Likewise.
32360         * tests/test-lstat.c (main): Likewise.
32361         * tests/test-mkdir.c (main): Likewise.
32362         * tests/test-mkdirat.c (main): Likewise.
32363         * tests/test-mkfifo.c (main): Likewise.
32364         * tests/test-mkfifoat.c (main): Likewise.
32365         * tests/test-mknod.c (main): Likewise.
32366         * tests/test-readlink.c (main): Likewise.
32367         * tests/test-remove.c (main): Likewise.
32368         * tests/test-rename.c (main): Likewise.
32369         * tests/test-renameat.c (main): Likewise.
32370         * tests/test-rmdir.c (main): Likewise.
32371         * tests/test-symlink.c (main): Likewise.
32372         * tests/test-symlinkat.c (main): Likewise.
32373         * tests/test-unlink.c (main): Likewise.
32374         * tests/test-unlinkat.c (main): Likewise.
32375         * tests/test-utimens.c (main): Likewise.
32376         * tests/test-utimensat.c (main): Likewise.
32377         * modules/areadlink-tests (Depends-on): Add ignore-value.
32378         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32379         * modules/areadlinkat-tests (Depends-on): Likewise.
32380         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32381         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32382         * modules/canonicalize-tests (Depends-on): Likewise.
32383         * modules/chown-tests (Depends-on): Likewise.
32384         * modules/fdutimensat-tests (Depends-on): Likewise.
32385         * modules/futimens-tests (Depends-on): Likewise.
32386         * modules/lchown-tests (Depends-on): Likewise.
32387         * modules/link-tests (Depends-on): Likewise.
32388         * modules/linkat-tests (Depends-on): Likewise.
32389         * modules/lstat-tests (Depends-on): Likewise.
32390         * modules/mkdir-tests (Depends-on): Likewise.
32391         * modules/mkfifo-tests (Depends-on): Likewise.
32392         * modules/mkfifoat-tests (Depends-on): Likewise.
32393         * modules/mknod-tests (Depends-on): Likewise.
32394         * modules/openat-tests (Depends-on): Likewise.
32395         * modules/readlink-tests (Depends-on): Likewise.
32396         * modules/remove-tests (Depends-on): Likewise.
32397         * modules/rename-tests (Depends-on): Likewise.
32398         * modules/renameat-tests (Depends-on): Likewise.
32399         * modules/rmdir-tests (Depends-on): Likewise.
32400         * modules/symlink-tests (Depends-on): Likewise.
32401         * modules/symlinkat-tests (Depends-on): Likewise.
32402         * modules/unlink-tests (Depends-on): Likewise.
32403         * modules/utimens-tests (Depends-on): Likewise.
32404         * modules/utimensat-tests (Depends-on): Likewise.
32405
32406 2010-01-31  Bruno Haible  <bruno@clisp.org>
32407
32408         Perform the same test for many <math.h> functions.
32409         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32410         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32411         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32412         of gl_MATHFUNC.
32413         * modules/acos (configure.ac): Likewise.
32414         * modules/asin (configure.ac): Likewise.
32415         * modules/atan (configure.ac): Likewise.
32416         * modules/atan2 (configure.ac): Likewise.
32417         * modules/cbrt (configure.ac): Likewise.
32418         * modules/copysign (configure.ac): Likewise.
32419         * modules/cos (configure.ac): Likewise.
32420         * modules/cosh (configure.ac): Likewise.
32421         * modules/erf (configure.ac): Likewise.
32422         * modules/erfc (configure.ac): Likewise.
32423         * modules/exp (configure.ac): Likewise.
32424         * modules/fmod (configure.ac): Likewise.
32425         * modules/hypot (configure.ac): Likewise.
32426         * modules/j0 (configure.ac): Likewise.
32427         * modules/j1 (configure.ac): Likewise.
32428         * modules/jn (configure.ac): Likewise.
32429         * modules/lgamma (configure.ac): Likewise.
32430         * modules/log (configure.ac): Likewise.
32431         * modules/log10 (configure.ac): Likewise.
32432         * modules/log1p (configure.ac): Likewise.
32433         * modules/pow (configure.ac): Likewise.
32434         * modules/remainder (configure.ac): Likewise.
32435         * modules/sin (configure.ac): Likewise.
32436         * modules/sinh (configure.ac): Likewise.
32437         * modules/tan (configure.ac): Likewise.
32438         * modules/tanh (configure.ac): Likewise.
32439         * modules/y0 (configure.ac): Likewise.
32440         * modules/y1 (configure.ac): Likewise.
32441         * modules/yn (configure.ac): Likewise.
32442         Suggested by Paolo Bonzini.
32443
32444 2010-01-31  Bruno Haible  <bruno@clisp.org>
32445
32446         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32447
32448 2010-01-31  Bruno Haible  <bruno@clisp.org>
32449
32450         Work around getdelim() bug on FreeBSD 8.0.
32451         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32452         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32453         not work.
32454         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32455         is 1.
32456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32457         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32458         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32459         a non-zero size.
32460         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32461
32462 2010-01-31  Bruno Haible  <bruno@clisp.org>
32463
32464         Work around getline() bug on FreeBSD 8.0.
32465         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32466         and a non-zero size.
32467         * tests/test-getline.c (main): Likewise.
32468         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32469         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32470
32471 2010-01-28  Eric Blake  <ebb9@byu.net>
32472
32473         regex: fix build failure
32474         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32475         platforms.
32476
32477 2010-01-28  Jim Meyering  <meyering@redhat.com>
32478
32479         regex: do not ignore memory allocation failure
32480         * lib/regex_internal.c (create_cd_newstate): Detect
32481         re_node_set_init_copy failure.   Extracted from glibc commit
32482         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32483
32484         regex: sync more white-space changes from libc
32485         * lib/regex_internal.c: White-space only changes.
32486         * lib/regexec.c: Likewise.
32487
32488         regex: add many uses of __attribute_warn_unused_result__
32489         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32490         * lib/regexec.c: Likewise.
32491         Extracted from a messy glibc commit.
32492
32493         regcomp.c: spelling and merge-artifact from glibc
32494         * lib/regcomp.c: Merge remainder of glibc's
32495         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32496
32497         regcomp.c: sync white-space changes from glibc
32498         * lib/regcomp.c: Merge to accommodate white space
32499         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32500
32501         regcomp.c: do not ignore internal return values
32502         * lib/regcomp.c: Do not ignore internal return values.
32503         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32504         but without its white-space changes and spelling fixes.
32505
32506         regex_internal.h: define __attribute_warn_unused_result__
32507         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32508
32509         maint: add a syntax-check rule to check for vulnerable Makefile.in
32510         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32511
32512 2010-01-27  Jim Meyering  <meyering@redhat.com>
32513
32514         ncftpput-ftp: clean up spaces
32515         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32516         Remove trailing blanks.
32517
32518 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32519
32520         * build-aux/git-version-gen: Fix copyright statement.
32521         * build-aux/gnupload: Likewise.
32522         * tests/test-arcfour.c: Likewise.
32523         * tests/test-arctwo.c: Likewise.
32524         * tests/test-count-one-bits.c: Likewise.
32525         * tests/test-crc.c: Likewise.
32526         * tests/test-des.c: Likewise.
32527         * tests/test-gc-arcfour.c: Likewise.
32528         * tests/test-gc-arctwo.c: Likewise.
32529         * tests/test-gc-des.c: Likewise.
32530         * tests/test-gc-hmac-md5.c: Likewise.
32531         * tests/test-gc-hmac-sha1.c: Likewise.
32532         * tests/test-gc-md2.c: Likewise.
32533         * tests/test-gc-md4.c: Likewise.
32534         * tests/test-gc-md5.c: Likewise.
32535         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32536         * tests/test-gc-rijndael.c: Likewise.
32537         * tests/test-gc-sha1.c: Likewise.
32538         * tests/test-gc.c: Likewise.
32539         * tests/test-gethostname.c: Likewise.
32540         * tests/test-gettimeofday.c: Likewise.
32541         * tests/test-hash.c: Likewise.
32542         * tests/test-hmac-md5.c: Likewise.
32543         * tests/test-hmac-sha1.c: Likewise.
32544         * tests/test-md2.c: Likewise.
32545         * tests/test-md4.c: Likewise.
32546         * tests/test-md5.c: Likewise.
32547         * tests/test-memchr.c: Likewise.
32548         * tests/test-memchr2.c: Likewise.
32549         * tests/test-memcmp.c: Likewise.
32550         * tests/test-memmem.c: Likewise.
32551         * tests/test-memrchr.c: Likewise.
32552         * tests/test-rawmemchr.c: Likewise.
32553         * tests/test-read-file.c: Likewise.
32554         * tests/test-rijndael.c: Likewise.
32555         * tests/test-sockets.c: Likewise.
32556         * tests/test-strchrnul.c: Likewise.
32557         * tests/test-strstr.c: Likewise.
32558         * tests/test-strtod.c: Likewise.
32559         * build-aux/ncftpput-ftp: Likewise.
32560
32561 2010-01-26  Eric Blake  <ebb9@byu.net>
32562
32563         ignore-value: update recommended header name
32564         * modules/ignore-value (Include): Only use <> for headers that
32565         exist in glibc.
32566
32567 2010-01-26  Jim Meyering  <meyering@redhat.com>
32568
32569         test-userspec.c: avoid compiler warnings
32570         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32571         and "initialization discards qualifiers..." warnings.
32572         Put the first "uid" in its own scope, and make char* members "const".
32573
32574 2010-01-25  Bruno Haible  <bruno@clisp.org>
32575
32576         gnulib-tool: Make warning diagnostics consistent.
32577         * gnulib-tool (func_warning): New function.
32578         Use it everywhere where gnulib-tool produces output to stderr and it is
32579         not a fatal error.
32580
32581 2010-01-25  Bruno Haible  <bruno@clisp.org>
32582
32583         Fix test dependencies.
32584         * modules/xstrtol-tests (Depends-on): Add inttypes.
32585         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32586
32587 2010-01-25 Pádraig Brady <P@draigBrady.com>
32588
32589         syntax-check: detect incorrect boolean macro values in config.h
32590         * modules/maintainer-makefile (configure.ac): Parameterize the location
32591         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32592         The logic is from Eric Blake and the location indicated by Jim Meyering.
32593         Note the more natural CONFIG_HEADER name is prohibited by automake
32594         for backwards compatibility reasons.
32595         * top/maint.mk (sc_Wundef_boolean): New rule.
32596
32597 2010-01-25  Jim Meyering  <meyering@redhat.com>
32598
32599         bootstrap: detect MacOS 10.6's shasum, too
32600         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32601         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32602
32603 2010-01-23  Jim Meyering  <meyering@redhat.com>
32604
32605         xstrtoll: new module
32606         * modules/xstrtoll: New file.
32607         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32608         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32609         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32610         ./configure fails if you use this module and lack "long long".
32611         * modules/xstrtoll-tests: New module.
32612         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32613         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32614         new init.sh-based test framework.
32615
32616 2010-01-24  Bruno Haible  <bruno@clisp.org>
32617
32618         Tests for module 'yn'.
32619         * modules/yn-tests: New file.
32620         * tests/test-yn.c: New file.
32621
32622         Tests for module 'y1'.
32623         * modules/y1-tests: New file.
32624         * tests/test-y1.c: New file.
32625
32626         Tests for module 'y0'.
32627         * modules/y0-tests: New file.
32628         * tests/test-y0.c: New file.
32629
32630         Tests for module 'tanh'.
32631         * modules/tanh-tests: New file.
32632         * tests/test-tanh.c: New file.
32633
32634         Tests for module 'tan'.
32635         * modules/tan-tests: New file.
32636         * tests/test-tan.c: New file.
32637
32638         Tests for module 'sqrt'.
32639         * modules/sqrt-tests: New file.
32640         * tests/test-sqrt.c: New file.
32641
32642         Tests for module 'sinh'.
32643         * modules/sinh-tests: New file.
32644         * tests/test-sinh.c: New file.
32645
32646         Tests for module 'sin'.
32647         * modules/sin-tests: New file.
32648         * tests/test-sin.c: New file.
32649
32650         Tests for module 'rint'.
32651         * modules/rint-tests: New file.
32652         * tests/test-rint.c: New file.
32653
32654         Tests for module 'remainder'.
32655         * modules/remainder-tests: New file.
32656         * tests/test-remainder.c: New file.
32657
32658         Tests for module 'pow'.
32659         * modules/pow-tests: New file.
32660         * tests/test-pow.c: New file.
32661
32662         Tests for module 'nextafter'.
32663         * modules/nextafter-tests: New file.
32664         * tests/test-nextafter.c: New file.
32665
32666         Tests for module 'modf'.
32667         * modules/modf-tests: New file.
32668         * tests/test-modf.c: New file.
32669
32670         Tests for module 'logb'.
32671         * modules/logb-tests: New file.
32672         * tests/test-logb.c: New file.
32673
32674         Tests for module 'log1p'.
32675         * modules/log1p-tests: New file.
32676         * tests/test-log1p.c: New file.
32677
32678         Tests for module 'log10'.
32679         * modules/log10-tests: New file.
32680         * tests/test-log10.c: New file.
32681
32682         Tests for module 'log'.
32683         * modules/log-tests: New file.
32684         * tests/test-log.c: New file.
32685
32686         Tests for module 'lgamma'.
32687         * modules/lgamma-tests: New file.
32688         * tests/test-lgamma.c: New file.
32689
32690         Tests for module 'ldexp'.
32691         * modules/ldexp-tests: New file.
32692         * tests/test-ldexp.c: New file.
32693
32694         Tests for module 'jn'.
32695         * modules/jn-tests: New file.
32696         * tests/test-jn.c: New file.
32697
32698         Tests for module 'j1'.
32699         * modules/j1-tests: New file.
32700         * tests/test-j1.c: New file.
32701
32702         Tests for module 'j0'.
32703         * modules/j0-tests: New file.
32704         * tests/test-j0.c: New file.
32705
32706         Tests for module 'hypot'.
32707         * modules/hypot-tests: New file.
32708         * tests/test-hypot.c: New file.
32709
32710         Tests for module 'fmod'.
32711         * modules/fmod-tests: New file.
32712         * tests/test-fmod.c: New file.
32713
32714         Tests for module 'fabs'.
32715         * modules/fabs-tests: New file.
32716         * tests/test-fabs.c: New file.
32717
32718         Tests for module 'exp'.
32719         * modules/exp-tests: New file.
32720         * tests/test-exp.c: New file.
32721
32722         Tests for module 'erfc'.
32723         * modules/erfc-tests: New file.
32724         * tests/test-erfc.c: New file.
32725
32726         Tests for module 'erf'.
32727         * modules/erf-tests: New file.
32728         * tests/test-erf.c: New file.
32729
32730         Tests for module 'cosh'.
32731         * modules/cosh-tests: New file.
32732         * tests/test-cosh.c: New file.
32733
32734         Tests for module 'cos'.
32735         * modules/cos-tests: New file.
32736         * tests/test-cos.c: New file.
32737
32738         Tests for module 'copysign'.
32739         * modules/copysign-tests: New file.
32740         * tests/test-copysign.c: New file.
32741
32742         Tests for module 'cbrt'.
32743         * modules/cbrt-tests: New file.
32744         * tests/test-cbrt.c: New file.
32745
32746         Tests for module 'atan2'.
32747         * modules/atan2-tests: New file.
32748         * tests/test-atan2.c: New file.
32749
32750         Tests for module 'atan'.
32751         * modules/atan-tests: New file.
32752         * tests/test-atan.c: New file.
32753
32754         Tests for module 'asin'.
32755         * modules/asin-tests: New file.
32756         * tests/test-asin.c: New file.
32757
32758         Tests for module 'acos'.
32759         * modules/acos-tests: New file.
32760         * tests/test-acos.c: New file.
32761
32762 2010-01-24  Bruno Haible  <bruno@clisp.org>
32763
32764         Fix tests for common <math.h> functions.
32765         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32766         code snippet that references the function pointer, rather than merely
32767         calling the function. Substitute the FUNC_LIBM variable.
32768         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32769         * modules/acos (configure.ac): Likewise.
32770         * modules/asin (configure.ac): Likewise.
32771         * modules/atan (configure.ac): Likewise.
32772         * modules/atan2 (configure.ac): Likewise.
32773         * modules/cbrt (configure.ac): Likewise.
32774         * modules/copysign (configure.ac): Likewise.
32775         * modules/cos (configure.ac): Likewise.
32776         * modules/cosh (configure.ac): Likewise.
32777         * modules/erf (configure.ac): Likewise.
32778         * modules/erfc (configure.ac): Likewise.
32779         * modules/exp (configure.ac): Likewise.
32780         * modules/fabs (configure.ac): Likewise.
32781         * modules/fmod (configure.ac): Likewise.
32782         * modules/hypot (configure.ac): Likewise.
32783         * modules/j0 (configure.ac): Likewise.
32784         * modules/j1 (configure.ac): Likewise.
32785         * modules/jn (configure.ac): Likewise.
32786         * modules/ldexp (configure.ac): Likewise.
32787         * modules/lgamma (configure.ac): Likewise.
32788         * modules/log (configure.ac): Likewise.
32789         * modules/log10 (configure.ac): Likewise.
32790         * modules/log1p (configure.ac): Likewise.
32791         * modules/logb (configure.ac): Likewise.
32792         * modules/modf (configure.ac): Likewise.
32793         * modules/nextafter (configure.ac): Likewise.
32794         * modules/pow (configure.ac): Likewise.
32795         * modules/remainder (configure.ac): Likewise.
32796         * modules/rint (configure.ac): Likewise.
32797         * modules/sin (configure.ac): Likewise.
32798         * modules/sinh (configure.ac): Likewise.
32799         * modules/tan (configure.ac): Likewise.
32800         * modules/tanh (configure.ac): Likewise.
32801         * modules/y0 (configure.ac): Likewise.
32802         * modules/y1 (configure.ac): Likewise.
32803         * modules/yn (configure.ac): Likewise.
32804
32805 2010-01-24  Bruno Haible  <bruno@clisp.org>
32806
32807         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32808         * tests/test-acosl.c (x): New variable.
32809         (main): Store argument in x and fetch it from x.
32810         * tests/test-asinl.c (x): New variable.
32811         (main): Store argument in x and fetch it from x.
32812         * tests/test-atanl.c (x): New variable.
32813         (main): Store argument in x and fetch it from x.
32814         * tests/test-cosl.c (x): New variable.
32815         (main): Store argument in x and fetch it from x.
32816         * tests/test-expl.c (x): New variable.
32817         (main): Store argument in x and fetch it from x.
32818         * tests/test-logl.c (x): New variable.
32819         (main): Store argument in x and fetch it from x.
32820         * tests/test-sinl.c (x): New variable.
32821         (main): Store argument in x and fetch it from x.
32822         * tests/test-sqrtl.c (x): New variable.
32823         (main): Store argument in x and fetch it from x.
32824         * tests/test-tanl.c (x): New variable.
32825         (main): Store argument in x and fetch it from x.
32826
32827 2010-01-24  Bruno Haible  <bruno@clisp.org>
32828
32829         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32830         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32831         assignments to the initial TESTS_ENVIRONMENT.
32832         * doc/gnulib.texi (Unit test modules): Document it.
32833         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32834         TESTS_ENVIRONMENT.
32835         * modules/btowc-tests (Makefile.am): Likewise.
32836         * modules/c-stack-tests (Makefile.am): Likewise.
32837         * modules/c-strcase-tests (Makefile.am): Likewise.
32838         * modules/copy-file-tests (Makefile.am): Likewise.
32839         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32840         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32841         * modules/mbrtowc-tests (Makefile.am): Likewise.
32842         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32843         * modules/mbscasestr-tests (Makefile.am): Likewise.
32844         * modules/mbschr-tests (Makefile.am): Likewise.
32845         * modules/mbscspn-tests (Makefile.am): Likewise.
32846         * modules/mbsinit-tests (Makefile.am): Likewise.
32847         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32848         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32849         * modules/mbspbrk-tests (Makefile.am): Likewise.
32850         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32851         * modules/mbsrchr-tests (Makefile.am): Likewise.
32852         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32853         * modules/mbsspn-tests (Makefile.am): Likewise.
32854         * modules/mbsstr-tests (Makefile.am): Likewise.
32855         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32856         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32857         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32858         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32859         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32860         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32861         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32862         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32863         * modules/wcrtomb-tests (Makefile.am): Likewise.
32864         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32865         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32866         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32867         assignments from TESTS_ENVIRONMENT.
32868         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32869         augmentation.
32870         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32871         * modules/atexit-tests (Makefile.am): Likewise.
32872         * modules/binary-io-tests (Makefile.am): Likewise.
32873         * modules/closein-tests (Makefile.am): Likewise.
32874         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32875         * modules/exclude-tests (Makefile.am): Likewise.
32876         * modules/fflush-tests (Makefile.am): Likewise.
32877         * modules/fpending-tests (Makefile.am): Likewise.
32878         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32879         * modules/freadahead-tests (Makefile.am): Likewise.
32880         * modules/freadptr-tests (Makefile.am): Likewise.
32881         * modules/freadseek-tests (Makefile.am): Likewise.
32882         * modules/fseek-tests (Makefile.am): Likewise.
32883         * modules/fseeko-tests (Makefile.am): Likewise.
32884         * modules/ftell-tests (Makefile.am): Likewise.
32885         * modules/ftello-tests (Makefile.am): Likewise.
32886         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32887         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32888         * modules/lseek-tests (Makefile.am): Likewise.
32889         * modules/parse-duration-tests (Makefile.am): Likewise.
32890         * modules/perror-tests (Makefile.am): Likewise.
32891         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32892         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32893         * modules/pipe-tests (Makefile.am): Likewise.
32894         * modules/pread-tests (Makefile.am): Likewise.
32895         * modules/printf-posix-tests (Makefile.am): Likewise.
32896         * modules/select-tests (Makefile.am): Likewise.
32897         * modules/sigpipe-tests (Makefile.am): Likewise.
32898         * modules/tsearch-tests (Makefile.am): Likewise.
32899         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32900         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32901         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32902         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32903         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32904         * modules/version-etc-tests (Makefile.am): Likewise.
32905         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32906         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32907         * modules/xalloc-die-tests (Makefile.am): Likewise.
32908         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32909         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32910         * modules/xstrtol-tests (Makefile.am): Likewise.
32911         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32912         * modules/yesno-tests (Makefile.am): Likewise.
32913         Suggested by Jim Meyering.
32914
32915 2010-01-24  Bruno Haible  <bruno@clisp.org>
32916
32917         More documentation.
32918         * doc/gnulib.texi (Writing modules): New chapter.
32919         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32920         the new chapter.
32921
32922 2010-01-24  Jim Meyering  <meyering@redhat.com>
32923
32924         maint.mk: do not prepend "./" after filtering
32925         * top/maint.mk (_prepend_srcdir_prefix): New variable
32926         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32927         "./" when $(srcdir) is ".".
32928
32929         define STREQ(a,b) consistently, removing useless parentheses
32930         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32931         since the only risk is that "a" or "b" contains an unparenthesized
32932         comma, but if either did that, STREQ would have 3 or more arguments.
32933         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32934         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32935         * lib/hash-triple.c (STREQ): Likewise.
32936         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32937         * lib/getugroups.c (STREQ): Likewise.
32938
32939 2010-01-23  Jim Meyering  <meyering@redhat.com>
32940
32941         maint.mk: fix syntax-check in a non-srcdir build directory
32942         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32943         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32944
32945 2010-01-22  Jim Meyering  <meyering@redhat.com>
32946
32947         userspec: add unit tests
32948         * tests/test-userspec.c: New file.
32949         * modules/userspec-tests: Likewise.
32950
32951 2010-01-21  Jim Meyering  <meyering@redhat.com>
32952
32953         maint.mk: handle source file names containing "." robustly
32954         * top/maint.mk (_dot_escaped_srcdir): Define.
32955         (VC_LIST): Use it in LHS of sed substitution.
32956
32957 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32958
32959         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32960         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32961         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32962         from a non-srcdir build.
32963
32964 2010-01-20  Eric Blake  <ebb9@byu.net>
32965
32966         warn-on-use: use instead of link-warning
32967         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32968         * modules/unistd (Depends-on, Makefile.am): Likewise.
32969         * modules/arpa_inet (Depends-on): Replace link-warning with
32970         warn-on-use.
32971         (Makefile.am): Update rules accordingly.
32972         * modules/ctype (Depends-on, Makefile.am): Likewise.
32973         * modules/dirent (Depends-on, Makefile.am): Likewise.
32974         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32975         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32976         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32977         * modules/locale (Depends-on, Makefile.am): Likewise.
32978         * modules/math (Depends-on, Makefile.am): Likewise.
32979         * modules/search (Depends-on, Makefile.am): Likewise.
32980         * modules/signal (Depends-on, Makefile.am): Likewise.
32981         * modules/spawn (Depends-on, Makefile.am): Likewise.
32982         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32983         * modules/string (Depends-on, Makefile.am): Likewise.
32984         * modules/strings (Depends-on, Makefile.am): Likewise.
32985         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32986         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32987         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32988         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32989         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32990         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32991         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32992         * modules/wchar (Depends-on, Makefile.am): Likewise.
32993         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32994         should be poisoned.
32995         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32996         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32997         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32998         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32999         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33000         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33001         * m4/math_h.m4 (gl_MATH_H): Likewise.
33002         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33003         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33004         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33005         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33006         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33007         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33008         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33009         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33010         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33011         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33012         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33014         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33015         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33016         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33017         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33018         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33019         GL_LINK_WARNING.
33020         * lib/ctype.in.h: Likewise.
33021         * lib/dirent.in.h: Likewise.
33022         * lib/fcntl.in.h: Likewise.
33023         * lib/inttypes.in.h: Likewise.
33024         * lib/langinfo.in.h: Likewise.
33025         * lib/locale.in.h: Likewise.
33026         * lib/math.in.h: Likewise.
33027         * lib/search.in.h: Likewise.
33028         * lib/signal.in.h: Likewise.
33029         * lib/spawn.in.h: Likewise.
33030         * lib/stdio.in.h: Likewise.
33031         * lib/stdlib.in.h: Likewise.
33032         * lib/string.in.h: Likewise.
33033         * lib/strings.in.h: Likewise.
33034         * lib/sys_file.in.h: Likewise.
33035         * lib/sys_ioctl.in.h: Likewise.
33036         * lib/sys_select.in.h: Likewise.
33037         * lib/sys_socket.in.h: Likewise.
33038         * lib/sys_stat.in.h: Likewise.
33039         * lib/sys_times.in.h: Likewise.
33040         * lib/sys_utsname.in.h: Likewise.
33041         * lib/unistd.in.h: Likewise.
33042         * lib/wchar.in.h: Likewise.
33043
33044 2010-01-20  Bruno Haible  <bruno@clisp.org>
33045
33046         Avoid duplicate -lm.
33047         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33048         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33049         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33050         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33051         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33052         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33053         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33054         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33055         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33056         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33057         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33058         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33059         Reported by Paolo Bonzini.
33060
33061 2010-01-19  Bruno Haible  <bruno@clisp.org>
33062
33063         langinfo, nl_langinfo: Relicense under LGPLv2+.
33064         * modules/langinfo (License): Change to LGPLv2+.
33065         * modules/nl_langinfo (License): Likewise.
33066         Patch by David Lutterkort <lutter@redhat.com>.
33067
33068 2010-01-19  Bruno Haible  <bruno@clisp.org>
33069
33070         Avoid compilation error with cc on OSF/1 5.1.
33071         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33072         statement, not before.
33073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33074
33075 2010-01-18  Bruno Haible  <bruno@clisp.org>
33076
33077         Avoid a link error due to the __printf__ symbol.
33078         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33079         and 2.6.x.
33080         (__format__, __printf__): Remove definitions.
33081         * lib/argp-fmtstream.h: Likewise.
33082         * lib/argp.h: Likewise.
33083         * lib/error.h: Likewise.
33084         * lib/vasnprintf.h: Likewise.
33085         * lib/xprintf.h: Likewise.
33086         * lib/xvasprintf.h: Likewise.
33087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33088
33089 2010-01-18  Bruno Haible  <bruno@clisp.org>
33090
33091         Tests for module 'tanl'.
33092         * modules/tanl-tests: New file.
33093         * tests/test-tanl.c: New file.
33094
33095         Tests for module 'sqrtl'.
33096         * modules/sqrtl-tests: New file.
33097         * tests/test-sqrtl.c: New file.
33098
33099         Tests for module 'sinl'.
33100         * modules/sinl-tests: New file.
33101         * tests/test-sinl.c: New file.
33102
33103         Tests for module 'logl'.
33104         * modules/logl-tests: New file.
33105         * tests/test-logl.c: New file.
33106
33107         Tests for module 'expl'.
33108         * modules/expl-tests: New file.
33109         * tests/test-expl.c: New file.
33110
33111         Tests for module 'cosl'.
33112         * modules/cosl-tests: New file.
33113         * tests/test-cosl.c: New file.
33114
33115         Tests for module 'atanl'.
33116         * modules/atanl-tests: New file.
33117         * tests/test-atanl.c: New file.
33118
33119         Tests for module 'asinl'.
33120         * modules/asinl-tests: New file.
33121         * tests/test-asinl.c: New file.
33122
33123         Tests for module 'acosl'.
33124         * modules/acosl-tests: New file.
33125         * tests/test-acosl.c: New file.
33126
33127         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33128         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33129         tanl): Use the standard gnulib idiom.
33130         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33131         * lib/sinl.c: Likewise.
33132         * lib/tanl.c: Don't include trigl.c.
33133         (kernel_tanl): Make static.
33134         * lib/sincosl.c: Include trigl.h first.
33135         * lib/trigl.c: Likewise.
33136         * m4/acosl.m4: New file.
33137         * m4/asinl.m4: New file.
33138         * m4/atanl.m4: New file.
33139         * m4/cosl.m4: New file.
33140         * m4/expl.m4: New file.
33141         * m4/logl.m4: New file.
33142         * m4/sinl.m4: New file.
33143         * m4/sqrtl.m4: New file.
33144         * m4/tanl.m4: New file.
33145         * m4/mathl.m4: Remove file.
33146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33147         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33148         Don't initialize GNULIB_MATHL.
33149         * modules/acosl: New file.
33150         * modules/asinl: New file.
33151         * modules/atanl: New file.
33152         * modules/cosl: New file.
33153         * modules/expl: New file.
33154         * modules/logl: New file.
33155         * modules/sinl: New file.
33156         * modules/sqrtl: New file.
33157         * modules/tanl: New file.
33158         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33159         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33160         substitute GNULIB_MATHL.
33161         * modules/mathl: Rewritten.
33162         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33163         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33164         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33165         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33166         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33167         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33168         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33169         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33170         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33171
33172 2010-01-18  Bruno Haible  <bruno@clisp.org>
33173
33174         sqrt: Make gl_FUNC_SQRT requirable.
33175         * m4/sqrt.m4: New file.
33176         * modules/sqrt (Files): Add it.
33177         (configure.ac): Invoke gl_FUNC_SQRT.
33178
33179 2010-01-18  Bruno Haible  <bruno@clisp.org>
33180
33181         New modules for common <math.h> functions.
33182         * m4/mathfunc.m4: New file.
33183         * modules/acos: New file.
33184         * modules/asin: New file.
33185         * modules/atan: New file.
33186         * modules/atan2: New file.
33187         * modules/cbrt: New file.
33188         * modules/copysign: New file.
33189         * modules/cos: New file.
33190         * modules/cosh: New file.
33191         * modules/erf: New file.
33192         * modules/erfc: New file.
33193         * modules/exp: New file.
33194         * modules/fabs: New file.
33195         * modules/fmod: New file.
33196         * modules/hypot: New file.
33197         * modules/j0: New file.
33198         * modules/j1: New file.
33199         * modules/jn: New file.
33200         * modules/ldexp: New file.
33201         * modules/lgamma: New file.
33202         * modules/log: New file.
33203         * modules/log10: New file.
33204         * modules/log1p: New file.
33205         * modules/logb: New file.
33206         * modules/modf: New file.
33207         * modules/nextafter: New file.
33208         * modules/pow: New file.
33209         * modules/remainder: New file.
33210         * modules/rint: New file.
33211         * modules/sin: New file.
33212         * modules/sinh: New file.
33213         * modules/sqrt: New file.
33214         * modules/tan: New file.
33215         * modules/tanh: New file.
33216         * modules/y0: New file.
33217         * modules/y1: New file.
33218         * modules/yn: New file.
33219         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33220         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33221         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33222         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33223         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33224         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33225         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33226         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33227         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33228         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33229         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33230         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33231         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33232         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33233         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33234         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33235         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33236         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33237         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33238         * doc/posix-functions/log.texi: Mention the 'log' module.
33239         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33240         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33241         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33242         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33243         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33244         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33245         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33246         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33247         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33248         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33249         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33250         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33251         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33252         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33253         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33254         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33255
33256 2010-01-18  Jim Meyering  <meyering@redhat.com>
33257
33258         ignore-value: relax license to LGPLv2+
33259         * modules/ignore-value (License): Relax to LGPLv2+.
33260
33261         getdate: don't leak when TZ contains two or more '"'s
33262         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33263         double quote in TZ after the first one.
33264
33265         readtokens: do not leak internal token_lengths buffer
33266         * lib/readtokens.c (readtokens): Free the local, lengths,
33267         when the supplied "token_lengths" parameter is NULL.
33268
33269 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33270
33271         Fix a couple of missing LIBTHREAD link failures on AIX.
33272         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33273         $(LIBTHREAD).
33274         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33275
33276         Link test-poll against INET_PTON_LIB.
33277         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33278         for inet_pton on Solaris 10.
33279
33280 2010-01-17  Bruno Haible  <bruno@clisp.org>
33281
33282         unistdio/*-sprintf: Fix typo in module description.
33283         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33284         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33285         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33286         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33287         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33288         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33289         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33290         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33291
33292 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33293
33294         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33295         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33296         variables in shell case patterns, for AIX and HP-UX ksh.
33297
33298         Split large sed scripts, for HP-UX sed.
33299         * modules/stdio: Split sed scripts around 50 sed commands,
33300         to avoid HP-UX limit of 99 commands, in the near future.
33301         * modules/string: Likewise.
33302         * modules/unistd: Likewise.
33303
33304         gnulib-tool: avoid writing in the current directory.
33305         * gnulib-tool (func_emit_lib_Makefile_am)
33306         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33307         not in the current directory, so concurrent gnulib-tool
33308         instances do not interfere.
33309
33310 2010-01-16  Jim Meyering  <meyering@redhat.com>
33311
33312         doc: update users.txt
33313         * users.txt: Add grep.
33314         (diffutils, gzip): Update URLs.
33315
33316 2010-01-12  Bruno Haible  <bruno@clisp.org>
33317
33318         posix_spawn: Avoid test failure on Cygwin.
33319         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33320         characters.
33321         Reported by Simon Josefsson.
33322
33323 2010-01-12  Bruno Haible  <bruno@clisp.org>
33324
33325         * tests/test-cond.c (main): When skipping the test, show the reason.
33326
33327 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33328
33329         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33330
33331 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33332
33333         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33334         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33335
33336 2010-01-12  Eric Blake  <ebb9@byu.net>
33337
33338         build: guarantee AS_VAR_IF
33339         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33340         (gl_AS_VAR_IF): Move...
33341         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33342         Reported by Simon Josefsson.
33343
33344 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33345
33346         * lib/stdio.in.h: Fix typo.
33347
33348 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33349
33350         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33351         libgpg-error.
33352
33353 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33354
33355         * tests/test-xalloc-die.sh: Use $EXEEXT.
33356
33357 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33358             Bruno Haible  <bruno@clisp.org>
33359
33360         getlogin, getlogin_r: Avoid test failure.
33361         * tests/test-getlogin.c: Include <stdio.h>.
33362         (main): Skip the test when the function fails because stdin is not a
33363         tty.
33364         * tests/test-getlogin_r.c: Include <stdio.h>.
33365         (main): Skip the test when the function fails because stdin is not a
33366         tty.
33367
33368 2010-01-11  Eric Blake  <ebb9@byu.net>
33369
33370         tests: avoid more large file warnings
33371         * tests/test-fflush.c: Avoid warning about ftell use.
33372         * tests/test-fseek.c: Avoid warning about fseek use.
33373
33374 2010-01-10  Bruno Haible  <bruno@clisp.org>
33375
33376         nproc: Work better on Linux when /proc and /sys are not mounted.
33377         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33378         as lower bound when, on glibc/Linux systems,
33379         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33380         Suggested by Pádraig Brady <P@draigbrady.com>.
33381         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33382
33383         nproc: Refactor.
33384         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33385         extracted from num_processors.
33386         (num_processors): Call it.
33387
33388 2010-01-11  Jim Meyering  <meyering@redhat.com>
33389
33390         utimecmp: avoid new warning from upcoming gcc-4.5.0
33391         * lib/utimecmp.c (BILLION): Define using #define rather than an
33392         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33393
33394 2010-01-11  Eric Blake  <ebb9@byu.net>
33395
33396         math: add portability warnings for classification macros
33397         * modules/math (Depends-on): Add warn-on-use.
33398         (Makefile.am): Provide new substitutions.
33399         * m4/math_h.m4 (gl_MATH_H): Require inline.
33400         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33401         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33402         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33403         implement warnings.
33404
33405         unistd: warn on use of environ without module
33406         * modules/unistd (Depends-on): Add warn-on-use.
33407         (Makefile.am): Provide new substitutions.
33408         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33409         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33410
33411         stdio: warn on suspicious uses
33412         * modules/stdio (Depends-on): Add warn-on-use.
33413         (Makefile.am): Provide new substitutions.
33414         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33415         fseeko.
33416         * lib/stdio.in.h (gets): Always warn on use.
33417         (fseek, ftell): Adjust when warnings are issued, and honor
33418         _GL_NO_LARGE_FILES as a way to silence the warning.
33419         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33420         any warning about large file offsets.
33421         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33422         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33423         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33424         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33425         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33426         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33427         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33428         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33429
33430         warn-on-use: new module
33431         * modules/warn-on-use: New file.
33432         * build-aux/warn-on-use.h: Likewise.
33433         * m4/warn-on-use.m4: Likewise.
33434         * MODULES.html.sh (Support for building): Mention it.
33435
33436 2010-01-10  Bruno Haible  <bruno@clisp.org>
33437
33438         Tests for module 'unistr/u32-strdup'.
33439         * modules/unistr/u32-strdup-tests: New file.
33440         * tests/unistr/test-u32-strdup.c: New file.
33441
33442         Tests for module 'unistr/u16-strdup'.
33443         * modules/unistr/u16-strdup-tests: New file.
33444         * tests/unistr/test-u16-strdup.c: New file.
33445
33446         Tests for module 'unistr/u8-strdup'.
33447         * modules/unistr/u8-strdup-tests: New file.
33448         * tests/unistr/test-u8-strdup.c: New file.
33449         * tests/unistr/test-strdup.h: New file.
33450
33451         Tests for module 'unistr/u32-strncmp'.
33452         * modules/unistr/u32-strncmp-tests: New file.
33453         * tests/unistr/test-u32-strncmp.c: New file.
33454
33455         Tests for module 'unistr/u16-strncmp'.
33456         * modules/unistr/u16-strncmp-tests: New file.
33457         * tests/unistr/test-u16-strncmp.c: New file.
33458
33459         Tests for module 'unistr/u8-strncmp'.
33460         * modules/unistr/u8-strncmp-tests: New file.
33461         * tests/unistr/test-u8-strncmp.c: New file.
33462         * tests/unistr/test-strncmp.h: New file.
33463
33464         Tests for module 'unistr/u32-strcoll'.
33465         * modules/unistr/u32-strcoll-tests: New file.
33466         * tests/unistr/test-u32-strcoll.c: New file.
33467
33468         Tests for module 'unistr/u16-strcoll'.
33469         * modules/unistr/u16-strcoll-tests: New file.
33470         * tests/unistr/test-u16-strcoll.c: New file.
33471
33472         Tests for module 'unistr/u8-strcoll'.
33473         * modules/unistr/u8-strcoll-tests: New file.
33474         * tests/unistr/test-u8-strcoll.c: New file.
33475
33476         Tests for module 'unistr/u32-strcmp'.
33477         * modules/unistr/u32-strcmp-tests: New file.
33478         * tests/unistr/test-u32-strcmp.c: New file.
33479         * tests/unistr/test-u32-strcmp.h: New file.
33480
33481         Tests for module 'unistr/u16-strcmp'.
33482         * modules/unistr/u16-strcmp-tests: New file.
33483         * tests/unistr/test-u16-strcmp.c: New file.
33484         * tests/unistr/test-u16-strcmp.h: New file.
33485
33486         Tests for module 'unistr/u8-strcmp'.
33487         * modules/unistr/u8-strcmp-tests: New file.
33488         * tests/unistr/test-u8-strcmp.c: New file.
33489         * tests/unistr/test-u8-strcmp.h: New file.
33490         * tests/unistr/test-strcmp.h: New file.
33491
33492         Tests for module 'unistr/u32-strncat'.
33493         * modules/unistr/u32-strncat-tests: New file.
33494         * tests/unistr/test-u32-strncat.c: New file.
33495
33496         Tests for module 'unistr/u16-strncat'.
33497         * modules/unistr/u16-strncat-tests: New file.
33498         * tests/unistr/test-u16-strncat.c: New file.
33499
33500         Tests for module 'unistr/u8-strncat'.
33501         * modules/unistr/u8-strncat-tests: New file.
33502         * tests/unistr/test-u8-strncat.c: New file.
33503         * tests/unistr/test-strncat.h: New file.
33504
33505         Tests for module 'unistr/u32-strcat'.
33506         * modules/unistr/u32-strcat-tests: New file.
33507         * tests/unistr/test-u32-strcat.c: New file.
33508
33509         Tests for module 'unistr/u16-strcat'.
33510         * modules/unistr/u16-strcat-tests: New file.
33511         * tests/unistr/test-u16-strcat.c: New file.
33512
33513         Tests for module 'unistr/u8-strcat'.
33514         * modules/unistr/u8-strcat-tests: New file.
33515         * tests/unistr/test-u8-strcat.c: New file.
33516         * tests/unistr/test-strcat.h: New file.
33517
33518         Tests for module 'unistr/u32-stpncpy'.
33519         * modules/unistr/u32-stpncpy-tests: New file.
33520         * tests/unistr/test-u32-stpncpy.c: New file.
33521
33522         Tests for module 'unistr/u16-stpncpy'.
33523         * modules/unistr/u16-stpncpy-tests: New file.
33524         * tests/unistr/test-u16-stpncpy.c: New file.
33525
33526         Tests for module 'unistr/u8-stpncpy'.
33527         * modules/unistr/u8-stpncpy-tests: New file.
33528         * tests/unistr/test-u8-stpncpy.c: New file.
33529         * tests/unistr/test-stpncpy.h: New file.
33530
33531         Tests for module 'unistr/u32-strncpy'.
33532         * modules/unistr/u32-strncpy-tests: New file.
33533         * tests/unistr/test-u32-strncpy.c: New file.
33534
33535         Tests for module 'unistr/u16-strncpy'.
33536         * modules/unistr/u16-strncpy-tests: New file.
33537         * tests/unistr/test-u16-strncpy.c: New file.
33538
33539         Tests for module 'unistr/u8-strncpy'.
33540         * modules/unistr/u8-strncpy-tests: New file.
33541         * tests/unistr/test-u8-strncpy.c: New file.
33542         * tests/unistr/test-strncpy.h: New file.
33543
33544         Tests for module 'unistr/u32-stpcpy'.
33545         * modules/unistr/u32-stpcpy-tests: New file.
33546         * tests/unistr/test-u32-stpcpy.c: New file.
33547
33548         Tests for module 'unistr/u16-stpcpy'.
33549         * modules/unistr/u16-stpcpy-tests: New file.
33550         * tests/unistr/test-u16-stpcpy.c: New file.
33551
33552         Tests for module 'unistr/u8-stpcpy'.
33553         * modules/unistr/u8-stpcpy-tests: New file.
33554         * tests/unistr/test-u8-stpcpy.c: New file.
33555         * tests/unistr/test-stpcpy.h: New file.
33556
33557         Tests for module 'unistr/u32-strcpy'.
33558         * modules/unistr/u32-strcpy-tests: New file.
33559         * tests/unistr/test-u32-strcpy.c: New file.
33560
33561         Tests for module 'unistr/u16-strcpy'.
33562         * modules/unistr/u16-strcpy-tests: New file.
33563         * tests/unistr/test-u16-strcpy.c: New file.
33564
33565         Tests for module 'unistr/u8-strcpy'.
33566         * modules/unistr/u8-strcpy-tests: New file.
33567         * tests/unistr/test-u8-strcpy.c: New file.
33568         * tests/unistr/test-strcpy.h: New file.
33569
33570         Tests for module 'unistr/u32-strnlen'.
33571         * modules/unistr/u32-strnlen-tests: New file.
33572         * tests/unistr/test-u32-strnlen.c: New file.
33573
33574         Tests for module 'unistr/u16-strnlen'.
33575         * modules/unistr/u16-strnlen-tests: New file.
33576         * tests/unistr/test-u16-strnlen.c: New file.
33577
33578         Tests for module 'unistr/u8-strnlen'.
33579         * modules/unistr/u8-strnlen-tests: New file.
33580         * tests/unistr/test-u8-strnlen.c: New file.
33581         * tests/unistr/test-strnlen.h: New file.
33582
33583         Tests for module 'unistr/u32-strlen'.
33584         * modules/unistr/u32-strlen-tests: New file.
33585         * tests/unistr/test-u32-strlen.c: New file.
33586
33587         Tests for module 'unistr/u16-strlen'.
33588         * modules/unistr/u16-strlen-tests: New file.
33589         * tests/unistr/test-u16-strlen.c: New file.
33590
33591         Tests for module 'unistr/u8-strlen'.
33592         * modules/unistr/u8-strlen-tests: New file.
33593         * tests/unistr/test-u8-strlen.c: New file.
33594
33595         Tests for module 'unistr/u32-prev'.
33596         * modules/unistr/u32-prev-tests: New file.
33597         * tests/unistr/test-u32-prev.c: New file.
33598
33599         Tests for module 'unistr/u16-prev'.
33600         * modules/unistr/u16-prev-tests: New file.
33601         * tests/unistr/test-u16-prev.c: New file.
33602
33603         Tests for module 'unistr/u8-prev'.
33604         * modules/unistr/u8-prev-tests: New file.
33605         * tests/unistr/test-u8-prev.c: New file.
33606
33607         Tests for module 'unistr/u32-next'.
33608         * modules/unistr/u32-next-tests: New file.
33609         * tests/unistr/test-u32-next.c: New file.
33610
33611         Tests for module 'unistr/u16-next'.
33612         * modules/unistr/u16-next-tests: New file.
33613         * tests/unistr/test-u16-next.c: New file.
33614
33615         Tests for module 'unistr/u8-next'.
33616         * modules/unistr/u8-next-tests: New file.
33617         * tests/unistr/test-u8-next.c: New file.
33618
33619         Tests for module 'unistr/u32-strmbtouc'.
33620         * modules/unistr/u32-strmbtouc-tests: New file.
33621         * tests/unistr/test-u32-strmbtouc.c: New file.
33622
33623         Tests for module 'unistr/u16-strmbtouc'.
33624         * modules/unistr/u16-strmbtouc-tests: New file.
33625         * tests/unistr/test-u16-strmbtouc.c: New file.
33626
33627         Tests for module 'unistr/u8-strmbtouc'.
33628         * modules/unistr/u8-strmbtouc-tests: New file.
33629         * tests/unistr/test-u8-strmbtouc.c: New file.
33630
33631         Tests for module 'unistr/u32-strmblen'.
33632         * modules/unistr/u32-strmblen-tests: New file.
33633         * tests/unistr/test-u32-strmblen.c: New file.
33634
33635         Tests for module 'unistr/u16-strmblen'.
33636         * modules/unistr/u16-strmblen-tests: New file.
33637         * tests/unistr/test-u16-strmblen.c: New file.
33638
33639         Tests for module 'unistr/u8-strmblen'.
33640         * modules/unistr/u8-strmblen-tests: New file.
33641         * tests/unistr/test-u8-strmblen.c: New file.
33642
33643         Tests for module 'unistr/u32-cpy-alloc'.
33644         * modules/unistr/u32-cpy-alloc-tests: New file.
33645         * tests/unistr/test-u32-cpy-alloc.c: New file.
33646
33647         Tests for module 'unistr/u16-cpy-alloc'.
33648         * modules/unistr/u16-cpy-alloc-tests: New file.
33649         * tests/unistr/test-u16-cpy-alloc.c: New file.
33650
33651         Tests for module 'unistr/u8-cpy-alloc'.
33652         * modules/unistr/u8-cpy-alloc-tests: New file.
33653         * tests/unistr/test-u8-cpy-alloc.c: New file.
33654         * tests/unistr/test-cpy-alloc.h: New file.
33655
33656         Tests for module 'unistr/u32-mbsnlen'.
33657         * modules/unistr/u32-mbsnlen-tests: New file.
33658         * tests/unistr/test-u32-mbsnlen.c: New file.
33659
33660         Tests for module 'unistr/u16-mbsnlen'.
33661         * modules/unistr/u16-mbsnlen-tests: New file.
33662         * tests/unistr/test-u16-mbsnlen.c: New file.
33663
33664         Tests for module 'unistr/u8-mbsnlen'.
33665         * modules/unistr/u8-mbsnlen-tests: New file.
33666         * tests/unistr/test-u8-mbsnlen.c: New file.
33667
33668         Tests for module 'unistr/u32-chr'.
33669         * modules/unistr/u32-chr-tests: New file.
33670         * tests/unistr/test-u32-chr.c: New file.
33671
33672         Tests for module 'unistr/u16-chr'.
33673         * modules/unistr/u16-chr-tests: New file.
33674         * tests/unistr/test-u16-chr.c: New file.
33675
33676         Tests for module 'unistr/u8-chr'.
33677         * modules/unistr/u8-chr-tests: New file.
33678         * tests/unistr/test-u8-chr.c: New file.
33679         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33680
33681         Tests for module 'unistr/u32-cmp2'.
33682         * modules/unistr/u32-cmp2-tests: New file.
33683         * tests/unistr/test-u32-cmp2.c: New file.
33684
33685         Tests for module 'unistr/u16-cmp2'.
33686         * modules/unistr/u16-cmp2-tests: New file.
33687         * tests/unistr/test-u16-cmp2.c: New file.
33688
33689         Tests for module 'unistr/u8-cmp2'.
33690         * modules/unistr/u8-cmp2-tests: New file.
33691         * tests/unistr/test-u8-cmp2.c: New file.
33692         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33693
33694         Tests for module 'unistr/u32-cmp'.
33695         * modules/unistr/u32-cmp-tests: New file.
33696         * tests/unistr/test-u32-cmp.c: New file.
33697
33698         Tests for module 'unistr/u16-cmp'.
33699         * modules/unistr/u16-cmp-tests: New file.
33700         * tests/unistr/test-u16-cmp.c: New file.
33701
33702         Tests for module 'unistr/u8-cmp'.
33703         * modules/unistr/u8-cmp-tests: New file.
33704         * tests/unistr/test-u8-cmp.c: New file.
33705         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33706
33707         Tests for module 'unistr/u32-set'.
33708         * modules/unistr/u32-set-tests: New file.
33709         * tests/unistr/test-u32-set.c: New file.
33710
33711         Tests for module 'unistr/u16-set'.
33712         * modules/unistr/u16-set-tests: New file.
33713         * tests/unistr/test-u16-set.c: New file.
33714
33715         Tests for module 'unistr/u8-set'.
33716         * modules/unistr/u8-set-tests: New file.
33717         * tests/unistr/test-u8-set.c: New file.
33718         * tests/unistr/test-set.h: New file.
33719
33720         Tests for module 'unistr/u32-move'.
33721         * modules/unistr/u32-move-tests: New file.
33722         * tests/unistr/test-u32-move.c: New file.
33723
33724         Tests for module 'unistr/u16-move'.
33725         * modules/unistr/u16-move-tests: New file.
33726         * tests/unistr/test-u16-move.c: New file.
33727
33728         Tests for module 'unistr/u8-move'.
33729         * modules/unistr/u8-move-tests: New file.
33730         * tests/unistr/test-u8-move.c: New file.
33731         * tests/unistr/test-move.h: New file.
33732
33733         Tests for module 'unistr/u32-cpy'.
33734         * modules/unistr/u32-cpy-tests: New file.
33735         * tests/unistr/test-u32-cpy.c: New file.
33736
33737         Tests for module 'unistr/u16-cpy'.
33738         * modules/unistr/u16-cpy-tests: New file.
33739         * tests/unistr/test-u16-cpy.c: New file.
33740
33741         Tests for module 'unistr/u8-cpy'.
33742         * modules/unistr/u8-cpy-tests: New file.
33743         * tests/unistr/test-u8-cpy.c: New file.
33744         * tests/unistr/test-cpy.h: New file.
33745
33746 2010-01-09  Bruno Haible  <bruno@clisp.org>
33747
33748         Tests for module 'unistr/u32-uctomb'.
33749         * modules/unistr/u32-uctomb-tests: New file.
33750         * tests/unistr/test-u32-uctomb.c: New file.
33751
33752         Tests for module 'unistr/u16-uctomb'.
33753         * modules/unistr/u16-uctomb-tests: New file.
33754         * tests/unistr/test-u16-uctomb.c: New file.
33755
33756         Tests for module 'unistr/u8-uctomb'.
33757         * modules/unistr/u8-uctomb-tests: New file.
33758         * tests/unistr/test-u8-uctomb.c: New file.
33759
33760         Tests for module 'unistr/u32-mbtoucr'.
33761         * modules/unistr/u32-mbtoucr-tests: New file.
33762         * tests/unistr/test-u32-mbtoucr.c: New file.
33763
33764         Tests for module 'unistr/u16-mbtoucr'.
33765         * modules/unistr/u16-mbtoucr-tests: New file.
33766         * tests/unistr/test-u16-mbtoucr.c: New file.
33767
33768         Tests for module 'unistr/u8-mbtoucr'.
33769         * modules/unistr/u8-mbtoucr-tests: New file.
33770         * tests/unistr/test-u8-mbtoucr.c: New file.
33771
33772         Tests for module 'unistr/u32-mbtouc'.
33773         * modules/unistr/u32-mbtouc-tests: New file.
33774         * tests/unistr/test-u32-mbtouc.c: New file.
33775
33776         Tests for module 'unistr/u16-mbtouc'.
33777         * modules/unistr/u16-mbtouc-tests: New file.
33778         * tests/unistr/test-u16-mbtouc.c: New file.
33779
33780         Tests for module 'unistr/u8-mbtouc'.
33781         * modules/unistr/u8-mbtouc-tests: New file.
33782         * tests/unistr/test-u8-mbtouc.c: New file.
33783
33784         Tests for module 'unistr/u32-mbtouc-unsafe'.
33785         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33786         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33787         * tests/unistr/test-u32-mbtouc.h: New file.
33788
33789         Tests for module 'unistr/u16-mbtouc-unsafe'.
33790         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33791         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33792         * tests/unistr/test-u16-mbtouc.h: New file.
33793
33794         Tests for module 'unistr/u8-mbtouc-unsafe'.
33795         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33796         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33797         * tests/unistr/test-u8-mbtouc.h: New file.
33798
33799         Tests for module 'unistr/u32-mblen'.
33800         * modules/unistr/u32-mblen-tests: New file.
33801         * tests/unistr/test-u32-mblen.c: New file.
33802
33803         Tests for module 'unistr/u16-mblen'.
33804         * modules/unistr/u16-mblen-tests: New file.
33805         * tests/unistr/test-u16-mblen.c: New file.
33806
33807         Tests for module 'unistr/u8-mblen'.
33808         * modules/unistr/u8-mblen-tests: New file.
33809         * tests/unistr/test-u8-mblen.c: New file.
33810
33811         Tests for module 'unistr/u32-to-u16'.
33812         * modules/unistr/u32-to-u16-tests: New file.
33813         * tests/unistr/test-u32-to-u16.c: New file.
33814
33815         Tests for module 'unistr/u32-to-u8'.
33816         * modules/unistr/u32-to-u8-tests: New file.
33817         * tests/unistr/test-u32-to-u8.c: New file.
33818
33819         Tests for module 'unistr/u16-to-u32'.
33820         * modules/unistr/u16-to-u32-tests: New file.
33821         * tests/unistr/test-u16-to-u32.c: New file.
33822
33823         Tests for module 'unistr/u16-to-u8'.
33824         * modules/unistr/u16-to-u8-tests: New file.
33825         * tests/unistr/test-u16-to-u8.c: New file.
33826
33827         Tests for module 'unistr/u8-to-u32'.
33828         * modules/unistr/u8-to-u32-tests: New file.
33829         * tests/unistr/test-u8-to-u32.c: New file.
33830
33831         Tests for module 'unistr/u8-to-u16'.
33832         * modules/unistr/u8-to-u16-tests: New file.
33833         * tests/unistr/test-u8-to-u16.c: New file.
33834
33835         Tests for module 'unistr/u32-check'.
33836         * modules/unistr/u32-check-tests: New file.
33837         * tests/unistr/test-u32-check.c: New file.
33838
33839         Tests for module 'unistr/u16-check'.
33840         * modules/unistr/u16-check-tests: New file.
33841         * tests/unistr/test-u16-check.c: New file.
33842
33843         Tests for module 'unistr/u8-check'.
33844         * modules/unistr/u8-check-tests: New file.
33845         * tests/unistr/test-u8-check.c: New file.
33846
33847         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33848         (category_equals): New function.
33849         (main): Add more tests.
33850         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33851
33852         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33853
33854 2010-01-10  Bruno Haible  <bruno@clisp.org>
33855
33856         unistr/u*-strcoll: Try harder to distinguish different strings.
33857         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33858         compare s1 and s2 to see if they are different.
33859
33860 2010-01-10  Bruno Haible  <bruno@clisp.org>
33861
33862         unistr/u*-stpncpy: Fix the return value.
33863         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33864         description of the return value consistent with stpncpy in glibc.
33865         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33866         written non-NUL unit.
33867
33868 2010-01-10  Bruno Haible  <bruno@clisp.org>
33869
33870         unistr/u*-next: Add missing dependencies.
33871         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33872         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33873         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33874
33875 2010-01-10  Bruno Haible  <bruno@clisp.org>
33876
33877         unistr/u8-mbsnlen: Fix return value for incomplete character.
33878         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33879         u8_mblen.
33880         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33881         Remove unistr/u8-mblen.
33882         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33883         u16_mblen.
33884         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33885         Remove unistr/u16-mblen.
33886
33887 2010-01-10  Bruno Haible  <bruno@clisp.org>
33888
33889         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33890         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33891         Reported by Brian Gough <bjg@gnu.org> and
33892         Chris Clayton <chris2553@googlemail.com> via
33893         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33894
33895 2010-01-09  Bruno Haible  <bruno@clisp.org>
33896
33897         unistr/u16-to-u32: Reject invalid input.
33898         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33899         u16_mbtouc.
33900         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33901         Remove unistr/u16-mbtouc.
33902
33903         unistr/u16-to-u8: Reject invalid input.
33904         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33905         u16_mbtouc.
33906         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33907         Remove unistr/u16-mbtouc.
33908
33909         unistr/u8-to-u32: Reject invalid input.
33910         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33911         u8_mbtouc.
33912         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33913         Remove unistr/u8-mbtouc.
33914
33915         unistr/u8-to-u16: Reject invalid input.
33916         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33917         u8_mbtouc.
33918         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33919         Remove unistr/u8-mbtouc.
33920
33921 2010-01-09  Bruno Haible  <bruno@clisp.org>
33922
33923         Tests for module 'getlogin'.
33924         * modules/getlogin-tests: New file.
33925         * tests/test-getlogin.c: New file.
33926
33927         New module 'getlogin'.
33928         * lib/unistd.in.h (getlogin): New declaration.
33929         * lib/getlogin.c: New file.
33930         * m4/getlogin.m4: New file.
33931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33932         HAVE_GETLOGIN.
33933         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33934         HAVE_GETLOGIN.
33935         * modules/getlogin: New file.
33936         * doc/posix-functions/getlogin.texi: Mention the new module.
33937         Reported by John W. Eaton <jwe@gnu.org>.
33938
33939 2010-01-09  Bruno Haible  <bruno@clisp.org>
33940
33941         getlogin_r: Support for native Windows.
33942         * lib/getlogin_r.c: Include <windows.h>
33943         (getlogin_r): Implement for native Windows.
33944         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33945         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33946         via John W. Eaton <jwe@gnu.org>.
33947
33948 2010-01-09  Bruno Haible  <bruno@clisp.org>
33949
33950         getlogin_r: Small fixes.
33951         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33952         succeeds.
33953         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33954         before testing whether getlogin_r is declared. No need to set
33955         HAVE_DECL_GETLOGIN_R to 1.
33956         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33957
33958 2010-01-09  Bruno Haible  <bruno@clisp.org>
33959
33960         * lib/unistd.in.h (getlogin_r): Add comment.
33961
33962 2010-01-09  Bruno Haible  <bruno@clisp.org>
33963
33964         Tests for module 'getlogin_r'.
33965         * modules/getlogin_r-tests: New file.
33966         * tests/test-getlogin_r.c: New file.
33967
33968 2010-01-09  Jim Meyering  <meyering@redhat.com>
33969
33970         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33971         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33972         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33973
33974 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33975
33976         * lib/dup2.c (rpl_dup2): Improve comment.
33977
33978 2010-01-08  Eric Blake  <ebb9@byu.net>
33979
33980         maint.mk: allow packages to add makefile @@ exceptions
33981         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33982         (sc_makefile_check): Rename...
33983         (sc_makefile_at_at_check): ...to this, and use hook.
33984
33985         dup2: work around mingw bug
33986         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33987         Reported by Simon Josefsson.
33988
33989 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33990
33991         glob: Fix C++ compilation.
33992         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33993         C++.
33994
33995 2010-01-07  Bruno Haible  <bruno@clisp.org>
33996
33997         Fix indentation of wctype.in.h, broken since 2007-01-06.
33998         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33999
34000 2010-01-07  Bruno Haible  <bruno@clisp.org>
34001
34002         mbslen: Avoid collision with system function.
34003         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34004         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34005         * m4/mbslen.m4: New file.
34006         * modules/mbslen (Files): Add it.
34007         (configure.ac): Invoke gl_MBSLEN.
34008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34009         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34010         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34011         via Ian Beckwith <ianb@erislabs.net>.
34012
34013 2010-01-07  Bruno Haible  <bruno@clisp.org>
34014
34015         dirent: Document the last fix.
34016         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34017
34018 2010-01-07  Bruno Haible  <bruno@clisp.org>
34019
34020         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34021         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34022         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34023         va_list are defined.
34024         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34025         Reported by Eric Blake.
34026
34027 2010-01-07  Bruno Haible  <bruno@clisp.org>
34028
34029         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34030         * modules/xlist (Depends-on): Add 'list',
34031         * modules/xoset (Depends-on): Add 'oset'.
34032         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34033
34034 2010-01-07  Bruno Haible  <bruno@clisp.org>
34035
34036         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34037         * doc/posix-functions/strncasecmp.texi: Likewise.
34038
34039 2010-01-07  Bruno Haible  <bruno@clisp.org>
34040
34041         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34042
34043 2010-01-07  John W. Eaton  <jwe@octave.org>
34044
34045         wctype: allow C++ use
34046         * lib/wctype.in.h: Add extern "C" block for C++.
34047
34048 2010-01-06  Eric Blake  <ebb9@byu.net>
34049
34050         maint.mk: detect incorrect GFDL usage
34051         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34052
34053 2010-01-06  Jim Meyering  <meyering@redhat.com>
34054         and Eric Blake  <ebb9@byu.net>
34055
34056         maint.mk: ignore multi-line copyright in NEWS
34057         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34058
34059 2010-01-06  Eric Blake  <ebb9@byu.net>
34060
34061         select: add missing dependency
34062         * modules/select-tests (Depends-on): Move sockets dependency...
34063         * modules/select (Depends-on): ...here.
34064         Reported by Ian Beckwith.
34065
34066         doc: regenerate INSTALL
34067         * doc/INSTALL: Reflect recent autoconf update.
34068         * doc/INSTALL.ISO: Likewise.
34069         * doc/INSTALL.UTF-8: Likewise.
34070
34071         pread: fix compilation on glibc
34072         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34073         Reported by Ralf Wildenhues.
34074
34075         dirent: fix test failure
34076         * lib/dirent.in.h (includes): Guarantee ino_t.
34077         Reported by Ralf Wildenhues.
34078
34079 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34080
34081         linkat, renameat: avoid bad free
34082         * lib/at-func2.c (at_func2): Fix typo.
34083         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34084
34085 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34086
34087         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34088         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34089         to avoid failure of symlink test later.
34090
34091 2010-01-06  Eric Blake  <ebb9@byu.net>
34092
34093         stdio, unistd: guarantee ssize_t
34094         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34095         2008 are exposed when needed.
34096         * lib/stdio.in.h (includes): Likewise.
34097         Reported by Ralf Wildenhues.
34098
34099 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34100
34101         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34102         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34103         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34104
34105 2010-01-06  Jim Meyering  <meyering@redhat.com>
34106
34107         readtokens: this module *does* require xalloc.h
34108         It uses only functions that were omitted by the old syntax-check rule.
34109         * lib/readtokens.c: Include "xalloc.h" once again.
34110         * modules/readtokens (Depends-on): Add xalloc.
34111         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34112
34113 2010-01-05  Eric Blake  <ebb9@byu.net>
34114
34115         maint: support 'make announcement' from a VPATH build
34116         * top/maint.mk (announcement): Look for correct NEWS file.
34117
34118 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34119
34120         utimens (fdutimens): ignore a negative FD, per contract
34121         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34122         when we have a valid file descriptor.  Otherwise, using a brand
34123         new glibc (with just-patched futimens that now fails with EBADF)
34124         would cause this function to fail with ENOSYS.
34125         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34126         See also http://bugzilla.redhat.com/552320.
34127
34128 2010-01-05  Eric Blake  <ebb9@byu.net>
34129
34130         strcase: document what it provides
34131         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34132         gnulib module.
34133         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34134         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34135
34136 2010-01-05  Jim Meyering  <meyering@redhat.com>
34137
34138         maint: remove useless inclusions of "xalloc.h"
34139         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34140         * lib/readtokens.c: Likewise.
34141         * lib/same.c: Likewise.
34142         * modules/getloadavg (Depends-on): Remove xalloc.
34143         * modules/readtokens: Likewise.
34144         * modules/same: Likewise.
34145
34146         maint.mk: include 4 more function names in alloca.h-checking regexp
34147         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34148         regexp.  Before, we would give a false-positive (saying alloca.h
34149         is included unnecessarily) when the only uses involved omitted symbols.
34150
34151         xalloc.h: use consistent formatting
34152         * lib/xalloc.h: Move declarations to start in the first column.
34153
34154 2010-01-05  Eric Blake  <ebb9@byu.net>
34155
34156         mkdir: avoid xalloc
34157         * lib/mkdir.c (includes): Drop unused header.
34158         Reported by John W. Eaton.
34159
34160 2010-01-04  Jim Meyering  <meyering@redhat.com>
34161
34162         nl_langinfo: avoid configure-time syntax error
34163         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34164         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34165         the empty string.  Don't let that provoke a shell syntax error.
34166
34167         regcomp, regexec, fnmatch: avoid array bounds read error
34168         * lib/regcomp.c (build_equiv_class): From glibc:
34169         Use only the low 24 bits of a findidx return value as an index
34170         into the weights array.  Patch by Ulrich Drepper:
34171         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34172         * lib/regexec.c (check_node_accept_bytes): Likewise.
34173         * lib/fnmatch_loop.c (FCT): Likewise.
34174
34175         regcomp: skip collseq lookup when there are no rules
34176         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34177         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34178
34179         regcomp: recognize ill-formed { } expressions
34180         * lib/regcomp.c (parse_dup_op): From glibc:
34181         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34182
34183         regcomp: fix typo in comment
34184         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34185         s/satisfy/satisfies/.
34186
34187         regcomp: sync from glibc: remove dead store
34188         * lib/regcomp.c (duplicate_node_closure): Remove useless
34189         search_duplicated_node call and dead store.
34190
34191         regcomp: sync from glibc; always use nl_langinfo
34192         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34193         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34194         * modules/regex (Depends-on): Add nl_langinfo.
34195
34196 2010-01-04  Eric Blake  <ebb9@byu.net>
34197
34198         fdopendir: fix configure test
34199         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34200
34201 2010-01-01  Bruno Haible  <bruno@clisp.org>
34202
34203         wchar: Remove unused configure check.
34204         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34205
34206 2010-01-01  Eric Blake  <ebb9@byu.net>
34207
34208         headers: make check of system header explicit
34209         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34210         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34211         ourselves.
34212         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34213         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34214         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34215         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34216         internals.
34217         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34218         missing.
34219         Suggested by Bruno Haible.
34220
34221 2010-01-01  Jim Meyering  <meyering@redhat.com>
34222
34223         ChangeLog: tweak to eliminate unnecessary copyright line
34224         * ChangeLog: Remove a copyright line that was mistakenly updated
34225         by today's update-copyright run.  Reported by Eric Blake.
34226
34227         test-update-copyright: don't let envvar setting cause test failure
34228         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34229
34230 2010-01-01  Bruno Haible  <bruno@clisp.org>
34231
34232         localename: Avoid gcc warning.
34233         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34234         function if it is not used.
34235
34236 2010-01-01  Jim Meyering  <meyering@redhat.com>
34237
34238         update nearly all FSF copyright year lists to include 2010
34239         Use the same procedure as for 2009, outlined in
34240         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34241
34242         version-etc: set COPYRIGHT_YEAR to 2010
34243         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34244
34245 2009-12-31  Eric Blake  <ebb9@byu.net>
34246
34247         doc: correct availability of cygwin 1.5.x getopt
34248         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34249         variables.
34250         * doc/posix-functions/opterr.texi (opterr): Likewise.
34251         * doc/posix-functions/optind.texi (optind): Likewise.
34252         * doc/posix-functions/optopt.texi (optopt): Likewise.
34253         * doc/posix-functions/tzname.texi (tzname): Likewise.
34254
34255         openat: update maintainer
34256         * modules/openat (Maintainer): Add myself.
34257
34258         utimens: avoid shadowing warning
34259         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34260         buffers into one, to avoid shadowing, as well as avoiding a
34261         redundant stat.
34262         Reported by Jim Meyering.
34263
34264         test-dup2: avoid compiler warning
34265         * tests/test-dup2.c (is_inheritable): Only define if used.
34266
34267 2010-01-01  Bruno Haible  <bruno@clisp.org>
34268
34269         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34270         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34271         defined, use wctomb instead of wcrtomb.
34272
34273 2010-01-01  Bruno Haible  <bruno@clisp.org>
34274
34275         iconv: Reject native Solaris iconv.
34276         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34277         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34278
34279 2009-12-31  Bruno Haible  <bruno@clisp.org>
34280
34281         * tests/test-signal.c (main): Remove test of 'SIG'.
34282
34283 2009-12-31  Bruno Haible  <bruno@clisp.org>
34284
34285         spawn: Fix incomplete fix.
34286         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34287         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34288         warnings for GNULIB_POSIXCHECK again.
34289         Reported by Eric Blake.
34290
34291 2009-12-31  Bruno Haible  <bruno@clisp.org>
34292
34293         Avoid namespace pollution on glibc systems.
34294         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34295         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34296         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34297         glibc systems.
34298
34299 2009-12-31  Bruno Haible  <bruno@clisp.org>
34300
34301         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34302         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34303         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34304         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34305         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34306         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34307         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34308
34309 2009-12-31  Bruno Haible  <bruno@clisp.org>
34310
34311         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34312         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34313         afterwards.
34314
34315 2009-12-31  Bruno Haible  <bruno@clisp.org>
34316
34317         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34318         SYS_UTSNAME_H.
34319
34320 2009-12-31  Bruno Haible  <bruno@clisp.org>
34321
34322         spawn: Fix misapplied patch.
34323         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34324         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34325         warnings for GNULIB_POSIXCHECK.
34326
34327 2009-12-31  Bruno Haible  <bruno@clisp.org>
34328
34329         times: Update after sys_times changed.
34330         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34331         * modules/times (Files): Add it.
34332         (configure.ac): Invoke gl_FUNC_TIMES.
34333
34334 2009-12-31  Bruno Haible  <bruno@clisp.org>
34335
34336         Use AC_C_INLINE where necessary.
34337         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34338         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34340         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34341         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34342         * m4/mbiter.m4 (gl_MBITER): Likewise.
34343         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34344         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34345         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34346         * modules/u64 (configure.ac): Likewise.
34347
34348 2009-12-31  Bruno Haible  <bruno@clisp.org>
34349
34350         Use AC_C_INLINE instead of module 'inline' where possible.
34351         * modules/inline (Description): Clarify purpose.
34352         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34353         * modules/count-one-bits (Depends-on): Remove inline.
34354         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34355         * modules/openat (Depends-on): Remove inline.
34356         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34357         instead of depending on module 'inline'.
34358         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34359         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34360         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34361         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34362         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34363         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34364         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34365         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34366         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34367         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34368         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34369         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34370         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34371         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34372         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34373         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34374         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34375         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34376         Likewise.
34377         * modules/unictype/property-ascii-hex-digit (Depends-on,
34378         configure.ac): Likewise.
34379         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34380         configure.ac): Likewise.
34381         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34382         configure.ac): Likewise.
34383         * modules/unictype/property-bidi-block-separator (Depends-on,
34384         configure.ac): Likewise.
34385         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34386         configure.ac): Likewise.
34387         * modules/unictype/property-bidi-common-separator (Depends-on,
34388         configure.ac): Likewise.
34389         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34390         Likewise.
34391         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34392         configure.ac): Likewise.
34393         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34394         configure.ac): Likewise.
34395         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34396         configure.ac): Likewise.
34397         * modules/unictype/property-bidi-european-digit (Depends-on,
34398         configure.ac): Likewise.
34399         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34400         configure.ac): Likewise.
34401         * modules/unictype/property-bidi-left-to-right (Depends-on,
34402         configure.ac): Likewise.
34403         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34404         configure.ac): Likewise.
34405         * modules/unictype/property-bidi-other-neutral (Depends-on,
34406         configure.ac): Likewise.
34407         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34408         Likewise.
34409         * modules/unictype/property-bidi-segment-separator (Depends-on,
34410         configure.ac): Likewise.
34411         * modules/unictype/property-bidi-whitespace (Depends-on,
34412         configure.ac): Likewise.
34413         * modules/unictype/property-combining (Depends-on, configure.ac):
34414         Likewise.
34415         * modules/unictype/property-composite (Depends-on, configure.ac):
34416         Likewise.
34417         * modules/unictype/property-currency-symbol (Depends-on,
34418         configure.ac): Likewise.
34419         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34420         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34421         Likewise.
34422         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34423         configure.ac): Likewise.
34424         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34425         Likewise.
34426         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34427         Likewise.
34428         * modules/unictype/property-extender (Depends-on, configure.ac):
34429         Likewise.
34430         * modules/unictype/property-format-control (Depends-on, configure.ac):
34431         Likewise.
34432         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34433         Likewise.
34434         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34435         Likewise.
34436         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34437         Likewise.
34438         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34439         Likewise.
34440         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34441         Likewise.
34442         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34443         Likewise.
34444         * modules/unictype/property-id-start (Depends-on, configure.ac):
34445         Likewise.
34446         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34447         Likewise.
34448         * modules/unictype/property-ids-binary-operator (Depends-on,
34449         configure.ac): Likewise.
34450         * modules/unictype/property-ids-trinary-operator (Depends-on,
34451         configure.ac): Likewise.
34452         * modules/unictype/property-ignorable-control (Depends-on,
34453         configure.ac): Likewise.
34454         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34455         Likewise.
34456         * modules/unictype/property-join-control (Depends-on, configure.ac):
34457         Likewise.
34458         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34459         Likewise.
34460         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34461         Likewise.
34462         * modules/unictype/property-logical-order-exception (Depends-on,
34463         configure.ac): Likewise.
34464         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34465         Likewise.
34466         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34467         * modules/unictype/property-non-break (Depends-on, configure.ac):
34468         Likewise.
34469         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34470         Likewise.
34471         * modules/unictype/property-numeric (Depends-on, configure.ac):
34472         Likewise.
34473         * modules/unictype/property-other-alphabetic (Depends-on,
34474         configure.ac): Likewise.
34475         * modules/unictype/property-other-default-ignorable-code-point
34476         (Depends-on, configure.ac): Likewise.
34477         * modules/unictype/property-other-grapheme-extend (Depends-on,
34478         configure.ac): Likewise.
34479         * modules/unictype/property-other-id-continue (Depends-on,
34480         configure.ac): Likewise.
34481         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34482         Likewise.
34483         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34484         Likewise.
34485         * modules/unictype/property-other-math (Depends-on, configure.ac):
34486         Likewise.
34487         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34488         Likewise.
34489         * modules/unictype/property-paired-punctuation (Depends-on,
34490         configure.ac): Likewise.
34491         * modules/unictype/property-paragraph-separator (Depends-on,
34492         configure.ac): Likewise.
34493         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34494         Likewise.
34495         * modules/unictype/property-pattern-white-space (Depends-on,
34496         configure.ac): Likewise.
34497         * modules/unictype/property-private-use (Depends-on, configure.ac):
34498         Likewise.
34499         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34500         Likewise.
34501         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34502         Likewise.
34503         * modules/unictype/property-radical (Depends-on, configure.ac):
34504         Likewise.
34505         * modules/unictype/property-sentence-terminal (Depends-on,
34506         configure.ac): Likewise.
34507         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34508         Likewise.
34509         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34510         * modules/unictype/property-terminal-punctuation (Depends-on,
34511         configure.ac): Likewise.
34512         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34513         Likewise.
34514         * modules/unictype/property-unassigned-code-value (Depends-on,
34515         configure.ac): Likewise.
34516         * modules/unictype/property-unified-ideograph (Depends-on,
34517         configure.ac): Likewise.
34518         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34519         Likewise.
34520         * modules/unictype/property-variation-selector (Depends-on,
34521         configure.ac): Likewise.
34522         * modules/unictype/property-white-space (Depends-on, configure.ac):
34523         Likewise.
34524         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34525         Likewise.
34526         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34527         Likewise.
34528         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34529         Likewise.
34530         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34531         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34532         Likewise.
34533
34534 2009-12-31  Bruno Haible  <bruno@clisp.org>
34535
34536         Remove unnecessary AC_C_INLINE invocation.
34537         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34538         since 2009-08-21.
34539
34540 2009-12-31  Jim Meyering  <meyering@redhat.com>
34541
34542         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34543         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34544         With this change, we can all remove the gpg_key_ID = ... definition
34545         from our respective cfg.mk files.
34546
34547         maint.mk: create announcement template in ~/, not in /tmp
34548         * top/maint.mk (emit_upload_commands): Adjust.
34549         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34550         Remove temporary file, .ci-msg.
34551
34552 2009-12-31  Eric Blake  <ebb9@byu.net>
34553
34554         link-warning: always build headers with link warnings
34555         * modules/arpa_inet (Makefile.am): Always build replacement
34556         header.
34557         * modules/ctype (Makefile.am): Likewise.
34558         * modules/dirent (Makefile.am): Likewise.
34559         * modules/inttypes (Makefile.am): Likewise.
34560         * modules/langinfo (Makefile.am): Likewise.
34561         * modules/locale (Makefile.am): Likewise.
34562         * modules/spawn (Makefile.am): Likewise.
34563         * modules/sys_file (Makefile.am): Likewise.
34564         * modules/sys_ioctl (Makefile.am): Likewise.
34565         * modules/sys_select (Makefile.am): Likewise.
34566         * modules/sys_socket (Makefile.am): Likewise.
34567         * modules/sys_times (Makefile.am): Likewise.
34568         * modules/sys_utsname (Makefile.am): Likewise.
34569         * modules/sys_wait (Makefile.am): Likewise.
34570         * modules/wchar (Makefile.am): Likewise.
34571         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34572         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34573         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34574         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34575         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34576         Likewise.
34577         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34578         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34579         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34580         Likewise.
34581         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34582         Likewise.
34583         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34584         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34585         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34586         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34587         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34588         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34589         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34590         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34591         (gl_WCHAR_H_DEFAULTS): Likewise.
34592
34593 2009-12-31  Eric Blake  <ebb9@byu.net>
34594
34595         signal, spawn: use link warnings
34596         * lib/signal.in.h (sigset_t): Make unconditional.
34597         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34598         (sigpending, sigprocmask, sigaction): Add link warnings.
34599         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34600         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34601         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34602         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34603         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34604         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34605         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34606         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34607         (posix_spawn_file_actions_destroy)
34608         (posix_spawn_file_actions_addopen)
34609         (posix_spawn_file_actions_addclose)
34610         (posix_spawn_file_actions_adddup2): Likewise.
34611         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34612         * tests/test-signal.c (main): Enhance test.
34613
34614         spawn: improve wrapper support
34615         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34616         (gl_SPAWN_H_DEFAULTS): New defaults.
34617         * modules/spawn (Makefile.am): Substitute them.
34618         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34619         Only declare if missing or broken.
34620
34621         sys_times, sys_utsname: use include_next
34622         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34623         header.
34624         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34625         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34626         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34627         * modules/sys_times (Depends-on): Add include_next.
34628         (Makefile.am): Substitute additional values.
34629         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34630         * lib/sys_times.in.h (includes): Include native header, if
34631         available.
34632         * lib/sys_utsname.in.h (includes): Likewise.
34633         * tests/test-sys_times.c (main): Enhance test.
34634
34635         fdutimensat: revert prior patch
34636         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34637         utimens.h.
34638         Reported by Bruno Haible.
34639
34640 2009-12-30  Eric Blake  <ebb9@byu.net>
34641
34642         sys_wait: drop link-warning dependency
34643         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34644         link-warning efforts.
34645         * lib/sys_wait.in.h: Likewise.
34646
34647         fdutimensat: remove bogus dependency
34648         * modules/fdutimensat (Depends-on): Drop inline.
34649
34650         unistd: fix typo
34651         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34652
34653 2009-12-30  Bruno Haible  <bruno@clisp.org>
34654
34655         Fix compilation error with Solaris cc.
34656         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34657         * lib/unicase/u16-is-invariant.c: Likewise.
34658         * lib/unicase/u32-is-invariant.c: Likewise.
34659         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34660
34661 2009-12-30  Bruno Haible  <bruno@clisp.org>
34662
34663         Fix test crash.
34664         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34665         locales.
34666         Reported by Simon Josefsson <simon@josefsson.org>.
34667
34668 2009-12-30  Bruno Haible  <bruno@clisp.org>
34669
34670         Fix compilation error on most platforms.
34671         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34672         Reported by Simon Josefsson <simon@josefsson.org>
34673         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34674
34675 2009-12-30  Eric Blake  <ebb9@byu.net>
34676
34677         futimens, utimensat: work around ntfs-3g bug
34678         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34679         a ctime bug is present, and expand workaround to cover ntfs-3g.
34680         * lib/utimens.c (fdutimens, lutimens): Likewise.
34681         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34682         (validate_timespec): Adjust return value.
34683         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34684         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34685         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34686
34687 2009-12-29  Eric Blake  <ebb9@byu.net>
34688
34689         link-warning: make usage consistent
34690         * modules/ctype (Depends-on): Add link-warning.
34691         (Makefile.am): Update rules accordingly.
34692         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34693         * modules/locale (Depends-on, Makefile.am): Likewise.
34694         * modules/sys_file (Makefile.am): Likewise.
34695         * modules/getopt-posix (Makefile.am): Delete unused link warning
34696         efforts.
34697         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34698         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34699         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34700         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34701
34702         stdio: remove unused variables
34703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34704         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34705         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34706
34707         tests: test more substitute headers
34708         * modules/ctype-tests: New file.
34709         * modules/dirent-tests: Likewise.
34710         * modules/spawn-tests: Likewise.
34711         * modules/sys_file-tests: Likewise.
34712         * modules/sys_ioctl-tests: Likewise.
34713         * modules/sys_wait-tests: Likewise.
34714         * tests/test-ctype.c: Likewise.
34715         * tests/test-dirent.c: Likewise.
34716         * tests/test-spawn.c: Likewise.
34717         * tests/test-sys_file.c: Likewise.
34718         * tests/test-sys_ioctl.c: Likewise.
34719         * tests/test-sys_wait.c: Likewise.
34720         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34721         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34722         whether or not flock is in use.
34723
34724         tests: remove License section from module
34725         * modules/arpa_inet-tests: Remove unneeded section.
34726         * modules/byteswap-tests: Likewise.
34727         * modules/ceilf-tests: Likewise.
34728         * modules/ceill-tests: Likewise.
34729         * modules/crypto/des-tests: Likewise.
34730         * modules/crypto/gc-arcfour-tests: Likewise.
34731         * modules/crypto/gc-arctwo-tests: Likewise.
34732         * modules/crypto/gc-des-tests: Likewise.
34733         * modules/crypto/gc-hmac-md5-tests: Likewise.
34734         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34735         * modules/crypto/gc-md2-tests: Likewise.
34736         * modules/crypto/gc-md4-tests: Likewise.
34737         * modules/crypto/gc-md5-tests: Likewise.
34738         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34739         * modules/crypto/gc-rijndael-tests: Likewise.
34740         * modules/crypto/gc-sha1-tests: Likewise.
34741         * modules/crypto/gc-tests: Likewise.
34742         * modules/crypto/md2-tests: Likewise.
34743         * modules/crypto/md4-tests: Likewise.
34744         * modules/fcntl-h-tests: Likewise.
34745         * modules/floorf-tests: Likewise.
34746         * modules/floorl-tests: Likewise.
34747         * modules/frexp-nolibm-tests: Likewise.
34748         * modules/frexp-tests: Likewise.
34749         * modules/frexpl-nolibm-tests: Likewise.
34750         * modules/frexpl-tests: Likewise.
34751         * modules/getaddrinfo-tests: Likewise.
34752         * modules/inttypes-tests: Likewise.
34753         * modules/isfinite-tests: Likewise.
34754         * modules/isinf-tests: Likewise.
34755         * modules/ldexpl-tests: Likewise.
34756         * modules/locale-tests: Likewise.
34757         * modules/math-tests: Likewise.
34758         * modules/netdb-tests: Likewise.
34759         * modules/netinet_in-tests: Likewise.
34760         * modules/printf-frexp-tests: Likewise.
34761         * modules/printf-frexpl-tests: Likewise.
34762         * modules/priv-set-tests: Likewise.
34763         * modules/random_r-tests: Likewise.
34764         * modules/round-tests: Likewise.
34765         * modules/roundf-tests: Likewise.
34766         * modules/roundl-tests: Likewise.
34767         * modules/search-tests: Likewise.
34768         * modules/select-tests: Likewise.
34769         * modules/signal-tests: Likewise.
34770         * modules/stdbool-tests: Likewise.
34771         * modules/stddef-tests: Likewise.
34772         * modules/stdint-tests: Likewise.
34773         * modules/stdio-tests: Likewise.
34774         * modules/stdlib-tests: Likewise.
34775         * modules/string-tests: Likewise.
34776         * modules/strings-tests: Likewise.
34777         * modules/sys_select-tests: Likewise.
34778         * modules/sys_socket-tests: Likewise.
34779         * modules/sys_stat-tests: Likewise.
34780         * modules/sys_time-tests: Likewise.
34781         * modules/sys_utsname-tests: Likewise.
34782         * modules/sysexits-tests: Likewise.
34783         * modules/time-tests: Likewise.
34784         * modules/trunc-tests: Likewise.
34785         * modules/truncf-tests: Likewise.
34786         * modules/truncl-tests: Likewise.
34787         * modules/tsearch-tests: Likewise.
34788         * modules/unistd-tests: Likewise.
34789         * modules/wchar-tests: Likewise.
34790         * modules/wctype-tests: Likewise.
34791
34792         tests: fix license on several tests
34793         * tests/test-des.c: Update to GPLv3+.
34794         * tests/test-flock.c: Likewise.
34795         * tests/test-fsync.c: Likewise.
34796         * tests/test-futimens.h: Likewise.
34797         * tests/test-gc-arcfour.c: Likewise.
34798         * tests/test-gc-arctwo.c: Likewise.
34799         * tests/test-gc-des.c: Likewise.
34800         * tests/test-gc-hmac-md5.c: Likewise.
34801         * tests/test-gc-hmac-sha1.c: Likewise.
34802         * tests/test-gc-md2.c: Likewise.
34803         * tests/test-gc-md4.c: Likewise.
34804         * tests/test-gc-md5.c: Likewise.
34805         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34806         * tests/test-gc-rijndael.c: Likewise.
34807         * tests/test-gc-sha1.c: Likewise.
34808         * tests/test-gc.c: Likewise.
34809         * tests/test-getcwd.c: Likewise.
34810         * tests/test-link.c: Likewise.
34811         * tests/test-link.h: Likewise.
34812         * tests/test-lutimens.h: Likewise.
34813         * tests/test-md2.c: Likewise.
34814         * tests/test-md4.c: Likewise.
34815         * tests/test-mkdir.h: Likewise.
34816         * tests/test-rename.c: Likewise.
34817         * tests/test-rename.h: Likewise.
34818         * tests/test-safe-alloc.c: Likewise.
34819         * tests/test-utimens-common.h: Likewise.
34820         * tests/test-utimens.h: Likewise.
34821
34822         maint: sync license texts
34823         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34824         * doc/gpl-3.0.texi: Revert copyright year update.
34825         * doc/lgpl-3.0.texi: Likewise.
34826
34827 2009-12-29  Jim Meyering  <meyering@redhat.com>
34828
34829         update nearly all FSF copyright year lists to include 2009
34830         The files named by the following are exempted:
34831             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34832               test -f "$dst" && { echo "$dst"; continue; }
34833               test -d "$dst" || continue
34834               echo "$dst"/$(basename "$src")
34835             done > exempt
34836             git ls-files tests/unictype >> exempt
34837         In the remaining files, convert to all-interval notation if
34838         - there is already at least one year interval like 2000-2003
34839         - the file is maintained by me
34840         - the file is in lib/uni*/, where that style already prevails
34841         Otherwise, use update-copyright's default.
34842
34843 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34844         and Eric Blake  <ebb9@byu.net>
34845
34846         tests: don't require debug system() to pass
34847         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34848         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34849         * tests/test-unlink.h (test_unlink_func): Likewise.
34850         * tests/test-fstatat.c (main): ...into callers.
34851         * tests/test-lstat.c (main): Likewise.
34852         * tests/test-rmdir.c (main): Likewise.
34853         * tests/test-unlink.c (main): Likewise.
34854         * tests/test-unlinkat.c (main): Likewise.
34855         * tests/test-areadlink-with-size.c (main): Don't require a
34856         debug-only system call to pass, aiding cross-testing to mingw.
34857         * tests/test-areadlink.c (main): Likewise.
34858         * tests/test-areadlinkat-with-size.c (main): Likewise.
34859         * tests/test-areadlinkat.c (main): Likewise.
34860         * tests/test-canonicalize-lgpl.c (main): Likewise.
34861         * tests/test-canonicalize.c (main): Likewise.
34862         * tests/test-chown.c (main): Likewise.
34863         * tests/test-fchownat.c (main): Likewise.
34864         * tests/test-lchown.c (main): Likewise.
34865         * tests/test-fdutimensat.c (main): Likewise.
34866         * tests/test-futimens.c (main): Likewise.
34867         * tests/test-link.c (main): Likewise.
34868         * tests/test-linkat.c (main): Likewise.
34869         * tests/test-mkdir.c (main): Likewise.
34870         * tests/test-mkdirat.c (main): Likewise.
34871         * tests/test-mkfifo.c (main): Likewise.
34872         * tests/test-mkfifoat.c (main): Likewise.
34873         * tests/test-mknod.c (main): Likewise.
34874         * tests/test-readlink.c (main): Likewise.
34875         * tests/test-remove.c (main): Likewise.
34876         * tests/test-rename.c (main): Likewise.
34877         * tests/test-renameat.c (main): Likewise.
34878         * tests/test-symlink.c (main): Likewise.
34879         * tests/test-symlinkat.c (main): Likewise.
34880         * tests/test-utimens.c (main): Likewise.
34881         * tests/test-utimensat.c (main): Likewise.
34882
34883 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34884
34885         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34886         on $(UNUSED_PARAMETER_H) to avoid build failure.
34887
34888 2009-12-28  Jim Meyering  <meyering@redhat.com>
34889
34890         update-copyright: you may specify a max. line length other than 72
34891         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34892
34893         maint: use consistent FSF copyright line syntax
34894         * lib/posixtm.c: Add missing comma in FSF copyright line.
34895         * lib/posixtm.h: Likewise.
34896         * lib/getugroups.c: Add missing ", Inc.".
34897
34898         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34899         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34900         FSF copyright line.  Remove trailing blanks.
34901
34902 2009-12-28  Eric Blake  <ebb9@byu.net>
34903
34904         test-dup2: reduce dependencies
34905         * modules/cloexec (Configure.ac): Set witness.
34906         * modules/dup2-tests (Depends-on): Drop cloexec.
34907         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34908         not present.
34909         Suggested by Bruno Haible.
34910
34911 2009-12-26  Bruno Haible  <bruno@clisp.org>
34912
34913         Remove an unneeded dependency.
34914         * modules/fseterr (Depends-on): Remove dup2.
34915
34916 2009-12-26  Eric Blake  <ebb9@byu.net>
34917
34918         tests: use macros.h in more places
34919         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34920         (ASSERT_STREAM): Provide default of stderr.
34921         * tests/test-dirent-safer.c: Include macros.h, using alternate
34922         stream for assertions.
34923         * tests/test-dup-safer.c: Likewise.
34924         * tests/test-freopen-safer.c: Likewise.
34925         * tests/test-getopt.c: Likewise.
34926         * tests/test-openat-safer.c: Likewise.
34927         * tests/test-pipe.c: Likewise.
34928         * tests/test-popen-safer.c: Likewise.
34929         * modules/dirent-safer-tests (Files): Include macros.h.
34930         * modules/unistd-safer-tests (Files): Likewise.
34931         * modules/freopen-safer-tests (Files): Likewise.
34932         * modules/getopt-posix-tests (Files): Likewise.
34933         * modules/openat-safer-tests (Files): Likewise.
34934         * modules/pipe-tests (Files): Likewise.
34935
34936 2009-12-26  Bruno Haible  <bruno@clisp.org>
34937
34938         javacomp: Portability fix.
34939         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34940         that it also works on Solaris.
34941
34942 2009-12-26  Bruno Haible  <bruno@clisp.org>
34943
34944         localename: Fix storage allocation of gl_locale_name_thread's result.
34945         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34946         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34947         all platforms that have 'uselocale'.
34948         (gl_locale_name_thread_unsafe): New function, extracted from
34949         gl_locale_name_thread.
34950         (gl_locale_name_thread): Call struniq on all platforms that have
34951         'uselocale'.
34952         * tests/test-localename.c (test_locale_name_thread): Check that the
34953         resulting strings are permanently allocated.
34954         * modules/localename-tests (Depends-on): Add strdup.
34955
34956 2009-12-26  Bruno Haible  <bruno@clisp.org>
34957
34958         * tests/test-localename.c (categories): Fill in the strings.
34959
34960 2009-12-26  Jim Meyering  <meyering@redhat.com>
34961
34962         isdir: complete the removal of m4/isdir.m4
34963         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34964
34965         isdir: clean up, since at least grep still uses it
34966         * lib/isdir.c: Include "isdir.h".
34967         (S_ISDIR): Remove now-unneeded definition.
34968         * modules/isdir (Files): Add lib/isdir.h.
34969         * lib/isdir.h: New file, with declaration.
34970         * m4/isdir.m4: Remove file -- unneeded.
34971
34972 2009-12-25  Bruno Haible  <bruno@clisp.org>
34973
34974         selinux-h: Make generated .h files standalone.
34975         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34976         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34977         * lib/se-selinux.in.h: Likewise.
34978         * modules/selinux-h (Depends-on): Add unused-parameter.
34979         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34980         selinux/selinux.h and selinux/context.h.
34981         Suggested by Eric Blake.
34982
34983 2009-12-25  Bruno Haible  <bruno@clisp.org>
34984
34985         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34986         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34987         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34988         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34989         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34990
34991 2009-12-24  Bruno Haible  <bruno@clisp.org>
34992
34993         openat: Fix warning.
34994         * lib/openat-proc.c: Include <unistd.h>.
34995
34996 2009-12-24  Bruno Haible  <bruno@clisp.org>
34997
34998         New module 'unused-parameter'.
34999         * build-aux/unused-parameter.h: New file, extracted from earlier
35000         gnulib-common.m4.
35001         * modules/unused-parameter: New file.
35002         * lib/unistr.h: Include unused-parameter.h.
35003         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35004         _GL_UNUSED.
35005         * modules/unistr/base (Depends-on): Add unused-parameter.
35006
35007 2009-12-24  Bruno Haible  <bruno@clisp.org>
35008
35009         Add missing dependencies to 'extensions' module.
35010         * m4/extensions.m4: Add comment.
35011         * modules/accept4 (Depends-on): Add extensions.
35012         * modules/dup3 (Depends-on): Likewise.
35013         * modules/fcntl (Depends-on): Likewise.
35014         * modules/futimens (Depends-on): Likewise.
35015         * modules/mknod (Depends-on): Likewise.
35016         * modules/pipe2 (Depends-on): Likewise.
35017         * modules/stat-time (Depends-on): Likewise.
35018         * modules/strcasestr-simple (Depends-on): Likewise.
35019         * modules/strsignal (Depends-on): Likewise.
35020         * modules/utimensat (Depends-on): Likewise.
35021         * modules/localcharset (Depends-on): Likewise. Needed because of
35022         gl_FCNTL_O_FLAGS.
35023         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35024         AC_TYPE_MBSTATE_T.
35025         * modules/wcsnrtombs (Depends-on): Likewise.
35026         * modules/wcsrtombs (Depends-on): Likewise.
35027
35028 2009-12-24  Bruno Haible  <bruno@clisp.org>
35029
35030         binary-io: Avoid gcc warning due to SET_BINARY.
35031         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35032         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35033
35034 2009-12-24  Bruno Haible  <bruno@clisp.org>
35035
35036         Avoid future namespace pollution on glibc systems.
35037         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35038         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35039         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35040         glibc systems.
35041
35042 2009-12-24  Bruno Haible  <bruno@clisp.org>
35043
35044         Refactor common macros used in tests.
35045         * tests/macros.h: New file.
35046         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35047         and/or <stdlib.h>, if appropriate.
35048         (ASSERT, SIZEOF): Remove macros.
35049         * tests/test-areadlink-with-size.c: Likewise.
35050         * tests/test-areadlinkat.c: Likewise.
35051         * tests/test-areadlinkat-with-size.c: Likewise.
35052         * tests/test-argmatch.c: Likewise.
35053         * tests/test-argv-iter.c: Likewise.
35054         * tests/test-array-mergesort.c: Likewise.
35055         * tests/test-array_list.c: Likewise.
35056         * tests/test-array_oset.c: Likewise.
35057         * tests/test-avltree_list.c: Likewise.
35058         * tests/test-avltree_oset.c: Likewise.
35059         * tests/test-avltreehash_list.c: Likewise.
35060         * tests/test-base64.c: Likewise.
35061         * tests/test-binary-io.c: Likewise.
35062         * tests/test-bitrotate.c: Likewise.
35063         * tests/test-btowc.c: Likewise.
35064         * tests/test-byteswap.c: Likewise.
35065         * tests/test-c-ctype.c: Likewise.
35066         * tests/test-c-stack.c: Likewise.
35067         * tests/test-c-strcasecmp.c: Likewise.
35068         * tests/test-c-strcasestr.c: Likewise.
35069         * tests/test-c-strncasecmp.c: Likewise.
35070         * tests/test-c-strstr.c: Likewise.
35071         * tests/test-canonicalize-lgpl.c: Likewise.
35072         * tests/test-canonicalize.c: Likewise.
35073         * tests/test-carray_list.c: Likewise.
35074         * tests/test-ceilf1.c: Likewise.
35075         * tests/test-ceilf2.c: Likewise.
35076         * tests/test-ceill.c: Likewise.
35077         * tests/test-chown.c: Likewise.
35078         * tests/test-cloexec.c: Likewise.
35079         * tests/test-copy-acl.c: Likewise.
35080         * tests/test-copy-file.c: Likewise.
35081         * tests/test-count-one-bits.c: Likewise.
35082         * tests/test-dprintf-posix.c: Likewise.
35083         * tests/test-dup2.c: Likewise.
35084         * tests/test-dup3.c: Likewise.
35085         * tests/test-duplocale.c: Likewise.
35086         * tests/test-fbufmode.c: Likewise.
35087         * tests/test-fchdir.c: Likewise.
35088         * tests/test-fchownat.c: Likewise.
35089         * tests/test-fcntl-safer.c: Likewise.
35090         * tests/test-fcntl.c: Likewise.
35091         * tests/test-fdopendir.c: Likewise.
35092         * tests/test-fdutimensat.c: Likewise.
35093         * tests/test-fflush2.c: Likewise.
35094         * tests/test-file-has-acl.c: Likewise.
35095         * tests/test-filevercmp.c: Likewise.
35096         * tests/test-flock.c: Likewise.
35097         * tests/test-floorf1.c: Likewise.
35098         * tests/test-floorf2.c: Likewise.
35099         * tests/test-floorl.c: Likewise.
35100         * tests/test-fnmatch.c: Likewise.
35101         * tests/test-fopen.h: Likewise.
35102         * tests/test-fpending.c: Likewise.
35103         * tests/test-fprintf-posix.c: Likewise.
35104         * tests/test-fpurge.c: Likewise.
35105         * tests/test-freadable.c: Likewise.
35106         * tests/test-freadahead.c: Likewise.
35107         * tests/test-freading.c: Likewise.
35108         * tests/test-freadptr.c: Likewise.
35109         * tests/test-freadptr2.c: Likewise.
35110         * tests/test-freadseek.c: Likewise.
35111         * tests/test-freopen.c: Likewise.
35112         * tests/test-frexp.c: Likewise.
35113         * tests/test-frexpl.c: Likewise.
35114         * tests/test-fseek.c: Likewise.
35115         * tests/test-fseeko.c: Likewise.
35116         * tests/test-fstatat.c: Likewise.
35117         * tests/test-fstrcmp.c: Likewise.
35118         * tests/test-fsync.c: Likewise.
35119         * tests/test-ftell.c: Likewise.
35120         * tests/test-ftello.c: Likewise.
35121         * tests/test-func.c: Likewise.
35122         * tests/test-futimens.c: Likewise.
35123         * tests/test-fwritable.c: Likewise.
35124         * tests/test-fwriting.c: Likewise.
35125         * tests/test-getcwd.c: Likewise.
35126         * tests/test-getdate.c: Likewise.
35127         * tests/test-getdelim.c: Likewise.
35128         * tests/test-getdtablesize.c: Likewise.
35129         * tests/test-getgroups.c: Likewise.
35130         * tests/test-getline.c: Likewise.
35131         * tests/test-getndelim2.c: Likewise.
35132         * tests/test-glob.c: Likewise.
35133         * tests/test-hash.c: Likewise.
35134         * tests/test-i-ring.c: Likewise.
35135         * tests/test-iconv-utf.c: Likewise.
35136         * tests/test-iconv.c: Likewise.
35137         * tests/test-idpriv-drop.c: Likewise.
35138         * tests/test-idpriv-droptemp.c: Likewise.
35139         * tests/test-inet_ntop.c: Likewise.
35140         * tests/test-inet_pton.c: Likewise.
35141         * tests/test-isblank.c: Likewise.
35142         * tests/test-isfinite.c: Likewise.
35143         * tests/test-isinf.c: Likewise.
35144         * tests/test-isnan.c: Likewise.
35145         * tests/test-isnand.h: Likewise.
35146         * tests/test-isnanf.h: Likewise.
35147         * tests/test-isnanl.h: Likewise.
35148         * tests/test-lchown.c: Likewise.
35149         * tests/test-ldexpl.c: Likewise.
35150         * tests/test-link.c: Likewise.
35151         * tests/test-linkat.c: Likewise.
35152         * tests/test-linked_list.c: Likewise.
35153         * tests/test-linkedhash_list.c: Likewise.
35154         * tests/test-localename.c: Likewise.
35155         * tests/test-lseek.c: Likewise.
35156         * tests/test-lstat.c: Likewise.
35157         * tests/test-mbmemcasecmp.c: Likewise.
35158         * tests/test-mbmemcasecoll.c: Likewise.
35159         * tests/test-mbrtowc.c: Likewise.
35160         * tests/test-mbscasecmp.c: Likewise.
35161         * tests/test-mbscasestr1.c: Likewise.
35162         * tests/test-mbscasestr2.c: Likewise.
35163         * tests/test-mbscasestr3.c: Likewise.
35164         * tests/test-mbscasestr4.c: Likewise.
35165         * tests/test-mbschr.c: Likewise.
35166         * tests/test-mbscspn.c: Likewise.
35167         * tests/test-mbsinit.c: Likewise.
35168         * tests/test-mbsncasecmp.c: Likewise.
35169         * tests/test-mbsnrtowcs.c: Likewise.
35170         * tests/test-mbspbrk.c: Likewise.
35171         * tests/test-mbspcasecmp.c: Likewise.
35172         * tests/test-mbsrchr.c: Likewise.
35173         * tests/test-mbsrtowcs.c: Likewise.
35174         * tests/test-mbsspn.c: Likewise.
35175         * tests/test-mbsstr1.c: Likewise.
35176         * tests/test-mbsstr2.c: Likewise.
35177         * tests/test-mbsstr3.c: Likewise.
35178         * tests/test-memchr.c: Likewise.
35179         * tests/test-memchr2.c: Likewise.
35180         * tests/test-memcmp.c: Likewise.
35181         * tests/test-memmem.c: Likewise.
35182         * tests/test-memrchr.c: Likewise.
35183         * tests/test-mkdir.c: Likewise.
35184         * tests/test-mkdirat.c: Likewise.
35185         * tests/test-mkfifo.c: Likewise.
35186         * tests/test-mkfifoat.c: Likewise.
35187         * tests/test-mknod.c: Likewise.
35188         * tests/test-nanosleep.c: Likewise.
35189         * tests/test-nl_langinfo.c: Likewise.
35190         * tests/test-obstack-printf.c: Likewise.
35191         * tests/test-open.c: Likewise.
35192         * tests/test-openat.c: Likewise.
35193         * tests/test-pipe-filter-gi1.c: Likewise.
35194         * tests/test-pipe-filter-gi2-main.c: Likewise.
35195         * tests/test-pipe-filter-ii1.c: Likewise.
35196         * tests/test-pipe-filter-ii2-main.c: Likewise.
35197         * tests/test-pipe2.c: Likewise.
35198         * tests/test-popen.h: Likewise.
35199         * tests/test-posixtm.c: Likewise.
35200         * tests/test-pread.c: Likewise.
35201         * tests/test-printf-frexp.c: Likewise.
35202         * tests/test-printf-frexpl.c: Likewise.
35203         * tests/test-printf-posix.c: Likewise.
35204         * tests/test-priv-set.c: Likewise.
35205         * tests/test-quotearg.c: Likewise.
35206         * tests/test-random_r.c: Likewise.
35207         * tests/test-rawmemchr.c: Likewise.
35208         * tests/test-rbtree_list.c: Likewise.
35209         * tests/test-rbtree_oset.c: Likewise.
35210         * tests/test-rbtreehash_list.c: Likewise.
35211         * tests/test-readlink.c: Likewise.
35212         * tests/test-remove.c: Likewise.
35213         * tests/test-rename.c: Likewise.
35214         * tests/test-renameat.c: Likewise.
35215         * tests/test-rmdir.c: Likewise.
35216         * tests/test-round1.c: Likewise.
35217         * tests/test-roundf1.c: Likewise.
35218         * tests/test-roundl.c: Likewise.
35219         * tests/test-safe-alloc.c: Likewise.
35220         * tests/test-sameacls.c: Likewise.
35221         * tests/test-set-mode-acl.c: Likewise.
35222         * tests/test-setenv.c: Likewise.
35223         * tests/test-sigaction.c: Likewise.
35224         * tests/test-signbit.c: Likewise.
35225         * tests/test-sleep.c: Likewise.
35226         * tests/test-snprintf-posix.c: Likewise.
35227         * tests/test-snprintf.c: Likewise.
35228         * tests/test-sprintf-posix.c: Likewise.
35229         * tests/test-stat-time.c: Likewise.
35230         * tests/test-stat.c: Likewise.
35231         * tests/test-strcasestr.c: Likewise.
35232         * tests/test-strchrnul.c: Likewise.
35233         * tests/test-strerror.c: Likewise.
35234         * tests/test-striconv.c: Likewise.
35235         * tests/test-striconveh.c: Likewise.
35236         * tests/test-striconveha.c: Likewise.
35237         * tests/test-strsignal.c: Likewise.
35238         * tests/test-strstr.c: Likewise.
35239         * tests/test-strtod.c: Likewise.
35240         * tests/test-strverscmp.c: Likewise.
35241         * tests/test-symlink.c: Likewise.
35242         * tests/test-symlinkat.c: Likewise.
35243         * tests/test-trunc1.c: Likewise.
35244         * tests/test-trunc2.c: Likewise.
35245         * tests/test-truncf1.c: Likewise.
35246         * tests/test-truncf2.c: Likewise.
35247         * tests/test-truncl.c: Likewise.
35248         * tests/test-uname.c: Likewise.
35249         * tests/test-unlink.c: Likewise.
35250         * tests/test-unlinkat.c: Likewise.
35251         * tests/test-unsetenv.c: Likewise.
35252         * tests/test-usleep.c: Likewise.
35253         * tests/test-utimens.c: Likewise.
35254         * tests/test-utimensat.c: Likewise.
35255         * tests/test-vasnprintf-posix.c: Likewise.
35256         * tests/test-vasnprintf-posix2.c: Likewise.
35257         * tests/test-vasnprintf.c: Likewise.
35258         * tests/test-vasprintf-posix.c: Likewise.
35259         * tests/test-vasprintf.c: Likewise.
35260         * tests/test-vdprintf-posix.c: Likewise.
35261         * tests/test-vfprintf-posix.c: Likewise.
35262         * tests/test-vprintf-posix.c: Likewise.
35263         * tests/test-vsnprintf-posix.c: Likewise.
35264         * tests/test-vsnprintf.c: Likewise.
35265         * tests/test-vsprintf-posix.c: Likewise.
35266         * tests/test-wcrtomb.c: Likewise.
35267         * tests/test-wcsnrtombs.c: Likewise.
35268         * tests/test-wcsrtombs.c: Likewise.
35269         * tests/test-wctype.c: Likewise.
35270         * tests/test-wcwidth.c: Likewise.
35271         * tests/test-xfprintf-posix.c: Likewise.
35272         * tests/test-xmemdup0.c: Likewise.
35273         * tests/test-xprintf-posix.c: Likewise.
35274         * tests/test-xvasprintf.c: Likewise.
35275         * tests/unicase/test-locale-language.c: Likewise.
35276         * tests/unicase/test-mapping-part1.h: Likewise.
35277         * tests/unicase/test-predicate-part1.h: Likewise.
35278         * tests/unicase/test-u8-casecmp.c: Likewise.
35279         * tests/unicase/test-u8-casecoll.c: Likewise.
35280         * tests/unicase/test-u8-casefold.c: Likewise.
35281         * tests/unicase/test-u8-is-cased.c: Likewise.
35282         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35283         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35284         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35285         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35286         * tests/unicase/test-u8-tolower.c: Likewise.
35287         * tests/unicase/test-u8-totitle.c: Likewise.
35288         * tests/unicase/test-u8-toupper.c: Likewise.
35289         * tests/unicase/test-u16-casecmp.c: Likewise.
35290         * tests/unicase/test-u16-casecoll.c: Likewise.
35291         * tests/unicase/test-u16-casefold.c: Likewise.
35292         * tests/unicase/test-u16-is-cased.c: Likewise.
35293         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35294         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35295         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35296         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35297         * tests/unicase/test-u16-tolower.c: Likewise.
35298         * tests/unicase/test-u16-totitle.c: Likewise.
35299         * tests/unicase/test-u16-toupper.c: Likewise.
35300         * tests/unicase/test-u32-casecmp.c: Likewise.
35301         * tests/unicase/test-u32-casecoll.c: Likewise.
35302         * tests/unicase/test-u32-casefold.c: Likewise.
35303         * tests/unicase/test-u32-is-cased.c: Likewise.
35304         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35305         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35306         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35307         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35308         * tests/unicase/test-u32-tolower.c: Likewise.
35309         * tests/unicase/test-u32-totitle.c: Likewise.
35310         * tests/unicase/test-u32-toupper.c: Likewise.
35311         * tests/unicase/test-ulc-casecmp.c: Likewise.
35312         * tests/unicase/test-ulc-casecoll.c: Likewise.
35313         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35314         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35315         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35316         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35317         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35318         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35319         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35320         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35321         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35322         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35323         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35324         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35325         * tests/unictype/test-bidi_byname.c: Likewise.
35326         * tests/unictype/test-bidi_name.c: Likewise.
35327         * tests/unictype/test-bidi_of.c: Likewise.
35328         * tests/unictype/test-bidi_test.c: Likewise.
35329         * tests/unictype/test-block_list.c: Likewise.
35330         * tests/unictype/test-block_of.c: Likewise.
35331         * tests/unictype/test-block_test.c: Likewise.
35332         * tests/unictype/test-categ_and.c: Likewise.
35333         * tests/unictype/test-categ_and_not.c: Likewise.
35334         * tests/unictype/test-categ_byname.c: Likewise.
35335         * tests/unictype/test-categ_name.c: Likewise.
35336         * tests/unictype/test-categ_none.c: Likewise.
35337         * tests/unictype/test-categ_of.c: Likewise.
35338         * tests/unictype/test-categ_or.c: Likewise.
35339         * tests/unictype/test-categ_test_withtable.c: Likewise.
35340         * tests/unictype/test-combining.c: Likewise.
35341         * tests/unictype/test-decdigit.c: Likewise.
35342         * tests/unictype/test-digit.c: Likewise.
35343         * tests/unictype/test-mirror.c: Likewise.
35344         * tests/unictype/test-numeric.c: Likewise.
35345         * tests/unictype/test-pr_byname.c: Likewise.
35346         * tests/unictype/test-pr_test.c: Likewise.
35347         * tests/unictype/test-predicate-part1.h: Likewise.
35348         * tests/unictype/test-scripts.c: Likewise.
35349         * tests/unictype/test-sy_c_ident.c: Likewise.
35350         * tests/unictype/test-sy_java_ident.c: Likewise.
35351         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35352         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35353         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35354         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35355         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35356         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35357         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35358         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35359         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35360         * tests/uninorm/test-compat-decomposition.c: Likewise.
35361         * tests/uninorm/test-composition.c: Likewise.
35362         * tests/uninorm/test-decomposing-form.c: Likewise.
35363         * tests/uninorm/test-decomposition.c: Likewise.
35364         * tests/uninorm/test-u8-nfc.c: Likewise.
35365         * tests/uninorm/test-u8-nfd.c: Likewise.
35366         * tests/uninorm/test-u8-nfkc.c: Likewise.
35367         * tests/uninorm/test-u8-nfkd.c: Likewise.
35368         * tests/uninorm/test-u8-normcmp.c: Likewise.
35369         * tests/uninorm/test-u8-normcoll.c: Likewise.
35370         * tests/uninorm/test-u16-nfc.c: Likewise.
35371         * tests/uninorm/test-u16-nfd.c: Likewise.
35372         * tests/uninorm/test-u16-nfkc.c: Likewise.
35373         * tests/uninorm/test-u16-nfkd.c: Likewise.
35374         * tests/uninorm/test-u16-normcmp.c: Likewise.
35375         * tests/uninorm/test-u16-normcoll.c: Likewise.
35376         * tests/uninorm/test-u32-nfc.c: Likewise.
35377         * tests/uninorm/test-u32-nfd.c: Likewise.
35378         * tests/uninorm/test-u32-nfkc.c: Likewise.
35379         * tests/uninorm/test-u32-nfkd.c: Likewise.
35380         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35381         * tests/uninorm/test-u32-normcmp.c: Likewise.
35382         * tests/uninorm/test-u32-normcoll.c: Likewise.
35383         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35384         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35385         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35386         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35387         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35388         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35389         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35390         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35391         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35392         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35393         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35394         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35395         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35396         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35397         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35398         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35399         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35400         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35401         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35402         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35403         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35404         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35405         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35406         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35407         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35408         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35409         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35410         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35411         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35412         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35413         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35414         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35415         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35416         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35417         * tests/uniwidth/test-u8-width.c: Likewise.
35418         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35419         * tests/uniwidth/test-u16-width.c: Likewise.
35420         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35421         * tests/uniwidth/test-u32-width.c: Likewise.
35422         * tests/uniwidth/test-uc_width.c: Likewise.
35423         * tests/uniwidth/test-uc_width2.c: Likewise.
35424         * modules/acl-tests (Files): Add tests/macros.h.
35425         * modules/areadlink-tests (Files): Likewise.
35426         * modules/areadlink-with-size-tests (Files): Likewise.
35427         * modules/areadlinkat-tests (Files): Likewise.
35428         * modules/areadlinkat-with-size-tests (Files): Likewise.
35429         * modules/argmatch-tests (Files): Likewise.
35430         * modules/argv-iter-tests (Files): Likewise.
35431         * modules/array-list-tests (Files): Likewise.
35432         * modules/array-mergesort-tests (Files): Likewise.
35433         * modules/array-oset-tests (Files): Likewise.
35434         * modules/avltree-list-tests (Files): Likewise.
35435         * modules/avltree-oset-tests (Files): Likewise.
35436         * modules/avltreehash-list-tests (Files): Likewise.
35437         * modules/base64-tests (Files): Likewise.
35438         * modules/binary-io-tests (Files): Likewise.
35439         * modules/bitrotate-tests (Files): Likewise.
35440         * modules/btowc-tests (Files): Likewise.
35441         * modules/byteswap-tests (Files): Likewise.
35442         * modules/c-ctype-tests (Files): Likewise.
35443         * modules/c-stack-tests (Files): Likewise.
35444         * modules/c-strcase-tests (Files): Likewise.
35445         * modules/c-strcasestr-tests (Files): Likewise.
35446         * modules/c-strstr-tests (Files): Likewise.
35447         * modules/canonicalize-lgpl-tests (Files): Likewise.
35448         * modules/canonicalize-tests (Files): Likewise.
35449         * modules/carray-list-tests (Files): Likewise.
35450         * modules/ceilf-tests (Files): Likewise.
35451         * modules/ceill-tests (Files): Likewise.
35452         * modules/chown-tests (Files): Likewise.
35453         * modules/cloexec-tests (Files): Likewise.
35454         * modules/copy-file-tests (Files): Likewise.
35455         * modules/count-one-bits-tests (Files): Likewise.
35456         * modules/dprintf-posix-tests (Files): Likewise.
35457         * modules/dup2-tests (Files): Likewise.
35458         * modules/dup3-tests (Files): Likewise.
35459         * modules/duplocale-tests (Files): Likewise.
35460         * modules/fbufmode-tests (Files): Likewise.
35461         * modules/fchdir-tests (Files): Likewise.
35462         * modules/fcntl-safer-tests (Files): Likewise.
35463         * modules/fcntl-tests (Files): Likewise.
35464         * modules/fdopendir-tests (Files): Likewise.
35465         * modules/fdutimensat-tests (Files): Likewise.
35466         * modules/fflush-tests (Files): Likewise.
35467         * modules/filevercmp-tests (Files): Likewise.
35468         * modules/flock-tests (Files): Likewise.
35469         * modules/floorf-tests (Files): Likewise.
35470         * modules/floorl-tests (Files): Likewise.
35471         * modules/fnmatch-tests (Files): Likewise.
35472         * modules/fopen-safer-tests (Files): Likewise.
35473         * modules/fopen-tests (Files): Likewise.
35474         * modules/fpending-tests (Files): Likewise.
35475         * modules/fprintf-posix-tests (Files): Likewise.
35476         * modules/fpurge-tests (Files): Likewise.
35477         * modules/freadable-tests (Files): Likewise.
35478         * modules/freadahead-tests (Files): Likewise.
35479         * modules/freading-tests (Files): Likewise.
35480         * modules/freadptr-tests (Files): Likewise.
35481         * modules/freadseek-tests (Files): Likewise.
35482         * modules/freopen-tests (Files): Likewise.
35483         * modules/frexp-nolibm-tests (Files): Likewise.
35484         * modules/frexp-tests (Files): Likewise.
35485         * modules/frexpl-nolibm-tests (Files): Likewise.
35486         * modules/frexpl-tests (Files): Likewise.
35487         * modules/fseek-tests (Files): Likewise.
35488         * modules/fseeko-tests (Files): Likewise.
35489         * modules/fstrcmp-tests (Files): Likewise.
35490         * modules/fsync-tests (Files): Likewise.
35491         * modules/ftell-tests (Files): Likewise.
35492         * modules/ftello-tests (Files): Likewise.
35493         * modules/func-tests (Files): Likewise.
35494         * modules/futimens-tests (Files): Likewise.
35495         * modules/fwritable-tests (Files): Likewise.
35496         * modules/fwriting-tests (Files): Likewise.
35497         * modules/getcwd-tests (Files): Likewise.
35498         * modules/getdate-tests (Files): Likewise.
35499         * modules/getdelim-tests (Files): Likewise.
35500         * modules/getdtablesize-tests (Files): Likewise.
35501         * modules/getgroups-tests (Files): Likewise.
35502         * modules/getline-tests (Files): Likewise.
35503         * modules/getndelim2-tests (Files): Likewise.
35504         * modules/glob-tests (Files): Likewise.
35505         * modules/hash-tests (Files): Likewise.
35506         * modules/i-ring-tests (Files): Likewise.
35507         * modules/iconv-tests (Files): Likewise.
35508         * modules/iconv_open-utf-tests (Files): Likewise.
35509         * modules/idpriv-drop-tests (Files): Likewise.
35510         * modules/idpriv-droptemp-tests (Files): Likewise.
35511         * modules/inet_ntop-tests (Files): Likewise.
35512         * modules/inet_pton-tests (Files): Likewise.
35513         * modules/isblank-tests (Files): Likewise.
35514         * modules/isfinite-tests (Files): Likewise.
35515         * modules/isinf-tests (Files): Likewise.
35516         * modules/isnan-tests (Files): Likewise.
35517         * modules/isnand-nolibm-tests (Files): Likewise.
35518         * modules/isnand-tests (Files): Likewise.
35519         * modules/isnanf-nolibm-tests (Files): Likewise.
35520         * modules/isnanf-tests (Files): Likewise.
35521         * modules/isnanl-nolibm-tests (Files): Likewise.
35522         * modules/isnanl-tests (Files): Likewise.
35523         * modules/lchown-tests (Files): Likewise.
35524         * modules/ldexpl-tests (Files): Likewise.
35525         * modules/link-tests (Files): Likewise.
35526         * modules/linkat-tests (Files): Likewise.
35527         * modules/linked-list-tests (Files): Likewise.
35528         * modules/linkedhash-list-tests (Files): Likewise.
35529         * modules/localename-tests (Files): Likewise.
35530         * modules/lseek-tests (Files): Likewise.
35531         * modules/lstat-tests (Files): Likewise.
35532         * modules/mbmemcasecmp-tests (Files): Likewise.
35533         * modules/mbmemcasecoll-tests (Files): Likewise.
35534         * modules/mbrtowc-tests (Files): Likewise.
35535         * modules/mbscasecmp-tests (Files): Likewise.
35536         * modules/mbscasestr-tests (Files): Likewise.
35537         * modules/mbschr-tests (Files): Likewise.
35538         * modules/mbscspn-tests (Files): Likewise.
35539         * modules/mbsinit-tests (Files): Likewise.
35540         * modules/mbsncasecmp-tests (Files): Likewise.
35541         * modules/mbsnrtowcs-tests (Files): Likewise.
35542         * modules/mbspbrk-tests (Files): Likewise.
35543         * modules/mbspcasecmp-tests (Files): Likewise.
35544         * modules/mbsrchr-tests (Files): Likewise.
35545         * modules/mbsrtowcs-tests (Files): Likewise.
35546         * modules/mbsspn-tests (Files): Likewise.
35547         * modules/mbsstr-tests (Files): Likewise.
35548         * modules/memchr-tests (Files): Likewise.
35549         * modules/memchr2-tests (Files): Likewise.
35550         * modules/memcmp-tests (Files): Likewise.
35551         * modules/memmem-tests (Files): Likewise.
35552         * modules/memrchr-tests (Files): Likewise.
35553         * modules/mkdir-tests (Files): Likewise.
35554         * modules/mkfifo-tests (Files): Likewise.
35555         * modules/mkfifoat-tests (Files): Likewise.
35556         * modules/mknod-tests (Files): Likewise.
35557         * modules/nanosleep-tests (Files): Likewise.
35558         * modules/nl_langinfo-tests (Files): Likewise.
35559         * modules/obstack-printf-tests (Files): Likewise.
35560         * modules/open-tests (Files): Likewise.
35561         * modules/openat-tests (Files): Likewise.
35562         * modules/pipe-filter-gi-tests (Files): Likewise.
35563         * modules/pipe-filter-ii-tests (Files): Likewise.
35564         * modules/pipe2-tests (Files): Likewise.
35565         * modules/popen-safer-tests (Files): Likewise.
35566         * modules/popen-tests (Files): Likewise.
35567         * modules/posixtm-tests (Files): Likewise.
35568         * modules/pread-tests (Files): Likewise.
35569         * modules/printf-frexp-tests (Files): Likewise.
35570         * modules/printf-frexpl-tests (Files): Likewise.
35571         * modules/printf-posix-tests (Files): Likewise.
35572         * modules/priv-set-tests (Files): Likewise.
35573         * modules/quotearg-tests (Files): Likewise.
35574         * modules/random_r-tests (Files): Likewise.
35575         * modules/rawmemchr-tests (Files): Likewise.
35576         * modules/rbtree-list-tests (Files): Likewise.
35577         * modules/rbtree-oset-tests (Files): Likewise.
35578         * modules/rbtreehash-list-tests (Files): Likewise.
35579         * modules/readlink-tests (Files): Likewise.
35580         * modules/remove-tests (Files): Likewise.
35581         * modules/rename-tests (Files): Likewise.
35582         * modules/renameat-tests (Files): Likewise.
35583         * modules/rmdir-tests (Files): Likewise.
35584         * modules/round-tests (Files): Likewise.
35585         * modules/roundf-tests (Files): Likewise.
35586         * modules/roundl-tests (Files): Likewise.
35587         * modules/safe-alloc-tests (Files): Likewise.
35588         * modules/setenv-tests (Files): Likewise.
35589         * modules/sigaction-tests (Files): Likewise.
35590         * modules/signbit-tests (Files): Likewise.
35591         * modules/sleep-tests (Files): Likewise.
35592         * modules/snprintf-posix-tests (Files): Likewise.
35593         * modules/snprintf-tests (Files): Likewise.
35594         * modules/sprintf-posix-tests (Files): Likewise.
35595         * modules/stat-tests (Files): Likewise.
35596         * modules/stat-time-tests (Files): Likewise.
35597         * modules/strcasestr-tests (Files): Likewise.
35598         * modules/strchrnul-tests (Files): Likewise.
35599         * modules/strerror-tests (Files): Likewise.
35600         * modules/striconv-tests (Files): Likewise.
35601         * modules/striconveh-tests (Files): Likewise.
35602         * modules/striconveha-tests (Files): Likewise.
35603         * modules/strsignal-tests (Files): Likewise.
35604         * modules/strstr-tests (Files): Likewise.
35605         * modules/strtod-tests (Files): Likewise.
35606         * modules/strverscmp-tests (Files): Likewise.
35607         * modules/symlink-tests (Files): Likewise.
35608         * modules/symlinkat-tests (Files): Likewise.
35609         * modules/trunc-tests (Files): Likewise.
35610         * modules/truncf-tests (Files): Likewise.
35611         * modules/truncl-tests (Files): Likewise.
35612         * modules/uname-tests (Files): Likewise.
35613         * modules/unicase/cased-tests (Files): Likewise.
35614         * modules/unicase/ignorable-tests (Files): Likewise.
35615         * modules/unicase/locale-language-tests (Files): Likewise.
35616         * modules/unicase/tolower-tests (Files): Likewise.
35617         * modules/unicase/totitle-tests (Files): Likewise.
35618         * modules/unicase/toupper-tests (Files): Likewise.
35619         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35620         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35621         * modules/unicase/u8-casefold-tests (Files): Likewise.
35622         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35623         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35624         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35625         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35626         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35627         * modules/unicase/u8-tolower-tests (Files): Likewise.
35628         * modules/unicase/u8-totitle-tests (Files): Likewise.
35629         * modules/unicase/u8-toupper-tests (Files): Likewise.
35630         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35631         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35632         * modules/unicase/u16-casefold-tests (Files): Likewise.
35633         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35634         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35635         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35636         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35637         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35638         * modules/unicase/u16-tolower-tests (Files): Likewise.
35639         * modules/unicase/u16-totitle-tests (Files): Likewise.
35640         * modules/unicase/u16-toupper-tests (Files): Likewise.
35641         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35642         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35643         * modules/unicase/u32-casefold-tests (Files): Likewise.
35644         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35645         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35646         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35647         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35648         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35649         * modules/unicase/u32-tolower-tests (Files): Likewise.
35650         * modules/unicase/u32-totitle-tests (Files): Likewise.
35651         * modules/unicase/u32-toupper-tests (Files): Likewise.
35652         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35653         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35654         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35655         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35656         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35657         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35658         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35659         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35660         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35661         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35662         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35663         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35664         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35665         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35666         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35667         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35668         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35669         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35670         * modules/unictype/block-list-tests (Files): Likewise.
35671         * modules/unictype/block-of-tests (Files): Likewise.
35672         * modules/unictype/block-test-tests (Files): Likewise.
35673         * modules/unictype/category-C-tests (Files): Likewise.
35674         * modules/unictype/category-Cc-tests (Files): Likewise.
35675         * modules/unictype/category-Cf-tests (Files): Likewise.
35676         * modules/unictype/category-Cn-tests (Files): Likewise.
35677         * modules/unictype/category-Co-tests (Files): Likewise.
35678         * modules/unictype/category-Cs-tests (Files): Likewise.
35679         * modules/unictype/category-L-tests (Files): Likewise.
35680         * modules/unictype/category-Ll-tests (Files): Likewise.
35681         * modules/unictype/category-Lm-tests (Files): Likewise.
35682         * modules/unictype/category-Lo-tests (Files): Likewise.
35683         * modules/unictype/category-Lt-tests (Files): Likewise.
35684         * modules/unictype/category-Lu-tests (Files): Likewise.
35685         * modules/unictype/category-M-tests (Files): Likewise.
35686         * modules/unictype/category-Mc-tests (Files): Likewise.
35687         * modules/unictype/category-Me-tests (Files): Likewise.
35688         * modules/unictype/category-Mn-tests (Files): Likewise.
35689         * modules/unictype/category-N-tests (Files): Likewise.
35690         * modules/unictype/category-Nd-tests (Files): Likewise.
35691         * modules/unictype/category-Nl-tests (Files): Likewise.
35692         * modules/unictype/category-No-tests (Files): Likewise.
35693         * modules/unictype/category-P-tests (Files): Likewise.
35694         * modules/unictype/category-Pc-tests (Files): Likewise.
35695         * modules/unictype/category-Pd-tests (Files): Likewise.
35696         * modules/unictype/category-Pe-tests (Files): Likewise.
35697         * modules/unictype/category-Pf-tests (Files): Likewise.
35698         * modules/unictype/category-Pi-tests (Files): Likewise.
35699         * modules/unictype/category-Po-tests (Files): Likewise.
35700         * modules/unictype/category-Ps-tests (Files): Likewise.
35701         * modules/unictype/category-S-tests (Files): Likewise.
35702         * modules/unictype/category-Sc-tests (Files): Likewise.
35703         * modules/unictype/category-Sk-tests (Files): Likewise.
35704         * modules/unictype/category-Sm-tests (Files): Likewise.
35705         * modules/unictype/category-So-tests (Files): Likewise.
35706         * modules/unictype/category-Z-tests (Files): Likewise.
35707         * modules/unictype/category-Zl-tests (Files): Likewise.
35708         * modules/unictype/category-Zp-tests (Files): Likewise.
35709         * modules/unictype/category-Zs-tests (Files): Likewise.
35710         * modules/unictype/category-and-not-tests (Files): Likewise.
35711         * modules/unictype/category-and-tests (Files): Likewise.
35712         * modules/unictype/category-byname-tests (Files): Likewise.
35713         * modules/unictype/category-name-tests (Files): Likewise.
35714         * modules/unictype/category-none-tests (Files): Likewise.
35715         * modules/unictype/category-of-tests (Files): Likewise.
35716         * modules/unictype/category-or-tests (Files): Likewise.
35717         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35718         * modules/unictype/combining-class-tests (Files): Likewise.
35719         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35720         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35721         * modules/unictype/ctype-blank-tests (Files): Likewise.
35722         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35723         * modules/unictype/ctype-digit-tests (Files): Likewise.
35724         * modules/unictype/ctype-graph-tests (Files): Likewise.
35725         * modules/unictype/ctype-lower-tests (Files): Likewise.
35726         * modules/unictype/ctype-print-tests (Files): Likewise.
35727         * modules/unictype/ctype-punct-tests (Files): Likewise.
35728         * modules/unictype/ctype-space-tests (Files): Likewise.
35729         * modules/unictype/ctype-upper-tests (Files): Likewise.
35730         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35731         * modules/unictype/decimal-digit-tests (Files): Likewise.
35732         * modules/unictype/digit-tests (Files): Likewise.
35733         * modules/unictype/mirror-tests (Files): Likewise.
35734         * modules/unictype/numeric-tests (Files): Likewise.
35735         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35736         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35737         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35738         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35739         Likewise.
35740         * modules/unictype/property-bidi-block-separator-tests (Files):
35741         Likewise.
35742         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35743         Likewise.
35744         * modules/unictype/property-bidi-common-separator-tests (Files):
35745         Likewise.
35746         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35747         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35748         Likewise.
35749         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35750         Likewise.
35751         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35752         Likewise.
35753         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35754         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35755         Likewise.
35756         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35757         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35758         Likewise.
35759         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35760         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35761         * modules/unictype/property-bidi-segment-separator-tests (Files):
35762         Likewise.
35763         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35764         * modules/unictype/property-byname-tests (Files): Likewise.
35765         * modules/unictype/property-combining-tests (Files): Likewise.
35766         * modules/unictype/property-composite-tests (Files): Likewise.
35767         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35768         * modules/unictype/property-dash-tests (Files): Likewise.
35769         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35770         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35771         Likewise.
35772         * modules/unictype/property-deprecated-tests (Files): Likewise.
35773         * modules/unictype/property-diacritic-tests (Files): Likewise.
35774         * modules/unictype/property-extender-tests (Files): Likewise.
35775         * modules/unictype/property-format-control-tests (Files): Likewise.
35776         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35777         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35778         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35779         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35780         * modules/unictype/property-hyphen-tests (Files): Likewise.
35781         * modules/unictype/property-id-continue-tests (Files): Likewise.
35782         * modules/unictype/property-id-start-tests (Files): Likewise.
35783         * modules/unictype/property-ideographic-tests (Files): Likewise.
35784         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35785         * modules/unictype/property-ids-trinary-operator-tests (Files):
35786         Likewise.
35787         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35788         * modules/unictype/property-iso-control-tests (Files): Likewise.
35789         * modules/unictype/property-join-control-tests (Files): Likewise.
35790         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35791         * modules/unictype/property-line-separator-tests (Files): Likewise.
35792         * modules/unictype/property-logical-order-exception-tests (Files):
35793         Likewise.
35794         * modules/unictype/property-lowercase-tests (Files): Likewise.
35795         * modules/unictype/property-math-tests (Files): Likewise.
35796         * modules/unictype/property-non-break-tests (Files): Likewise.
35797         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35798         * modules/unictype/property-numeric-tests (Files): Likewise.
35799         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35800         * modules/unictype/property-other-default-ignorable-code-point-tests
35801         (Files): Likewise.
35802         * modules/unictype/property-other-grapheme-extend-tests (Files):
35803         Likewise.
35804         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35805         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35806         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35807         * modules/unictype/property-other-math-tests (Files): Likewise.
35808         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35809         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35810         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35811         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35812         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35813         * modules/unictype/property-private-use-tests (Files): Likewise.
35814         * modules/unictype/property-punctuation-tests (Files): Likewise.
35815         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35816         * modules/unictype/property-radical-tests (Files): Likewise.
35817         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35818         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35819         * modules/unictype/property-space-tests (Files): Likewise.
35820         * modules/unictype/property-terminal-punctuation-tests (Files):
35821         Likewise.
35822         * modules/unictype/property-test-tests (Files): Likewise.
35823         * modules/unictype/property-titlecase-tests (Files): Likewise.
35824         * modules/unictype/property-unassigned-code-value-tests (Files):
35825         Likewise.
35826         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35827         * modules/unictype/property-uppercase-tests (Files): Likewise.
35828         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35829         * modules/unictype/property-white-space-tests (Files): Likewise.
35830         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35831         * modules/unictype/property-xid-start-tests (Files): Likewise.
35832         * modules/unictype/property-zero-width-tests (Files): Likewise.
35833         * modules/unictype/scripts-tests (Files): Likewise.
35834         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35835         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35836         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35837         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35838         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35839         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35840         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35841         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35842         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35843         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35844         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35845         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35846         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35847         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35848         * modules/uninorm/composition-tests (Files): Likewise.
35849         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35850         * modules/uninorm/decomposition-tests (Files): Likewise.
35851         * modules/uninorm/filter-tests (Files): Likewise.
35852         * modules/uninorm/nfc-tests (Files): Likewise.
35853         * modules/uninorm/nfd-tests (Files): Likewise.
35854         * modules/uninorm/nfkc-tests (Files): Likewise.
35855         * modules/uninorm/nfkd-tests (Files): Likewise.
35856         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35857         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35858         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35859         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35860         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35861         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35862         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35863         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35864         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35865         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35866         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35867         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35868         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35869         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35870         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35871         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35872         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35873         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35874         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35875         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35876         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35877         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35878         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35879         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35880         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35881         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35882         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35883         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35884         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35885         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35886         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35887         * modules/uniwidth/u8-width-tests (Files): Likewise.
35888         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35889         * modules/uniwidth/u16-width-tests (Files): Likewise.
35890         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35891         * modules/uniwidth/u32-width-tests (Files): Likewise.
35892         * modules/uniwidth/width-tests (Files): Likewise.
35893         * modules/unlink-tests (Files): Likewise.
35894         * modules/unsetenv-tests (Files): Likewise.
35895         * modules/usleep-tests (Files): Likewise.
35896         * modules/utimens-tests (Files): Likewise.
35897         * modules/utimensat-tests (Files): Likewise.
35898         * modules/vasnprintf-posix-tests (Files): Likewise.
35899         * modules/vasnprintf-tests (Files): Likewise.
35900         * modules/vasprintf-posix-tests (Files): Likewise.
35901         * modules/vasprintf-tests (Files): Likewise.
35902         * modules/vdprintf-posix-tests (Files): Likewise.
35903         * modules/vfprintf-posix-tests (Files): Likewise.
35904         * modules/vprintf-posix-tests (Files): Likewise.
35905         * modules/vsnprintf-posix-tests (Files): Likewise.
35906         * modules/vsnprintf-tests (Files): Likewise.
35907         * modules/vsprintf-posix-tests (Files): Likewise.
35908         * modules/wcrtomb-tests (Files): Likewise.
35909         * modules/wcsnrtombs-tests (Files): Likewise.
35910         * modules/wcsrtombs-tests (Files): Likewise.
35911         * modules/wctype-tests (Files): Likewise.
35912         * modules/wcwidth-tests (Files): Likewise.
35913         * modules/xmemdup0-tests (Files): Likewise.
35914         * modules/xprintf-posix-tests (Files): Likewise.
35915         * modules/xvasprintf-tests (Files): Likewise.
35916
35917 2009-12-24  Eric Blake  <ebb9@byu.net>
35918
35919         test-nanosleep: fix typo
35920         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35921         patch.
35922         Reported by Bruno Haible.
35923
35924 2009-12-24  Bruno Haible  <bruno@clisp.org>
35925
35926         Reduce namespace pollution on glibc systems.
35927         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35928         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35929         systems.
35930         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35931         <getopt.h> on glibc systems.
35932         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35933         systems.
35934         * lib/fcntl.c: Include <unistd.h> here instead.
35935
35936 2009-12-24  Bruno Haible  <bruno@clisp.org>
35937
35938         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35939
35940 2009-12-24  Eric Blake  <ebb9@byu.net>
35941
35942         tests: add signature checks
35943         * tests/signature.h (SIGNATURE_CHECK): New file.
35944         * modules/atexit-tests (Files): Use it.
35945         * modules/btowc-tests (Files): Likewise.
35946         * modules/canonicalize-lgpl-tests (Files): Likewise.
35947         * modules/ceilf-tests (Files): Likewise.
35948         * modules/ceill-tests (Files): Likewise.
35949         * modules/chown-tests (Files): Likewise.
35950         * modules/dprintf-posix-tests (Files): Likewise.
35951         * modules/dup2-tests (Files): Likewise.
35952         * modules/dup3-tests (Files): Likewise.
35953         * modules/duplocale-tests (Files): Likewise.
35954         * modules/fchdir-tests (Files): Likewise.
35955         * modules/fcntl-tests (Files): Likewise.
35956         * modules/fdopendir-tests (Files): Likewise.
35957         * modules/fflush-tests (Files): Likewise.
35958         * modules/flock-tests (Files): Likewise.
35959         * modules/floorf-tests (Files): Likewise.
35960         * modules/floorl-tests (Files): Likewise.
35961         * modules/fnmatch-tests (Files): Likewise.
35962         * modules/fopen-tests (Files): Likewise.
35963         * modules/fprintf-posix-tests (Files): Likewise.
35964         * modules/freopen-tests (Files): Likewise.
35965         * modules/frexp-nolibm-tests (Files): Likewise.
35966         * modules/frexp-tests (Files): Likewise.
35967         * modules/frexpl-nolibm-tests (Files): Likewise.
35968         * modules/frexpl-tests (Files): Likewise.
35969         * modules/fseek-tests (Files): Likewise.
35970         * modules/fseeko-tests (Files): Likewise.
35971         * modules/fsync-tests (Files): Likewise.
35972         * modules/ftell-tests (Files): Likewise.
35973         * modules/ftello-tests (Files): Likewise.
35974         * modules/futimens-tests (Files): Likewise.
35975         * modules/getaddrinfo-tests (Files): Likewise.
35976         * modules/getcwd-tests (Files): Likewise.
35977         * modules/getdelim-tests (Files): Likewise.
35978         * modules/getdtablesize-tests (Files): Likewise.
35979         * modules/getgroups-tests (Files): Likewise.
35980         * modules/gethostname-tests (Files): Likewise.
35981         * modules/getline-tests (Files): Likewise.
35982         * modules/getopt-posix-tests (Files): Likewise.
35983         * modules/gettimeofday-tests (Files): Likewise.
35984         * modules/glob-tests (Files): Likewise.
35985         * modules/iconv-tests (Files): Likewise.
35986         * modules/inet_ntop-tests (Files): Likewise.
35987         * modules/inet_pton-tests (Files): Likewise.
35988         * modules/isblank-tests (Files): Likewise.
35989         * modules/lchown-tests (Files): Likewise.
35990         * modules/ldexpl-tests (Files): Likewise.
35991         * modules/link-tests (Files): Likewise.
35992         * modules/linkat-tests (Files): Likewise.
35993         * modules/lseek-tests (Files): Likewise.
35994         * modules/lstat-tests (Files): Likewise.
35995         * modules/mbrtowc-tests (Files): Likewise.
35996         * modules/mbsinit-tests (Files): Likewise.
35997         * modules/mbsnrtowcs-tests (Files): Likewise.
35998         * modules/mbsrtowcs-tests (Files): Likewise.
35999         * modules/memchr-tests (Files): Likewise.
36000         * modules/memcmp-tests (Files): Likewise.
36001         * modules/memmem-tests (Files): Likewise.
36002         * modules/memrchr-tests (Files): Likewise.
36003         * modules/mkdir-tests (Files): Likewise.
36004         * modules/mkfifo-tests (Files): Likewise.
36005         * modules/mkfifoat-tests (Files): Likewise.
36006         * modules/mknod-tests (Files): Likewise.
36007         * modules/nanosleep-tests (Files): Likewise.
36008         * modules/nl_langinfo-tests (Files): Likewise.
36009         * modules/obstack-printf-tests (Files): Likewise.
36010         * modules/open-tests (Files): Likewise.
36011         * modules/openat-tests (Files): Likewise.
36012         * modules/perror-tests (Files): Likewise.
36013         * modules/pipe2-tests (Files): Likewise.
36014         * modules/poll-tests (Files): Likewise.
36015         * modules/popen-tests (Files): Likewise.
36016         * modules/posix_spawn-tests (Files): Likewise.
36017         * modules/posix_spawnp-tests (Files): Likewise.
36018         * modules/pread-tests (Files): Likewise.
36019         * modules/printf-posix-tests (Files): Likewise.
36020         * modules/pty-tests (Files): Likewise.
36021         * modules/random_r-tests (Files): Likewise.
36022         * modules/rawmemchr-tests (Files): Likewise.
36023         * modules/readlink-tests (Files): Likewise.
36024         * modules/remove-tests (Files): Likewise.
36025         * modules/rename-tests (Files): Likewise.
36026         * modules/renameat-tests (Files): Likewise.
36027         * modules/rmdir-tests (Files): Likewise.
36028         * modules/round-tests (Files): Likewise.
36029         * modules/roundf-tests (Files): Likewise.
36030         * modules/roundl-tests (Files): Likewise.
36031         * modules/select-tests (Files): Likewise.
36032         * modules/setenv-tests (Files): Likewise.
36033         * modules/sigaction-tests (Files): Likewise.
36034         * modules/sleep-tests (Files): Likewise.
36035         * modules/snprintf-posix-tests (Files): Likewise.
36036         * modules/snprintf-tests (Files): Likewise.
36037         * modules/sprintf-posix-tests (Files): Likewise.
36038         * modules/stat-tests (Files): Likewise.
36039         * modules/strcasestr-tests (Files): Likewise.
36040         * modules/strchrnul-tests (Files): Likewise.
36041         * modules/strerror-tests (Files): Likewise.
36042         * modules/strsignal-tests (Files): Likewise.
36043         * modules/strstr-tests (Files): Likewise.
36044         * modules/strtod-tests (Files): Likewise.
36045         * modules/strverscmp-tests (Files): Likewise.
36046         * modules/symlink-tests (Files): Likewise.
36047         * modules/symlinkat-tests (Files): Likewise.
36048         * modules/times-tests (Files): Likewise.
36049         * modules/trunc-tests (Files): Likewise.
36050         * modules/truncf-tests (Files): Likewise.
36051         * modules/truncl-tests (Files): Likewise.
36052         * modules/tsearch-tests (Files): Likewise.
36053         * modules/uname-tests (Files): Likewise.
36054         * modules/unlink-tests (Files): Likewise.
36055         * modules/unsetenv-tests (Files): Likewise.
36056         * modules/usleep-tests (Files): Likewise.
36057         * modules/utimensat-tests (Files): Likewise.
36058         * modules/vasprintf-tests (Files): Likewise.
36059         * modules/vdprintf-posix-tests (Files): Likewise.
36060         * modules/vfprintf-posix-tests (Files): Likewise.
36061         * modules/vprintf-posix-tests (Files): Likewise.
36062         * modules/vsnprintf-posix-tests (Files): Likewise.
36063         * modules/vsnprintf-tests (Files): Likewise.
36064         * modules/vsprintf-posix-tests (Files): Likewise.
36065         * modules/wcrtomb-tests (Files): Likewise.
36066         * modules/wcsnrtombs-tests (Files): Likewise.
36067         * modules/wcsrtombs-tests (Files): Likewise.
36068         * modules/wcwidth-tests (Files): Likewise.
36069         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36070         * tests/test-isinf.c (isinf): Likewise.
36071         * tests/test-isnan.c (isnan): Likewise.
36072         * tests/test-signbit.c (signbit): Likewise.
36073         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36074         declaration, either as macro or with correct signature.
36075         (select): Ensure function under test is declared with correct
36076         signature in correct header.
36077         * tests/test-atexit.c (atexit): Likewise.
36078         * tests/test-btowc.c (btowc): Likewise.
36079         * tests/test-canonicalize-lgpl.c (realpath)
36080         (canonicalize_file_name): Likewise.
36081         * tests/test-ceilf1.c (ceilf): Likewise.
36082         * tests/test-ceill.c (ceill): Likewise.
36083         * tests/test-chown.c (chown): Likewise.
36084         * tests/test-dprintf-posix.c (dprintf): Likewise.
36085         * tests/test-dup2.c (dup2): Likewise.
36086         * tests/test-dup3.c (dup3): Likewise.
36087         * tests/test-duplocale.c (duplocale): Likewise.
36088         * tests/test-fchdir.c (fchdir): Likewise.
36089         * tests/test-fchownat.c (fchownat): Likewise.
36090         * tests/test-fcntl.c (fcntl): Likewise.
36091         * tests/test-fdopendir.c (fdopendir): Likewise.
36092         * tests/test-fflush.c (fflush): Likewise.
36093         * tests/test-flock.c (flock): Likewise.
36094         * tests/test-floorf1.c (floorf): Likewise.
36095         * tests/test-floorl.c (floorl): Likewise.
36096         * tests/test-fnmatch.c (fnmatch): Likewise.
36097         * tests/test-fopen.c (fopen): Likewise.
36098         * tests/test-fprintf-posix.c (fprintf): Likewise.
36099         * tests/test-freopen.c (freopen): Likewise.
36100         * tests/test-frexp.c (frexp): Likewise.
36101         * tests/test-frexpl.c (frexpl): Likewise.
36102         * tests/test-fseek.c (fseek): Likewise.
36103         * tests/test-fseeko.c (fseeko): Likewise.
36104         * tests/test-fstatat.c (fstatat): Likewise.
36105         * tests/test-fsync.c (fsync): Likewise.
36106         * tests/test-ftell.c (ftell): Likewise.
36107         * tests/test-ftello.c (ftello): Likewise.
36108         * tests/test-futimens.c (futimens): Likewise.
36109         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36110         (gai_strerror): Likewise.
36111         * tests/test-getcwd.c (getcwd): Likewise.
36112         * tests/test-getdelim.c (getdelim): Likewise.
36113         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36114         * tests/test-getgroups.c (getgroups): Likewise.
36115         * tests/test-gethostname.c (gethostname): Likewise.
36116         * tests/test-getline.c (getline): Likewise.
36117         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36118         Likewise.
36119         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36120         * tests/test-glob.c (glob, globfree): Likewise.
36121         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36122         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36123         * tests/test-inet_pton.c (inet_pton): Likewise.
36124         * tests/test-isblank.c (isblank): Likewise.
36125         * tests/test-lchown.c (lchown): Likewise.
36126         * tests/test-ldexpl.c (ldexpl): Likewise.
36127         * tests/test-link.c (link): Likewise.
36128         * tests/test-linkat.c (linkat): Likewise.
36129         * tests/test-lseek.c (lseek): Likewise.
36130         * tests/test-lstat.c (lstat): Likewise.
36131         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36132         * tests/test-mbsinit.c (mbsinit): Likewise.
36133         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36134         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36135         * tests/test-memchr.c (memchr): Likewise.
36136         * tests/test-memcmp.c (memcmp): Likewise.
36137         * tests/test-memmem.c (memmem): Likewise.
36138         * tests/test-memrchr.c (memrchr): Likewise.
36139         * tests/test-mkdir.c (mkdir): Likewise.
36140         * tests/test-mkdirat.c (mkdirat): Likewise.
36141         * tests/test-mkfifo.c (mkfifo): Likewise.
36142         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36143         * tests/test-mknod.c (mknod): Likewise.
36144         * tests/test-nanosleep.c (nanosleep): Likewise.
36145         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36146         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36147         Likewise.
36148         * tests/test-open.c (open): Likewise.
36149         * tests/test-openat.c (openat): Likewise.
36150         * tests/test-perror.c (perror): Likewise.
36151         * tests/test-pipe2.c (pipe2): Likewise.
36152         * tests/test-poll.c (poll): Likewise.
36153         * tests/test-popen.c (popen, pclose): Likewise.
36154         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36155         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36156         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36157         (posix_spawn_file_actions_destroy)
36158         (posix_spawn_file_actions_addclose)
36159         (posix_spawn_file_actions_addopen)
36160         (posix_spawn_file_actions_adddup2): Likewise.
36161         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36162         * tests/test-pread.c (pread): Likewise.
36163         * tests/test-printf-posix.c (printf): Likewise.
36164         * tests/test-pty.c (openpty, forkpty): Likewise.
36165         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36166         (random_r): Likewise.
36167         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36168         * tests/test-readlink.c (readlink): Likewise.
36169         * tests/test-remove.c (remove): Likewise.
36170         * tests/test-rename.c (rename): Likewise.
36171         * tests/test-renameat.c (renameat): Likewise.
36172         * tests/test-rmdir.c (rmdir): Likewise.
36173         * tests/test-round1.c (round): Likewise.
36174         * tests/test-roundf1.c (roundf): Likewise.
36175         * tests/test-roundl.c (roundl): Likewise.
36176         * tests/test-setenv.c (setenv): Likewise.
36177         * tests/test-sigaction.c (sigaction): Likewise.
36178         * tests/test-sleep.c (sleep): Likewise.
36179         * tests/test-snprintf.c (snprintf): Likewise.
36180         * tests/test-sprintf-posix.c (sprintf): Likewise.
36181         * tests/test-stat.c (stat): Likewise.
36182         * tests/test-stpncpy.c (stpncpy): Likewise.
36183         * tests/test-strcasestr.c (strcasestr): Likewise.
36184         * tests/test-strchrnul.c (strchrnul): Likewise.
36185         * tests/test-strerror.c (strerror): Likewise.
36186         * tests/test-strsignal.c (strsignal): Likewise.
36187         * tests/test-strstr.c (strstr): Likewise.
36188         * tests/test-strtod.c (strtod): Likewise.
36189         * tests/test-strverscmp.c (strverscmp): Likewise.
36190         * tests/test-symlink.c (symlink): Likewise.
36191         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36192         * tests/test-times.c (times): Likewise.
36193         * tests/test-trunc1.c (trunc): Likewise.
36194         * tests/test-truncf1.c (truncf): Likewise.
36195         * tests/test-truncl.c (truncl): Likewise.
36196         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36197         Likewise.
36198         * tests/test-uname.c (uname): Likewise.
36199         * tests/test-unlink.c (unlink): Likewise.
36200         * tests/test-unlinkat.c (unlinkat): Likewise.
36201         * tests/test-unsetenv.c (unsetenv): Likewise.
36202         * tests/test-usleep.c (usleep): Likewise.
36203         * tests/test-utimensat.c (utimensat): Likewise.
36204         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36205         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36206         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36207         * tests/test-vprintf-posix.c (vprintf): Likewise.
36208         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36209         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36210         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36211         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36212         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36213         * tests/test-wcwidth.c (wcwidth): Likewise.
36214
36215         build: pull in conditional headers during GNULIB_POSIXCHECK
36216         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36217         definitions from any conditionally-included headers.
36218         * lib/stdlib.in.h (includes): Likewise.
36219         * lib/unistd.in.h (includes): Likewise.
36220
36221 2009-12-24  Bruno Haible  <bruno@clisp.org>
36222
36223         * tests/test-argv-iter.c: Include header file being tested immediately
36224         after config.h.
36225         * tests/test-base64.c: Likewise.
36226         * tests/test-flock.c: Likewise.
36227         * tests/test-fsync.c: Likewise.
36228         * tests/test-getdate.c: Likewise.
36229         * tests/test-getndelim2.c: Likewise.
36230         * tests/test-isfinite.c: Likewise.
36231         * tests/test-isinf.c: Likewise.
36232         * tests/test-strerror.c: Likewise.
36233         * tests/test-strsignal.c: Likewise.
36234
36235 2009-12-23  Eric Blake  <ebb9@byu.net>
36236
36237         unistd: work around cygwin bug
36238         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36239         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36240         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36241
36242 2009-12-23  Bruno Haible  <bruno@clisp.org>
36243
36244         localename: More tests.
36245         * tests/test-localename.c (SIZEOF): New macro.
36246         (categories): New variable.
36247         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36248         test_locale_name_default): Add test w.r.t. thread locale.
36249         (test_locale_name_thread): New function.
36250         (main): Invoke it.
36251
36252         localename: Make aware of thread locale.
36253         * lib/localename.h (gl_locale_name_thread): New declaration.
36254         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36255         behaviour with respect to thread locale.
36256         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36257         <langinfo.h>, glthread/lock.h.
36258         (SIZE_BITS): New macro.
36259         (string_hash): New function.
36260         (struct hash_node): New type.
36261         (HASH_TABLE_SIZE): New macro.
36262         (struniq_hash_table, struniq_lock): New variables.
36263         (struniq): New function.
36264         (gl_locale_name_thread): New function.
36265         (gl_locale_name): Invoke it.
36266         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36267         * modules/localename (Depends-on): Add lock.
36268         Reported by Mike Gran <spk121@yahoo.com>.
36269
36270 2009-12-23  Eric Blake  <ebb9@byu.net>
36271
36272         va-args: new module
36273         * modules/va-args: New file.
36274         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36275         * MODULES.html.sh (Core language properties): Mention it.
36276
36277         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36278         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36279         named alias for __attribute__((__unused__)).
36280         * lib/chown.c: Update client.
36281         * lib/fchmodat.c: Likewise.
36282         * lib/fts.c: Likewise.
36283         * lib/getdate.y: Likewise.
36284         * lib/getgroups.c: Likewise.
36285         * lib/getopt.c: Likewise.
36286         * lib/getugroups.c: Likewise.
36287         * lib/mkdir.c: Likewise.
36288         * lib/mkfifo.c: Likewise.
36289         * lib/mkfifoat.c: Likewise.
36290         * lib/mknod.c: Likewise.
36291         * lib/mknodat.c: Likewise.
36292         * lib/readlink.c: Likewise.
36293         * lib/se-context.in.h: Likewise.
36294         * lib/se-selinux.in.h: Likewise.
36295         * lib/sockets.c: Likewise.
36296         * lib/symlink.c: Likewise.
36297         * lib/symlinkat.c: Likewise.
36298         * lib/unicodeio.c: Likewise.
36299         * lib/unistr.h: Likewise.
36300         * tests/test-areadlink.c: Likewise.
36301         * tests/test-areadlinkat.c: Likewise.
36302         * tests/test-filenamecat.c: Likewise.
36303         * tests/test-fseeko.c: Likewise.
36304         * tests/test-ftello.c: Likewise.
36305         * tests/test-getdate.c: Likewise.
36306         * tests/test-getgroups.c: Likewise.
36307         * tests/test-gethostname.c: Likewise.
36308         * tests/test-quotearg.c: Likewise.
36309         * tests/test-version-etc.c: Likewise.
36310         * tests/test-xalloc-die.c: Likewise.
36311         * tests/test-xfprintf-posix.c: Likewise.
36312         * tests/test-xprintf-posix.c: Likewise.
36313         * tests/test-xvasprintf.c: Likewise.
36314
36315         tests: avoid compiler warnings
36316         * tests/test-fcntl.c (main): Delete unused parameters.
36317         * tests/test-freopen-safer.c (main): Likewise.
36318         * tests/test-xalloc-die.c (main): Mark unused parameters.
36319         * tests/test-fseeko.c (main): Likewise.
36320         * tests/test-ftello.c (main): Likewise.
36321         * tests/test-nanosleep.c (main): Avoid declaration warning.
36322         * tests/test-sleep.c (main): Likewise.
36323         * tests/test-unsetenv.c (main): Silence warning about string
36324         literal.
36325         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36326
36327 2009-12-23  Bruno Haible  <bruno@clisp.org>
36328
36329         * tests/test-localename.c (test_locale_name): New function, extracted
36330         from main. Also test mixed situations.
36331         (test_locale_name_posix, test_locale_name_environ,
36332         test_locale_name_default): New functions.
36333         (main): Invoke them all.
36334         * modules/localename-tests (configure.ac): Test for newlocale.
36335
36336 2009-12-23  Bruno Haible  <bruno@clisp.org>
36337
36338         unistd: Ensure getcwd gets declared before being overridden.
36339         * lib/unistd.in.h: Conditionally include <io.h>.
36340
36341 2009-12-22  Bruno Haible  <bruno@clisp.org>
36342
36343         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36344         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36345         (gl_WCHAR_H): Invoke it.
36346         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36347         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36348         Reported by Karl Berry <karl@freefriends.org>.
36349
36350 2009-12-22  Eric Blake  <ebb9@byu.net>
36351
36352         math, unistd: avoid redundant includes
36353         * lib/math.in.h (isnan): No need to re-include <math.h>.
36354         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36355
36356         getsubopt: work around cygwin bug
36357         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36358         avoid conflicting with system getsubopt.
36359         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36360         bug.
36361
36362         getopt: synchronize from glibc
36363         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36364         parameter order.  Adjust all callers.
36365         (_getopt_internal_r, main): Adjust quoting in error messages.
36366         Drop considerations for outdated POSIX 1003.2 error message.
36367         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36368         callers.
36369         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36370
36371         test-getopt: test stderr behavior
36372         * modules/getopt-posix-tests (Depends-on): Add dup2.
36373         * tests/test-getopt.c (ASSERT): Avoid stderr.
36374         (main): Move stderr to a temporary file.
36375         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36376         Instead, add parameter to inform caller if output occurred.
36377         (test_getopt): Adjust all existing tests to expect silence, and
36378         add new tests of leading ":".
36379         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36380         glibc shortcomings with leading "-:" or "+:" in optstring.
36381         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36382         Likewise.
36383         * doc/posix-functions/getopt.texi (getopt): Likewise.
36384
36385         test-getopt: enhance test
36386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36387         supports optind=0.
36388         * tests/test-getopt.c (OPTIND_MIN): Move...
36389         * tests/test-getopt.h (OPTIND_MIN): ...here.
36390         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36391         Require that optind=0 works, since modern BSD supports it in
36392         addition to optreset, and since coreutils expects it.
36393         (test_getopt_long_only): New test.
36394         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36395         glibc shortcomings with 'W;', and enforcement of optind=0.
36396         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36397         Likewise.
36398
36399 2009-12-21  Bruno Haible  <bruno@clisp.org>
36400
36401         localename: Improvements for MacOS X and Cygwin.
36402         * lib/localename.h (gl_locale_name_environ): New declaration.
36403         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36404         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36405         (gl_locale_name_posix): Invoke it.
36406         (gl_locale_name_default): Add comments. Use Windows native API also on
36407         Cygwin.
36408
36409 2009-12-21  Bruno Haible  <bruno@clisp.org>
36410
36411         Update list of Win32 locale ids.
36412         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36413         (LANG_SAMI): Renamed from LANG_SAAMI.
36414         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36415         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36416         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36417         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36418         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36419         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36420         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36421         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36422         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36423         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36424         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36425         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36426         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36427         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36428         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36429         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36430         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36431         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36432         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36433         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36434         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36435         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36436         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36437         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36438         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36439         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36440         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36441         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36442         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36443         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36444         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36445         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36446         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36447         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36448         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36449         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36450         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36451         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36452         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36453         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36454         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36455         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36456         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36457         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36458         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36459         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36460         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36461         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36462         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36463         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36464         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36465         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36466         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36467         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36468         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36469         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36470         Add more languages and countries for Sami, Sorbian. Add more countries
36471         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36472         for Pashto. Change country for Syriac, Tswana.
36473
36474 2009-12-21  Eric Blake  <ebb9@byu.net>
36475
36476         test-utimens: avoid spurious failure
36477         * tests/test-chown.h (nap): Factor...
36478         * tests/nap.h: ...into new file.
36479         * tests/test-lchown.h (nap): Avoid duplication.
36480         * tests/test-utimens-common.h (nap): Use shared implementation,
36481         necessary on file systems with 1-second resolution.
36482         * modules/chown-tests (Files): Include new file.
36483         * modules/fdutimensat-tests (Files): Likewise.
36484         * modules/futimens-tests (Files): Likewise.
36485         * modules/lchown-tests (Files): Likewise.
36486         * modules/openat-tests (Files): Likewise.
36487         * modules/utimens-tests (Files): Likewise.
36488         * modules/utimensat-tests (Files): Likewise.
36489
36490 2009-12-19  Eric Blake  <ebb9@byu.net>
36491
36492         futimens, utimensat: work around Linux bug
36493         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36494         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36495         * lib/utimensat.c (rpl_utimensat): Work around it.
36496         * lib/futimens.c (rpl_futimens): Adjust comment.
36497
36498         utimens: work around Linux ctime bug
36499         * lib/utimens.c (detect_ctime_bug): New helper function.
36500         (update_timespec): Differentiate between workaround needed for
36501         this bug vs. what is needed for systems that lack utimensat.
36502         (fdutimens, lutimens): Work around bug.
36503
36504         utimens: check for ctime update
36505         * tests/test-utimens-common.h (check_ctime): Define.
36506         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36507         * tests/test-futimens.h (test_futimens): Likewise.
36508         * tests/test-lutimens.h (test_lutimens): Likewise.
36509         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36510         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36511
36512 2009-12-19  Bruno Haible  <bruno@clisp.org>
36513
36514         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36515         * tests/test-dprintf-posix2.sh: New file.
36516         * tests/test-dprintf-posix2.c: New file.
36517         * modules/dprintf-posix-tests (Files): Add them.
36518         (configure.ac): Check for getrlimit and setrlimit.
36519         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36520
36521 2009-12-19  Bruno Haible  <bruno@clisp.org>
36522
36523         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36524         * tests/test-fprintf-posix3.sh: New file.
36525         * tests/test-fprintf-posix3.c: New file.
36526         * modules/fprintf-posix-tests (Files): Add them.
36527         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36528
36529 2009-12-19  Eric Blake  <ebb9@byu.net>
36530
36531         dirfd: fix prototype
36532         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36533         * lib/dirfd.c (dirfd): Likewise.
36534
36535         canonicalize: reduce memory usage
36536         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36537         allocation to size.
36538         Reported by Solar Designer <solar@openwall.com>.
36539
36540 2009-12-19  Bruno Haible  <bruno@clisp.org>
36541
36542         New module attribute 'Applicability'.
36543         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36544         * gnulib-tool: New option --extract-applicability.
36545         (func_usage): Document it.
36546         (sed_extract_prog): Recognize it.
36547         (func_get_applicability): New function.
36548         (func_import): Generalize handling of 'link-warning' module.
36549         * modules/link-warning (Applicability): New section.
36550         * modules/arg-nonnull (Applicability): New section.
36551         Repoted by Simon Josefsson <simon@josefsson.org>.
36552
36553 2009-12-19  Bruno Haible  <bruno@clisp.org>
36554
36555         fflush: tweak
36556         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36557         * lib/fseeko.c (rpl_fseeko): Likewise.
36558
36559 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36560
36561         * lib/gl_list.h: Fix typo in comment.
36562
36563 2009-12-16  Eric Blake  <ebb9@byu.net>
36564
36565         fcntl: use to simplify other modules
36566         * modules/cloexec (Depends-on): Add fcntl.
36567         * modules/fchdir (Depends-on): Likewise.
36568         * modules/fd-safer-flag (Depends-on): Likewise.
36569         * modules/unistd-safer (Depends-on): Likewise.
36570         * modules/dup3 (configure.ac): Set module indicator.
36571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36572         missing.
36573         * lib/fchdir.c (_gl_register_dup): Fix comment.
36574         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36575         * lib/dup-safer.c (dup_safer): Likewise.
36576         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36577         * lib/dup3.c (dup3): Likewise.
36578         * tests/test-fchdir.c (main): Enhance test.
36579         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36580
36581         fcntl: port portions of fcntl to mingw
36582         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36583         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36584         replacement for mingw.
36585         * modules/fcntl (Description): Update.
36586         (Depends-on): Add dup2.
36587         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36588         * modules/fcntl-h (Makefile.am): Substitute it.
36589         * lib/fcntl.in.h (fcntl): Update declaration.
36590         (F_DUPFD, F_GETFD): New macros, when needed.
36591         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36592         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36593         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36594         we now guarantee.
36595
36596         fcntl: work around cygwin bug in F_DUPFD
36597         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36598         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36599         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36600         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36601         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36602
36603         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36604         * modules/fcntl (Files): List new files.
36605         (configure.ac): Run a test.
36606         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36607         * lib/fcntl.c (rpl_fcntl): Likewise.
36608         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36609         (gl_FCNTL_H): Always replace fcntl.h.
36610         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36611         * lib/fcntl.in.h (fcntl): Declare replacement.
36612         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36613         needed, plus a witness.
36614         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36615         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36616         * tests/test-fcntl.c: New file.
36617         * modules/fcntl-tests: Likewise.
36618
36619         binary-io: avoid potential compilation warning
36620         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36621         directives.
36622
36623         fflush: avoid compilation error on NetBSD
36624         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36625         between off_t and fpos_t, since the latter is sometimes a struct.
36626         * lib/fseeko.c (rpl_fseeko): Likewise.
36627         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36628
36629 2009-12-15  Eric Blake  <ebb9@byu.net>
36630
36631         fcntl-h, stdio, sys_ioctl: fix declarations
36632         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36633         function must not take arguments.
36634         * lib/sys_ioctl.in.h (ioctl): Likewise.
36635         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36636         (open): Add a link warning.
36637
36638 2009-12-15  Jim Meyering  <meyering@redhat.com>
36639
36640         areadlink, areadlink-with-size: relax license to LGPLv2+
36641         * modules/areadlink (License): Relax to LGPLv2+.
36642         * modules/areadlink-with-size (License): Likewise.
36643
36644 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36645             Bruno Haible  <bruno@clisp.org>
36646
36647         *printf: Fix memory leak.
36648         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36649         * lib/vfprintf.c (vfprintf): Likewise.
36650         * lib/dprintf.c (dprintf): Likewise.
36651         * lib/vdprintf.c (vdprintf): Likewise.
36652
36653 2009-12-14  Eric Blake  <ebb9@byu.net>
36654
36655         accept4: adjust module dependencies
36656         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36657
36658         utimens: one more try at avoiding compiler warning
36659         * lib/utimens.c (lutimens): Lower scope of result.
36660
36661 2009-12-13  Bruno Haible  <bruno@clisp.org>
36662
36663         Move the malloc checking from module 'list' to new module 'xlist'.
36664         * modules/xlist: New file.
36665         * lib/gl_xlist.h: New file.
36666         * lib/gl_xlist.c: New file.
36667         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36668         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36669         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36670         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36671         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36672         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36673         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36674         gl_sortedlist_nx_add): New declarations.
36675         (struct gl_list_implementation): Rename and change methods accordingly.
36676         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36677         (gl_list_nx_create): Renamed from gl_list_create.
36678         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36679         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36680         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36681         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36682         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36683         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36684         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36685         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36686         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36687         gl_list_create_empty.
36688         (gl_list_nx_create): Renamed from gl_list_create.
36689         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36690         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36691         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36692         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36693         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36694         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36695         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36696         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36697         * lib/gl_array_list.c: Don't include xalloc.h.
36698         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36699         NULL upon out-of-memory.
36700         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36701         out-of-memory.
36702         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36703         Change return type to 'int'.
36704         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36705         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36706         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36707         upon out-of-memory.
36708         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36709         upon out-of-memory.
36710         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36711         upon out-of-memory.
36712         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36713         upon out-of-memory.
36714         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36715         out-of-memory.
36716         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36717         Update.
36718         (gl_array_list_implementation): Update.
36719         * lib/gl_carray_list.c: Don't include xalloc.h.
36720         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36721         Return NULL upon out-of-memory.
36722         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36723         out-of-memory.
36724         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36725         Change return type to 'int'.
36726         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36727         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36728         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36729         upon out-of-memory.
36730         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36731         upon out-of-memory.
36732         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36733         out-of-memory.
36734         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36735         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36736         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36737         Update.
36738         (gl_carray_list_implementation): Update.
36739         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36740         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36741         gl_linked_create_empty. Return NULL upon out-of-memory.
36742         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36743         out-of-memory.
36744         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36745         Change return type to 'int'. Return -1 upon out-of-memory.
36746         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36747         out-of-memory.
36748         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36749         upon out-of-memory.
36750         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36751         upon out-of-memory.
36752         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36753         NULL upon out-of-memory.
36754         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36755         upon out-of-memory.
36756         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36757         out-of-memory.
36758         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36759         Update.
36760         * lib/gl_linked_list.c: Don't include xalloc.h.
36761         (gl_linked_list_implementation): Update.
36762         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36763         (add_to_bucket): Change return type to 'int'.
36764         (gl_linkedhash_list_implementation): Update.
36765         * lib/gl_anytree_list1.h (free_subtree): New function.
36766         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36767         gl_tree_create_empty. Return NULL upon out-of-memory.
36768         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36769         Change return type to 'int'. Return -1 upon out-of-memory.
36770         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36771         out-of-memory.
36772         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36773         (gl_tree_remove_node): New function, moved here from
36774         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36775         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36776         Update.
36777         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36778         malloc, not xmalloc. Return NULL upon out-of-memory.
36779         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36780         out-of-memory.
36781         (gl_tree_remove_node_from_tree): New function, extracted from
36782         gl_tree_remove_node.
36783         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36784         upon out-of-memory.
36785         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36786         out-of-memory.
36787         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36788         upon out-of-memory.
36789         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36790         upon out-of-memory.
36791         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36792         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36793         not xmalloc. Return NULL upon out-of-memory.
36794         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36795         out-of-memory.
36796         (gl_tree_remove_node_from_tree): New function, extracted from
36797         gl_tree_remove_node.
36798         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36799         upon out-of-memory.
36800         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36801         out-of-memory.
36802         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36803         upon out-of-memory.
36804         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36805         upon out-of-memory.
36806         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36807         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36808         gl_anytree_list1.h before gl_anyavltree_list2.h.
36809         (gl_avltree_list_implementation): Update.
36810         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36811         gl_anytree_list1.h before gl_anyavltree_list2.h.
36812         (gl_rbtree_list_implementation): Update.
36813         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36814         Change return type to 'int'. Return -1 upon out-of-memory. Use
36815         __builtin_expect.
36816         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36817         (gl_avltreehash_list_implementation): Update.
36818         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36819         (gl_rbtreehash_list_implementation): Update.
36820         * modules/array-list (Depends-on): Remove xalloc.
36821         * modules/carray-list (Depends-on): Likewise.
36822         * modules/linked-list (Depends-on): Likewise.
36823         * modules/linkedhash-list (Depends-on): Likewise.
36824         * modules/avltree-list (Depends-on): Likewise.
36825         * modules/rbtree-list (Depends-on): Likewise.
36826         * modules/avltreehash-list (Depends-on): Likewise.
36827         * modules/rbtreehash-list (Depends-on): Likewise.
36828
36829         * modules/xsublist: New file.
36830         * lib/gl_xsublist.h: New file.
36831         * lib/gl_xsublist.c: New file.
36832         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36833         (gl_sublist_nx_create): New declaration.
36834         * lib/gl_sublist.c: Don't include xalloc.h.
36835         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36836         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36837         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36838         Change return type to 'int'. Return -1 upon out-of-memory.
36839         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36840         upon out-of-memory.
36841         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36842         NULL upon out-of-memory.
36843         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36844         upon out-of-memory.
36845         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36846         NULL upon out-of-memory.
36847         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36848         NULL upon out-of-memory.
36849         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36850         upon out-of-memory.
36851         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36852         (gl_sublist_list_implementation): Update.
36853         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36854         upon out-of-memory.
36855         * modules/sublist (Depends-on): Remove xalloc.
36856
36857         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36858         * tests/test-carray_list.c: Likewise.
36859         * tests/test-linked_list.c: Likewise.
36860         * tests/test-linkedhash_list.c: Likewise.
36861         * tests/test-avltree_list.c: Likewise.
36862         * tests/test-rbtree_list.c: Likewise.
36863         * tests/test-avltreehash_list.c: Likewise.
36864         * tests/test-rbtreehash_list.c: Likewise.
36865         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36866         * modules/carray-list-tests (Makefile.am): Likewise.
36867         * modules/linked-list-tests (Makefile.am): Likewise.
36868         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36869         * modules/avltree-list-tests (Makefile.am): Likewise.
36870         * modules/rbtree-list-tests (Makefile.am): Likewise.
36871         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36872         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36873
36874         * NEWS: Mention the changes.
36875
36876         * lib/clean-temp.c: Include gl_xlist.h.
36877         * modules/clean-temp (Depends-on): Add xlist.
36878
36879         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36880         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36881
36882         * tests/test-array_oset.c: Include gl_xlist.h.
36883         * modules/array-oset-tests (Depends-on): Add xlist.
36884
36885         Reported by José E. Marchesi <jemarch@gnu.org>.
36886
36887 2009-12-13  Bruno Haible  <bruno@clisp.org>
36888
36889         Move the malloc checking from module 'oset' to new module 'xoset'.
36890         * modules/xoset: New file.
36891         * lib/gl_xoset.h: New file.
36892         * lib/gl_xoset.c: New file.
36893         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36894         declarations.
36895         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36896         (struct gl_oset_implementation): Rename and change methods accordingly.
36897         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36898         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36899         'int'. Mark as __warn_unused_result__.
36900         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36901         gl_oset_create_empty.
36902         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36903         'int'.
36904         * lib/gl_array_oset.c: Don't include xalloc.h.
36905         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36906         malloc, not xmalloc.
36907         (grow): Change return type to 'int'. Don't call xalloc_die.
36908         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36909         to 'int'.
36910         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36911         'int'.
36912         (gl_array_oset_implementation): Update.
36913         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36914         gl_tree_create_empty.
36915         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36916         'int'.
36917         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36918         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36919         xmalloc.
36920         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36921         not xmalloc.
36922         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36923         xmalloc.
36924         (gl_avltree_oset_implementation): Update.
36925         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36926         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36927         xmalloc.
36928         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36929         not xmalloc.
36930         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36931         xmalloc.
36932         (gl_rbtree_oset_implementation): Update.
36933         * modules/array-oset (Depends-on): Remove xalloc.
36934         * modules/avltree-oset (Depends-on): Likewise.
36935         * modules/rbtree-oset (Depends-on): Likewise.
36936         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36937         * tests/test-avltree_oset.c: Likewise.
36938         * tests/test-rbtree_oset.c: Likewise.
36939         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36940         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36941         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36942         * NEWS: Mention the change.
36943
36944 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36945
36946         maint.mk: allow a project to override release-prep commands
36947         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36948         commands into a new rule.
36949         (release-prep): New rule.
36950         (release-prep-hook): New overridable variable.
36951
36952 2009-12-13  Bruno Haible  <bruno@clisp.org>
36953
36954         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36955
36956 2009-12-13  Jim Meyering  <meyering@redhat.com>
36957
36958         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36959         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36960
36961 2009-12-12  Bruno Haible  <bruno@clisp.org>
36962
36963         duplocale: Tweak.
36964         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36965
36966 2009-12-12  Karl Berry  <karl@gnu.org>
36967
36968         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36969
36970 2009-12-12  Bruno Haible  <bruno@clisp.org>
36971
36972         * m4/po.m4: Undo incorrect untabification.
36973
36974 2009-12-12  Bruno Haible  <bruno@clisp.org>
36975
36976         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36977         * modules/c-strtod (Depends-on): Add locale.
36978         * modules/c-strtold (Depends-on): Likewise.
36979
36980 2009-12-12  Bruno Haible  <bruno@clisp.org>
36981
36982         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36983
36984 2009-12-11  Eric Blake  <ebb9@byu.net>
36985
36986         setenv: relax requirement in light of POSIX ruling
36987         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36988         not NULL.
36989         * tests/test-setenv.c (main): Relax test.
36990         * tests/test-unsetenv.c (main): Likewise.
36991         * doc/posix-functions/setenv.texi (setenv): Document this.
36992         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36993
36994 2009-12-11  Bruno Haible  <bruno@clisp.org>
36995
36996         New module 'fd-safer-flag'.
36997         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36998         * lib/dup-safer.c (dup_safer_flag): Remove function.
36999         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37000         * lib/fd-safer.c (fd_safer_flag): Remove function.
37001         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37002         * modules/cloexec (configure.ac): Drop indicator macro.
37003         * modules/fd-safer-flag: New file.
37004         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37005         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37006         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37007
37008 2009-12-11  Bruno Haible  <bruno@clisp.org>
37009
37010         Tests for module 'nl_langinfo'.
37011         * modules/nl_langinfo-tests: New file.
37012         * tests/test-nl_langinfo.sh: New file.
37013         * tests/test-nl_langinfo.c: New file.
37014
37015         New module 'nl_langinfo'.
37016         * lib/nl_langinfo.c: New file.
37017         * m4/nl_langinfo.m4: New file.
37018         * modules/nl_langinfo: New file.
37019         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37020
37021 2009-12-11  Bruno Haible  <bruno@clisp.org>
37022
37023         Tests for module 'langinfo'.
37024         * modules/langinfo-tests: New file.
37025         * tests/test-langinfo.c: New file.
37026
37027         New module 'langinfo'.
37028         * lib/langinfo.in.h: New file.
37029         * m4/langinfo_h.m4: New file.
37030         * modules/langinfo: New file.
37031         * doc/posix-headers/langinfo.texi: Mention the new module.
37032
37033 2009-12-11  Bruno Haible  <bruno@clisp.org>
37034
37035         * lib/config.charset: Untabify.
37036
37037 2009-12-11  Bruno Haible  <bruno@clisp.org>
37038
37039         * modules/unistd-safer (configure.ac): Drop indicator macro.
37040
37041 2009-12-11  Bruno Haible  <bruno@clisp.org>
37042
37043         Move pipe2-safer code to its own file.
37044         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37045         * lib/pipe-safer.c (pipe2_safer): Remove function.
37046         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37047         (Makefile.am): Add it to lib_SOURCES.
37048
37049 2009-12-10  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37052
37053 2009-12-10  Bruno Haible  <bruno@clisp.org>
37054
37055         Declare which arguments expect non-NULL values, for GCC and clang.
37056         * build-aux/arg-nonnull.h: New file.
37057         * modules/arg-nonnull: New file.
37058         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37059         (inet_ntop, inet_pton): Use it.
37060         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37061         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37062         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37063         (open, openat): Use it.
37064         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37065         (fnmatch): Use it.
37066         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37067         (getopt, getopt_long, getopt_long_only): Use it.
37068         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37069         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37070         Use it.
37071         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37072         (iconv_open): Use it.
37073         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37074         (strtoimax, strtoumax): Use it.
37075         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37076         (duplocale): Use it.
37077         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37078         (frexp, frexpl): Use it.
37079         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37080         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37081         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37082         (tsearch, tfind, tdelete, twalk): Use it.
37083         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37084         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37085         sigpending): Use it.
37086         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37087         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37088         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37089         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37090         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37091         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37092         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37093         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37094         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37095         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37096         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37097         Use it.
37098         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37099         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37100         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37101         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37102         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37103         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37104         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37105         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37106         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37107         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37108         strtoull, unsetenv): Use it.
37109         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37110         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37111         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37112         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37113         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37114         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37115         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37116         (strcasecmp, strncasecmp): Use it.
37117         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37118         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37119         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37120         rpl_setsockopt): Use it.
37121         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37122         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37123         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37124         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37125         (gettimeofday): Use it.
37126         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37127         (times): Use it.
37128         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37129         (uname): Use it.
37130         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37131         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37132         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37133         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37134         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37135         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37136         unlinkat, write): Use it.
37137         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37138         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37139         * lib/argv-iter.h: Include arg-nonnull.h.
37140         (_ATTRIBUTE_NONNULL_): Remove macro.
37141         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37142         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37143         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37144         optimization.
37145         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37146         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37147         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37148         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37149         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37150         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37151         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37152         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37153         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37154         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37155         * modules/dirent (Depends-on): Add arg-nonnull.
37156         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37157         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37158         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37159         * modules/fnmatch (Depends-on): Add arg-nonnull.
37160         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37161         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37162         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37163         * modules/glob (Depends-on): Add arg-nonnull.
37164         (Makefile.am): Insert arg-nonnull.h into glob.h.
37165         * modules/iconv_open (Depends-on): Add arg-nonnull.
37166         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37167         * modules/inttypes (Depends-on): Add arg-nonnull.
37168         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37169         * modules/locale (Depends-on): Add arg-nonnull.
37170         (Makefile.am): Insert arg-nonnull.h into locale.h.
37171         * modules/math (Depends-on): Add arg-nonnull.
37172         (Makefile.am): Insert arg-nonnull.h into math.h.
37173         * modules/netdb (Depends-on): Add arg-nonnull.
37174         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37175         * modules/search (Depends-on): Add arg-nonnull.
37176         (Makefile.am): Insert arg-nonnull.h into search.h.
37177         * modules/signal (Depends-on): Add arg-nonnull.
37178         (Makefile.am): Insert arg-nonnull.h into signal.h.
37179         * modules/spawn (Depends-on): Add arg-nonnull.
37180         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37181         * modules/stdio (Depends-on): Add arg-nonnull.
37182         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37183         * modules/stdlib (Depends-on): Add arg-nonnull.
37184         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37185         * modules/string (Depends-on): Add arg-nonnull.
37186         (Makefile.am): Insert arg-nonnull.h into string.h.
37187         * modules/strings (Depends-on): Add arg-nonnull.
37188         (Makefile.am): Insert arg-nonnull.h into strings.h.
37189         * modules/sys_socket (Depends-on): Add arg-nonnull.
37190         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37191         * modules/sys_stat (Depends-on): Add arg-nonnull.
37192         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37193         * modules/sys_time (Depends-on): Add arg-nonnull.
37194         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37195         * modules/sys_times (Depends-on): Add arg-nonnull.
37196         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37197         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37198         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37199         * modules/time (Depends-on): Add arg-nonnull.
37200         (Makefile.am): Insert arg-nonnull.h into time.h.
37201         * modules/unistd (Depends-on): Add arg-nonnull.
37202         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37203         * modules/wchar (Depends-on): Add arg-nonnull.
37204         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37205         * modules/argv-iter (Depends-on): Add arg-nonnull.
37206         * tests/test-canonicalize.c (null_ptr): New function.
37207         (main): Use it.
37208         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37209         (main): Use it.
37210         * tests/test-memmem.c (null_ptr): New function.
37211         (main): Use it.
37212         Reported by Jim Meyering.
37213
37214 2009-12-10  Bruno Haible  <bruno@clisp.org>
37215
37216         Use spaces for indentation, not tabs.
37217         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37218         * m4/*.m4: Untabify.
37219         * build-aux/*.h: Untabify.
37220         * tests/**/*.[hc]: Untabify.
37221         * README: New section "Indent with spaces, not TABs", based on
37222         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37223         * NEWS: Mention the change.
37224
37225 2009-12-10  Bruno Haible  <bruno@clisp.org>
37226
37227         pty test: Fix link error.
37228         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37229         test_pty_LDADD.
37230
37231 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37232
37233         * modules/pty: New file.
37234         * modules/pty-tests: New file.
37235         * m4/pty.m4: New file.
37236         * tests/test-pty.c: New file.
37237         * doc/glibc-headers/pty.texi: Modified.
37238         * doc/glibc-functions/forkpty.texi: Modified.
37239         * doc/glibc-functions/openpty.texi: Modified.
37240
37241 2009-12-10  Bruno Haible  <bruno@clisp.org>
37242
37243         Avoid syntax error in C++ mode.
37244         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37245
37246 2009-12-10  Bruno Haible  <bruno@clisp.org>
37247
37248         Use sed with option -e.
37249         * gnulib-tool (func_version, func_emit_copyright_notice,
37250         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37251         option -e to sed.
37252         * modules/link-warning (Makefile.am): Likewise.
37253
37254 2009-12-10  Jim Meyering  <meyering@redhat.com>
37255
37256         mgetgroups: do not write bytes beyond end of malloc'd buffer
37257         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37258         username, we call getgroups with a one-element-shorter buffer,
37259         but still told it the length was original, max_n_groups.
37260
37261 2009-12-09  Eric Blake  <ebb9@byu.net>
37262
37263         cloexec: relax license
37264         * modules/cloexec (Maintainer): Add myself.
37265         (License): Use LGPL, not GPL.
37266
37267         link-warning: optimize generation
37268         * modules/link-warning (Makefile.am): Reduce process usage.
37269
37270 2009-12-09  Bruno Haible  <bruno@clisp.org>
37271
37272         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37273         workaround was added on 2009-11-17.
37274
37275 2009-12-09  Jim Meyering  <meyering@redhat.com>
37276             Bruno Haible  <bruno@clisp.org>
37277
37278         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37279         * modules/link-warning (Makefile.am): Make the comment-removing sed
37280         command more robust in the face of bootstrap-prepended comment lines.
37281
37282 2009-12-09  Bruno Haible  <bruno@clisp.org>
37283
37284         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37285         most one group.
37286
37287 2009-12-09  Simon Josefsson <simon@josefsson.org>
37288             Bruno Haible  <bruno@clisp.org>
37289
37290         * build-aux/link-warning.h: Add copyright notice.
37291         * modules/link-warning (Makefile.am): Generate link-warning.h from
37292         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37293         * NEWS: Mention change in link-warning module.
37294         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37295         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37296         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37297         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37298         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37299         * modules/math (Makefile.am): Add dependency to math.h.
37300         * modules/search (Makefile.am): Add dependency to search.h.
37301         * modules/signal (Makefile.am): Add dependency to signal.h.
37302         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37303         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37304         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37305         * modules/string (Makefile.am): Add dependency to string.h.
37306         * modules/strings (Makefile.am): Add dependency to strings.h.
37307         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37308         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37309         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37310         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37311         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37312         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37313         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37314         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37315         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37316
37317 2009-12-09  Bruno Haible  <bruno@clisp.org>
37318
37319         fchdir: Optimize away rpl_fstat when possible.
37320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37321         REPLACE_OPEN_DIRECTORY.
37322         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37323
37324 2009-12-09  Bruno Haible  <bruno@clisp.org>
37325
37326         * lib/fchdir.c: Update comment.
37327
37328 2009-12-09  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37331
37332 2009-12-08  Eric Blake  <ebb9@byu.net>
37333
37334         fchdir: avoid memory leak on re-registration.
37335         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37336
37337 2009-12-08  Jim Meyering  <meyering@redhat.com>
37338
37339         init.sh: avoid Solaris 10 /bin/sh portability problem
37340         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37341         sourced script:
37342           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37343           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37344           bar
37345         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37346         and two tests used that idiom.
37347         * tests/init.sh: Update suggested usage comments.
37348         (path_prepend_): New function, to be used in place
37349         of the --src-path=DIR option.
37350         (setup_): Move PATH-prepending code into path_prepend_.
37351         * tests/test-pread.sh: Adapt to new usage.
37352         * tests/test-xalloc-die.sh: Likewise.
37353
37354 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37355
37356         * doc/gnulib.texi (Glibc pty.h): Add.
37357         * doc/glibc-functions/forkpty.texi: Add.
37358         * doc/glibc-functions/openpty.texi: Add.
37359         Suggested by Bruno Haible.
37360
37361 2009-12-08  Eric Blake  <ebb9@byu.net>
37362
37363         fchdir: fix logic bugs
37364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37365         * tests/test-fchdir.c (main): Enhance test.
37366         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37367         is in use.
37368
37369         dup2: fix logic bugs
37370         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37371         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37372         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37373         exists.
37374         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37375
37376 2009-12-07  Eric Blake  <ebb9@byu.net>
37377
37378         unlink: fix m4 detection
37379         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37380
37381         unistd-safer: add unit test
37382         * modules/unistd-safer-tests: New file.
37383         * tests/test-dup-safer.c: Likewise.
37384         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37385         * tests/test-dup2.c (setmode): Likewise.
37386         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37387
37388         cloexec: preserve text vs. binary across dup_cloexec
37389         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37390         mode.
37391         * modules/dup2-tests (Depends-on): Add binary-io.
37392         * modules/cloexec-tests (Depends-on): Likewise.
37393         * tests/test-dup2.c (setmode, is_mode): New helpers.
37394         (main): Add tests that translation mode is preserved.
37395         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37396         Reported by Bruno Haible.
37397
37398         mgetgroups: reduce duplicate listings
37399         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37400         resulting array.
37401         * tests/test-chown.h (test_chown): Simplify client.
37402         * tests/test-lchown.h (test_lchown): Likewise.
37403
37404 2009-12-06  Bruno Haible  <bruno@clisp.org>
37405
37406         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37407         value.
37408
37409 2009-12-06  Bruno Haible  <bruno@clisp.org>
37410
37411         * lib/progname.c: Include stdio.h, stdlib.h.
37412         (set_program_name): Reject a NULL argument.
37413
37414 2009-12-05  Eric Blake  <ebb9@byu.net>
37415
37416         pipe2-safer: new module
37417         * modules/pipe2-safer: New file.
37418         * lib/unistd-safer.h (pipe2_safer): New prototype.
37419         * lib/unistd--.h (pipe2): New wrapper.
37420         * lib/pipe-safer.c (pipe2_safer): New function.
37421         * modules/pipe (Depends-on): Add pipe2-safer.
37422         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37423
37424         stdlib-safer: preserve cloexec flag for mkostemp[s]
37425         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37426         fd_safer_flag.
37427
37428         unistd-safer: allow preservation of cloexec status via flag
37429         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37430         prototypes.
37431         * lib/dup-safer.c (dup_safer_flag): New function.
37432         * lib/fd-safer.c (fd_safer_flag): Likewise.
37433         * modules/cloexec (configure.ac): Set witness.
37434
37435         test-dup2: enhance test
37436         * modules/dup2-tests (Depends-on): Add cloexec.
37437         * tests/test-dup2.c (main): Enhance test.
37438
37439         cloexec: add dup_cloexec
37440         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37441         header and comments.
37442         * lib/cloexec.c (set_cloexec_flag): Add comments.
37443         (dup_cloexec): New function, with mingw implementation borrowed
37444         from...
37445         * lib/w32spawn.h (dup_noinherit): ...here.
37446         * modules/execute (Depends-on): Add cloexec.
37447         * modules/pipe (Depends-on): Likewise.
37448         * modules/cloexec (Depends-on): Add dup2.
37449         * modules/cloexec-tests (Files): New file.
37450         * tests/test-cloexec.c: Likewise.
37451
37452         test-xalloc-die: fix test for mingw
37453         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37454         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37455         directory and .exe suffix off argv[0] output.
37456
37457         test-fseeko: fix test for mingw
37458         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37459         than undefining fseek, so test will pass on mingw.
37460
37461 2009-12-05  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/progname.h (set_program_name): Clarify specification.
37464         * lib/progname.c (set_program_name): Likewise.
37465         Reported by Jim Meyering.
37466
37467 2009-12-05  Jim Meyering  <meyering@redhat.com>
37468
37469         maint.mk: backslash-escape parens in default regexp
37470         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37471         backslash-escape the literal parentheses.
37472
37473         maint.mk: news-date-check: use grep -E
37474         * top/maint.mk (today): Define a Make variable, not a...
37475         (news-date-check): ...shell variable.
37476         (news-date-regexp): Use the Make variable.
37477         Use grep's -E option.  Change the failing diagnostic to mention
37478         the variable, $(news-date-regexp).
37479
37480 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37481
37482         maintainer-makefile: allow customization of NEWS entry format
37483         * top/maint.mk (news-date-regexp): New overridable variable.
37484         (news-date-check): Use it.
37485
37486 2009-12-04  Eric Blake  <ebb9@byu.net>
37487
37488         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37489         * lib/mgetgroups.h (xgetgroups): New prototype.
37490         * lib/mgetgroups.c (xgetgroups): New wrapper.
37491         (mgetgroups): Handle ENOSYS.
37492         * modules/mgetgroups (Depends-on): Add realloc.
37493         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37494
37495         mgetgroups: avoid argument promotion issues with -1
37496         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37497         for invalid gid_t.
37498         * tests/test-chown.h (getegid, test_chown): Likewise.
37499         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37500
37501 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37502
37503         exclude: Fix header file problems.
37504         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37505
37506 2009-12-01  Jim Meyering  <meyering@redhat.com>
37507
37508         fts: fts_open: do not let an empty string cause immediate failure
37509         This is required in support of GNU rm, for which the command
37510         "rm A '' B" must process and remove both A and B, in spite of
37511         the empty string argument.
37512         * lib/fts.c (fts_open): Do not let the presence of an empty string
37513         cause fts_open to fail immediately.  Most fts-using tools must be
37514         able to process all arguments, in order, and can be expected to
37515         diagnose such arguments themselves.
37516
37517 2009-11-30  Eric Blake  <ebb9@byu.net>
37518
37519         utimens: fix compilation error
37520         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37521         Declare variable at right scope.
37522
37523 2009-11-29  Jim Meyering  <meyering@redhat.com>
37524
37525         bootstrap: handle perl-5.11's changed --version output
37526         * build-aux/bootstrap (get_version): Handle perl separately,
37527         since perl-5.11's --version output is different.
37528
37529 2009-11-28  Jim Meyering  <meyering@redhat.com>
37530
37531         userspec: depend on the inttostr module, too
37532         * modules/userspec (Depends-on): Add inttostr.
37533
37534         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37535         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37536         number of MAXUID when it evaluates to (uid_t) -1.
37537         Likewise for group ID.  Reported by Matt McCutchen in
37538         <http://savannah.gnu.org/bugs/?28113>
37539
37540         userspec: reformat to use spaces, not TABs
37541         * lib/userspec.c: Expand TABs to spaces.
37542         Add Emacs' "indent-tabs-mode: nil" hint.
37543
37544 2009-11-27  Eric Blake  <ebb9@byu.net>
37545
37546         getopt-gnu: flush out another BSD bug
37547         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37548         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37549         flush out BSD bug.
37550         * tests/test-getopt.h (test_getopt): End lists with NULL.
37551         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37552         (test_getopt_long_posix): Enhance test.
37553         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37554         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37555         getopt-gnu.
37556         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37557         Likewise.
37558
37559 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37560
37561         * modules/idpriv-droptemp-tests (Notice): Fix text.
37562
37563 2009-11-27  Jim Meyering  <meyering@redhat.com>
37564
37565         test-xalloc-die: avoid spurious failure due to libtool argv difference
37566         In a libtool-enabled project, this test would fail due to a difference
37567         in the emitted program name, e.g.,
37568         -test-xalloc-die: memory exhausted
37569         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37570         Use program to avoid that.
37571         * modules/xalloc-die-tests (Depends-on): Add progname.
37572         * tests/test-xalloc-die.c: Include progname.h".
37573         (program_name): Remove decl.
37574         (main): Call set_program_name.
37575         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37576
37577 2009-11-26  Richard Jones  <rjones@redhat.com>
37578
37579         w32sock: leave win32 error in place.
37580         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37581
37582 2009-11-26  Eric Blake  <ebb9@byu.net>
37583
37584         init.sh: suggest to use skip_ and fail_ functions in comments
37585         * tests/init.sh: Add a sentence.
37586
37587 2009-11-25  Bruno Haible  <bruno@clisp.org>
37588
37589         init.sh: add documentation in comments
37590         * tests/init.sh: Add some developer and user documentation.
37591
37592 2009-11-26  Jim Meyering  <meyering@redhat.com>
37593
37594         init.sh: accommodate even those who specify bogus srcdir manually
37595         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37596         configure-time tests to be sanitized, so that there is no need to
37597         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37598         (with no double quotes) suffices.  However, since tests may be
37599         invoked manually, and since you may explicitly set srcdir to the
37600         name of a directory containing spaces, do quote its uses here.
37601         * tests/test-pread.sh: Likewise.
37602         Suggested by Bruno Haible.
37603
37604         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37605         * tests/test-pread.sh: Write no data into the pipe, because
37606         test-pread actually reads none.  This avoids a diagnostic,
37607         "bash: echo: write error: Broken pipe", that arises in the unusual
37608         event something is ignoring SIGPIPE, and might be interpreted
37609         as some sort of failure.  Reported by Bruno Haible.
37610
37611 2009-11-25  Jim Meyering  <meyering@redhat.com>
37612
37613         test-pread: cover failure with ESPIPE and EINVAL
37614         * tests/test-pread.c (main): Test for failure, too.
37615         * tests/test-pread.sh: Invoke with stdin on a pipe.
37616         Suggested by Eric Blake.
37617
37618         pread: improvement and fix
37619         * modules/pread (Depends-on): Depend on lseek, for portability to
37620         e.g., mingw.  Suggested by Eric Blake.
37621         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37622
37623         unistd.in.h: correct declaration of pread
37624         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37625         Reported by Richard W.M. Jones.
37626
37627         test-pread.sh: distribute the test script
37628         * modules/pread-tests (Files): Include test-pread.sh.
37629
37630         test-pread.sh: clean up
37631         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37632         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37633         That is unnecessary, since it's always ".".
37634         Suggestion from Eric Blake.
37635
37636         test-pread.sh: make executable
37637         * tests/test-pread.sh: Set executable bit.
37638         Reported by Eric Blake.
37639
37640         correct typo in test-pread.sh
37641         * tests/test-pread.sh: Add #! line.
37642
37643         test pread
37644         * tests/test-pread.c: New file.
37645         * tests/test-pread.sh: Likewise.
37646         * modules/pread-tests: Likewise.
37647
37648         pread: new module
37649         * modules/pread: New file.
37650         * lib/unistd.in.h (pread): Define/declare.
37651         * lib/pread.c (pread): New file.
37652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37653         * modules/unistd (Makefile.am): Substitute witnesses.
37654         * doc/posix-functions/pread.texi (pread): Update.
37655         * MODULES.html.sh: Add pread.
37656
37657 2009-11-25  Jim Meyering  <meyering@redhat.com>
37658
37659         tests/init.sh: new file to be used via most *.sh tests
37660         * tests/init.sh: New file.
37661
37662 2009-11-25  Eric Blake  <ebb9@byu.net>
37663
37664         utimens: work around older Linux failure with symlinks
37665         * lib/utimens.c (lutimensat_works_really): New variable.
37666         (fdutimens, lutimens): Use it to manage kernels that support
37667         nanosecond times on files, but not on symlinks.
37668         Reported by OndÅ™ej Vašík.
37669
37670         utimes: fix configure grammar
37671         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37672
37673 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37674
37675         regex: Fix fastmap for multibyte character ranges.
37676         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37677         characters when a multibyte character range is included.
37678
37679 2009-11-22  Andy Wingo  <wingo@pobox.com>
37680
37681         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37682         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37683
37684 2009-11-24  Bruno Haible  <bruno@clisp.org>
37685
37686         doc: Most *_l functions exist in MacOS X 10.5.
37687         * doc/posix-functions/duplocale.texi: Update platforms list.
37688         * doc/posix-functions/freelocale.texi: Likewise.
37689         * doc/posix-functions/newlocale.texi: Likewise.
37690         * doc/posix-functions/uselocale.texi: Likewise.
37691         * doc/posix-functions/isalnum_l.texi: Likewise.
37692         * doc/posix-functions/isalpha_l.texi: Likewise.
37693         * doc/posix-functions/isblank_l.texi: Likewise.
37694         * doc/posix-functions/iscntrl_l.texi: Likewise.
37695         * doc/posix-functions/isdigit_l.texi: Likewise.
37696         * doc/posix-functions/isgraph_l.texi: Likewise.
37697         * doc/posix-functions/islower_l.texi: Likewise.
37698         * doc/posix-functions/isprint_l.texi: Likewise.
37699         * doc/posix-functions/ispunct_l.texi: Likewise.
37700         * doc/posix-functions/isspace_l.texi: Likewise.
37701         * doc/posix-functions/isupper_l.texi: Likewise.
37702         * doc/posix-functions/iswalnum_l.texi: Likewise.
37703         * doc/posix-functions/iswalpha_l.texi: Likewise.
37704         * doc/posix-functions/iswblank_l.texi: Likewise.
37705         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37706         * doc/posix-functions/iswctype_l.texi: Likewise.
37707         * doc/posix-functions/iswdigit_l.texi: Likewise.
37708         * doc/posix-functions/iswgraph_l.texi: Likewise.
37709         * doc/posix-functions/iswlower_l.texi: Likewise.
37710         * doc/posix-functions/iswprint_l.texi: Likewise.
37711         * doc/posix-functions/iswpunct_l.texi: Likewise.
37712         * doc/posix-functions/iswspace_l.texi: Likewise.
37713         * doc/posix-functions/iswupper_l.texi: Likewise.
37714         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37715         * doc/posix-functions/isxdigit_l.texi: Likewise.
37716         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37717         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37718         * doc/posix-functions/strcoll_l.texi: Likewise.
37719         * doc/posix-functions/strfmon_l.texi: Likewise.
37720         * doc/posix-functions/strftime_l.texi: Likewise.
37721         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37722         * doc/posix-functions/strxfrm_l.texi: Likewise.
37723         * doc/posix-functions/tolower_l.texi: Likewise.
37724         * doc/posix-functions/toupper_l.texi: Likewise.
37725         * doc/posix-functions/towctrans_l.texi: Likewise.
37726         * doc/posix-functions/towlower_l.texi: Likewise.
37727         * doc/posix-functions/towupper_l.texi: Likewise.
37728         * doc/posix-functions/wcscoll_l.texi: Likewise.
37729         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37730         * doc/posix-functions/wctrans_l.texi: Likewise.
37731         * doc/posix-functions/wctype_l.texi: Likewise.
37732         * doc/glibc-functions/strptime_l.texi: Likewise.
37733         * doc/glibc-functions/strtod_l.texi: Likewise.
37734         * doc/glibc-functions/strtof_l.texi: Likewise.
37735         * doc/glibc-functions/strtol_l.texi: Likewise.
37736         * doc/glibc-functions/strtold_l.texi: Likewise.
37737         * doc/glibc-functions/strtoll_l.texi: Likewise.
37738         * doc/glibc-functions/strtoul_l.texi: Likewise.
37739         * doc/glibc-functions/strtoull_l.texi: Likewise.
37740         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37741         * doc/glibc-functions/wcstod_l.texi: Likewise.
37742         * doc/glibc-functions/wcstof_l.texi: Likewise.
37743         * doc/glibc-functions/wcstol_l.texi: Likewise.
37744         * doc/glibc-functions/wcstold_l.texi: Likewise.
37745         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37746         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37747         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37748
37749 2009-11-24  Bruno Haible  <bruno@clisp.org>
37750
37751         duplocale: Fix logic bug.
37752         * lib/duplocale.c: Don't include <langinfo.h>.
37753         (_NL_LOCALE_NAME): Remove macro.
37754         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37755         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37756
37757 2009-11-23  Jim Meyering  <meyering@redhat.com>
37758
37759         test-update-copyright: don't hard-code /usr/bin/perl
37760         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37761         perl to print the current year.  Gilles Espinasse reported that
37762         the replaced use of perl was hard-coded as /usr/bin/perl.
37763
37764 2009-11-23  Bruno Haible  <bruno@clisp.org>
37765
37766         duplocale: Add support for glibc 2.3.x.
37767         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37768
37769 2009-11-22  Bruno Haible  <bruno@clisp.org>
37770
37771         vasnprintf: Tiny optimization.
37772         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37773         MacOS X.
37774
37775 2009-11-22  Bruno Haible  <bruno@clisp.org>
37776
37777         Tests for module 'duplocale'.
37778         * modules/duplocale-tests: New file.
37779         * tests/test-duplocale.c: New file.
37780
37781         New module 'duplocale'.
37782         * m4/duplocale.m4: New file.
37783         * lib/locale.in.h (duplocale): New declaration.
37784         * lib/duplocale.c: New file.
37785         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37786         gl_LOCALE_H_DEFAULTS): New macros.
37787         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37788         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37789         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37790         REPLACE_DUPLOCALE.
37791         * modules/duplocale: New file.
37792         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37793
37794 2009-11-22  Bruno Haible  <bruno@clisp.org>
37795
37796         * modules/locale-tests (configure.ac): Test for newlocale function.
37797         * tests/test-locale.c: When the system has extended locale functions,
37798         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37799
37800         locale: Make locale_t available when possible.
37801         * lib/locale.in.h: Include <xlocale.h> when it exists.
37802         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37803         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37804         * modules/locale (Depends-on): Add extensions.
37805         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37806         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37807
37808 2009-11-22  Bruno Haible  <bruno@clisp.org>
37809
37810         Add comments.
37811         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37812         invocation.
37813         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37814         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37815         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37816
37817 2009-11-22  Bruno Haible  <bruno@clisp.org>
37818
37819         error: account for the possibility of freopen (stdout).
37820         * lib/error.c: Include <unistd.h>.
37821         (flush_stdout): New function, extracted from error and error_at_line.
37822         Determine stdout's fd dynamically.
37823         (error, error_at_line): Invoke flush_stdout.
37824         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37825         * modules/error (Depends-on): Add unistd.
37826
37827 2009-11-22  Bruno Haible  <bruno@clisp.org>
37828
37829         diffseq: Add comment.
37830         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37831
37832 2009-11-22  Jim Meyering  <meyering@redhat.com>
37833
37834         c-stack: avoid defining an unused static function
37835         * lib/c-stack.c (find_stack_direction): Do not define this function
37836         when it will not be used.
37837
37838         diffseq: avoid spurious gcc warnings
37839         * lib/diffseq.h (IF_LINT2): Define.
37840         (compareseq): Use it to initialize two members of "part".
37841         This avoids two used-uninitialized warnings.
37842
37843 2009-11-21  Jim Meyering  <meyering@redhat.com>
37844
37845         c-stack: avoid "ignoring return value of `write'" warning
37846         * lib/c-stack.c: Include "ignore-value.h".
37847         (die): Explicitly ignore each write return value.
37848         * modules/c-stack (Depends-on): Add ignore-value.
37849
37850 2009-11-21  Bruno Haible  <bruno@clisp.org>
37851
37852         diffseq: reduce scope of variable 'best'.
37853         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37854         variable, earlier used for two different purposes.
37855
37856 2009-11-21  Jim Meyering  <meyering@redhat.com>
37857
37858         diffseq: remove useless assignment to "best"
37859         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37860         assignment.  At that point "best" is already guaranteed to be zero.
37861
37862 2009-11-20  Eric Blake  <ebb9@byu.net>
37863
37864         build: mention ftp redirector in release announcements
37865         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37866         values that used to come from cfg.mk; mention FTP redirect URL.
37867         * build-aux/announce-gen: Mention the mirror list.
37868         Suggested by Karl Berry.
37869
37870         nanosleep: improve port to mingw
37871         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37873         LIB_NANOSLEEP, but only when needed.
37874         * modules/select (Link): Document LIBSOCKET.
37875         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37876         enough.
37877
37878         nanosleep: work around cygwin bug
37879         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37880         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37881         bug.
37882         (getnow): Delete, not needed.
37883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37884         LIB_CLOCK_GETTIME.
37885         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37886         clock-time, gettime.
37887         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37888         bug.
37889         * modules/nanosleep-tests: New test.
37890         * tests/test-nanosleep.c: New file.
37891
37892         sleep: work around cygwin bug
37893         * lib/sleep.c (rpl_sleep): Work around the bug.
37894         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37895         (gl_PREREQ_SLEEP): Delete unused macro.
37896         * modules/sleep (Depends-on): Add verify.
37897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37898         * modules/unistd (Makefile.am): Substitute witness.
37899         * lib/unistd.in.h (sleep): Update prototype.
37900         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37901         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37902         * modules/sleep-tests (Depends-on): Check for alarm.
37903
37904 2009-11-20  Jim Meyering  <meyering@redhat.com>
37905
37906         maint.mk: improve sc_prohibit_magic_number_exit
37907         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37908         so it does not match uses like System.exit(1).
37909         Add comments showing how to correct all offenders.
37910
37911 2009-11-19  Eric Blake  <ebb9@byu.net>
37912
37913         xalloc-die-tests: add missing library
37914         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37915
37916         test-xvasprintf: silence compiler warnings
37917         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37918         empty string from gcc.
37919
37920 2009-11-19  Jim Meyering  <meyering@redhat.com>
37921
37922         xfreopen: new module, from coreutils
37923         * modules/xfreopen: New module.
37924         * lib/xfreopen.c: New file.
37925         * lib/xfreopen.h: New file.
37926         * MODULES.html.sh (File stream based Input/Output"): Add it.
37927
37928 2009-11-19  Eric Blake  <ebb9@byu.net>
37929
37930         manywarnings: depend on warnings
37931         * modules/manywarnings (Depends-on): Add warnings.
37932
37933         build: avoid compiler warnings
37934         * lib/select.c (rpl_select): Delete unused variable.
37935         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37936
37937 2009-11-18  Eric Blake  <ebb9@byu.net>
37938
37939         tests: avoid false negative with --with-packager
37940         * tests/test-version-etc.sh: Discard packager information.
37941         * tests/test-argp-version-etc-1.sh: Likewise.
37942         Reported by Mike Frysinger.
37943
37944         utimens: fix regression on Solaris
37945         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37946         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37947         can only change fd timestamps via futimesat.  Instead, use an
37948         additional witness macro to avoid BSD bug.
37949         Reported by Jim Meyering.
37950
37951 2009-11-17  Eric Blake  <ebb9@byu.net>
37952
37953         usleep: use it to simplify tests
37954         * modules/stat-time-tests (Depends-on): Add usleep.
37955         (configure.ac): Drop usleep check.
37956         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37957         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37958         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37959         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37960         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37961         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37962         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37963         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37964         Likewise.
37965         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37966         * tests/test-lchown.h (nap): Likewise.
37967         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37968         * tests/test-stat-time.c (nap): Likewise.
37969         * tests/test-utimens-common.h (nap): Update comments.
37970
37971         usleep: new module
37972         * modules/usleep: New file.
37973         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37974         * lib/usleep.c (usleep): Likewise.
37975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37976         * modules/unistd (Makefile.am): Substitute witnesses.
37977         * lib/unistd.in.h (usleep): Add declaration.
37978         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37979         * MODULES.html.sh (Date and time): Likewise.
37980         * modules/usleep-tests (Depends-on): New test.
37981         * tests/test-usleep.c: New file.
37982
37983         chown: work around OpenBSD bug
37984         * lib/chown.c (rpl_chown): Work around the bug.
37985         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37986         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37988         * modules/chown (Depends-on): Add stdbool.
37989         * modules/lchown (Depends-on): Likewise.
37990         * doc/posix-functions/chown.texi (chown): Document the bug.
37991         * doc/posix-functions/lchown.texi (lchown): Likewise.
37992         * tests/test-lchown.h (test_chown): Relax test.
37993
37994         mkstemp: avoid conflict with C++ keyword template
37995         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37996         * lib/mkostemp.c (mkostemp): Likewise.
37997         * lib/mkostemps.c (mkostemps): Likewise.
37998         * lib/mkstemp.c (mkstemp): Likewise.
37999         * lib/mkstemps.c (mkstemps): Likewise.
38000
38001         xalloc-die-tests: optimize
38002         * tests/test-xalloc-die.sh: Reduce number of processes.
38003
38004 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38005
38006         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38007         patch from ludo@gnu.org (Ludovic Courtès).
38008
38009 2009-11-17  Jim Meyering  <meyering@redhat.com>
38010
38011         version-etc: use proper license string
38012         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38013         * modules/version-etc-fsf: Likewise.
38014
38015 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38016
38017         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38018         printed to stdout.  Deal with EOL differences.
38019
38020 2009-11-17  Eric Blake  <ebb9@byu.net>
38021
38022         unsetenv: work around Solaris bug
38023         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38024         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38025         Reported by Jim Meyering.
38026
38027         vasnprintf: avoid compiler warnings
38028         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38029         variables.
38030         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38031
38032 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38033
38034         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38035         settings since xalloc-die is no longer the self test,
38036         xalloc-die.sh is.
38037
38038 2009-11-17  Jim Meyering  <meyering@redhat.com>
38039
38040         test-xalloc-die.sh: make the code agree with the commit log
38041         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38042         at the end, just in case you happen to have a test-xalloc-die
38043         program in some other PATH directory.
38044
38045         test-xalloc-die.sh: fix a portability bug
38046         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38047         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38048         Otherwise, argv[0] (as often seen in diagnostics) would be too
38049         system-dependent, sometimes with, and sometimes without the leading "./".
38050
38051         version-etc-fsf: relax license to LGPLv3+
38052         * modules/version-etc-fsf (License): Relax license.
38053
38054 2009-11-16  Eric Blake  <ebb9@byu.net>
38055
38056         xalloc-die-tests: avoid printing null pointer
38057         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38058         shell script.
38059         * tests/test-xalloc-die.c (program_name): Declare.
38060         * tests/test-xalloc-die.sh (tmpfiles): New file.
38061
38062         setenv, unsetenv: work around various bugs
38063         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38064         (setenv) [HAVE_SETENV]: Work around bugs.
38065         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38066         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38067         for bugs.
38068         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38069         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38071         * modules/stdlib (Makefile.am): Update substitutions.
38072         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38073         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38074         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38075         * modules/setenv-tests: New test.
38076         * modules/unsetenv-tests: Likewise.
38077         * tests/test-setenv.c: New file.
38078         * tests/test-unsetenv.c: Likewise.
38079
38080 2009-11-16  Jim Meyering  <meyering@redhat.com>
38081
38082         version-etc: relax license to LGPLv3+
38083         * modules/version-etc (License): Relax license.
38084
38085         better AC_REQUIRE expanded-before-required-warning avoidance
38086         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38087         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38088         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38089         which is no longer needed.
38090
38091 2009-11-16  Eric Blake  <ebb9@byu.net>
38092
38093         test-freading: clean up temporary file
38094         * tests/test-freading.c (main): Remove file on success, and use
38095         ASSERT more liberally.
38096         Reported by Jim Meyering.
38097
38098 2009-11-16  Jim Meyering  <meyering@redhat.com>
38099
38100         avoid new AC_REQUIRE expanded-before-required warnings
38101         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38102         merely using it.
38103         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38104         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38105
38106 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38107
38108         * tests/test-xalloc-die.c: New file.
38109         * modules/xalloc-die-tests: New file.
38110         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38111         XFAIL_TESTS so it can be appended by modules.
38112
38113 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38114
38115         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38116         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38117
38118 2009-11-14  Eric Blake  <ebb9@byu.net>
38119
38120         fnmatch: avoid compiler warning
38121         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38122         to silence compiler warning about mismatch signedness in ?:.
38123         Reported by Robert Millan.
38124
38125         intprops: add double-inclusion guard
38126         * lib/intprops.h: Allow idempotent includes.
38127         Suggested by Bruce Korb.
38128
38129         openat: detect Solaris fchownat bug
38130         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38131         penalizing glibc chownat when only lchownat is broken.
38132         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38133         trailing slash bugs.
38134         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38135         * modules/openat-tests (Files): Include more files.
38136         (Depends-on): Add mgetgroups, sleep, stat-time.
38137         (configure.ac): Add additional checks.
38138         (Makefile.am): Build new test.
38139         * tests/test-fchownat.c: New file.
38140
38141         lchown: detect Solaris and FreeBSD bug
38142         * lib/lchown.c (rpl_lchown): Work around bug.
38143         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38145         * modules/unistd (Makefile.am): Populate it.
38146         * lib/unistd.in.h (lchown): Update declaration.
38147         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38148         * modules/lchown-tests: New file.
38149         * tests/test-lchown.h (test_lchown): Likewise.
38150         * tests/test-lchown.c (main): Likewise.
38151
38152         chown: detect Solaris and FreeBSD bug
38153         * lib/chown.c (rpl_chown): Work around bug.
38154         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38155         (gl_PREREQ_CHOWN): Delete.
38156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38157         * modules/unistd (Makefile.am): Populate it.
38158         * lib/unistd.in.h (chown): Update declaration.
38159         * lib/lchown.c (chown): Update client.
38160         * modules/lchown (Depends-on): Add lstat.
38161         * doc/posix-functions/chown.texi (chown): Document the bug.
38162         * doc/posix-functions/getgroups.texi (getgroups): Document
38163         getgroups pitfall.
38164         * modules/chown-tests: New file.
38165         * tests/test-chown.h (test_chown): Likewise.
38166         * tests/test-chown.c (main): Likewise.
38167
38168 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38169
38170         gnulib-tool: correctly detect absence of m4 directories
38171         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38172
38173 2009-11-14  Jim Meyering  <meyering@redhat.com>
38174
38175         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38176         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38177
38178 2009-11-14  John W. Eaton  <jwe@gnu.org>
38179
38180         strftime.h: wrap funtion declaration in extern "C" block
38181         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38182
38183 2009-11-13  Eric Blake  <ebb9@byu.net>
38184
38185         getgroups: avoid compiler warning
38186         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38187
38188         getgroups: work around FreeBSD bug
38189         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38190         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38191         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38192         * tests/test-getgroups.c (main): Fix buffer overrun.
38193
38194         getgroups: avoid compilation failure
38195         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38196         * modules/getgroups (Depends-on): Add stdint.
38197
38198 2009-11-13  Jim Meyering  <meyering@redhat.com>
38199
38200         test-getgroups: avoid compilation failure
38201         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38202
38203 2009-11-13  Eric Blake  <ebb9@byu.net>
38204
38205         mgetgroups: new module, taken from coreutils
38206         * modules/mgetgroups: New file.
38207         * lib/mgetgroups.h: Likewise.
38208         * lib/mgetgroups.c (mgetgroups): Likewise.
38209         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38210         * MODULES.html.sh (Users and groups): Mention it.
38211
38212         getgroups: don't expose GETGROUPS_T to user
38213         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38214         an element at a time if GETGROUPS_T is wrong size.
38215         * lib/getugroups.h (getugroups): Change signature.
38216         * lib/unistd.in.h (getgroups): Likewise.
38217         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38218         signature needs fixing.
38219         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38220         AC_TYPE_GETGROUPS.
38221         * modules/group-member (Depends-on): Add getgroups.
38222         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38223         (group_member): Rely on getgroups replacement.
38224         * lib/getugroups.c (getugroups): Use gid_t.
38225         * tests/test-getgroups.c (main): Likewise.
38226         * NEWS: Mention the signature change.
38227         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38228         problem with signature.
38229         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38230         GETGROUPS_T is still useful for setgroups.
38231
38232         getgroups, getugroups: provide stubs for mingw
38233         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38234         * lib/getugroups.c (getugroups): Likewise.
38235         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38236         function.  Modernize replacement scheme.
38237         (gl_PREREQ_GETGROUPS): Delete.
38238         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38239         * modules/getgroups (configure.ac): Declare witness.
38240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38241         * modules/unistd (Depends-on): Substitute witness.
38242         * lib/unistd.in.h (getgroups): Declare replacement.
38243
38244         getgroups: avoid calling exit
38245         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38246         drop xalloc.
38247         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38248         dependencies.
38249         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38250         exiting, in the rare case of malloc failure.
38251
38252         getgroups: fix logic error
38253         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38254         has more than 20 groups.
38255         * modules/getgroups-tests: New test.
38256         * tests/test-getgroups.c: New file.
38257
38258 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38259
38260         * tests/test-base64.c: Improve.
38261
38262 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38263
38264         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38265         Blake <ebb9@byu.net>.
38266
38267 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38268
38269         * tests/test-xvasprintf.c: Add %s%s related checks.
38270
38271 2009-11-12  Eric Blake  <ebb9@byu.net>
38272
38273         version-etc: match standards.texi style
38274         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38275         and use <> only for URLs.
38276
38277 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38278
38279         fts: do not fail on a submount during traversal
38280         * lib/fts.c (fts_build): Read the stat info again after opening
38281         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38282         Original report at http://bugzilla.redhat.com/501848.
38283
38284 2009-11-12  Jim Meyering  <meyering@redhat.com>
38285
38286         bootstrap: sync from coreutils
38287         * build-aux/bootstrap (bootstrap_epilogue): New function.
38288         Use git_modules_config in one more place.  This make bootstrap's
38289         --gnulib-srcdir option more useful for testing.
38290
38291         bootstrap: generalize autoheader check
38292         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38293         AC_CONFIG_HEADERS.
38294
38295 2009-11-11  Eric Blake  <ebb9@byu.net>
38296
38297         mkfifoat: use new modules for Solaris and BSD bugs
38298         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38299         * lib/mkfifoat.c (mknodat): Split...
38300         * lib/mknodat.c (mknodat): ...into new file.
38301         * modules/mkfifoat (Files): Ship new file.
38302         (Depends-on): Add mkfifo, mknod.
38303         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38304         (Depends-on): Add symlink.
38305         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38306         redundant with test_mkfifo.h.
38307         (do_mkfifoat, do_mknodat): New helpers.
38308
38309         mknod: new module
38310         * modules/mknod: New file.
38311         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38312         * lib/mknod.c (mknod): Likewise.
38313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38314         defaults.
38315         * modules/sys_stat (Makefile.am): Substitute them.
38316         * lib/sys_stat.in.h (mknod): Declare replacement.
38317         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38318         Document it.
38319         * doc/posix-functions/mknod.texi (mknod): Likewise.
38320         * modules/mknod-tests: New test.
38321         * tests/test-mknod.c: Likewise.
38322
38323         mkfifo: new module
38324         * modules/mkfifo: New file.
38325         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38326         * lib/mkfifo.c (mkfifo): Likewise.
38327         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38328         defaults.
38329         * modules/sys_stat (Makefile.am): Substitute them.
38330         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38331         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38332         Document it.
38333         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38334         * modules/mkfifo-tests: New test.
38335         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38336         from test-mkfifoat.c.
38337         * tests/test-mkfifo.c: New file.
38338
38339         readlink: detect FreeBSD bug
38340         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38341         slash on symlink.
38342         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38343         * tests/test-readlink.h (test_readlink): Enhance test.
38344
38345         symlink: detect FreeBSD bug
38346         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38347         slash on symlink.
38348         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38349         * tests/test-symlink.h (test_symlink): Enhance test.
38350
38351 2009-11-10  Eric Blake  <ebb9@byu.net>
38352
38353         link: detect FreeBSD bug
38354         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38355         symlink.
38356         * doc/posix-functions/link.texi (link): Document the bug.
38357         * tests/test-link.h (test_link): Enhance test.
38358         * tests/test-linkat.c (main): Update caller.
38359
38360         unlink, remove: detect FreeBSD bug
38361         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38362         slash on symlink.
38363         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38364         * doc/posix-functions/remove.texi (remove): Likewise.
38365         * tests/test-unlink.h (test_unlink): Enhance test.
38366         * tests/test-remove.c (main): Likewise.
38367
38368 2009-11-09  Eric Blake  <ebb9@byu.net>
38369
38370         rename: detect FreeBSD bug
38371         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38372         slash on symlink.
38373         * modules/renameat-tests (Depends-on): Add filenamecat.
38374         * tests/test-rename.h (test_rename): Allow one more errno.
38375         * tests/test-renameat.c (main): Likewise.
38376         * doc/posix-functions/rename.texi (rename): Document the bug.
38377
38378         open: detect FreeBSD bug
38379         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38380         symlink.
38381         * doc/posix-functions/open.texi (open): Document the bug.
38382         * doc/posix-functions/utimes.texi (utimes): Likewise.
38383         * tests/test-open.h (test_open): Add parameters, and test symlink
38384         handling.
38385         * tests/test-open.c (main): Adjust caller.
38386         * tests/test-fcntl-safer.c (main): Likewise.
38387         * modules/open-tests (Depends-on): Add stdbool, symlink.
38388         * modules/fcntl-safer-tests (Depends-on): Likewise.
38389         * tests/test-openat.c (main): Add test-open tests.
38390
38391         stat: detect FreeBSD bug
38392         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38393         symlink.
38394         * doc/posix-functions/stat.texi (stat): Document the bug.
38395         * tests/test-stat.h (test_stat_func): Add argument.
38396         * tests/test-stat.c (main): Adjust caller.
38397         * tests/test-fstatat.c (main): Likewise.
38398         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38399         Reported by Jim Meyering.
38400
38401 2009-11-09  James Youngman  <jay@gnu.org>
38402
38403         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38404         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38405
38406 2009-11-08  Jim Meyering  <meyering@redhat.com>
38407
38408         utimens: remove invalid futimesat call
38409         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38410         It used the file descriptor of the target file as the DIR_FD
38411         parameter and NULL as the file name.  That caused failure with
38412         errno == EFAULT on FreeBSD-8.0-rc2
38413
38414 2009-11-07  Eric Blake  <ebb9@byu.net>
38415
38416         fflush, freadseek: use fseeko, not fseek
38417         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38418         (clear_ungetc_buffer): Avoid potential problems on large files.
38419         * lib/freadseek.c (freadseek): Likewise.
38420         * modules/freadseek (Depends-on): Add fseeko.
38421         * modules/fseek (configure.ac): Set a witness.
38422         * tests/test-fflush.c (main): Use fseeko.
38423         * tests/test-fpurge.c (fseek): Disable link warning.
38424         * tests/test-freadable.c (fseek): Likewise.
38425         * tests/test-freading.c (fseek): Likewise.
38426         * tests/test-fseeko.c (fseek): Likewise.
38427         * tests/test-ftell.c (fseek): Likewise.
38428         * tests/test-ftello.c (fseek): Likewise.
38429         * tests/test-fwritable.c (fseek): Likewise.
38430         * tests/test-fwriting.c (fseek): Likewise.
38431
38432 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38433
38434         * modules/memchr (Depends-on): Drop getpagesize dependency.
38435
38436 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38437
38438         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38439         Reported by Ludovic Courtès.
38440         * build-aux/pmccabe2html: Improve example usage.
38441         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38442
38443 2009-11-06  Jim Meyering  <meyering@redhat.com>
38444
38445         do-release-commit-and-tag: New module.
38446         Automate the release-commit and tag process.
38447         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38448         * modules/do-release-commit-and-tag: New file.
38449         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38450
38451 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38452
38453         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38454         because test-select.c uses inet_pton.
38455
38456 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38457
38458         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38459         GETADDRINFO_LIB.  Bump serial number.
38460         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38461         Suggested by Eric Blake <ebb9@byu.net>.
38462
38463 2009-11-05  Eric Blake  <ebb9@byu.net>
38464
38465         strtod: detect darwin bug
38466         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38467         Reported by Leo Davis.
38468
38469         freopen-safer: new module
38470         * modules/freopen-safer: New module.
38471         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38472         * lib/freopen-safer.c (freopen_safer): New file.
38473         * lib/stdio-safer.h (freopen_safer): New declaration.
38474         * lib/stdio--.h (freopen): New override.
38475         * MODULES.html.sh (File stream based Input/Output): Mention it.
38476         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38477         freopen-safer module.
38478         * doc/posix-functions/stderr.texi (stderr): Likewise.
38479         * doc/posix-functions/stdin.texi (stdin): Likewise.
38480         * doc/posix-functions/stdout.texi (stdout): Likewise.
38481         * modules/freopen-safer-tests: New test.
38482         * tests/test-reopen-safer.c: New file.
38483
38484 2009-11-05  Jim Meyering  <meyering@redhat.com>
38485
38486         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38487         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38488
38489 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38490
38491         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38492
38493 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38494
38495         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38496
38497 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38498
38499         Fix link error.
38500         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38501         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38502
38503 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38504
38505         * tests/test-func.c: Also test value of __func__.
38506
38507 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38508
38509         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38510         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38511
38512 2009-11-05  Bruno Haible  <bruno@clisp.org>
38513
38514         Fix link error.
38515         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38516         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38517         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38518
38519 2009-11-05  Bruno Haible  <bruno@clisp.org>
38520
38521         Tests for module 'inet_pton'.
38522         * modules/inet_pton-tests: New file.
38523         * tests/test-inet_pton.c: New file.
38524
38525 2009-11-05  Bruno Haible  <bruno@clisp.org>
38526
38527         Tests for module 'inet_ntop'.
38528         * modules/inet_ntop-tests: New file.
38529         * tests/test-inet_ntop.c: New file.
38530
38531 2009-11-04  Eric Blake  <ebb9@byu.net>
38532
38533         stdlib-safer: wrap all mkstemp variants
38534         * modules/mkostemp (configure.ac): Set witness.
38535         * modules/mkostemps (configure.ac): Likewise.
38536         * modules/mkstemps (configure.ac): Likewise.
38537         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38538         (mkstemps_safer): Wrap more functions.
38539         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38540         wrapping.
38541         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38542         (mkstemps_safer): Implement the wrappers.
38543
38544         mkstemps, mkostemps: new modules
38545         * modules/mkostemps: New module.
38546         * modules/mkstemps: Likewise.
38547         * lib/mkostemps.c (mkostemps): New file.
38548         * lib/mkstemps.c (mkstemps): Likewise.
38549         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38550         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38552         * modules/stdlib (Makefile.am): Substitute them.
38553         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38554         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38555         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38556         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38557         * MODULES.html.sh (File system functions): Mention them.
38558
38559         tempname: resync from glibc
38560         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38561         same values for __GT_FILE as glibc.  Abort even when assertions
38562         are disabled.
38563         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38564         match its value otherwise.  Allow idempotent inclusion.
38565         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38566         * lib/mkostemp.c (mkostemp): Likewise.
38567         * lib/mkstemp.c (mkstemp): Likewise.
38568         * lib/tmpfile.c (tmpfile): Likewise.
38569         * NEWS: Document this.
38570
38571         utimens: fix use of futimens on older Linux
38572         * lib/utimens.c (fdutimens): Use updated, rather than original,
38573         timespec to avoid bug in older Linux kernel.
38574         Reported by Simon Josefsson.
38575
38576 2009-11-04  Bruno Haible  <bruno@clisp.org>
38577
38578         Make num_processors more flexible and consistent.
38579         * lib/nproc.h (enum nproc_query): New type.
38580         (num_processors): Add a 'query' argument.
38581         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38582         (num_processors): Add a 'query' argument. Test the value of the
38583         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38584         mingw, count the number of CPUs available for the current process.
38585         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38586         Check for sched_getaffinity and sched_getaffinity_np.
38587         * modules/nproc (Depends-on): Add c-ctype, extensions.
38588         * NEWS: Mention the change.
38589
38590 2009-11-03  Bruno Haible  <bruno@clisp.org>
38591
38592         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38593
38594 2009-11-03  Jim Meyering  <meyering@redhat.com>
38595
38596         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38597         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38598         if it is defined.
38599
38600 2009-11-02  Eric Blake  <ebb9@byu.net>
38601
38602         mktime, timegm: share common declaration
38603         * lib/mktime-internal.h: New file.
38604         * lib/mktime.c: Use it rather than open-coding a declaration.
38605         * lib/timegm.c: Likewise.
38606         * modules/mktime (Files): Ship it.
38607         * modules/timegm (Files): Likewise.
38608         Suggested by Bruno Haible.
38609
38610         test-update-copyright: update test to match script changes
38611         * tests/test-update-copyright.sh: Avoid hard-coding perl
38612         location.  Don't update *.bak created by earlier runs.
38613
38614 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38615             Simon Josefsson  <simon@josefsson.org>
38616             Bruno Haible  <bruno@clisp.org>
38617
38618         Fix link error on Solaris 8.
38619         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38620         also in libnsl. Define also INET_PTON_LIB.
38621         * modules/inet_pton (Link): New section.
38622
38623 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38624             Bruno Haible  <bruno@clisp.org>
38625
38626         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38627         * modules/inet_ntop (Link): New section.
38628         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38629
38630 2009-11-02  Eric Blake  <ebb9@byu.net>
38631
38632         maint: avoid compiler warnings in m4 macros
38633         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38634         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38635
38636 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38637
38638         * m4/pmccabe2html.m4: Remove file.
38639         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38640         function.  Change maintainer.
38641         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38642         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38643         Courtès).
38644
38645 2009-10-31  Eric Blake  <ebb9@byu.net>
38646
38647         fseeko: fix m4 regression
38648         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38649         regression from 2009-10-27.
38650         Reported by Ralf Wildenhues.
38651
38652 2009-10-31  Jim Meyering  <meyering@redhat.com>
38653
38654         inttostr: aesthetics and improved (compile-time) safety
38655         Define inttype_is_signed rather than inttype_is_unsigned,
38656         since the sole use is via "#if inttype_is_signed".
38657         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38658         inttype_is_unsigned.
38659         * lib/offtostr.c (inttype_is_signed): Likewise.
38660         * lib/uinttostr.c (inttype_is_signed): Likewise.
38661         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38662         * lib/inttostr.c (inttostr): Use verify to cross-check the
38663         inttype_is_signed value and the signedness of the actual type.
38664         * modules/inttostr (Depends-on): Add verify.
38665
38666 2009-10-30  Eric Blake  <ebb9@byu.net>
38667
38668         build: avoid compiler warnings
38669         * lib/fchmodat.c (lchmod): Mark unused variables.
38670         * lib/getopt.c (_getopt_initialize): Likewise.
38671         * lib/mktime.c (__mktime_internal): Provide prototype.
38672         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38673         older gcc that do not understand #pragma GCC diagnostic.
38674         * lib/uinttostr.c (inttype_is_unsigned): Define.
38675         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38676
38677 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38678
38679         stat: fix compilation on AIX
38680         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38681         only see struct stat64.
38682
38683 2009-10-30  Eric Blake  <ebb9@byu.net>
38684
38685         exclude: make more robust
38686         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38687         rather than masking a coding bug.
38688         Suggested by Bruno Haible.
38689
38690 2009-10-30  Jim Meyering  <meyering@redhat.com>
38691
38692         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38693         Rather than putting #!/usr/bin/perl on the first line,
38694         start with a variant of what's recommended by "man perlrun" that
38695         invokes the first "perl" program from your shell's search path.
38696         * build-aux/gitlog-to-changelog: Replace #!... as above.
38697         Add a "Local Variables" perl mode setting.
38698         Prompted by a patch from Ludovic Courtès.
38699         Improved by Eric Blake.
38700         * build-aux/useless-if-before-free: Likewise.
38701         * build-aux/announce-gen: Likewise.
38702         * build-aux/update-copyright: Likewise.
38703
38704 2009-10-29  Eric Blake  <ebb9@byu.net>
38705
38706         filenamecat-lgpl: adjust clients
38707         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38708         filenamecat.
38709         * modules/renameat (Depends-on): Likewise.
38710
38711         filenamecat: split into filenamecat-lgpl
38712         * modules/filenamecat-lgpl: New module.
38713         * modules/filenamecat (Files): Move library-safe files into
38714         filenamecat-lgpl.
38715         (Depends-on): Add filenamecat-lgpl.
38716         (configure.ac): Declare witness.
38717         * lib/filenamecat.h (file_name_concat): Only declare when using
38718         GPL module.
38719         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38720         Move...
38721         * lib/filenamecat-lgpl.c: ...into new file.
38722         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38723         (gl_FILE_NAME_CONCAT): Use it.
38724         * MODULES.html.sh (File system functions): Mention new module.
38725
38726         argp: avoid memory leak
38727         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38728         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38729         base_name, since the latter malloc()s and can call exit().
38730         Leak introduced 2006-07-03.
38731
38732         dirname-lgpl: adjust clients that don't need full dirname
38733         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38734         * modules/filenamecat (Depends-on): Likewise.
38735         * modules/linkat (Depends-on): Likewise.
38736         * modules/mkancesdirs (Depends-on): Likewise.
38737         * modules/mkdir (Depends-on): Likewise.
38738         * modules/openat (Depends-on): Likewise.
38739         * modules/savewd (Depends-on): Likewise.
38740         * modules/rename (Depends-on): Likewise.
38741         (License): Relax license.
38742         * modules/mkdir-tests (Depends-on): Drop progname.
38743         (Makefile.am): Delete unneeded LDADD.
38744         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38745
38746         dirname: split into dirname-lgpl
38747         * modules/dirname-lgpl: New module.
38748         * modules/dirname (Files): Move library-safe files into
38749         dirname-lgpl.
38750         (Depends-on): Add dirname-lgpl.
38751         (configure.ac): Declare witness.
38752         * modules/double-slash-root (License): Relax license.
38753         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38754         module.
38755         * lib/dirname.c (dir_len, mdir_name): Move...
38756         * lib/dirname-lgpl.c: ...into new file.
38757         * lib/basename.c (last_component, base_len): Move...
38758         * lib/basename-lgpl.c: ...into new file.
38759         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38760         (gl_DIRNAME): Use it.
38761         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38762         Mention new module.
38763         * modules/dirname-tests (Depends-on): Add progname.
38764         * tests/test-dirname.c (program_name): Delete.
38765
38766         mkdir: make safe for libraries
38767         * modules/mkdir (Depends-on): Drop xalloc.
38768         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38769         exit.
38770
38771         tests: avoid some compiler warnings
38772         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38773         literals.
38774         * tests/test-memchr.c (main): Avoid type mismatch.
38775         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38776         * tests/test-base64.c (main): Likewise.
38777         * tests/test-getdelim.c (main): Likewise.
38778         * tests/test-gethostname.c (main): Likewise.
38779         * tests/test-getline.c (main): Likewise.
38780         * tests/test-netinet_in.c (main): Likewise.
38781         * tests/test-select.c (open_server_socket, main): Likewise.
38782         * tests/test-select-stdin.c (main): Likewise.
38783         * tests/test-sockets.c (main): Likewise.
38784         * tests/test-strsignal.c (main): Likewise.
38785         * tests/test-sys_select.c (main): Likewise.
38786         * tests/test-sys_socket.c (main): Likewise.
38787         * tests/test-u64.c (main): Likewise.
38788         * tests/test-xfprintf-posix.c (main): Likewise.
38789         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38790
38791         sockets: avoid compiler warning
38792         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38793
38794         maint: detect usage(1) and other suspicious exits
38795         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38796
38797 2009-10-29  Jim Meyering  <meyering@redhat.com>
38798
38799         timespec: long-to-int truncation could make timespec_cmp malfunction
38800         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38801         a multiple of 2^32 nanoseconds as no difference.
38802
38803 2009-10-28  Jim Meyering  <meyering@redhat.com>
38804
38805         fprintftime: wrap macro code argument in "do {...} while(0)"
38806         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38807         cpy macro must be a statement that can be followed by a semicolon.
38808         Now that the else clause contains a comment and is hence longer
38809         than one line, I require curly braces.  That in turn requires
38810         that we wrap this code block in the standard do...while(0).
38811
38812         fprintftime: remove stray semicolon from previous change
38813         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38814
38815         fprintftime: avoid a warning about ignored fwrite return value
38816         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38817         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38818         that is unsafe.
38819         * modules/fprintftime (Depends-on): Add ignore-value.
38820
38821         exclude: avoid an unwarranted warning
38822         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38823
38824 2009-10-27  Eric Blake  <ebb9@byu.net>
38825
38826         fseek: avoid compilation failure when fflush is replaced
38827         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38828         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38829         module is in use.
38830         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38831         module is not in use; since REPLACE_FSEEK worked otherwise.
38832         (GNULIB_FTELLO): Likewise for ftell.
38833         Reported by Ian Beckwith and others.
38834
38835 2009-10-27  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38838         Reported by Jim Meyering.
38839
38840 2009-10-27  Jim Meyering  <jim@meyering.net>
38841             Bruno Haible  <bruno@clisp.org>
38842
38843         Avoid warning despite dropping the return value of fwrite.
38844         * lib/unicodeio.c: Include ignore-value.h.
38845         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38846         * modules/unicodeio (Depends-on): Add ignore-value.
38847
38848 2009-10-26  Eric Blake  <ebb9@byu.net>
38849
38850         areadlinkat: fix fallback path
38851         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38852         pointer and zero.
38853
38854 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38855
38856         Use a better IO block size for modern systems
38857         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38858         * lib/md2.c: Likewise.
38859         * lib/md4.c: Likewise.
38860         * lib/md5.c: Likewise.
38861         * lib/sha1.c: Likewise.
38862         * lib/sha256.c: Likewise.
38863         * lib/sha512.c: Likewise.
38864
38865 2009-10-22  Eric Blake  <ebb9@byu.net>
38866
38867         tests: avoid several compiler warnings
38868         * tests/test-getcwd.c (main): Avoid buffer underflow.
38869         * tests/test-getdate.c (main): String literals are not safe with
38870         putenv, so use setenv.  Declare unused argument.
38871         * modules/getdate-tests (Depends-on): Add setenv.
38872         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38873         problems with string literals in char *.
38874         * tests/test-hash.c (main): Avoid shadowing declaration.
38875         (insert_new): Treat string literals as char const *.
38876         * tests/test-getopt.h (test_getopt): Likewise.
38877         (getopt_loop): Alter types to minimize casting elsewhere.
38878         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38879         (test_getopt_long_posix): Likewise.
38880         (do_getopt_long): Add wrapper to minimize casting.
38881         * tests/test-atexit.c (clear_temp_file): Use void.
38882         * tests/test-areadlink-with-size.c (main): Declare unused
38883         arguments.
38884         * tests/test-areadlink.c (main): Likewise.
38885         * tests/test-areadlinkat-with-size.c (main): Likewise.
38886         * tests/test-areadlinkat.c (main): Likewise.
38887         * tests/test-canonicalize-lgpl.c (main): Likewise.
38888         * tests/test-canonicalize.c (main): Likewise.
38889         * tests/test-dirent-safer.c (main): Likewise.
38890         * tests/test-dirname.c (main): Likewise.
38891         * tests/test-dup2.c (main): Likewise.
38892         * tests/test-fchdir.c (main): Likewise.
38893         * tests/test-fcntl-h.c (main): Likewise.
38894         * tests/test-fcntl-safer.c (main): Likewise.
38895         * tests/test-fdopendir.c (main): Likewise.
38896         * tests/test-fdutimensat.c (main): Likewise.
38897         * tests/test-fflush.c (main): Likewise.
38898         * tests/test-filenamecat.c (main): Likewise.
38899         * tests/test-filevercmp.c (main): Likewise.
38900         * tests/test-fopen-safer.c (main): Likewise.
38901         * tests/test-fopen.c (main): Likewise.
38902         * tests/test-fpending.c (main): Likewise.
38903         * tests/test-fpurge.c (main): Likewise.
38904         * tests/test-freading.c (main): Likewise.
38905         * tests/test-fstatat.c (main): Likewise.
38906         * tests/test-fsync.c (main): Likewise.
38907         * tests/test-futimens.c (main): Likewise.
38908         * tests/test-getndelim2.c (main): Likewise.
38909         * tests/test-gettimeofday.c (main): Likewise.
38910         * tests/test-getopt.c (main): Likewise.
38911         * tests/test-i-ring.c (main): Likewise.
38912         * tests/test-inttypes.c (main): Likewise.
38913         * tests/test-link.c (main): Likewise.
38914         * tests/test-lstat.c (main): Likewise.
38915         * tests/test-math.c (main): Likewise.
38916         * tests/test-md5.c (main): Likewise.
38917         * tests/test-memchr2.c (main): Likewise.
38918         * tests/test-memrchr.c (main): Likewise.
38919         * tests/test-mkdir.c (main): Likewise.
38920         * tests/test-mkdirat.c (main): Likewise.
38921         * tests/test-mkfifoat.c (main): Likewise.
38922         * tests/test-open.c (main): Likewise.
38923         * tests/test-openat-safer.c (main): Likewise.
38924         * tests/test-openat.c (main): Likewise.
38925         * tests/test-quotearg.c (main): Likewise.
38926         * tests/test-rawmemchr.c (main): Likewise.
38927         * tests/test-readlink.c (main): Likewise.
38928         * tests/test-remove.c (main): Likewise.
38929         * tests/test-rename.c (main): Likewise.
38930         * tests/test-renameat.c (main): Likewise.
38931         * tests/test-rmdir.c (main): Likewise.
38932         * tests/test-sha1.c (main): Likewise.
38933         * tests/test-signal.c (main): Likewise.
38934         * tests/test-sigaction.c (main): Likewise.
38935         * tests/test-stat.c (main): Likewise.
38936         * tests/test-stat-time.c (main): Likewise.
38937         * tests/test-stddef.c (main): Likewise.
38938         * tests/test-stdint.c (main): Likewise.
38939         * tests/test-stdio.c (main): Likewise.
38940         * tests/test-stdlib.c (main): Likewise.
38941         * tests/test-strchrnul.c (main): Likewise.
38942         * tests/test-strerror.c (main): Likewise.
38943         * tests/test-string.c (main): Likewise.
38944         * tests/test-strtod.c (main): Likewise.
38945         * tests/test-strverscmp.c (main): Likewise.
38946         * tests/test-symlink.c (main): Likewise.
38947         * tests/test-symlinkat.c (main): Likewise.
38948         * tests/test-sys_stat.c (main): Likewise.
38949         * tests/test-sys_time.c (main): Likewise.
38950         * tests/test-time.c (main): Likewise.
38951         * tests/test-unistd.c (main): Likewise.
38952         * tests/test-unlink.c (main): Likewise.
38953         * tests/test-unlinkat.c (main): Likewise.
38954         * tests/test-utimens.c (main): Likewise.
38955         * tests/test-utimensat.c (main): Likewise.
38956         * tests/test-version-etc.c (main): Likewise.
38957         * tests/test-wchar.c (main): Likewise.
38958         * tests/test-wctype.c (main): Likewise.
38959         * tests/test-xprintf-posix.c (main): Likewise.
38960         * tests/test-posixtm.c (main): Likewise.
38961         (STREQ): Delete unused macro.
38962         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38963         shadowed variables.
38964         * tests/test-memchr.c (main): Likewise.
38965
38966 2009-10-21  Eric Blake  <ebb9@byu.net>
38967
38968         areadlinkat: avoid failure on older glibc
38969         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38970         rather than mis-comparing 0 against FUNC_RESULT of char*.
38971
38972 2009-10-21  Bruno Haible  <bruno@clisp.org>
38973
38974         * modules/stpncpy (License): Relicense under LGPLv2+.
38975         Reported by David Lutterkort <lutter@redhat.com>.
38976
38977 2009-10-20  Eric Blake  <ebb9@byu.net>
38978
38979         utimensat: work around Solaris 9 bug
38980         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38981         has trailing slash bugs.
38982         * tests/test-lutimens.h (test_lutimens): Enhance test.
38983         * tests/test-utimens.h (test_utimens): Likewise.
38984         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38985         * doc/posix-functions/utimes.texi (utimes): Likewise.
38986         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38987         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38988         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38989         * doc/posix-functions/futimens.texi (futimens): Likewise.
38990
38991         fdutimensat: new module
38992         * modules/fdutimensat: New file.
38993         * lib/fdutimensat.c (fdutimensat): Likewise.
38994         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38995         * MODULES.html.sh (File system functions): Mention module.
38996         * modules/fdutimensat-tests: New test.
38997         * tests/test-fdutimensat.c: Likewise.
38998
38999         doc: regenerate INSTALL
39000         * doc/INSTALL: Reflect recent autoconf update.
39001         * doc/INSTALL.ISO: Likewise.
39002         * doc/INSTALL.UTF-8: Likewise.
39003
39004 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39005
39006         acl: warn if ACL support is not detected
39007         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39008
39009 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39010
39011         * lib/nproc.h: Add extern "C" block for C++.
39012
39013 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39014             Bruno Haible  <bruno@clisp.org>
39015
39016         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39017         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39018         * doc/posix-functions/isalpha.texi: Likewise.
39019         * doc/posix-functions/isblank.texi: Likewise.
39020         * doc/posix-functions/iscntrl.texi: Likewise.
39021         * doc/posix-functions/isdigit.texi: Likewise.
39022         * doc/posix-functions/isgraph.texi: Likewise.
39023         * doc/posix-functions/islower.texi: Likewise.
39024         * doc/posix-functions/isprint.texi: Likewise.
39025         * doc/posix-functions/ispunct.texi: Likewise.
39026         * doc/posix-functions/isspace.texi: Likewise.
39027         * doc/posix-functions/isupper.texi: Likewise.
39028         * doc/posix-functions/isxdigit.texi: Likewise.
39029
39030 2009-10-18  Bruno Haible  <bruno@clisp.org>
39031
39032         Tests for module 'isblank'.
39033         * modules/isblank-tests: New file.
39034         * tests/test-isblank.c: New file.
39035
39036         New module 'isblank'.
39037         * lib/isblank.c: New file.
39038         * m4/isblank.m4: New file.
39039         * modules/isblank: New file.
39040         * doc/posix-functions/isblank.texi: Mention the new module.
39041
39042 2009-10-18  Bruno Haible  <bruno@clisp.org>
39043
39044         New module 'ctype'.
39045         * lib/ctype.in.h: New file.
39046         * m4/ctype.m4: New file.
39047         * modules/ctype: New file.
39048         * doc/posix-headers/ctype.texi: Mention the new module.
39049
39050 2009-10-18  Jim Meyering  <meyering@redhat.com>
39051
39052         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39053         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39054         right after its initialization, rather than farther down.
39055         Keeping these in close proximity makes it easier to ensure
39056         that each such variable is initialized.  E.g.,
39057
39058             LIB_CLOCK_GETTIME=
39059             AC_SUBST([LIB_CLOCK_GETTIME])
39060
39061         This change also increments these serial numbers.
39062         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39063         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39065
39066 2009-10-18  Bruno Haible  <bruno@clisp.org>
39067
39068         Don't let environment variables perturb build.
39069         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39070         (gl_PREREQ_GETHRXTIME): ... not here.
39071
39072 2009-10-18  Bruno Haible  <bruno@clisp.org>
39073
39074         Avoid symlink attack in localcharset module.
39075         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39076         (O_NOFOLLOW): Define fallback.
39077         (get_charset_aliases): Don't open the file if it is a symbolic link.
39078         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39079         gl_FCNTL_H.
39080         (gl_FCNTL_H): Require it.
39081         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39082         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39083         Reported by Fergal Glynn <fglynn@veracode.com>.
39084
39085 2009-10-18  Bruno Haible  <bruno@clisp.org>
39086
39087         Implement nproc for mingw.
39088         * lib/nproc.c: Include <windows.h>
39089         (num_processors): On native Windows platforms, try GetSystemInfo.
39090
39091 2009-10-18  Bruno Haible  <bruno@clisp.org>
39092
39093         Implement nproc for IRIX.
39094         * lib/nproc.c: Include <sys/sysmp.h>.
39095         (num_processors): On IRIX systems, try sysmp.
39096         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39097
39098 2009-10-18  Bruno Haible  <bruno@clisp.org>
39099
39100         Implement nproc for HP-UX.
39101         * lib/nproc.c: Include <sys/pstat.h>
39102         (num_processors): On HP-UX systems, try pstat_getdynamic.
39103         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39104         pstat_getdynamic.
39105
39106 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39107             Bruno Haible  <bruno@clisp.org>
39108
39109         Implement nproc for NetBSD, OpenBSD.
39110         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39111         (ARRAY_SIZE): New macro.
39112         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39113         * m4/nproc.m4: New file.
39114         * modules/nproc (Files): Add m4/nproc.m4.
39115         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39116         (Makefile.am): Instead, augment lib_SOURCES.
39117
39118 2009-10-18  Bruno Haible  <bruno@clisp.org>
39119
39120         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39121         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39122         sys/param.h.
39123
39124 2009-10-16  Eric Blake  <ebb9@byu.net>
39125
39126         utimensat: new module
39127         * modules/utimensat: New file.
39128         * lib/utimensat.c (utimensat): Likewise.
39129         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39130         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39131         so we can work around Linux bugs.
39132         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39133         * modules/sys_stat (Makefile.am): Substitute them.
39134         * lib/sys_stat.in.h (utimensat): Declare it.
39135         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39136         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39137         * modules/utimensat-tests: New test.
39138         * tests/test-utimensat.c: Likewise.
39139
39140         utimens: let lutimens work on non-symlinks
39141         * lib/utimens.c (lutimens): Fall back to utimens rather than
39142         failing with ENOSYS, when file is not a symlink.
39143         (utimens): Reduce redirection.
39144         * tests/test-lutimens.h (test_lutimens): Update test to cover
39145         non-symlinks.
39146         * tests/test-utimens.h (test_utimens): Update test to cover
39147         symlinks.
39148         * tests/test-utimens.c (main): Update caller.
39149
39150         utimens: cache whether utimensat syscall works
39151         * lib/utimens.c (utimensat_works_really): New cache variable.
39152         (fdutimens, lutimens): Use it to avoid failing syscall.
39153
39154         test-stat-time, test-utimens: improve portability
39155         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39156         ext4 on alpha, and for cygwin.
39157         * tests/test-utimens-common.h: New file.
39158         (nap): Factor delays into single function.
39159         * tests/test-lutimens.h (test_lutimens): Use new header.
39160         * tests/test-futimens.h (test_futimens): Likewise.
39161         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39162         timestamps to occur from same machine, as was done previously for
39163         test_utimens.
39164         * modules/utimens-tests (Files): Ship new file.
39165         * modules/futimens-tests (Files): Likewise.
39166         Reported in part by Jim Meyering.
39167
39168         sys_stat: sort replacement declarations
39169         * lib/sys_stat.in.h: Sort declarations.
39170         * lib/futimens.c (futimens): Fix typo.
39171
39172 2009-10-15  Jim Meyering  <meyering@redhat.com>
39173
39174         don't let environment settings perturb build
39175         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39176         could cause a configure-time and/or build-time malfunction.
39177         Typically, a configure-time function-in-library test is performed
39178         via code like this:
39179
39180           LIB_VAR=
39181           AC_SUBST([LIB_VAR])
39182           prefix_saved_LIBS=$LIBS
39183             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39184                        [test "$ac_cv_search_FUNC" = "none required" ||
39185                         LIB_VAR=$ac_cv_search_FUNC])
39186           LIBS=$prefix_saved_LIBS
39187
39188         However, in each of the files affected by this change, the LIB_VAR=
39189         initialization was omitted.  Thus, when set in the environment, its
39190         value would propagate into generated Makefiles when FUNC is not found
39191         in LIB_NAME.
39192         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39193         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39195
39196 2009-10-14  Eric Blake  <ebb9@byu.net>
39197
39198         fchdir: avoid infinite recursion in mingw
39199         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39200         recursing.
39201
39202         test-stat-time: port to mingw
39203         * tests/test-stat-time.c (force_unlink): Return a value.
39204         (test_ctime) [W32]: Fix compilation error.
39205         (nap): Don't call usleep with too large an argument.  Use
39206         force_unlink.
39207         * doc/pastposix-functions/usleep.texi (usleep): Document the
39208         portability issue.
39209
39210 2009-10-13  Jim Meyering  <meyering@redhat.com>
39211
39212         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39213         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39214         * modules/pipe-filter-ii: Likewise.
39215         * modules/sys_socket-tests: Likewise.
39216         * modules/tsearch-tests: Likewise.
39217         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39218         (check): Depend on it.
39219
39220 2009-10-12  Eric Blake  <ebb9@byu.net>
39221
39222         utimens-tests: port to NFS file systems
39223         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39224         comparisons to avoid spurious failures from timestamp drift
39225         between NFS machines.
39226
39227 2009-10-12  Eric Blake  <ebb9@byu.net>
39228
39229         stat-time-tests: minor cleanups
39230         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39231         * tests/test-stat-time.c (nap): Separate assignment from call.
39232         Suggested by Paolo Bonzini and Bruno Haible.
39233
39234         sys_stat: guarantee struct timespec
39235         * lib/sys_stat.in.h (includes): Always include <time.h>
39236         * modules/sys_stat (Depends-on): Add time.
39237         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39238         mode_t permission values.
39239         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39240         get at subsecond timestamps.
39241
39242 2009-10-10  Eric Blake  <ebb9@byu.net>
39243
39244         futimens: new module
39245         * modules/futimens: New file.
39246         * lib/futimens.c (futimens): Likewise.
39247         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39248         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39249         we can work around Linux bugs.
39250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39251         * modules/sys_stat (Makefile.am): Substitute them.
39252         * lib/sys_stat.in.h (futimens): Declare it.
39253         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39254         * doc/posix-functions/futimens.texi (futimens): Likewise.
39255         * modules/futimens-tests: New test.
39256         * tests/test-futimens.c: Likewise.
39257
39258         utimens: introduce fdutimens
39259         * lib/utimens.h (fdutimens): New prototype.
39260         * lib/utimens.c (gl_futimens): Move guts...
39261         (fdutimens): ...to new interface.
39262         * tests/test-utimens.c (do_fdutimens): Use it.
39263
39264         utimens: add UTIME_NOW and UTIME_OMIT support
39265         * lib/utimens.c (validate_timespec, update_timespec): New helper
39266         functions.
39267         (gl_futimens, lutimens): Use them.
39268         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39269         stdbool, sys_stat.
39270         (Link): Mention resulting library dependency.
39271         * modules/utimecmp (Link): Likewise.
39272         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39273         (Makefile.am): Pick up library dependency.
39274         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39275         definition.
39276         * tests/test-sys_stat.c: Test the definitions.
39277         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39278         * NEWS: Document library dependency.
39279
39280         utimecmp: support symlink timestamps
39281         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39282         hashing when possible.  Use pathconf when available.
39283         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39284         * modules/utimecmp (Depends-on): Add lstat.
39285
39286         utimens: add lutimens interface
39287         * lib/utimens.c (lutimens): New function.
39288         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39289         * lib/utimens.h (lutimens): Declare new interface.
39290         * tests/test-utimens.c (main): Enhance test.
39291         * tests/test-lutimens.h (test_lutimens): New file.
39292         * modules/utimens-tests (Files): Distribute it.
39293         (Depends-on): Add symlink.
39294         (configure.ac): Check for usleep.
39295
39296         utimens: validate futimens usage
39297         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39298         fewer syscalls on failure later on.  Avoid compiler warning on
39299         mingw.
39300         * modules/utimens (Depends-on): Add dup2.
39301
39302         utimens: add test
39303         * modules/utimens-tests: New test.
39304         * tests/test-utimens.h: New file.
39305         * tests/test-futimens.h: Likewise.
39306         * tests/test-utimens.c: Likewise.
39307
39308         doc: mention timestamp portability issues
39309         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39310         instead.
39311         * doc/posix-functions/utime.texi (utime): Likewise.
39312         * doc/posix-functions/utimes.texi (utimes): Likewise.
39313         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39314         instead.
39315         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39316         module.
39317         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39318         Mention weakness with symlink timestamps.
39319         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39320         to utimensat/futimens instead.
39321         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39322
39323         test-dup2: enhance test
39324         * tests/test-dup2.c (main): Also check AT_FDCWD.
39325
39326         test-stat-time: avoid more spurious failures
39327         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39328         xfs; and avoid race if the two timestamps cross quantization edge.
39329
39330         relocatable: prefer 'file system' over 'filesystem'
39331         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39332         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39333         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39334         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39335         * lib/relocatable.c (compute_curr_prefix): Likewise.
39336
39337 2009-10-10  Jim Meyering  <meyering@redhat.com>
39338
39339         stat-time-tests: check for the usleep function
39340         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39341
39342 2009-10-10  Bruno Haible  <bruno@clisp.org>
39343
39344         * modules/xnanosleep: Put the Link section after the Include section.
39345
39346 2009-10-09  Eric Blake  <ebb9@byu.net>
39347
39348         dup2: work around FreeBSD 6.1 bug
39349         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39350         * doc/posix-functions/dup2.texi (dup2): Document it.
39351         Reported by Nelson H. F. Beebe and Jim Meyering.
39352
39353         test-stat-time: port to buggy NFS clients
39354         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39355         (test_ctime): Also skip test if mtime and ctime are skewed.
39356
39357         maint: prefer 'file system' over 'filesystem'
39358         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39359         * doc/posix-functions/lstat.texi (lstat): Likewise.
39360         * lib/file-has-acl.c (file_has_acl): Likewise.
39361         * lib/fwriteerror.c [TEST]: Likewise.
39362         * tests/test-areadlink.h (test_areadlink): Likewise.
39363         * tests/test-areadlinkat-with-size.c (main): Likewise.
39364         * tests/test-areadlinkat.c (main): Likewise.
39365         * tests/test-canonicalize-lgpl.c (main): Likewise.
39366         * tests/test-canonicalize.c (main): Likewise.
39367         * tests/test-fstatat.c (main): Likewise.
39368         * tests/test-linkat.c (main): Likewise.
39369         * tests/test-lstat.h (test_lstat_func): Likewise.
39370         * tests/test-mkdir.h (test_mkdir): Likewise.
39371         * tests/test-readlink.h (test_readlink): Likewise.
39372         * tests/test-remove.c (main): Likewise.
39373         * tests/test-rename.h (test_rename): Likewise.
39374         * tests/test-renameat.c (main): Likewise.
39375         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39376         * tests/test-symlink.h (test_symlink): Likewise.
39377         * tests/test-symlinkat.c (main): Likewise.
39378         * tests/test-unlink.h (test_unlink_func): Likewise.
39379         * tests/test-unlinkat.c (main): Likewise.
39380
39381         maint: make realtime library usage explicit
39382         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39383         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39384         * modules/settime (Link): Likewise.
39385         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39386
39387         test-stat-time: speed up execution
39388         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39389         warning on mingw.
39390         (nap): New helper function.
39391         (prepare_test): Use it to reduce sleep time.
39392         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39393         execution.
39394         * modules/stat-time-tests (configure.ac): Check for usleep.
39395
39396 2009-10-09  Jim Meyering  <meyering@redhat.com>
39397
39398         selinux-h: always use getfilecon wrappers
39399         * lib/getfilecon.c: New file.
39400         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39401         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39402         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39403         (fgetfilecon): Provide a stub.
39404         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39405         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39406         file unconditionally.
39407         When <selinux/selinux.h> is found, arrange to use wrappers.
39408         * modules/selinux-h (Files): Add getfilecon.c.
39409         (Makefile.am): Substitute include-next-related bits
39410         into the now-always-generated selinux/selinux.h file.
39411         * doc/glibc-functions/lgetfilecon.texi: New file.
39412         * doc/glibc-functions/fgetfilecon.texi: New file.
39413         * doc/glibc-functions/getfilecon.texi: New file.
39414         * doc/glibc-functions/getfilecon-desc.texi: New file.
39415         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39416         which to pull in the new files.
39417         * MODULES.html.sh (Misc): Add selinux-h.
39418
39419 2009-10-08  Jim Meyering  <meyering@redhat.com>
39420
39421         unistd: fix comment typo
39422         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39423
39424 2009-10-08  Eric Blake  <ebb9@byu.net>
39425
39426         areadlink: use SIZE_MAX consistently
39427         * modules/areadlink (Depends-on): Add stdint.
39428         * modules/areadlink-with-size (Depends-on): Likewise.
39429         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39430         gives NULL; drop sys/types, since unistd gives size_t; and add
39431         stdint for SIZE_MAX.
39432         (SIZE_MAX): Rely on headers.
39433         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39434         and add stdint.
39435         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39436         (SIZE_MAX): Likewise.
39437         (INITIAL_BUF_SIZE): Turn into enum.
39438         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39439
39440 2009-10-08  Jim Meyering  <meyering@redhat.com>
39441
39442         areadlinkat: avoid compilation failure
39443         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39444         Fix typo in comment.
39445
39446 2009-10-07  Eric Blake  <ebb9@byu.net>
39447
39448         areadlinkat-with-size: new module
39449         * modules/areadlinkat-with-size: New module.
39450         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39451         * lib/areadlink.h (areadlinkat): Declare it.
39452         * MODULES.html.sh (File system functions): Mention it.
39453         * modules/areadlinkat-with-size-tests: New test.
39454         * tests/test-areadlinkat-with-size.c: New file.
39455
39456         xreadlinkat: new module
39457         * modules/xreadlinkat: New module.
39458         * lib/xreadlinkat.c (xreadlinkat): New file.
39459         * lib/xreadlink.h (xreadlinkat): Declare it.
39460         * MODULES.html.sh (File system functions): Mention it.
39461
39462         areadlinkat: new module
39463         * lib/at-func.c (FUNC_FAIL): New define.
39464         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39465         * modules/areadlinkat: New module.
39466         * lib/linkat.c (areadlinkat): Move...
39467         * lib/areadlinkat.c (areadlinkat): ...to new file.
39468         * lib/areadlink.h (areadlinkat): Declare it.
39469         * modules/linkat (Depends-on): Add areadlinkat.
39470         * MODULES.html.sh (File system functions): Mention it.
39471         * modules/areadlinkat-tests: New test.
39472         * tests/test-areadlinkat.c: New file.
39473
39474         areadlink, areadlink-with-size: add tests
39475         * modules/areadlink-tests: New test.
39476         * modules/areadlink-with-size-tests: Likewise.
39477         * tests/test-areadlink.h: New file.
39478         * tests/test-areadlink.c: Likewise.
39479         * tests/test-areadlink-with-size.c: Likewise.
39480
39481         maint: minor cleanups
39482         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39483         _UNUSED_PARAMETER_ instead.
39484         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39485         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39486         * modules/linkat-tests (Files): Distribute test-link.h.
39487
39488         openat, utimens: whitespace cleanup
39489         * lib/openat.c: Prefer space throughout, rather than mix of 8
39490         spaces vs. tabs.
39491         * lib/at-func.c: Likewise.
39492         * lib/utimens.c: Likewise.
39493
39494         openat: avoid using wrong fd
39495         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39496         working directory chooses same fd.
39497         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39498
39499         mkdir, mkdirat: fix cygwin 1.5.x bug
39500         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39501         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39502         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39503         bug.
39504         (gl_PREREQ_MKDIR): Delete unused macro.
39505         * modules/mkdir (Files): Track file rename.
39506         (configure.ac): Update macro name.
39507         * modules/openat (Depends-on): Add mkdir.
39508         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39509
39510         mkdir, mkdirat: add tests
39511         * modules/mkdir-tests: New test.
39512         * tests/test-mkdir.h: New file.
39513         * tests/test-mkdir.c: Likewise.
39514         * tests/test-mkdirat.c: Likewise.
39515         * modules/openat-tests (Files): Add new files.
39516         (Makefile.am): Run new test.
39517
39518 2009-10-06  Eric Blake  <ebb9@byu.net>
39519
39520         doc: tweak *at function documentation
39521         * doc/posix-functions/faccessat.texi (faccessat): Mention
39522         known issue with replacement.
39523         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39524         * doc/posix-functions/linkat.texi (linkat): Likewise.
39525         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39526         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39527         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39528         * doc/posix-functions/renameat.texi (renameat): Likewise.
39529         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39530
39531         openat: fix GNU/Hurd bug in unlinkat
39532         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39533         broken.
39534         * doc/posix-functions/unlink.texi (unlink): Document this.
39535         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39536
39537         fdopendir: fix GNU/Hurd bug
39538         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39539         allowing non-directory fds.
39540         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39541         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39542         * modules/dirent (Makefile.am): Substitute it.
39543         * lib/dirent.in.h (fdopendir): Declare replacement.
39544         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39545         * tests/test-fdopendir.c (main): Test something other than
39546         /dev/null, since on Hurd that behaves like a directory.
39547
39548         test-symlink: port to GNU/Hurd
39549         * tests/test-symlink.h (test_symlink): Relax expected errno.
39550
39551         doc: tweak more cygwin information
39552         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39553         now compatible with glibc.
39554         * doc/posix-functions/getopt.texi (getopt): Likewise.
39555
39556         getopt-gnu: add another test
39557         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39558         guarantee behavior relied on by m4.
39559         * tests/test-getopt.c (main): Use it.
39560         * modules/getopt-posix-tests (Depends-on): Add setenv.
39561         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39562
39563         getopt: fix compilation on darwin
39564         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39565         include.
39566         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39567         Reported by Ludovic Courtès.
39568
39569 2009-10-06  Bruno Haible  <bruno@clisp.org>
39570
39571         * modules/size_max (Description): Discourage its use.
39572         Reported by Simon Josefsson.
39573
39574 2009-10-06  Jim Meyering  <meyering@redhat.com>
39575
39576         linkat: avoid compilation failure
39577         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39578
39579 2009-10-05  Eric Blake  <ebb9@byu.net>
39580
39581         linkat: support Linux 2.6.17
39582         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39583         linkat on Linux, but allow cache variable override.
39584         * lib/linkat.c (rpl_linkat): Define override.
39585         * modules/linkat (Depends-on): Add symlinkat.
39586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39587         * modules/unistd (Makefile.am): Substitute it.
39588         * lib/unistd.in.h (linkat): Declare replacement.
39589         Reported by Pádraig Brady.
39590
39591         quotearg: port test to systems with C.UTF-8 locale
39592         * tests/test-quotearg.c (struct result_strings): Add another
39593         member, differentiating between C.ASCII and C.UTF-8 handling.
39594         (compare_strings): Add parameter.
39595         (main): Adjust all callers.
39596
39597         getopt: avoid clash with FreeBSD _getopt_internal
39598         * lib/getopt.in.h (_getopt_internal): Override the name.
39599         * lib/getopt_int.h (includes): Pick up any overrides.
39600         Reported by Reuben Thomas.
39601
39602         hash: allow C89 compilation
39603         * lib/hash.c (check_tuning): Move declaration before statement.
39604         Reported by Reuben Thomas.
39605
39606 2009-10-05  Karl Berry  <karl@gnu.org>
39607
39608         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39609
39610 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39611             Bruno Haible  <bruno@clisp.org>
39612
39613         * lib/uname.c (uname): Use a table-driven algorithm to compute
39614         Windows NT versions.
39615
39616 2009-10-04  Bruno Haible  <bruno@clisp.org>
39617
39618         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39619         program_invocation_short_name.
39620         * modules/progname (configure.ac): Test for presence of
39621         program_invocation_short_name.
39622         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39623
39624 2009-10-04  Bruno Haible  <bruno@clisp.org>
39625
39626         * lib/progname.c (set_program_name): Fix comment.
39627         Reported by Jim Meyering.
39628
39629 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39630             Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/uname.c: Include <string.h>.
39633         (uname): Do only one call to GetVersionEx in the common case.
39634
39635 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39636             Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39639         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39640         (uname): Add support for Windows CE and various non-x86 CPU types.
39641
39642 2009-10-03  Bruno Haible  <bruno@clisp.org>
39643
39644         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39645         invocation to tests/configure.ac.
39646         Reported by Ian Beckwith <ianb@erislabs.net>.
39647
39648 2009-10-02  Eric Blake  <ebb9@byu.net>
39649
39650         fchdir: avoid compiler warning
39651         * lib/fchdir.c (canonicalize_file_name)
39652         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39653
39654         test-open: support mingw errno values
39655         * tests/test-open.h (test_open): Relax test.
39656         * tests/test-fopen.h (test_fopen): Likewise.
39657         * tests/test-openat-safer.c (main): Likewise.
39658
39659         open: fix opening directory on mingw
39660         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39661
39662         test-open: on GNU/Hurd, /dev/null is a directory
39663         * tests/test-fopen.h (main): Rename...
39664         (test_fopen): ...to this.  Use a guaranteed non-directory when
39665         confirming open behavior on trailing slash.
39666         * tests/test-openat-safer.c (main): Likewise.
39667         * tests/test-open.h (main): Likewise....
39668         (test_open): ...to this.
39669         * tests/test-fopen.c (main): Adjust caller.
39670         * tests/test-fopen-safer.c (main): Likewise.
39671         * tests/test-open.c (main): Likewise.
39672         * tests/test-fcntl-safer.c (main): Likewise.
39673         Reported by Samuel Thibault.
39674
39675         rename, fchdir: don't ignore chdir failure
39676         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39677         * lib/rename.c (rpl_rename) [W32]: Likewise.
39678         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39679         an empty destination directory if source cannot be renamed,
39680         although there is still possibility for failure.
39681         * doc/posix-functions/rename.texi (rename): Document the race.
39682         Reported by Jim Meyering.
39683
39684         maint: cleanup whitespace in recent commits
39685         * lib/rename.c (rpl_rename): Remove tabs.
39686         * tests/test-link.h (test_link): Likewise.
39687         * lib/fchdir.c (get_name): Likewise.
39688         Reported by Jim Meyering.
39689
39690 2009-10-02  Ben Pfaff  <blp@gnu.org>
39691
39692         relocatable-prog-wrapper: Add missing dependency on
39693         double-slash-root.
39694         * modules/relocatable-prog-wrapper: Add dependency.
39695         Reported by Ian Beckwith <ianb@erislabs.net>.
39696
39697 2009-10-02  Eric Blake  <ebb9@byu.net>
39698
39699         renameat: fix Solaris bugs
39700         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39701         needed fixing.
39702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39703         * modules/stdio (Makefile.am): Substitute it.
39704         * lib/stdio.in.h (renameat): Declare replacement.
39705         * lib/renameat.c (rpl_renameat): Implement fix.
39706
39707         renameat: new module
39708         * modules/renameat: New file.
39709         * lib/renameat.c (renameat): Likewise.
39710         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39711         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39712         * modules/stdio (Makefile.am): Substitute them.
39713         * lib/stdio.in.h (renameat): Declare it.
39714         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39715         * doc/posix-functions/renameat.texi (renameat): Likewise.
39716         * modules/renameat-tests: New test.
39717         * tests/test-renameat.c: Likewise.
39718
39719         rename: fix mingw bugs
39720         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39721         directory overwrite bugs.
39722
39723         rename: fix another cygwin 1.5 bug
39724         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39725         checks.
39726         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39727         unnecessary cygwin workarounds.  Also work around bug with moving
39728         full directory onto an empty one.
39729         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39730
39731         rename-dest-slash: merge into rename module
39732         * modules/rename-dest-slash (Status): Mark obsolete.
39733         (Depends-on): Add rename.
39734         (Files): Let rename do it all.
39735         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39736         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39737         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39738         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39739         * lib/rename.c (rpl_rename): Update comments.
39740
39741         rename: fix cygwin 1.5.x bugs
39742         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39743         * lib/rename.c (rpl_rename): Work around them.
39744         * modules/rename (Depends-on): Add same-inode.
39745
39746         rename: fix Solaris 10 bug
39747         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39748         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39749         was the only bug.
39750
39751         rename: fix Solaris 9 bug
39752         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39753         on non-directory.  Avoid calling exit.
39754         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39755         strdup.
39756         * modules/rename-tests (Depends-on): Drop lstat.
39757         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39758         (gl_PREREQ_RENAME): Delete unused macro.
39759
39760         rename-dest-slash: fix NetBSD bug
39761         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39762         links.
39763         * modules/rename-dest-slash (Depends-on): Add same-inode.
39764
39765         rename-tests: new test, exposes several platform bugs
39766         * modules/rename-tests: New file.
39767         * tests/test-rename.h: Likewise.
39768         * tests/test-rename.c: Likewise.
39769         * doc/posix-functions/rename.texi (rename): Improve documentation,
39770         including bugs that will eventually be fixed in gnulib.
39771
39772 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39773
39774         * lib/uname.c: Include <stdlib.h>
39775         (uname): Assume version info is available.
39776
39777 2009-10-02  Jim Meyering  <meyering@redhat.com>
39778
39779         gnu-web-doc-update: correct --help output
39780         * build-aux/gnu-web-doc-update: Make --help output relevant.
39781
39782         gnu-web-doc-update: add standard options
39783         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39784
39785         gnu-web-doc-update: New module.
39786         Use this script to automatically update the on-line web documentation
39787         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39788         * modules/gnu-web-doc-update: New file, from coreutils.
39789         * build-aux/gnu-web-doc-update: New script.
39790
39791 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39792
39793         link: LoadLibrary is not needed.
39794         * lib/link.c: Use GetModuleHandle.
39795
39796 2009-10-01  Eric Blake  <ebb9@byu.net>
39797
39798         getopt: bump serial number
39799         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39800         change.
39801
39802         tests: tighten link, rmdir, and remove tests
39803         * tests/test-link.h (includes): No need to use <config.h> here.
39804         Clean up if directory hard link was created, otherwise test for
39805         trailing '.'.
39806         * tests/test-linkat.c (main): Simplify.
39807         * tests/test-remove.c (main): Enhance test for trailing '.'.
39808         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39809
39810 2009-10-01  Jim Meyering  <meyering@redhat.com>
39811
39812         maint.mk: requiring "make major" was annoying, for a "minor" release.
39813         What is intended is "stable", to contrast with alpha and beta,
39814         so require "make stable", not "make major".
39815         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39816         (get_tool_versions): Likewise.
39817         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39818
39819 2009-09-30  Ben Pfaff  <blp@gnu.org>
39820
39821         Fix broken build of replacement for Windows tmpfile().
39822         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39823         flags argument added along with the 'mkostemp' module.
39824
39825 2009-09-28  Bruno Haible  <bruno@clisp.org>
39826
39827         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39828         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39829         to 'remove_elt'.
39830         (gl_list_remove): Update.
39831         * lib/gl_list.c (gl_list_remove): Update.
39832         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39833         to 'remove_elt'.
39834         (gl_oset_remove): Update.
39835         * lib/gl_list.c (gl_oset_remove): Update.
39836         Reported by Eric Blake.
39837
39838 2009-09-28  Eric Blake  <ebb9@byu.net>
39839
39840         doc: mention yet more cygwin 1.7 status
39841         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39842         cygwin.
39843         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39844         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39845
39846         argp: fix test failure
39847         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39848         that are not upper-case.  Pass correct range to tolower.
39849
39850 2009-09-27  Jim Meyering  <meyering@redhat.com>
39851
39852         test-yesno: work around sparc-dash here-document infelicity
39853         Without this change, the literal \177 byte in a here document
39854         would make dash 0.5.5.1-3 access uninitialized memory.
39855         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39856         Instead, use a marker, "@", and filter through tr to create the desired
39857         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39858
39859 2009-09-27  Bruno Haible  <bruno@clisp.org>
39860
39861         Disable untested support for new flavours of ACLs on AIX.
39862         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39863         progress.
39864         * lib/set-mode-acl.c (qset_acl): Likewise.
39865
39866 2008-12-07  Bruno Haible  <bruno@clisp.org>
39867
39868         Add support for new flavours of ACLs on AIX. (Untested.)
39869         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39870         (file_has_acl): Add support for newer AIX.
39871         * lib/set-mode-acl.c (qset_acl): Likewise.
39872         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39873         Rainer Tammer <tammer@tammer.net>.
39874
39875 2009-09-26  Eric Blake  <ebb9@byu.net>
39876
39877         argp: fix compilation of getopt
39878         * lib/getopt.in.h (includes): Use different guard than glibc.
39879         Reported by Sergey Poznyakoff.
39880
39881         doc: mention more cygwin 1.7 status
39882         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39883         bug.
39884         * doc/posix-functions/execl.texi (execl): Likewise.
39885         * doc/posix-functions/execle.texi (execle): Likewise.
39886         * doc/posix-functions/execlp.texi (execlp): Likewise.
39887         * doc/posix-functions/execv.texi (execv): Likewise.
39888         * doc/posix-functions/execve.texi (execve): Likewise.
39889         * doc/posix-functions/execvp.texi (execvp): Likewise.
39890         * doc/glibc-functions/canonicalize_file_name.texi
39891         (canonicalize_file_name): Cygwin 1.7 now provides this.
39892         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39893         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39894         on AT_SYMLINK_NOFOLLOW.
39895
39896 2009-09-24  Eric Blake  <ebb9@byu.net>
39897
39898         test-linkat: make test more robust
39899         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39900
39901         getopt: fix inclusion guards for cygwin
39902         * modules/getopt-posix (Depends-on): Add include-next.
39903         (Makefile.am): Substitute more items in replacement header.
39904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39905         <getopt.h>.
39906         * lib/getopt.in.h (includes): Use split inclusion guard, and
39907         prefer <getopt.h> over include <unistd.h> when one is present.
39908         (option): Also override name of 'struct option'.
39909
39910         same-inode: revert prior change; it is not yet ready
39911         * NEWS: Undo mention of this change.
39912         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39913         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39914         * lib/cycle-check.c (cycle_check): Likewise.
39915         * lib/same.c (same_name): Likewise.
39916         * lib/at-func2.c (at_func2): Likewise.
39917
39918 2009-09-23  Eric Blake  <ebb9@byu.net>
39919
39920         linkat: new module
39921         * modules/linkat: New file.
39922         * lib/at-func2.c (at_func2): Likewise.
39923         * lib/linkat.c (linkat): Likewise.
39924         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39925         * lib/openat-priv.h (at_func2): Add declaration.
39926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39927         * modules/unistd (Makefile.am): Substitute them.
39928         * lib/unistd.in.h (linkat): Declare it.
39929         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39930         * doc/posix-functions/linkat.texi (linkat): Likewise.
39931         * doc/posix-functions/link.texi (link): Tweak wording.
39932         * tests/test-link.c (main): Move guts...
39933         * tests/test-link.h (test_link): ...into new file.
39934         * modules/linkat-tests: New test.
39935         * tests/test-linkat.c: Likewise.
39936         * modules/link-tests (Files): Ship new file.
39937         (Depends-on): Add stdbool.
39938
39939         dirname: add library-safe mdir_name
39940         * lib/dirname.h (mdir_name): New prototype.
39941         * lib/dirname.c (dir_name): Move guts...
39942         (mdir_name): ...to new function that avoids xalloc_die.
39943
39944         fchdir: another mingw fix
39945         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39946         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39947         on mingw (where it has not yet been ported), and make it optional
39948         elsewhere.
39949         (_gl_register_fd): Use it.
39950
39951         same-inode: make SAME_INODE tri-state, to port to mingw
39952         * NEWS: Mention this change.
39953         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39954         st_ino always being 0.
39955         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39956         * lib/cycle-check.c (cycle_check): Likewise.
39957         * lib/same.c (same_name): Likewise.
39958
39959         lstat: avoid mingw compilation error
39960         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39961         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39962         lstat ourselves.
39963         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39964         was adequate.
39965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39966         the checks for lstat.
39967         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39968
39969         link: fix test failure on Solaris 9
39970         * lib/link.c (rpl_link): Don't assume link will catch bogus
39971         trailing slash on source.
39972
39973         test-symlinkat: enhance test
39974         * tests/test-readlink.c (main): Move guts...
39975         * tests/test-readlink.h (test_readlink): ...into new file.
39976         * tests/test-symlink.c (main): Move guts...
39977         * tests/test-symlink.h (test_symlink): ...into new file.
39978         * tests/test-symlinkat.c (main): Use new files for further
39979         coverage.
39980         (do_symlink, do_readlink): New helper functions.
39981         * modules/symlink-tests (Files): Ship new file.
39982         (Depends-on): Add stdbool.
39983         * modules/readlink-tests (Files): Ship new file.
39984         (Depends-on): Add stdbool.
39985         * modules/symlinkat-tests (Files): Use new files.
39986
39987 2009-09-23  Eric Blake  <ebb9@byu.net>
39988
39989         readlink: document portability issue with symlink length
39990         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39991         systems have bogus st_size on symlinks, and mention the
39992         areadlink-with-size module.
39993         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39994         * doc/posix-functions/readlink.texi (readlink): Mention the
39995         areadlink module, and ERANGE failure.
39996         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39997         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39998
39999         readlink: fix Solaris 9 bug with trailing slash
40000         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40001         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40002         * doc/posix-functions/readlink.texi (readlink): Document this.
40003         * modules/readlink-tests: New test.
40004         * tests/test-readlink.c: Likewise.
40005
40006         readlink: fix cygwin 1.5.x bug with return type
40007         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40008         * lib/unistd.in.h (readlink): Use ssize_t.
40009         * lib/readlink.c (readlink): Likewise.
40010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40011         * modules/unistd (Makefile.am): Substitute it.
40012         * lib/unistd.in.h (readlink): Declare replacement.
40013         * doc/posix-functions/readlink.texi (readlink): Document this.
40014
40015         symlink: use throughout gnulib
40016         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40017         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40018         symlink is not used.
40019         * modules/symlinkat (Depends-on): Add symlink.
40020         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40021         * modules/canonicalize-tests (Depends-on): Likewise.
40022         * modules/lstat-tests (Depends-on): Likewise.
40023         * modules/openat-tests (Depends-on): Likewise.
40024         * modules/remove-tests (Depends-on): Likewise.
40025         * modules/rmdir-tests (Depends-on): Likewise.
40026         * modules/unlink-tests (Depends-on): Likewise.
40027         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40028         * tests/test-canonicalize.c (symlink): Likewise.
40029         * tests/test-fstatat.c (symlink): Likewise.
40030         * tests/test-lstat.c (symlink): Likewise.
40031         * tests/test-remove.c (symlink): Likewise.
40032         * tests/test-rmdir.c (symlink): Likewise.
40033         * tests/test-unlink.c (symlink): Likewise.
40034         * tests/test-unlinkat.c (symlink): Likewise.
40035
40036         symlink: new module, for Solaris 9 bug
40037         * modules/symlink: New file.
40038         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40039         * lib/symlink.c: Likewise.
40040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40041         * modules/unistd (Makefile.am): Substitute them.
40042         * lib/unistd.in.h (symlink): Declare replacement.
40043         * MODULES.html.sh (File system functions): Mention it.
40044         * doc/posix-functions/symlink.texi (symlink): Likewise.
40045         * modules/symlink-tests: New test.
40046         * tests/test-symlink.c: Likewise.
40047
40048 2009-09-23  Bruno Haible  <bruno@clisp.org>
40049
40050         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40051         when needed.
40052         Test case: gnulib-tool --import --with-tests atexit inttypes.
40053         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40054
40055 2009-09-23  Bruno Haible  <bruno@clisp.org>
40056
40057         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40058         subcommand, not in a subshell.
40059
40060 2009-09-22  Eric Blake  <ebb9@byu.net>
40061
40062         unistd: sort replacement declarations
40063         * lib/unistd.in.h: Sort declarations.
40064
40065         open, openat: minor optimization
40066         * lib/open.c (open): If open succeeded, len is non-zero.
40067         * lib/openat.c (rpl_openat): Likewise.
40068
40069         link-follow: ensure correct result
40070         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40071         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40072         distinguish between possible failures.
40073
40074 2009-09-21  Eric Blake  <ebb9@byu.net>
40075
40076         fts: avoid compiler warning
40077         * lib/fts.c (dirent_inode_sort_may_be_useful)
40078         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40079
40080 2009-09-19  Bruno Haible  <bruno@clisp.org>
40081
40082         * lib/progreloc.c (canonicalize_file_name): New declaration.
40083
40084 2009-09-19  Eric Blake  <ebb9@byu.net>
40085
40086         link: fix quoting
40087         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40088
40089         openat: fix openat bugs on Solaris 9
40090         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40091         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40092         * modules/openat (Depends-on): Add open.
40093         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40094         * modules/fcntl-h (Makefile.am): Substitute it.
40095         * lib/fcntl.in.h (openat): Declare replacement.
40096         * doc/posix-functions/openat.texi (openat): Document this.
40097
40098         openat: move fstatat and unlinkat into correct files
40099         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40100         compiled.
40101         * lib/openat.c (fstatat, unlinkat): Move...
40102         * lib/fstatat.c (fstatat): ...into correct files.
40103         * lib/unlinkat.c (unlinkat): Likewise.
40104
40105         openat: fix unlinkat bugs on Solaris 9
40106         * lib/unlinkat.c (unlinkat): New file.
40107         * modules/openat (Depends-on): Add unlink.
40108         (Files): Distribute it.
40109         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40110         trailing slash behavior is broken.
40111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40112         * modules/unistd (Makefile.am): Substitute it.
40113         * lib/unistd.in.h (unlinkat): Declare replacement.
40114         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40115
40116         openat: fix fstatat bugs on Solaris 9
40117         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40118         stat.
40119         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40120
40121         test-unlinkat: enhance test, to expose Solaris 9 bug
40122         * tests/test-unlink.c (main): Factor guts...
40123         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40124         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40125         * tests/test-rmdir.c (main): Adjust caller.
40126         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40127         (unlinker): New helper function.
40128         (rmdirat): Enhance check.
40129         * modules/rmdir-tests (Depends-on): Add stdbool.
40130         * modules/unlink-tests (Depends-on): Likewise.
40131         (Files): Add test-unlink.h.
40132         * modules/openat-tests (Files): Likewise.
40133         (Depends-on): Add unlinkdir.
40134
40135         test-fstatat: new test, to expose Solaris 9 bugs
40136         * tests/test-stat.c (main): Factor guts...
40137         * tests/test-stat.h (test_stat_func): ...into new file.
40138         * tests/test-lstat.c (main): Factor guts...
40139         * tests/test-lstat.h (test_lstat_func): ...into new file.
40140         * tests/test-fstatat.c: New file.
40141         * modules/stat-tests (Files): Add test-stat.h.
40142         * modules/lstat-tests (Files): Add test-lstat.h.
40143         (Depends-on): Add stdbool.
40144         * modules/openat-tests (Depends-on): Add pathmax.
40145         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40146         (Makefile.am): Run new test.
40147
40148         remove: new module, for mingw and Solaris 9 bugs
40149         * modules/remove: New file.
40150         * lib/remove.c: Likewise.
40151         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40153         * modules/stdio (Makefile.am): Use them.
40154         * lib/stdio.in.h (remove): Declare replacement.
40155         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40156         * doc/posix-functions/remove.texi (remove): Likewise.
40157         * modules/remove-tests: New test.
40158         * tests/test-remove.c: Likewise.
40159
40160         unlink: new module, for Solaris 9 bug
40161         * modules/unlink: New file.
40162         * lib/unlink.c: Likewise.
40163         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40165         * modules/unistd (Makefile.am): Use them.
40166         * lib/unistd.in.h (stat): Declare replacement.
40167         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40168         * doc/posix-functions/unlink.texi (unlink): Likewise.
40169         * modules/unlink-tests: New test.
40170         * tests/test-unlink.c: Likewise.
40171
40172         lstat: fix Solaris 9 bug
40173         * lib/lstat.c (lstat): Also check for trailing slash on
40174         non-symlink, non-directories.  Use stat module to simplify logic.
40175         * doc/posix-functions/lstat.texi (lstat): Document it.
40176         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40177         (configure.ac): Check for symlink.
40178         * tests/test-lstat.c (main): Add more tests.
40179
40180         stat: add as dependency to other modules
40181         * modules/chown (Depends-on): Add stat.
40182         * modules/euidaccess (Depends-on): Likewise.
40183         * modules/fchdir (Depends-on): Likewise.
40184         * modules/isdir (Depends-on): Likewise.
40185         * modules/link (Depends-on): Likewise.
40186         * modules/lstat (Depends-on): Likewise.
40187         * modules/mkdir-p (Depends-on): Likewise.
40188         * modules/modechange (Depends-on): Likewise.
40189         * modules/open (Depends-on): Likewise.
40190         * modules/readlink (Depends-on): Likewise.
40191         * modules/same (Depends-on): Likewise.
40192
40193         stat: fix Solaris 9 bug
40194         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40195         slash.
40196         * lib/stat.c (rpl_stat): Work around it.
40197         * doc/posix-functions/stat.texi (stat): Update documentation.
40198
40199         stat: new module, for mingw bug
40200         * modules/stat: New file.
40201         * lib/stat.c: Likewise.
40202         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40203         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40204         * modules/sys_stat (Makefile.am): Use them.
40205         * lib/sys_stat.in.h (stat): Declare replacement.
40206         * lib/openat.c (fstatat): Deal with lstat and stat being function
40207         macros.
40208         * modules/openat (Depends-on): Add inline.
40209         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40210         * doc/posix-functions/stat.texi (stat): Likewise.
40211         * modules/stat-tests: New test.
40212         * tests/test-stat.c: Likewise.
40213
40214 2009-09-19  Jim Meyering  <meyering@redhat.com>
40215
40216         syntax-check: detect unnecessary inclusion of canonicalize.h
40217         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40218
40219 2009-09-19  Eric Blake  <ebb9@byu.net>
40220
40221         canonicalize-lgpl: adjust clients to use correct header
40222         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40223         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40224         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40225         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40226         * lib/progreloc.c (includes): Likewise.
40227
40228 2009-09-19  Jim Meyering  <meyering@redhat.com>
40229
40230         test-posixtm.c: correct a comment
40231         * tests/test-posixtm.c: Correct first-line comment.
40232         Spotted by Eric Blake.
40233
40234 2009-09-16  Jim Meyering  <meyering@redhat.com>
40235
40236         posixtm-tests: make T const-correct; add a test case
40237         * tests/test-posixtm.c (T): Declare const.
40238         Add a test for -(2^31+1).
40239         Remove useless can-succeed-only-in-2002 test.
40240
40241         posixtm-tests: adjust the sole failing test
40242         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40243         expected output matches what mktime now produces.  Cross-checked via
40244         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40245
40246         posixtm: move #ifdef'd tests into a new module
40247         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40248         * tests/test-posixtm.c: ... this new file.
40249         * modules/posixtm-tests: New module.
40250
40251 2009-09-19  Eric Blake  <ebb9@byu.net>
40252
40253         openat: simplify use of at-func.c
40254         * lib/at-func.c (includes): Include prerequisites here, to
40255         simplify requirements on client files.
40256         * lib/openat-priv.h: Add double-inclusion guard.
40257         * lib/faccessat.c (includes): Simplify.
40258         * lib/fchmodat.c (includes): Likewise.
40259         * lib/fchownat.c (includes): Likewise.
40260         * lib/mkdirat.c (includes): Likewise.
40261         * lib/mkfifoat.c (includes): Likewise.
40262         * lib/symlinkat.c (includes): Likewise.
40263
40264         openat: allow return of fd 0
40265         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40266         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40267         unistd-safer.
40268         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40269         <fcntl.h>; this module does not leak fds.
40270         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40271         must be allowed to return 0, leaving openat_safer to add the
40272         safety.
40273         (openat_permissive): Avoid writing to just-opened fd 2 if
40274         restoring the current directory fails.
40275         * lib/openat-die.c (openat_restore_fail): Add comment.
40276         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40277         (save_cwd): Guarantee safe fd, but without use of open_safer.
40278         * tests/test-openat.c: New test.
40279         * modules/openat-tests (Files, Makefile.am): Distribute and build
40280         new file.
40281
40282         relocatable-prog-wrapper: fix build
40283         * modules/relocatable-prog-wrapper (Files): Update name of
40284         canonicalize m4 file, broken on 2009-09-17.
40285         Reported by emad hajjar <aleppos@hotmail.com>.
40286
40287 2009-09-19  Bruno Haible  <bruno@clisp.org>
40288
40289         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40290         * lib/safe-alloc.c: Likewise.
40291         Reported by Ian Beckwith <ianb@erislabs.net>.
40292
40293 2009-09-18  Bruno Haible  <bruno@clisp.org>
40294
40295         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40296         Reported by <erobles@sensacd.com.mx>.
40297
40298 2009-09-17  Eric Blake  <ebb9@byu.net>
40299
40300         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40301         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40302         slashes when checking if last component is missing.
40303         * tests/test-canonicalize.c (main): Test this.
40304
40305         canonicalize, canonicalize-lgpl: honor // if distinct from /
40306         * modules/canonicalize (Files): Add double-slash-root.m4.
40307         * modules/canonicalize-lgpl (Files): Likewise.
40308         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40309         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40310         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40311         fallback definition.
40312         (canonicalize_filename_mode): Use it to protect //.
40313         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40314         (__realpath): Likewise.
40315         * tests/test-canonicalize.c (main): Test this.
40316         * tests/test-canonicalize-lgpl.c (main): Likewise.
40317         * modules/canonicalize-tests (Depends-on): Add same-inode.
40318         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40319
40320         canonicalize-lgpl: fix glibc bug with trailing slash
40321         * m4/canonicalize-lgpl.m4: Move contents...
40322         * m4/canonicalize.m4: ...here.
40323         (gl_CANONICALIZE_LGPL): Factor realpath check...
40324         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40325         glibc 2.3.5 bug, fixed 2005-04-27.
40326         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40327         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40328         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40329         * modules/canonicalize-lgpl (Files): Manage file rename.
40330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40331         * modules/stdlib (Makefile.am): Substitute witness.
40332         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40333         is needed.
40334         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40335         replacement is required.
40336         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40337         * doc/glibc-functions/canonicalize_file_name.texi
40338         (canonicalize_file_name): Document this.
40339         * doc/posix-functions/realpath.texi (realpath): Likewise.
40340
40341         canonicalize-lgpl: reject non-directory with trailing slash
40342         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40343         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40344         catches failures in glibc 2.3.5.
40345         * tests/test-canonicalize.c (main): Likewise.
40346
40347         canonicalize-lgpl: use native realpath if it works
40348         * lib/canonicalize-lgpl.c (realpath): Guard with
40349         FUNC_REALPATH_WORKS.
40350         * lib/stdlib.in.h (realpath): Make declaration optional based on
40351         HAVE_REALPATH.
40352         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40353         native realpath works.
40354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40355         * modules/stdlib (Makefile.am): Substitute witness.
40356
40357         canonicalize, canonicalize-lgpl: use <stdlib.h>
40358         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40359         (Include): Mention <stdlib.h>.
40360         (configure.ac): Mention functions we provide.
40361         * modules/canonicalize (configure.ac): Likewise.
40362         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40363         realpath if canonicalize_file_name is missing.
40364         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40365         * modules/stdlib (Makefile.am): Substitute witnesses.
40366         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40367         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40368         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40369         * NEWS: Document this.
40370         * doc/glibc-functions/canonicalize_file_name.texi
40371         (canonicalize_file_name): Likewise.
40372         * doc/posix-functions/realpath.texi (realpath): Likewise.
40373         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40374
40375         test-canonicalize: consolidate into single C program
40376         * tests/test-canonicalize.sh: Delete; move setup into...
40377         * tests/test-canonicalize.c (main): ...the program, making it
40378         easier to run in debugger.  Add some tests.
40379         * modules/canonicalize-tests (Files): Remove unused file.
40380         (Depends-on): Add progname.
40381         (configure.ac, Makefile.am): Simplify.
40382
40383         test-canonicalize-lgpl: consolidate into single C program
40384         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40385         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40386         easier to run in debugger.  Add some tests.
40387         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40388         (configure.ac, Makefile.am): Simplify.
40389
40390         canonicalize: avoid resolvepath
40391         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40392         unnecessary checks.
40393         * lib/canonicalize.c (includes): Simplify.
40394         (canonicalize_file_name): Drop resolvepath implementation.
40395         * modules/canonicalize (Depends-on): Drop filenamecat.
40396
40397         canonicalize: don't lose errno
40398         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40399         over calls to free.
40400
40401         canonicalize: simplify errno handling
40402         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40403         assignment.
40404
40405         canonicalize, canonicalize-lgpl: update module dependencies
40406         * modules/canonicalize (Depends-on): Add extensions, lstat,
40407         pathmax, stdlib.
40408         (Files): Drop pathmax.h.
40409         (configure.ac): Adjust macro name.
40410         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40411         lstat, stdlib, sys_stat.
40412         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40413         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40414         extensions.
40415         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40416         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40417         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40418         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40419         declaration, if available.
40420         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40421         we can rely on the readlink module.
40422         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40423         (includes): Use <unistd.h> unconditionally.
40424
40425 2009-09-17  Eric Blake  <ebb9@byu.net>
40426
40427         maint: make Include sections of modules consistent
40428         * modules/alloca: Use only header name; no need to list #include.
40429         * modules/alloca-opt: Likewise.
40430         * modules/arpa_inet: Likewise.
40431         * modules/canon-host: Likewise.
40432         * modules/configmake: Likewise.
40433         * modules/dirent: Likewise.
40434         * modules/eealloc: Likewise.
40435         * modules/environ: Likewise.
40436         * modules/fchdir: Likewise.
40437         * modules/fcntl: Likewise.
40438         * modules/fcntl-h: Likewise.
40439         * modules/gethrxtime: Likewise.
40440         * modules/gettime: Likewise.
40441         * modules/ignore-value: Likewise.
40442         * modules/inet_ntop: Likewise.
40443         * modules/inet_pton: Likewise.
40444         * modules/inttypes: Likewise.
40445         * modules/isnand-nolibm: Likewise.
40446         * modules/isnanf-nolibm: Likewise.
40447         * modules/mbchar: Likewise.
40448         * modules/mbfile: Likewise.
40449         * modules/mbiter: Likewise.
40450         * modules/mbuiter: Likewise.
40451         * modules/netdb: Likewise.
40452         * modules/netinet_in: Likewise.
40453         * modules/nproc: Likewise.
40454         * modules/pagealign_alloc: Likewise.
40455         * modules/poll: Likewise.
40456         * modules/printf-frexp: Likewise.
40457         * modules/pthread: Likewise.
40458         * modules/putenv: Likewise.
40459         * modules/random_r: Likewise.
40460         * modules/relocatable-prog: Likewise.
40461         * modules/search: Likewise.
40462         * modules/select: Likewise.
40463         * modules/selinux-h: Likewise.
40464         * modules/settime: Likewise.
40465         * modules/signal: Likewise.
40466         * modules/size_max: Likewise.
40467         * modules/socklen: Likewise.
40468         * modules/ssize_t: Likewise.
40469         * modules/stdarg: Likewise.
40470         * modules/stdbool: Likewise.
40471         * modules/stddef: Likewise.
40472         * modules/stdint: Likewise.
40473         * modules/stdio: Likewise.
40474         * modules/stdlib: Likewise.
40475         * modules/string: Likewise.
40476         * modules/strings: Likewise.
40477         * modules/sys_file: Likewise.
40478         * modules/sys_ioctl: Likewise.
40479         * modules/sys_select: Likewise.
40480         * modules/sys_socket: Likewise.
40481         * modules/sys_stat: Likewise.
40482         * modules/sys_time: Likewise.
40483         * modules/sys_times: Likewise.
40484         * modules/sys_utsname: Likewise.
40485         * modules/sys_wait: Likewise.
40486         * modules/sysexits: Likewise.
40487         * modules/time: Likewise.
40488         * modules/times: Likewise.
40489         * modules/tmpfile: Likewise.
40490         * modules/trim: Likewise.
40491         * modules/unistd: Likewise.
40492         * modules/wchar: Likewise.
40493         * modules/wctype: Likewise.
40494
40495 2009-09-17  Bruno Haible  <bruno@clisp.org>
40496
40497         Make getdate.y compile on QNX and NetBSD 5 / i386.
40498         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40499         TIME_T_FITS_IN_LONG_INT.
40500         * lib/getdate.y (long_time_t): New type.
40501         (relative_time): Change type of 'seconds' field to long_time_t.
40502         (get_date): Update types of local variables. Check against overflow
40503         during conversion from long_time_t to time_t.
40504         Reported by Matt Kraai <kraai@ftbfs.org>
40505         and Hasso Tepper <hasso@netbsd.org>.
40506
40507 2009-09-17  Bruno Haible  <bruno@clisp.org>
40508
40509         * modules/COPYING: Update copyright years.
40510         * modules/README: Likeiwse.
40511         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40512         Reported by Ian Beckwith <ianb@erislabs.net>.
40513
40514 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40515
40516         * users.txt: Update references for gnuit package.
40517
40518 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40519
40520         * m4/getdelim.m4: Fix typo in copyright line.
40521
40522 2009-09-17  Bruno Haible  <bruno@clisp.org>
40523
40524         * lib/atoll.c: Use the standard header with GPL copyright.
40525         * lib/argz.in.h: Likewise.
40526         * lib/glob.c: Likewise.
40527         * lib/glob-libc.h: Likewise.
40528         * lib/random_r.c: Likewise.
40529         * lib/siglist.h: Likewise.
40530         * lib/strsignal.c: Likewise.
40531         Reported by Ian Beckwith <ianb@erislabs.net>.
40532
40533 2009-09-17  Eric Blake  <ebb9@byu.net>
40534
40535         rmdir: ensure correct dependency order
40536         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40537
40538 2009-09-17  Bruno Haible  <bruno@clisp.org>
40539
40540         Disable assertion that fails on NetBSD 5 / i386.
40541         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40542         Reported by Sam Steingold <sds@gnu.org>
40543         and Hasso Tepper <hasso@netbsd.org>.
40544
40545 2009-09-16  Eric Blake  <ebb9@byu.net>
40546
40547         unlinkdir: port to mingw
40548         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40549         on which no one can unlink a directory.
40550
40551         stdlib: sort witness names
40552         * modules/stdlib (Makefile.am): Sort replacements.
40553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40554         * lib/stdlib.in.h: Likewise.
40555
40556         parse-duration-tests: avoid link failure
40557         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40558         LIBINTL.
40559         Reported by Tom G. Christensen.
40560
40561         openat-tests: ensure unlinkat behaves like rmdir
40562         * tests/test-rmdir.c (main): Factor guts...
40563         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40564         * modules/rmdir-tests (Files): Ship new file.
40565         * modules/openat-tests: New test.
40566         * tests/test-unlinkat.c: Likewise.
40567
40568         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40569         * modules/rmdir-errno (Status, Notice): Now obsolete.
40570
40571         rmdir: work around cygwin 1.5.x and mingw bugs
40572         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40573         * lib/rmdir.c (rmdir): Work around it.
40574         * modules/rmdir (Status, Notice): No longer obsolete.
40575         (Files): Add dos.m4.
40576         (Depends-on): Add unistd.
40577         (configure.ac): Set witnesses.
40578         (License): Relax to LGPLv2+.
40579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40580         * modules/unistd (Makefile.am): Substitute witnesses.
40581         * lib/unistd.in.h (rmdir): Declare replacement.
40582         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40583         * modules/rmdir-tests: New tests.
40584         * tests/test-rmdir.c: Likewise.
40585
40586 2009-09-15  Eric Blake  <ebb9@byu.net>
40587
40588         fchdir: improve use of replacement functions
40589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40591         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40592         REPLACE_CLOSEDIR.
40593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40594         * modules/sys_stat (Makefile.am): Substitute correct witness.
40595         * modules/dirent (Makefile.am): Likewise.
40596         * modules/unistd (Makefile.am): Likewise.
40597         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40598         * lib/unistd.in.h (dup): Likewise.
40599         * lib/sys_stat.in.h (fstat): Likewise.
40600
40601         maint: ignore gnulib-tool temp files
40602         * .gitignore: Ignore files created during gnulib-tool --test.
40603
40604 2009-09-13  Jim Meyering  <meyering@redhat.com>
40605
40606         posixtm: don't reject a time that specify "60" as the number of seconds
40607         * lib/posixtm.c (posixtime): The code to reject invalid dates
40608         would also reject a time specified with the .60 suffix.
40609         But POSIX allows that, in order to accommodate leap seconds.
40610         So don't reject it.
40611         (main): Adjust tests accordingly.
40612         * modules/posixtm (Depends-on): Add stpcpy.
40613
40614 2009-09-11  Jim Meyering  <meyering@redhat.com>
40615
40616         announce-gen: include [$release_type] in emitted Subject:
40617         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40618         e.g., [stable] in the emitted Subject: line.
40619
40620 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40621
40622         Remove obsolete macros from several modules.
40623         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40624         obsolete Autoconf macros with their modern counterparts.
40625         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40626         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40627         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40628         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40629         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40630         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40631         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40632         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40633         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40634         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40635         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40636         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40637         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40638         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40639         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40640         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40641         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40642         * m4/time_r.m4 (gl_TIME_R): Likewise.
40643         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40644         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40645         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40646
40647         Fix copyright header in build-aux scripts.
40648         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40649         recommendation.
40650         * build-aux/ncftpput-ftp: Likewise.
40651         * build-aux/update-copyright: Likewise.
40652
40653 2009-09-09  Eric Blake  <ebb9@byu.net>
40654
40655         test-link: allow Linux choice of errno
40656         * tests/test-link.c (main): Relax test for alternate error.
40657
40658         strndup: fix improper m4 caching
40659         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40660         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40661         (gl_PREREQ_STRNDUP): Delete.
40662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40663         * modules/string (Makefile.am): Substitute it.
40664         * lib/string.in.h (strndup): Modernize prototype.
40665
40666         getcwd: port to mingw
40667         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40668         different from the POSIX assumptions made throughout the getcwd
40669         module; fortunately, the mingw getcwd does not need replacement.
40670         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40671         * modules/getcwd-tests: New test.
40672         * tests/test-getcwd.c: Likewise.
40673
40674         link: fix platform bugs
40675         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40676         * lib/link.c (link): Work around them.  Fix related mingw bug.
40677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40678         * modules/unistd (Makefile.am): Substitute it.
40679         * lib/unistd.in.h (link): Declare replacement.
40680         * doc/posix-functions/link.texi (link): Document this.
40681         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40682
40683         test-link: consolidate into single C program, test more cases
40684         * tests/test-link.sh: Delete.
40685         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40686         at least Cygwin and Solaris.
40687         * modules/link-tests (Files): Remove unused file.
40688         (Depends-on): Add errno, sys_stat.
40689         (Makefile.am): Simplify.
40690
40691 2009-09-08  Bruno Haible  <bruno@clisp.org>
40692
40693         Work around towlower, towupper bug on mingw.
40694         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40695         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40696         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40697         * doc/posix-functions/towupper.texi: Likewise.
40698         Reported by Eric Blake.
40699
40700 2009-09-08  Jim Meyering  <meyering@redhat.com>
40701
40702         build: don't try to run autoheader if we don't use it
40703         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40704         is not used in configure.ac.
40705
40706 2009-09-08  Eric Blake  <ebb9@byu.net>
40707
40708         euidaccess: fix compilation error
40709         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40710
40711         rawmemchr: relax license
40712         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40713         okay.
40714         Reported by Jim Meyering.
40715
40716         mkfifoat: new module
40717         * modules/mkfifoat: New file.
40718         * lib/mkfifoat.c: Likewise.
40719         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40720         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40721         * modules/sys_stat (Makefile.am): Use them.
40722         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40723         * MODULES.html.sh (File system functions): Mention module.
40724         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40725         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40726         * modules/mkfifoat-tests: New test.
40727         * tests/test-mkfifoat.c: Likewise.
40728
40729         strchrnul: relax license
40730         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40731         okay.
40732         Reported by Jim Meyering.
40733
40734 2009-09-08  Eric Blake  <ebb9@byu.net>
40735
40736         fstatat: fix compilation on Solaris
40737         * lib/fstatat.c (includes): Add fcntl.h.
40738         Reported by Pádraig Brady.
40739
40740 2009-09-07  Eric Blake  <ebb9@byu.net>
40741
40742         rename: modernize replacement
40743         * modules/rename (Depends-on): Add stdio.
40744         (configure.ac): Declare witness.
40745         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40746         stdio take care of replacement.
40747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40748         * modules/stdio (Makefile.am): Substitute them.
40749         * lib/stdio.in.h (rename): Declare replacement.
40750         * lib/rename.c (includes): Allow cross-compilation to non-windows
40751         machines.
40752         * doc/posix-functions/rename.texi (rename): Improve
40753         documentation.
40754
40755         stdio: sort witness names
40756         * modules/stdio (Makefile.am): Sort replacements.
40757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40758         * lib/stdio.in.h: Likewise.
40759
40760         getcwd: minor cleanups
40761         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40762         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40763
40764         openat: provide more convenience names
40765         * modules/faccessat (configure.ac): Add C witness.
40766         * lib/unistd.in.h (readlinkat): Fix typo.
40767         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40768         convenience wrappers.
40769         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40770         wrappers in syntax checks.
40771
40772 2009-09-06  Eric Blake  <ebb9@byu.net>
40773
40774         doc: fix comments in recent patches
40775         * lib/faccessat.c: Mention correct function.
40776         * lib/fchmodat.c: Likewise.
40777         * lib/fchownat.c: Likewise.
40778         * lib/symlinkat.c: Likewise.
40779         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40780         constants.
40781
40782         faccessat, symlinkat: continue cleanup of previous patch
40783         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40784         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40785         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40787         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40788         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40789         set.
40790
40791 2009-09-06  Bruno Haible  <bruno@clisp.org>
40792
40793         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40794         (fstatat): Declare if GNULIB_FSTATAT is set.
40795         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40796         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40797         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40798         * modules/fcntl-h (Files): Remove m4/openat.m4.
40799         * modules/sys_stat (Files): Remove m4/openat.m4.
40800         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40801         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40802         * modules/unistd (Files): Remove m4/openat.m4.
40803         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40804         GNULIB_OPENAT.
40805         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40806         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40807         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40808         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40809         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40810         gl_OPENAT_DEFAULTS.
40811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40812         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40813         Don't require gl_OPENAT_DEFAULTS.
40814         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40815         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40816         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40817         (gl_OPENAT_DEFAULTS): Remove macro.
40818
40819 2009-09-06  Bruno Haible  <bruno@clisp.org>
40820
40821         * modules/openat (configure.ac): Remove unneeded witness.
40822
40823 2009-09-06  Bruno Haible  <bruno@clisp.org>
40824
40825         Set errno to ENOSYS when a function is entirely unsupported.
40826         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40827         EOPNOTSUPP.
40828         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40829         * modules/chown (Depends-on): Remove errno.
40830
40831 2009-09-06  Bruno Haible  <bruno@clisp.org>
40832
40833         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40834
40835 2009-09-06  Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40838
40839 2009-09-06  Ben Pfaff  <blp@gnu.org>
40840             Bruno Haible  <bruno@clisp.org>
40841
40842         Work around a glibc bug in strtok_r.
40843         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40844         Undefine if UNDEFINE_STRTOK_R is set.
40845         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40847         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40848         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40849         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40850         UNDEFINE_STRTOK_R.
40851         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40852
40853 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40854
40855         exclude: minor fix
40856         * lib/exclude.c: Include wctype.h
40857
40858 2009-09-06  Akim Demaille  <demaille@gostai.com>
40859
40860         bootstrap: improve error message
40861         * build-aux/bootstrap (find_tool): Upon failure, report the list
40862         of candidates.
40863         Honor the initial value of the envvar.
40864
40865 2009-09-05  Eric Blake  <ebb9@byu.net>
40866
40867         symlinkat: new module
40868         * modules/symlinkat: New file.
40869         * lib/symlinkat.c: Likewise.
40870         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40872         * modules/unistd (Makefile.am): Use them.
40873         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40874         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40875         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40876         * MODULES.html.sh (File system functions): Mention module.
40877         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40878         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40879         * modules/symlinkat-tests: New test.
40880         * tests/test-symlinkat.c: Likewise.
40881
40882         test-openat-safer: add more checks
40883         * tests/test-openat-safer.c (main): Check more code paths.
40884
40885 2009-09-05  Jim Meyering  <meyering@redhat.com>
40886
40887         syntax-check: detect unnecessary inclusion of openat.h
40888         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40889
40890 2009-09-05  Bruno Haible  <bruno@clisp.org>
40891
40892         Support towlower, towupper.
40893         * doc/posix-functions/towlower.texi: Mention module wctype.
40894         * doc/posix-functions/towupper.texi: Likewise.
40895         * lib/wctype.in.h (towlower, towupper): New functions.
40896         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40897         (ASSERT): New macro.
40898         (e): New variable.
40899         (main): Test also towlower, towupper. Test WEOF argument.
40900         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40901
40902 2009-09-05  Bruno Haible  <bruno@clisp.org>
40903
40904         Fix conversion behaviour when the input is invalid.
40905         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40906         mark occurring in first pass of indirect conversion.
40907         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40908         input.
40909         Found by clang's static analyzer.
40910
40911 2009-09-05  Bruno Haible  <bruno@clisp.org>
40912
40913         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40914         where direct conversion is possible.
40915
40916 2009-09-04  Eric Blake  <ebb9@byu.net>
40917
40918         openat: fail with ENOENT on empty name
40919         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40920         buffer.
40921
40922         link-follow: fix logic bug in prior patch
40923         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40924         reversed sense of yes and no in prior patch.  Avoid confusing
40925         compilation failure with desired semantics.
40926
40927         link-follow: accomodate mingw and cross-compilation
40928         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40929         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40930         cross-compilation results to -1, to make linkat easier to
40931         implement when cross-compiling.  Trivially support mingw.
40932         * modules/link-follow (configure.ac): Call new name.
40933         * NEWS: Mention this.
40934
40935 2009-09-03  Eric Blake  <ebb9@byu.net>
40936
40937         faccessat: compile replacement
40938         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40939         needed.
40940
40941         fts: fix compilation error
40942         * lib/fts.c (includes): Re-add "openat.h", for
40943         openat_needs_fchdir.
40944
40945         faccessat: new module
40946         * modules/faccessat: New file.
40947         * lib/faccessat.c: Likewise.
40948         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40950         * modules/unistd (Makefile.am): Use it.
40951         * lib/unistd.in.h (faccessat): Declare it.
40952         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40953         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40954         * MODULES.html.sh (File system functions): Mention it.
40955         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40956         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40957
40958         euidaccess: prefer POSIX over non-standard implementation
40959         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40960         * lib/euidaccess.c (euidaccess): Use it if available.
40961
40962         openat: make template easier to use
40963         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40964         AT_FUNC_F2 to be undefined.
40965         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40966         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40967         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40968         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40969         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40970         Likewise.
40971         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40972         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40973         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40974         Likewise.
40975
40976         openat: declare in POSIX headers
40977         * NEWS: Mention this.
40978         * modules/openat (configure.ac): Declare witnesses.
40979         (Depends-on): Add fcntl-h, sys_stat, unistd.
40980         (Include): Mention correct headers.
40981         * modules/fcntl-h (Depends-on): Add link-warning.
40982         (Files): Add openat.m4.
40983         (Makefile.am): Substitute witnesses.
40984         * modules/sys_stat (Files, Makefile.am): Likewise.
40985         * modules/unistd (Files, Makefile.am): Likewise.
40986         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40987         (gl_OPENAT_DEFAULTS): New macro.
40988         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40990         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40991         (SYS_STAT_H): Remove unused variable.
40992         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40993         * lib/fcntl--.h (includes): Remove unneeded header.
40994         * lib/openat-safer.c (includes): Likewise.
40995         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40996         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40997         appropriate headers.
40998         (__OPENAT_PREFIX): Delete.
40999         * lib/fcntl.in.h (openat): Provide declaration.
41000         (AT_FDCWD): Fix Solaris bug.
41001         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41002         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41003         * lib/fchmodat.c (includes):  Adjust to find declaration.
41004         * lib/fchownat.c (includes): Likewise.
41005         * lib/mkdirat.c (includes): Likewise.
41006         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41007         still visible.
41008
41009 2009-09-02  Eric Blake  <ebb9@byu.net>
41010
41011         errno: use consistently
41012         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41013         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41014         * lib/canonicalize.c (ELOOP): Likewise.
41015         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41016         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41017         * lib/lchown.c (EOPNOTSUPP): Likewise.
41018         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41019         * lib/savewd.c (ESTALE): Likewise.
41020         * lib/settime.c (ENOSYS): Likewise.
41021         * lib/utimens.c (ENOSYS): Likewise.
41022         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41023         * lib/chdir-safer.c (ELOOP): Likewise.
41024         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41025         * modules/c-stack (Depends-on): Add errno.
41026         * modules/canonicalize (Depends-on): Likewise.
41027         * modules/chdir-safer (Depends-on): Likewise.
41028         * modules/fdopendir (Depends-on): Likewise.
41029         * modules/inet_ntop (Depends-on): Likewise.
41030         * modules/inet_pton (Depends-on): Likewise.
41031         * modules/lchown (Depends-on): Likewise.
41032         * modules/openat (Depends-on): Likewise.
41033         * modules/savewd (Depends-on): Likewise.
41034         * modules/settime (Depends-on): Likewise.
41035         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41036
41037         fts: avoid leaking fds
41038         * modules/fts (Depends-on): Add cloexec.
41039         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41040         flag.
41041
41042         fts: make directory fds more robust
41043         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41044         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41045
41046         backupfile, chdir-long, fts, savedir: make safer
41047         * lib/backupfile.c (includes): Use "dirent--.h", since
41048         numbered_backup can write to stderr during readdir.
41049         * lib/savedir.c (includes): Likewise.
41050         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41051         emulation can write to stderr on failure.
41052         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41053         * lib/getcwd.c: Document why opendir_safer is unused.
41054         * lib/glob.c: Likewise.
41055         * lib/scandir.c: Likewise.
41056         * lib/openat-proc.c: Likewise, for open_safer.
41057         * modules/backupfile (Depends-on): Add dirent-safer.
41058         * modules/savedir (Depends-on): Likewise.
41059         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41060         * modules/chdir-long (Depends-on): Add openat-safer.
41061
41062         openat-safer: new module
41063         * modules/openat-safer: New file.
41064         * lib/openat-safer.c: Likewise.
41065         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41066         * lib/fcntl-safer.h (openat_safer): Declare.
41067         * lib/fcntl--.h (openat): Override.
41068         * MODULES.html.sh (File descriptor based I/O): Mention it.
41069         * lib/openat.h: Add double-inclusion guards.
41070         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41071         "fcntl--.h", so we can implement openat.
41072         * modules/openat-safer-tests: New test.
41073         * tests/test-openat-safer.c: New file.
41074
41075         dirent-safer: new module
41076         * modules/dirent-safer: New file.
41077         * lib/dirent--.h: Likewise.
41078         * lib/dirent-safer.h: Likewise.
41079         * lib/opendir-safer.c: Likewise.
41080         * m4/dirent-safer.m4: Likewise.
41081         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41082         * modules/dirent-safer-tests: New test.
41083         * tests/test-dirent-safer.c: New file.
41084         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41085
41086         fdopendir: optimize on mingw
41087         * lib/unistd.in.h (_gl_directory_name): New prototype.
41088         * lib/fchdir.c (_gl_directory_name): Implement it.
41089         (fchdir): Use it to simplify implementation.
41090         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41091         fchdir, when available, to avoid calling [f]chdir().
41092
41093         fdopendir: split into its own module
41094         * lib/openat.c (fdopendir): Move...
41095         * lib/fdopendir.c: ...into new file.
41096         * modules/fdopendir: New module.
41097         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41098         * modules/openat (Depends-on): Add fdopendir.
41099         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41100         fdopendir here.
41101         * modules/savedir (Depends-on): Only need fdopendir, not full
41102         openat.
41103         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41104         * lib/openat.h (fdopendir): Drop prototype.
41105         * lib/dirent.in.h (fdopendir): Provide prototype.
41106         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41107         * modules/dirent (Makefile.am): Substitute them.
41108         * MODULES.html.sh (File system functions): Mention it.
41109         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41110         * modules/fdopendir-tests: New file.
41111         * tests/test-fdopendir.c: Likewise.
41112
41113         fchdir: use more consistent macro convention
41114         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41115         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41116         REPLACE_FCHDIR, rather than relying on config.h macros.
41117         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41118         inside a single make-time REPLACE_FCHDIR block, rather than using
41119         the config.h FCHDIR_REPLACEMENT.
41120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41121         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41122         Manage fstat replacement.
41123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41124         REPLACE_FCHDIR.
41125         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41126         (Makefile.am): Substitute REPLACE_FCHDIR.
41127         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41128         FCHDIR_REPLACEMENT.
41129         * lib/dup-safer.c (dup_safer): Likewise.
41130         * lib/dup2.c (rpl_dup2): Likewise.
41131         * lib/dup3.c (rpl_dup3): Likewise.
41132         * lib/open.c (rpl_open): Likewise.
41133
41134         fchdir: simplify error handling, and support dup3
41135         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41136         stdbool, malloc-posix, realloc-posix.
41137         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41138         (ensure_dirs_slot): Return false on allocation failure.
41139         (rpl_dup2): Delete.
41140         (_gl_register_dup): New function.
41141         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41142         (_gl_register_fd): Close fd on allocation failure.
41143         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41144         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41145         prototype.
41146         (rpl_dup2_fchdir): Delete prototype.
41147         * lib/open.c (open): Update caller.
41148         * lib/dup2.c (dup2): Track fchdir metadata.
41149         * lib/dup3.c (dup3): Likewise.
41150         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41152
41153 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41154
41155         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41156         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41157         don't pass arguments to AC_OUTPUT.
41158
41159 2009-09-02  Bruno Haible  <bruno@clisp.org>
41160
41161         * modules/mkdtemp (License): Relicense under LGPLv2+.
41162         Reported by Paolo Bonzini.
41163
41164 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41165
41166         Replace uses of obsolete autoconf macros in Jim's modules.
41167         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41168         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41169         can evoke a warning from autoconf when run with -Wobsolete
41170         enabled.  They were declared obsolete for good reasons (see
41171         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41172         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41173         should not continue using the deprecated macros.
41174         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41175         obsolete Autoconf macros with modern counterparts.
41176         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41177         * m4/dos.m4 (gl_AC_DOS): Likewise.
41178         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41179         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41180         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41181         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41182         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41183         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41184         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41185         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41186         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41187         Likewise.
41188         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41189         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41190         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41191         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41192         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41193         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41194
41195 2009-09-01  Eric Blake  <ebb9@byu.net>
41196
41197         fchdir: fix off-by-one bug in previous patch
41198         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41199         (_gl_unregister_fd): Delete useless if.
41200
41201 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41202
41203         maint.mk: sort the list of syntax-check rules
41204         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41205         easier to get a sense of progress when the rules are run sequentially
41206         and take a long time.
41207
41208 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41209
41210         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41211         * modules/netinet_in: Likewise.
41212         * modules/sys_file: Likewise.
41213         * modules/sys_ioctl: Likewise.
41214         * modules/sys_select: Likewise.
41215         * modules/sys_socket: Likewise.
41216         * modules/sys_stat: Likewise.
41217         * modules/sys_time: Likewise.
41218         * modules/sys_times: Likewise.
41219         * modules/sys_utsname: Likewise.
41220         * modules/sys_wait: Likewise.
41221
41222 2009-09-01  Jim Meyering  <meyering@redhat.com>
41223
41224         fts: help ensure that return values are not ignored
41225         * lib/fts_.h (__GNUC_PREREQ): Define.
41226         (__attribute_warn_unused_result__): Define.
41227         (fts_children, fts_close, fts_open, fts_read): Declare with
41228         __attribute_warn_unused_result__.
41229
41230         fts: fts_close now fails also when closing a dir file descriptor fails
41231         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41232         and propagate to caller, along with errno.
41233
41234         announce-gen: correct formatting in --help output
41235         * build-aux/announce-gen (usage): Move the one-line description in
41236         --help output "up", to where it belongs, just after Usage:.
41237
41238 2009-08-31  Eric Blake  <ebb9@byu.net>
41239
41240         fchdir: port to mingw
41241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41242         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41243         opened, then use a substitute.
41244         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41245         replacement.
41246         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41247         (_gl_register_fd): No need to check stat if open already filters
41248         all directories.
41249         (fchdir): Fix error condition to match POSIX.
41250         * modules/fchdir (Depends-on): Add sys_stat.
41251         * doc/posix-functions/open.texi (open): Document the limitation.
41252         * modules/fchdir-tests: New file.
41253         * tests/test-fchdir.c: Likewise.
41254
41255         canonicalize: allow cross-testing from cygwin to mingw
41256         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41257         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41258         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41259         Likewise.
41260         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41261         target does not support symlinks.
41262         * tests/test-canonicalize-lgpl.sh: Likewise.
41263
41264         chown: avoid compilation warning on mingw
41265         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41266         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41267         mingw.
41268         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41269         * modules/chown (Depends-on): Add errno.
41270
41271 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41272
41273         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41274         command.
41275
41276 2009-08-31  Jim Meyering  <meyering@redhat.com>
41277
41278         canonicalize: remove useless initialization
41279         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41280         initialization of local, "end".
41281
41282 2009-08-30  Bruno Haible  <bruno@clisp.org>
41283
41284         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41285         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41286         ENOSYS.
41287
41288 2009-08-30  Bruno Haible  <bruno@clisp.org>
41289
41290         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41291         /usr/xpg4/bin/tr when it exists.
41292         * tests/test-pipe-filter-gi1.sh: Likewise.
41293
41294 2009-08-30  Bruno Haible  <bruno@clisp.org>
41295
41296         Work around deficient /usr/bin/id program on Solaris.
41297         * tests/test-file-has-acl.sh (ID): New variable.
41298         * tests/test-set-mode-acl.sh (ID): Likewise.
41299         * tests/test-copy-acl.sh (ID): Likewise.
41300         * tests/test-copy-file.sh (ID): Likewise.
41301
41302 2009-08-30  Bruno Haible  <bruno@clisp.org>
41303
41304         New module 'xstriconveh'.
41305         * lib/xstriconveh.h: New file.
41306         * lib/xstriconveh.c: New file.
41307         * modules/xstriconveh: New file.
41308
41309 2009-08-30  Bruno Haible  <bruno@clisp.org>
41310
41311         Make it easier to use mem_cd_iconveh.
41312         * lib/striconveh.h (iconveh_t): New type.
41313         (iconveh_open, iconveh_close): New declarations.
41314         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41315         with a single 'const iconveh_t *' argument.
41316         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41317         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41318         with a single 'const iconveh_t *' argument.
41319         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41320         * tests/test-striconveh.c (main): Update.
41321         * NEWS: Mention the change.
41322
41323 2009-08-30  Bruno Haible  <bruno@clisp.org>
41324
41325         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41326         problem.
41327
41328 2009-08-30  Bruno Haible  <bruno@clisp.org>
41329
41330         Work around iconv_open problem on Solaris.
41331         * lib/iconv_open-solaris.gperf: New file.
41332         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41333         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41334         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41335         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41336         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41337         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41338
41339 2009-08-29  Jim Meyering  <meyering@redhat.com>
41340
41341         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41342         * top/maint.mk (cvs-check): Remove target; it was just an alias
41343         to the better-named vc-diff-check.
41344         (maintainer-distcheck): Remove rule.  It was used only from
41345         the (alpha/beta/major) target, and all of its commands but one
41346         were coreutils-specific.
41347         (vc-dist): Remove rule.
41348         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41349         Run vc-diff-check, not vc-dist.
41350         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41351
41352 2009-08-27  Bruno Haible  <bruno@clisp.org>
41353
41354         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41355         of 0.
41356
41357 2009-08-27  Bruno Haible  <bruno@clisp.org>
41358
41359         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41360         compilers.
41361         * doc/func.texi: Document the SunPRO C bug.
41362
41363 2009-08-27  Bruno Haible  <bruno@clisp.org>
41364
41365         Fix link error on Solaris.
41366         * tests/test-parse-duration.c (xstrdup): Remove function.
41367
41368 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41369
41370         ignore-value: handle pointer types, too
41371         * lib/ignore-value.h (__attribute__): Remove definition.
41372         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41373         of a more concise and more-often effective "(void) i" statement.
41374         (ignore_ptr): New function to suppress warnings from functions that
41375         return pointers, and to make it explicit that one function doesn't
41376         handle all cases.
41377
41378 2009-08-25  Bruno Haible  <bruno@clisp.org>
41379
41380         dup2: work around a Linux bug.
41381         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41382         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41383         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41384         Reported by Simon Josefsson.
41385
41386 2009-08-25  Jim Meyering  <meyering@redhat.com>
41387
41388         libguestfs uses gnulib
41389         * users.txt: Add libguestfs.
41390
41391 2009-08-24  Eric Blake  <ebb9@byu.net>
41392
41393         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41394         * lib/pipe2.c (includes): Add binary-io.h.
41395         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41396
41397 2009-08-24  Bruno Haible  <bruno@clisp.org>
41398
41399         Tolerate declared but missing accept4 syscall.
41400         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41401         available.
41402         * lib/sys_socket.in.h (accept4): If the function is already present,
41403         override it.
41404         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41405         * modules/accept4 (Makefile.am): Compile accept4.c always.
41406         Reported by Paolo Bonzini and Eric Blake.
41407
41408 2009-08-23  Bruno Haible  <bruno@clisp.org>
41409
41410         New module 'accept4'.
41411         * lib/sys_socket.in.h (accept4): New declaration.
41412         * lib/accept4.c: New file.
41413         * m4/accept4.m4: New file.
41414         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41415         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41416         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41417         HAVE_ACCEPT4.
41418         * modules/accept4: New file.
41419         * doc/glibc-functions/accept4.texi: Mention the new module.
41420
41421 2009-08-24  Jim Meyering  <meyering@redhat.com>
41422
41423         progname: also set global program_invocation_name, when possible
41424         Before this change, a libtool-enabled program that calls glibc's
41425         error function would report the program name as
41426         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41427         * modules/progname (configure.ac): Check for a declaration of
41428         program_invocation_name.
41429         * lib/progname.c:  Include <errno.h>.
41430         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41431         Set program_invocation_name.
41432
41433 2009-08-23  Bruno Haible  <bruno@clisp.org>
41434
41435         * lib/dup3.c: Include <string.h>.
41436
41437 2009-08-23  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41440         * lib/pipe2.c (pipe2): Likewise.
41441         Suggested by Eric Blake.
41442
41443 2009-08-23  Bruno Haible  <bruno@clisp.org>
41444
41445         Tolerate declared but missing dup3 syscall.
41446         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41447         * lib/unistd.in.h (dup3): If the function is already present,
41448         override it.
41449         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41450         * modules/dup3 (Makefile.am): Compile dup3.c always.
41451         Reported by Paolo Bonzini.
41452
41453 2009-08-23  Bruno Haible  <bruno@clisp.org>
41454
41455         Tolerate declared but missing pipe2 syscall.
41456         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41457         available.
41458         * lib/unistd.in.h (pipe2): If the function is already present,
41459         override it.
41460         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41461         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41462         Reported by Paolo Bonzini.
41463
41464 2009-08-23  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/pipe2.c (pipe2): Move #ifs inside function.
41467
41468 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41469
41470         quotearg: document limitations of quote_these_too
41471         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41472         those limitations are created.
41473         * lib/quotearg.h (set_char_quoting): Document that digits and
41474         letters that are special after backslash are not permitted.
41475         (quotearg_char): Cross-reference set_char_quoting documentation.
41476
41477 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41478
41479         quotearg: implement custom_quoting_style
41480         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41481         right_quote fields.
41482         (set_custom_quoting): New public function.
41483         (quotearg_buffer_restyled): Add left_quote and right_quote
41484         arguments, handle them very much like locale quoting, and update
41485         all uses.
41486         (quotearg_n_custom): New public function.
41487         (quotearg_n_custom_mem): New public function.
41488         (quotearg_custom): New public function.
41489         (quotearg_custom_mem): New public function.
41490         * lib/quotearg.h: Prototype and document new public functions.
41491         (enum quoting_style): For escape_quoting_style and
41492         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41493         ignored even though they're otherwise like c_quoting_style.
41494         Add custom_quoting_style member and document with comparison to
41495         clocale_quoting_style.
41496         * tests/test-quotearg.c (custom_quotes): New array.
41497         (custom_results): New array.
41498         (main): Extend to test custom quoting.
41499
41500 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41501
41502         quotearg: fix right quote escaping when it's in quote_these_too
41503         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41504         quote, be sure to prepend only one backslash.
41505         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41506         (main): Test it.
41507
41508 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41509
41510         quotearg-tests: test escaping of embedded locale quotes
41511         * tests/test-quotearg.c (struct result_strings): Add member for
41512         new input.
41513         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41514         (inputs): Add new input.
41515         (results_g): Add expected results.
41516         (flag_results): Likewise.
41517         (locale_results): Likewise.
41518         (compare_strings): Check those.
41519
41520 2009-08-23  Bruno Haible  <bruno@clisp.org>
41521
41522         Tests for module 'dup3'.
41523         * modules/dup3-tests: New file.
41524         * tests/test-dup3.c: New file.
41525
41526         New module 'dup3'.
41527         * lib/unistd.in.h (dup3): New declaration.
41528         * lib/dup3.c: New file.
41529         * m4/dup3.m4: New file.
41530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41531         HAVE_DUP3.
41532         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41533         * modules/dup3: New file.
41534         * doc/glibc-functions/dup3.texi: Mention the new module.
41535
41536 2009-08-23  Bruno Haible  <bruno@clisp.org>
41537
41538         Tweak the dup2 test.
41539         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41540         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41541         the test file is still empty. Fix argument order of lseek.
41542
41543 2009-08-23  Bruno Haible  <bruno@clisp.org>
41544
41545         Avoid test link errors when the modules getopt-gnu, gettext are used.
41546         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41548
41549 2009-08-23  Bruno Haible  <bruno@clisp.org>
41550
41551         Fix getdtablesize() on mingw.
41552         * lib/getdtablesize.c (getdtablesize): Implement differently.
41553         * lib/unistd.in.h (getdtablesize): Improve comment.
41554
41555 2009-08-23  Bruno Haible  <bruno@clisp.org>
41556
41557         New module 'mkostemp'.
41558         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41559         * lib/stdlib.in.h (mksotemp): New declaration.
41560         * lib/mkostemp.c: New file, from glibc with modifications.
41561         * lib/tempname.h (GT_FILE): Remove outdated comment.
41562         (gen_tempname): Add flags argument.
41563         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41564         (__GT_FILE): Map to 1.
41565         (small_open, large_open): Remove macros.
41566         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41567         * lib/mkstemp.c (mkstemp): Update.
41568         * lib/mkdtemp.c (mkdtemp): Likewise.
41569         * m4/mkostemp.m4: New file.
41570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41571         HAVE_MKOSTEMP.
41572         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41573         HAVE_MKOSTEMP.
41574         * modules/mkostemp: New file, based on modules/mkstemp.
41575         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41576         * NEWS: Mention the change.
41577
41578 2009-08-23  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41581         Reported by Eric Blake.
41582
41583 2009-08-23  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41586         Reported by Eric Blake.
41587
41588 2009-08-23  Bruno Haible  <bruno@clisp.org>
41589
41590         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41591         * modules/pipe2 (Depends-on): Likewise.
41592
41593 2009-08-23  Eric Blake  <ebb9@byu.net>
41594
41595         fcntl-h: add O_TTY_INIT support
41596         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41597         * tests/test-fcntl-h.c (o): Test it.
41598         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41599
41600         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41601         * modules/fcntl: Move <fcntl.h> header replacement...
41602         * modules/fcntl-h: ...to new name, so as not to collide with
41603         like-named function.
41604         * tests/test-fcntl.c: Rename...
41605         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41606         * modules/fcntl-tests: Rename...
41607         * modules/fcntl-h-tests: ...to this.  Update test file name.
41608         * modules/chdir-long (Depends-on): Update clients.
41609         * modules/chdir-safer (Depends-on): Likewise.
41610         * modules/fcntl-safer (Depends-on): Likewise.
41611         * modules/fts (Depends-on): Likewise.
41612         * modules/mkancesdirs (Depends-on): Likewise.
41613         * modules/mkdir-p (Depends-on): Likewise.
41614         * modules/open (Depends-on): Likewise.
41615         * modules/savewd (Depends-on): Likewise.
41616         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41617         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41618
41619 2009-08-22  Bruno Haible  <bruno@clisp.org>
41620
41621         * modules/binary-io (License): Relicense under LGPL.
41622         * modules/pipe2 (License): Likewise.
41623
41624 2009-08-22  Bruno Haible  <bruno@clisp.org>
41625
41626         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41627         return value.
41628         * lib/pipe-filter-gi.c (filter_init): Likewise.
41629         Reported by Eric Blake.
41630
41631 2009-08-22  Bruno Haible  <bruno@clisp.org>
41632
41633         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41634         * modules/pipe (Depends-on): Add pipe2.
41635
41636 2009-08-22  Bruno Haible  <bruno@clisp.org>
41637
41638         Tests for module 'pipe2'.
41639         * modules/pipe2-tests: New file.
41640         * tests/test-pipe2.c: New file.
41641
41642         New module 'pipe2'.
41643         * lib/unistd.in.h (pipe2): New declaration.
41644         * lib/pipe2.c: New file.
41645         * m4/pipe2.m4: New file.
41646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41647         HAVE_PIPE2.
41648         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41649         * modules/pipe2: New file.
41650         * doc/glibc-functions/pipe2.texi: Mention the new module.
41651
41652 2009-08-22  Bruno Haible  <bruno@clisp.org>
41653
41654         Reference some new glibc functions.
41655         * doc/glibc-functions/accept4.texi: New file.
41656         * doc/glibc-functions/dup3.texi: New file.
41657         * doc/glibc-functions/mkostemp.texi: New file.
41658         * doc/glibc-functions/pipe2.texi: New file.
41659         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41660         (Glibc sys/socket.h): Refer to accept4.
41661         (Glibc unistd.h): Refer to dup3, pipe2.
41662         Reported by Eric Blake.
41663
41664 2009-08-22  Jim Meyering  <meyering@redhat.com>
41665             Bruno Haible  <bruno@clisp.org>
41666
41667         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41668         This makes it so packages using automake-1.11's silent-rules option
41669         can print e.g., a single "GEN    configmake.h" line, rather than
41670         the 30+ statements that perform the job.  If you want to see the
41671         actual commands, you can still run "make V=1".
41672         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41673         so that make output is abbreviated when those variables are defined
41674         appropriately.
41675         * modules/argz: Likewise.
41676         * modules/arpa_inet: Likewise.
41677         * modules/byteswap: Likewise.
41678         * modules/configmake: Likewise.
41679         * modules/dirent: Likewise.
41680         * modules/errno: Likewise.
41681         * modules/fcntl: Likewise.
41682         * modules/float: Likewise.
41683         * modules/fnmatch: Likewise.
41684         * modules/getopt-posix: Likewise.
41685         * modules/glob: Likewise.
41686         * modules/iconv_open: Likewise.
41687         * modules/inttypes: Likewise.
41688         * modules/localcharset: Likewise.
41689         * modules/locale: Likewise.
41690         * modules/math: Likewise.
41691         * modules/netdb: Likewise.
41692         * modules/netinet_in: Likewise.
41693         * modules/poll: Likewise.
41694         * modules/posix_spawnp-tests: Likewise.
41695         * modules/sched: Likewise.
41696         * modules/search: Likewise.
41697         * modules/selinux-h: Likewise.
41698         * modules/signal: Likewise.
41699         * modules/spawn: Likewise.
41700         * modules/stdarg: Likewise.
41701         * modules/stdbool: Likewise.
41702         * modules/stddef: Likewise.
41703         * modules/stdint: Likewise.
41704         * modules/stdio: Likewise.
41705         * modules/stdlib: Likewise.
41706         * modules/string: Likewise.
41707         * modules/strings: Likewise.
41708         * modules/sys_file: Likewise.
41709         * modules/sys_ioctl: Likewise.
41710         * modules/sys_select: Likewise.
41711         * modules/sys_socket: Likewise.
41712         * modules/sys_stat: Likewise.
41713         * modules/sys_time: Likewise.
41714         * modules/sys_times: Likewise.
41715         * modules/sys_utsname: Likewise.
41716         * modules/sys_wait: Likewise.
41717         * modules/sysexits: Likewise.
41718         * modules/time: Likewise.
41719         * modules/unistd: Likewise.
41720         * modules/wchar: Likewise.
41721         * modules/wctype: Likewise.
41722
41723 2009-08-22  Jim Meyering  <meyering@redhat.com>
41724
41725         announce-gen: detect write failure
41726         * build-aux/announce-gen: Add Coda at end.
41727         Remove equivalent-but-more-verbose block at top.
41728
41729 2009-08-19  Akim Demaille  <demaille@gostai.com>
41730
41731         bootstrap: --help to stdout.
41732         * bootstrap (usage): Don't send --help to stderr.
41733         Use a here doc instead of a long string.
41734
41735 2009-08-21  Eric Blake  <ebb9@byu.net>
41736
41737         test-popen-safer: split from test-popen
41738         * tests/test-popen.c (main): Move...
41739         * tests/test-popen.h: ...into new file.
41740         * tests/test-popen-safer2.c: New file.
41741         * modules/popen-tests (Files): Add test-popen.h.
41742         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41743         Suggested by Bruno Haible.
41744
41745         test-fcntl-safer: split from test-open
41746         * tests/test-open.c (main): Move...
41747         * tests/test-open.h: ...into new file.
41748         * tests/test-fcntl-safer.c: New file.
41749         * modules/open-tests (Files): Add test-open.h.
41750         * modules/fcntl-safer-tests: New file.
41751         Suggested by Bruno Haible.
41752
41753         test-fopen-safer: split from test-fopen
41754         * tests/test-fopen.c (main): Move...
41755         * tests/test-fopen.h: ...into new file.
41756         * tests/test-fopen-safer.c: New file.
41757         * modules/fopen-tests (Files): Add test-fopen.h.
41758         * modules/fopen-safer-tests: New file.
41759         Suggested by Bruno Haible.
41760
41761 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41762
41763         popen-safer: test O_CLOEXEC at run-time.
41764         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41765
41766 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41767
41768         fcntl: move more flags to the header
41769         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41770         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41771         * lib/fcntl.in.h: Do both things here.
41772
41773 2009-08-21  Jim Meyering  <meyering@redhat.com>
41774
41775         consistently remove $@-t before redirecting to it
41776         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41777         * modules/alloca-opt: Likewise.
41778         * modules/byteswap: Likewise.
41779         * modules/fnmatch: Likewise.
41780         * modules/getopt-posix: Likewise.
41781         * modules/glob: Likewise.
41782         * modules/poll: Likewise.
41783         * modules/posix_spawnp-tests: Likewise.
41784         * modules/sys_socket: Likewise.
41785         * modules/sysexits: Likewise.
41786
41787 2009-08-21  Eric Blake  <ebb9@byu.net>
41788
41789         popen: simplify access to original popen
41790         * lib/popen.c (rpl_popen): No need to worry about popen being a
41791         macro.
41792         Reported by Bruno Haible.
41793
41794 2009-08-20  Eric Blake  <ebb9@byu.net>
41795
41796         build: avoid some compiler warnings
41797         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41798         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41799         type.
41800         (new_exclude_segment, excluded_file_pattern_p)
41801         (excluded_file_name_p): Reduce scope.
41802         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41803         old-style declaration.
41804
41805 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41806
41807         * tests/test-exclude1.sh: Handle Windows EOL.
41808         * tests/test-exclude2.sh: Likewise.
41809         * tests/test-exclude3.sh: Likewise.
41810         * tests/test-exclude4.sh: Likewise.
41811         * tests/test-exclude5.sh: Likewise.
41812         * tests/test-exclude6.sh: Likewise.
41813         * tests/test-exclude7.sh: Likewise.
41814
41815 2009-08-19  Akim Demaille  <demaille@gostai.com>
41816
41817         bootstrap: find sha1sum when named gsha1sum.
41818         * bootstrap (find_tool): New.
41819         ($SHA1SUM): New.
41820         Use it.
41821
41822 2009-08-20  Jim Meyering  <meyering@redhat.com>
41823
41824         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41825         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41826         expression that converts "." in a file name to "\." in the resulting
41827         regexp.  Start with a dummy statement, so that prior shell variable
41828         definitions are expanded portably.  Reported by Simon Josefsson.
41829
41830 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41831
41832         Fix polling for writeability of a screen buffer.
41833         * lib/poll.c: Distinguish input and screen buffers for the
41834         Win32 implementation.
41835         * lib/select.c: Likewise.
41836
41837 2009-08-19  Eric Blake  <ebb9@byu.net>
41838
41839         popen-safer: prevent popen from clobbering std descriptors
41840         * modules/popen-safer: New file.
41841         * lib/popen-safer.c: Likewise.
41842         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41843         * lib/stdio--.h (popen): Provide override.
41844         * lib/stdio-safer.h (popen_safer): Provide declaration.
41845         * tests/test-popen.c (includes): Partially test this.
41846         * modules/popen-safer-tests: New file, for more tests.
41847         * tests/test-popen-safer.c: Likewise.
41848         * MODULES.html.sh (file stream based Input/Output): Mention it.
41849
41850         tests: test some of the *-safer modules
41851         * modules/fopen-safer (Depends-on): Add fopen.
41852         * modules/fcntl-safer (Depends-on): Add fcntl.
41853         * modules/stdlib-safer (Depends-on): Add stdlib.
41854         (configure.ac): Set indicator.
41855         * modules/unistd-safer (configure.ac): Likewise.
41856         * modules/tmpfile-safer (configure.ac): Likewise.
41857         (Depends-on): Add tmpfile.
41858         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41859         active.
41860         * tests/test-fopen.c (includes): Test safer versions when they are
41861         in use.
41862         * tests/test-open.c (includes): Likewise.
41863
41864         popen: fix cygwin 1.5 bug when stdin closed
41865         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41866         * modules/popen: New file.
41867         * modules/popen-tests: Likewise.
41868         * tests/test-popen.c: Likewise.
41869         * m4/popen.m4: Likewise.
41870         * lib/popen.c: Likewise.
41871         * lib/stdio.in.h (popen): New declaration.
41872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41873         * modules/stdio (Makefile.am): Likewise.
41874         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41875
41876 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41877
41878         maint.mk: give full control over update-copyright exclusions
41879         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41880         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41881         (update-copyright): Don't force inclusion of top-level
41882         ChangeLog.  Don't force exclusion of all COPYING files, but make
41883         them the default exclusion instead.
41884
41885 2009-08-16  Bruno Haible  <bruno@clisp.org>
41886
41887         Fix test failures on Solaris 10.
41888         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41889         tests when Solaris iconv() is used.
41890         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41891         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41892         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41893         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41894         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41895
41896 2009-08-16  Bruno Haible  <bruno@clisp.org>
41897
41898         Fix test failures on Solaris 10.
41899         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41900         'tr' program and pass it as first argument.
41901         * tests/test-pipe-filter-gi1.sh: Likewise.
41902         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41903         program as first argument.
41904         * tests/test-pipe-filter-gi1.c (main): Likewise.
41905
41906 2009-08-16  Eric Blake  <ebb9@byu.net>
41907
41908         fpurge: fix previous commits
41909         * modules/fpurge (Makefile.am): Make replacement conditional,
41910         partially reverting 2007-04-29 change; missed in previous
41911         attempt.
41912         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41913         is missing.
41914
41915 2009-08-16  Bruno Haible  <bruno@clisp.org>
41916
41917         Clarify fpurge's effect on the file position.
41918         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41919         * tests/test-fpurge.c (main): Make a second pass for checking the file
41920         position.
41921
41922 2009-08-16  Bruno Haible  <bruno@clisp.org>
41923
41924         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41925         declaration of fpurge is missing.
41926         * tests/test-fpurge.c (main): Check that the file has not more contents
41927         than expected. Close the file before removing it.
41928
41929 2009-08-15  Eric Blake  <ebb9@byu.net>
41930
41931         fpurge: don't wrap working cygwin implementation
41932         * lib/fpurge.c (fpurge): Fix comment typo.
41933         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41934         1.7 to avoid replacement.
41935         * tests/test-fpurge.c (main): Enhance test.
41936
41937 2009-08-15  Eric Blake  <ebb9@byu.net>
41938         and Jim Meyering  <meyering@redhat.com>
41939
41940         test-update-copyright: skip if perl is insufficient
41941         * tests/test-update-copyright.sh: Failure to run maintainer tool
41942         should not cause testsuite failure on cygwin 1.5.
41943
41944 2009-08-14  Eric Blake  <ebb9@byu.net>
41945
41946         doc: mention more functions added in cygwin 1.7.0
41947         * doc/posix-headers/limits.texi (limits.h): Update for recent
41948         cygwin additions.
41949         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41950         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41951         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41952         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41953         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41954
41955 2009-08-14  Eric Blake  <ebb9@byu.net>
41956
41957         maint.mk: simplify update-copyright rule
41958         * top/maint.mk (update-copyright-local): Delete, and document how
41959         to do it in cfg.mk instead.
41960         (update-copyright-exclude-regexp): Delete, and document how to do
41961         it in .x-update-copyright instead.
41962         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41963         exclude ChangeLog.
41964
41965 2009-08-14  Bruno Haible  <bruno@clisp.org>
41966
41967         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41968
41969 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41970
41971         maint.mk: support update-copyright-env
41972         * top/maint.mk (update-copyright-env): Define place-holder.
41973         (update-copyright): Expand $(update-copyright-env) before
41974         invoking update-copyright.
41975
41976 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41977
41978         update-copyright: implement forced reformatting
41979         * build-aux/update-copyright: Implement and document
41980         UPDATE_COPYRIGHT_FORCE.
41981         * tests/test-update-copyright.sh: Test it.
41982
41983 2009-08-14  Eric Blake  <ebb9@byu.net>
41984         and Bruno Haible  <bruno@clisp.org>
41985
41986         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41987         * tests/test-locale.c: Revert previous patch related to NULL.
41988         * tests/test-stdio.c: Likewise.
41989         * tests/test-stdlib.c: Likewise.
41990         * tests/test-string.c: Likewise.
41991         * tests/test-unistd.c: Likewise.
41992         * modules/time-tests (Depends-on): Add verify.
41993         * modules/wchar-tests (Depends-on): Likewise.
41994         * tests/test-time.c: Test for NULL compliance.
41995         * tests/test-wchar.c: Likewise.
41996         * modules/locale (Depends-on): Add stddef.
41997         * modules/stdio (Depends-on): Likewise.
41998         * modules/stdlib (Depends-on): Likewise.
41999         * modules/string (Depends-on): Likewise.
42000         * modules/time (Depends-on): Likewise.
42001         * modules/unistd (Depends-on): Likewise.
42002         * modules/wchar (Depends-on): Likewise.
42003         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42004         * lib/stdlib.in.h (includes): Likewise.
42005         * lib/string.in.h (includes): Likewise.
42006         * lib/time.in.h (includes): Likewise.
42007         * lib/unistd.in.h (includes): Likewise.
42008         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42009         replaced.
42010         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42011         * m4/stddef_h.m4: New file.
42012         * modules/stddef: Likewise.
42013         * lib/stddef.in.h: Likewise.
42014         * modules/stddef-tests: Likewise.
42015         * tests/test-stddef.c: Likewise.
42016         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42017         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42018         * doc/posix-headers/locale.texi (locale.h): Likewise.
42019         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42020         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42021         * doc/posix-headers/string.texi (string.h): Likewise.
42022         * doc/posix-headers/time.texi (time.h): Likewise.
42023         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42024         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42025
42026 2009-08-14  Eric Blake  <ebb9@byu.net>
42027
42028         doc: improve git diff of texinfo files
42029         * .gitattributes: Add rule for *.texi files, with hint on how to
42030         use it.
42031         Copied from m4, and based on a report by Bruno Haible.
42032
42033 2009-08-14  Bruno Haible  <bruno@clisp.org>
42034
42035         Disable multithread support by default on Cygwin 1.5.x for real.
42036         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42037
42038 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42039
42040         update-copyright: much ado about intervals
42041         * build-aux/update-copyright: Implement and document
42042         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42043         of copyright year intervals.
42044         Also, document UPDATE_COPYRIGHT_YEAR.
42045         * tests/test-update-copyright.sh: Test it.
42046
42047         update-copyright: convert 2-digit to 4-digit years
42048         * build-aux/update-copyright: Implement and document.
42049         * tests/test-update-copyright.sh: Update.
42050
42051 2009-08-14  Jim Meyering  <meyering@redhat.com>
42052
42053         test-exclude: avoid coreutils "make check" failure
42054         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42055         just as in test-argmatch.c.
42056
42057 2009-08-13  Eric Blake  <ebb9@byu.net>
42058
42059         test-dup2: fix bad assumption
42060         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42061         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42062
42063         test-version-etc: fix CRLF portability issue
42064         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42065         recognize \r.
42066         * tests/test-argp-version-etc-1.sh: Likewise.
42067
42068         getopt: update client modules
42069         * modules/argp (Depends-on): Use getopt-gnu.
42070         * modules/git-merge-changelog (Depends-on): Likewise.
42071         * modules/long-options (Depends-on): Likewise.
42072         * modules/xstrtol (Depends-on): Likewise.
42073
42074 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42075
42076         * tests/test-version-etc.sh: Don't fail on different
42077         project/version.  Don't fail on CRLF differences.  Rewrite to use
42078         multiple -e instead of multiple sed forks, suggested by Eric Blake
42079         <ebb9@byu.net>.
42080         * tests/test-argp-version-etc-1.sh: Likewise.
42081
42082 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42083
42084         * tests/test-version-etc.sh: Don't fail on different
42085         project/version.
42086
42087 2009-08-12  Bruno Haible  <bruno@clisp.org>
42088
42089         Tests for modules 'getopt-posix', 'getopt-gnu'.
42090         * modules/getopt-posix-tests: New file.
42091         * tests/test-getopt.c: New file.
42092         * tests/test-getopt.h: New file.
42093         * tests/test-getopt_long.h: New file.
42094
42095         New modules 'getopt-posix', 'getopt-gnu'.
42096         * modules/getopt-gnu: New file, renamed from modules/getopt.
42097         * modules/getopt-posix: New file.
42098         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42099         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42100         (gl_GETOPT): Remove macro.
42101         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42102         Disable the test against BSD systems that declare optreset. Test
42103         against mingw bug. Test against lack of support of optional arguments
42104         on many platforms.
42105         * doc/glibc-headers/getopt.texi: Update module name and list of
42106         relevant platforms.
42107         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42108         'getopt-gnu' and more portability problems.
42109         * NEWS: Mention the changes.
42110
42111 2009-08-12  Bruno Haible  <bruno@clisp.org>
42112
42113         Ensure that optarg etc. get declared by <unistd.h>.
42114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42115         AC_USE_SYSTEM_EXTENSIONS.
42116         * modules/getopt (Depends-on): Add 'extensions'.
42117
42118 2009-08-12  Bruno Haible  <bruno@clisp.org>
42119
42120         Avoid test link errors.
42121         * modules/pipe-filter-ii-tests (Makefile.am): Define
42122         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42123         * modules/pipe-filter-gi-tests (Makefile.am): Define
42124         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42126
42127 2009-08-12  Bruno Haible  <bruno@clisp.org>
42128
42129         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42130         gl_GETOPT_SUBSTITUTE before.
42131         (gl_GETOPT): Use it.
42132         * m4/argp.m4 (gl_ARGP): Update.
42133         Reported by Sergey Poznyakoff.
42134
42135         * m4/getopt.m4: Reorder macros.
42136         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42137         (gl_GETOPT_SUBSTITUTE): Remove macro.
42138
42139 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42140
42141         Minor improvement in gitlog-to-changelog
42142
42143         * build-aux/gitlog-to-changelog: New option `--format' makes
42144         output format string configurable.
42145
42146 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42147
42148         Optimize exclude: use hash tables for non-wildcard patterns.
42149
42150         * lib/exclude.c: Include hash.h and mbuiter.h
42151         (struct exclude_pattern, exclude_segment): New data types.
42152         (struct exclude): Rewrite.
42153         (fnmatch_pattern_has_wildcards): New function.
42154         (new_exclude_segment, free_exclude_segment): New functions.
42155         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42156         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42157         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42158         * modules/exclude: Depend on hash and mbuiter.
42159
42160         * modules/exclude-tests: New file.
42161         * tests/test-exclude.c: New file.
42162         * tests/test-exclude1.sh: New file.
42163         * tests/test-exclude2.sh: New file.
42164         * tests/test-exclude3.sh: New file.
42165         * tests/test-exclude4.sh: New file.
42166         * tests/test-exclude5.sh: New file.
42167         * tests/test-exclude6.sh: New file.
42168         * tests/test-exclude7.sh: New file.
42169
42170 2009-08-12  Bruno Haible  <bruno@clisp.org>
42171
42172         Ensure that getopt() gets declared by <unistd.h>.
42173         * lib/unistd.in.h: Conditionally include getopt.h.
42174         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42175         Set GNULIB_UNISTD_H_GETOPT.
42176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42177         GNULIB_UNISTD_H_GETOPT.
42178         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42179
42180 2009-08-12  Bruno Haible  <bruno@clisp.org>
42181
42182         Clarify logic.
42183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42184         gl_replace_getopt instead of GETOPT_H.
42185
42186 2009-08-12  Bruno Haible  <bruno@clisp.org>
42187
42188         * m4/getopt.m4: Add comments.
42189
42190 2009-08-12  Bruno Haible  <bruno@clisp.org>
42191
42192         Disable multithread support by default on Cygwin 1.5.x.
42193         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42194         set gl_use_threads=no if not specified otherwise.
42195
42196 2009-08-11  Bruno Haible  <bruno@clisp.org>
42197
42198         Avoid compilation error on NetBSD 5.0.
42199         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42200         * tests/test-stdio.c: Likewise.
42201         * tests/test-stdlib.c: Likewise.
42202         * tests/test-string.c: Likewise.
42203         * tests/test-unistd.c: Likewise.
42204         Reported by Greg Troxel <gdt@ir.bbn.com>
42205         at <https://savannah.gnu.org/support/?106973>.
42206
42207 2009-08-11  Bruno Haible  <bruno@clisp.org>
42208
42209         * modules/dup2-tests (Depends-on): Remove close.
42210
42211         Undo 2009-07-19 commit.
42212         * modules/acl-tests (Depends-on): Remove close.
42213         * modules/binary-io-tests (Depends-on): Likewise.
42214         * modules/closein-tests (Depends-on): Likewise.
42215         * modules/flock-tests (Depends-on): Likewise.
42216         * modules/fsync-tests (Depends-on): Likewise.
42217         * modules/lseek-tests (Depends-on): Likewise.
42218         * modules/pipe-tests (Depends-on): Likewise.
42219         * modules/posix_spawn-tests (Depends-on): Likewise.
42220         * modules/posix_spawnp-tests (Depends-on): Likewise.
42221         * modules/stat-time-tests (Depends-on): Likewise.
42222         * modules/yesno-tests (Depends-on): Likewise.
42223
42224 2009-08-10  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42227
42228 2009-08-10  Bruno Haible  <bruno@clisp.org>
42229
42230         Fix a gcc warning.
42231         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42232
42233 2009-08-10  Bruno Haible  <bruno@clisp.org>
42234
42235         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42236         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42237         not only the first time.
42238         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42239         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42240         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42241         is 1, not only the the first time.
42242
42243 2009-08-10  Bruno Haible  <bruno@clisp.org>
42244
42245         Make it possible to use module 'gethostname' without module 'close'.
42246         * lib/unistd.in.h (close): Evoke a link error only if
42247         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42249         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42250         * modules/unistd (Makefile.am): Substitute
42251         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42252         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42253         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42254         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42255         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42256         * modules/sys_ioctl (Makefile.am): Substitute
42257         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42258         * modules/socket (configure.ac): On native Windows, set
42259         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42260         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42261         Reported by Sam Steingold <sds@gnu.org>.
42262
42263 2009-08-10  Bruno Haible  <bruno@clisp.org>
42264
42265         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42266         * modules/ioctl (configure.ac): Likewise.
42267
42268 2009-08-10  Bruno Haible  <bruno@clisp.org>
42269
42270         Avoid collision between gnulib wrapper and libintl wrapper.
42271         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42272         already defined in intl/printf.c.
42273         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42274         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42275
42276 2009-08-09  Bruno Haible  <bruno@clisp.org>
42277
42278         Make <sys/select.h> really self-contained, also on Solaris 10.
42279         * lib/sys_select.in.h: Include <string.h>.
42280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42281         Solaris 10 problem.
42282         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42283         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42284         Reported by Jim Meyering.
42285
42286 2009-08-09  Bruno Haible  <bruno@clisp.org>
42287
42288         Avoid warnings from 'aclocal' that are due to a use of macro name
42289         AM_XGETTEXT_OPTION that is not defined in automake.
42290         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42291         automake.
42292         * modules/error (configure.ac): Likewise.
42293         * modules/propername (configure.ac): Likewise.
42294         * modules/vasprintf (configure.ac): Likewise.
42295         * modules/verror (configure.ac): Likewise.
42296         * modules/xprintf (configure.ac): Likewise.
42297         * modules/xvasprintf (configure.ac): Likewise.
42298
42299 2009-08-08  Bruno Haible  <bruno@clisp.org>
42300
42301         Avoid compilation error in C++ mode.
42302         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42303         Reported by Sam Steingold <sds@gnu.org>.
42304
42305 2009-08-08  Bruno Haible  <bruno@clisp.org>
42306
42307         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42308         for the various Unix platforms.
42309         * doc/posix-headers/limits.texi: Update platforms list regarding
42310         HOST_NAME_MAX.
42311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42312
42313 2009-08-07  Jim Meyering  <meyering@redhat.com>
42314
42315         selinux-at: fix typo in a comment
42316         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42317         Spotted by Paolo Bonzini.
42318
42319         selinux-at: remove redundant m4 code, add documentation
42320         * modules/selinux-at (configure.ac): Remove redundant code.
42321         LIB_SELINUX is already set via the dependent module, selinux-h.
42322         (Include): Add quotes around selinux-at.h.
42323         * lib/selinux-at.h: Add documentation.
42324         Reported by Bruno Haible in
42325         http://marc.info/?l=gnulib-bug&m=124958988300749
42326
42327 2009-08-07  Bruno Haible  <bruno@clisp.org>
42328
42329         Avoid link error on MacOS X 10.3 and 10.4.
42330         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42331         on non-ELF systems.
42332         * lib/argp-pv.c (argp_program_version): Likewise.
42333         Reported by Simon Josefsson.
42334
42335 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42336
42337         * tests/test-version-etc.sh: Use $EXEEXT.
42338
42339 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42340
42341         update-copyright: update documentation to point to maint.mk
42342         * build-aux/update-copyright: Here.
42343
42344 2009-08-06  Jim Meyering  <meyering@redhat.com>
42345
42346         maint.mk: support update-copyright-local
42347         * top/maint.mk (update-copyright-local): Define place-holder.
42348         (update-copyright): Depend on $(update-copyright-local).
42349
42350 2009-08-06  Jim Meyering  <meyering@redhat.com>
42351
42352         selinux-at: new module
42353         Initially written for coreutils, this module will soon be
42354         used by findutils, too.
42355         * MODULES.html.sh [Misc]: Add selinux-at.
42356         * lib/selinux-at.h: New file, from coreutils.
42357         * lib/selinux-at.c: Likewise.
42358         * modules/selinux-at: Likewise.
42359         (License): Change from LGPL to GPL, since it depends
42360         on the GPL'd openat module.
42361
42362         doc: update README
42363         * README: Remove references to cogito.
42364         Remove cvs-repo-updating instructions from 2007.
42365         Don't imply that CVS is better if you have limited disk space.
42366
42367 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42368
42369         update-copyright: support C-style comments
42370         * build-aux/update-copyright: Implement and document.
42371         * tests/test-update-copyright.sh: Test.
42372
42373 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42374
42375         update-copyright: support omitted "(C)"
42376         * build-aux/update-copyright: Implement and document.  Also,
42377         allow variable whitespace before "(C)".
42378         * tests/test-update-copyright.sh: Test.
42379
42380 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42381
42382         update-copyright: don't trip on non-FSF copyright statements
42383         * build-aux/update-copyright: Fix so that the first correctly
42384         formatted FSF copyright statement is recognized no matter what
42385         appears before it.  Update documentation.
42386         * tests/test-update-copyright.sh: Test that.
42387
42388 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42389
42390         update-copyright: clean up code a little
42391         * build-aux/update-copyright: Append "_re" to the name of any
42392         variable holding a regular expression.
42393         Replace "old" and "new" with "stmt" in variable names.
42394         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42395         handled correctly.
42396         Format code more consistently.
42397
42398 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42399
42400         update-copyright-tests: improve portability
42401         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42402         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42403
42404 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42405
42406         update-copyright: support @copyright{} and &copy;
42407         * build-aux/update-copyright: Implement and document.
42408         * tests/test-update-copyright.sh: Test.
42409
42410 2009-08-04  Jim Meyering  <meyering@redhat.com>
42411
42412         update-copyright-tests: correctly test EOL=\r\n handling
42413         * tests/test-update-copyright.sh: Put \r at the end of some lines
42414         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42415
42416         maint.mk: make update-copyright exclusion list more configurable
42417         * top/maint.mk (update-copyright): Default to excluding COPYING,
42418         but allow an override, in case someone does want to update that file.
42419
42420         maint.mk: don't update copyright date in COPYING
42421         * top/maint.mk (update-copyright): Exclude COPYING.
42422
42423         maint.mk: add a copyright-updating rule
42424         * top/maint.mk (update-copyright): New rule.
42425         Derived from coreutils/Makefile.am.
42426
42427         update-copyright: rename some variables
42428         * build-aux/update-copyright: Rename a few variables for clarity.
42429         Tweak syntax.  List Joel E. Denny as coauthor.
42430
42431 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42432
42433         update-copyright: fix bug for 2-digit last year and add tests
42434         * build-aux/update-copyright: Fix bug.
42435         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42436         specified.
42437         * modules/update-copyright-tests: New
42438         * tests/test-update-copyright.sh: New.
42439
42440 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42441
42442         update-copyright: handle leading tabs in line prefix
42443         * build-aux/update-copyright: Count leading tabs as 8 spaces
42444         when computing margin.  This helps with the formatting of
42445         ChangeLogs, for example.
42446         Fix documentation a little.
42447
42448 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42449
42450         update-copyright: support EOL=\r\n
42451         * build-aux/update-copyright: Implement that.
42452
42453 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42454
42455         update-copyright: automatically format copyright statements
42456         * build-aux/update-copyright: Implement that.
42457         Also, be a little more predictable and safer by always failing
42458         when the full copyright format is not perfectly recognized as an
42459         unbroken whole.  Discussed at
42460         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42461         Rewrite documentation.
42462
42463 2009-08-03  Bruno Haible  <bruno@clisp.org>
42464
42465         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42466
42467 2009-08-02  Bruno Haible  <bruno@clisp.org>
42468
42469         Tests for module 'uname'.
42470         * modules/uname-tests: New file.
42471         * tests/test-uname.c: New file.
42472
42473         New module 'uname'.
42474         * lib/uname.c: New file.
42475         * m4/uname.m4: New file.
42476         * modules/uname: New file.
42477         * doc/posix-functions/uname.texi: Mention the new module.
42478
42479 2009-08-02  Bruno Haible  <bruno@clisp.org>
42480
42481         Tests for module 'sys_utsname'.
42482         * modules/sys_utsname-tests: New file.
42483         * tests/test-sys_utsname.c: New file.
42484
42485         New module 'sys_utsname'.
42486         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42487         * m4/sys_utsname_h.m4: New file.
42488         * modules/sys_utsname: New file.
42489         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42490
42491 2009-08-02  Bruno Haible  <bruno@clisp.org>
42492
42493         Implicitly initialize the sockets library.
42494         * lib/gethostname.c: Include sockets.h.
42495         (rpl_gethostname): Invoke gl_sockets_startup.
42496         * lib/socket.c: Include sockets.h.
42497         (rpl_socket): Invoke gl_sockets_startup.
42498         * modules/gethostname (Depends-on): Add sockets.
42499         * modules/socket (Depends-on): Likewise.
42500         * tests/test-poll.c: Don't include sockets.h.
42501         (main): Don't invoke gl_sockets_startup.
42502         * tests/test-select.c: Don't include sockets.h.
42503         (main): Don't invoke gl_sockets_startup.
42504
42505 2009-08-02  Bruno Haible  <bruno@clisp.org>
42506
42507         Allow multiple calls to gl_sockets_startup.
42508         * lib/sockets.c (initialized_sockets_version): New variable.
42509         (gl_sockets_startup): Do nothing if already called for this or a higher
42510         version.
42511         (gl_sockets_cleanup): Reset initialized_sockets_version.
42512
42513 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42514
42515         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42516         different project/version.
42517
42518 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42519             Bruno Haible  <bruno@clisp.org>
42520
42521         Tests for module 'pipe-filter-gi'.
42522         * modules/pipe-filter-gi-tests: New file.
42523         * tests/test-pipe-filter-gi1.sh: New file.
42524         * tests/test-pipe-filter-gi1.c: New file.
42525         * tests/test-pipe-filter-gi2.sh: New file.
42526         * tests/test-pipe-filter-gi2-main.c: New file.
42527         * tests/test-pipe-filter-gi2-child.c: New file.
42528
42529         New module 'pipe-filter-gi'.
42530         * lib/pipe-filter-gi.c: New file.
42531         * modules/pipe-filter-gi: New file.
42532
42533 2009-08-02  Bruno Haible  <bruno@clisp.org>
42534             Paolo Bonzini  <bonzini@gnu.org>
42535
42536         Tests for module 'pipe-filter-ii'.
42537         * modules/pipe-filter-ii-tests: New file.
42538         * tests/test-pipe-filter-ii1.sh: New file.
42539         * tests/test-pipe-filter-ii1.c: New file.
42540         * tests/test-pipe-filter-ii2.sh: New file.
42541         * tests/test-pipe-filter-ii2-main.c: New file.
42542         * tests/test-pipe-filter-ii2-child.c: New file.
42543
42544         New module 'pipe-filter-ii'.
42545         * lib/pipe-filter.h: New file.
42546         * lib/pipe-filter-ii.c: New file.
42547         * lib/pipe-filter-aux.h: New file.
42548         * modules/pipe-filter-ii: New file.
42549
42550 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42551
42552         * lib/gc-libgcrypt.c: Change copyright to FSF.
42553         * lib/gc-gnulib.c: Likewise.
42554
42555 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42556
42557         * lib/gethostname.c: Include limits.h.
42558
42559 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42560             Bruno Haible  <bruno@clisp.org>
42561
42562         Ensure HOST_NAME_MAX as part of the gethostname module.
42563         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42564         define also HOST_NAME_MAX.
42565         * tests/test-gethostname.c: Include <limits.h>.
42566         (main): Check also HOST_NAME_MAX.
42567         * doc/posix-headers/limits.texi: Document the mingw problem.
42568
42569 2009-08-02  Bruno Haible  <bruno@clisp.org>
42570
42571         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42572         Add comments.
42573
42574 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42575
42576         * lib/gethostname.c: Add Windows wrapper.
42577         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42578         * modules/gethostname: Depend on sys_socket & errno, for also
42579         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42580         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42581
42582 2009-07-31  Jim Meyering  <meyering@redhat.com>
42583
42584         getloadavg: fix symbol name in comment
42585         * lib/getloadavg.c: Correct a typo I introduced when adding
42586         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42587         Matt Kraai spotted the problem.
42588
42589 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42590
42591         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42592         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42593         code also if ! defined N_NAME_POINTER.
42594         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42595         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42596         but the n_name member is a 12-byte array.
42597
42598 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42599
42600         update-copyright: generalize comment handling
42601         * build-aux/update-copyright: Handle copyright statements
42602         within more comment styles.
42603         Document usage.
42604         Report any file with an external copyright holder or parse failure.
42605
42606 2009-07-29  Jim Meyering  <meyering@redhat.com>
42607
42608         mktime: correct setting of REPLACE_MKTIME
42609         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42610
42611         update-copyright: new module
42612         * modules/update-copyright: New file.
42613         * build-aux/update-copyright: New file.
42614         * MODULES.html.sh (maint+release support): Add update-copyright.
42615
42616 2009-07-27  Bruno Haible  <bruno@clisp.org>
42617
42618         Fix compilation error when <ctime> is used and mktime is replaced.
42619         * lib/time.in.h (mktime): New declaration.
42620         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42621         REPLACE_MKTIME instead of defining mktime in config.h.
42622         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42623         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42624         Reported by Ross McFarland <rwmcfa1@neces.com>.
42625
42626 2009-07-27  Bruno Haible  <bruno@clisp.org>
42627
42628         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42629         Reported by Matt Kraai <mkraai@beckman.com>.
42630
42631 2009-07-25  Jim Meyering  <meyering@redhat.com>
42632
42633         maint.mk: avoid warnings about missing files
42634         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42635         diagnostic when .prev-version does not exist.
42636         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42637         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42638         nonexistent cfg.mk.
42639         Suggestions from Simon Josefsson.
42640
42641 2009-07-25  Bruno Haible  <bruno@clisp.org>
42642
42643         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42644         defined as macros. Needed on QNX 6.4.1.
42645         Reported by Matt Kraai <mkraai@beckman.com>.
42646
42647 2009-07-23  Jim Meyering  <meyering@redhat.com>
42648
42649         maint.mk: invoke "make dist" with a working value of XZ_OPT
42650         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42651
42652 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42653
42654         Make fseeko.c compile on QNX.
42655         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42656
42657 2009-07-22  Peter Simons  <simons@cryp.to>
42658
42659         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42660         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42661         * lib/md4.h: Likewise.
42662         * lib/md5.h: Likewise.
42663         * lib/sha1.h: Likewise.
42664         * lib/sha256.h: Likewise.
42665         * lib/sha512.h: Likewise.
42666
42667         tests-sha1: don't assign literal string to 'char *' variable
42668         * tests/test-sha1.c (main): Declare locals with "const" to match
42669         attributes of the right hand side.
42670
42671 2009-07-21  Eric Blake  <ebb9@byu.net>
42672
42673         dup2: fix more mingw problems
42674         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42675         fd to itself.
42676         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42677         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42678         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42679         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42680         care of mingw bugs.
42681
42682 2009-07-21  Jim Meyering  <meyering@redhat.com>
42683
42684         vc-list-files: avoid failure when /bin/sh is dash
42685         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42686         On some Debian based systems, /bin/sh is a symlink to dash, and running
42687         this command would omit the "/" following each 'tests' prefix:
42688           dash -x build-aux/vc-list-files -C . tests
42689         That is because bash and dash work differently:
42690           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42691           bash ok
42692           dash odd
42693
42694 2009-07-21  Eric Blake  <ebb9@byu.net>
42695
42696         dup2-tests: test previous patch
42697         * modules/dup2-tests: New file.
42698         * tests/test-dup2.c: Likewise.
42699         * tests/test-open.c (main): Avoid unspecified behavior.
42700         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42701         test.
42702
42703         dup2: work around mingw and cygwin 1.5 bug
42704         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42706         * modules/unistd (Makefile.am): Substitute it.
42707         * lib/unistd.in.h (dup2): Declare the replacement.
42708         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42709         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42710         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42711         * modules/execute (Depends-on): Add dup2.
42712         * modules/fseterr (Depends-on): Likewise.
42713         * modules/pipe (Depends-on): Likewise.
42714         * modules/posix_spawn-internal (Depends-on): Likewise.
42715
42716 2009-07-21  Bruno Haible  <bruno@clisp.org>
42717
42718         * modules/.gitattributes: New file.
42719
42720 2009-07-20  Bruno Haible  <bruno@clisp.org>
42721
42722         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42723         (main): Use it.
42724
42725 2009-07-20  Eric Blake  <ebb9@byu.net>
42726
42727         test-pipe: make a bit more robust.
42728         * tests/test-pipe.c (myerr): Allow error messages regardless of
42729         what we do to stderr.
42730         (test_pipe): Rearrange to avoid deadlock.
42731         (child_main): Try a larger read, to ensure we avoided deadlock.
42732         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42733         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42734         if misused.
42735
42736 2009-07-19  Jim Meyering  <meyering@redhat.com>
42737
42738         fts: avoid false-positive cycle-detection
42739         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42740         for each new command line argument.
42741
42742 2009-07-19  Bruno Haible  <bruno@clisp.org>
42743
42744         Fix build error on mingw with the modules sys_select and unistd.
42745         * modules/acl-tests (Depends-on): Add close.
42746         * modules/binary-io-tests (Depends-on): Likewise.
42747         * modules/closein-tests (Depends-on): Likewise.
42748         * modules/flock-tests (Depends-on): Likewise.
42749         * modules/fsync-tests (Depends-on): Likewise.
42750         * modules/lseek-tests (Depends-on): Likewise.
42751         * modules/pipe-tests (Depends-on): Likewise.
42752         * modules/posix_spawn-tests (Depends-on): Likewise.
42753         * modules/posix_spawnp-tests (Depends-on): Likewise.
42754         * modules/stat-time-tests (Depends-on): Likewise.
42755         * modules/yesno-tests (Depends-on): Likewise.
42756
42757 2009-07-19  Bruno Haible  <bruno@clisp.org>
42758
42759         Unify conditionals.
42760         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42761         macros, not at the compiler macros.
42762         * lib/pipe.c: Likewise.
42763         * lib/execute.c: Likewise.
42764         * lib/spawni.c: Likewise.
42765
42766 2009-07-19  Bruno Haible  <bruno@clisp.org>
42767
42768         Fix handling of closed stdin/stdout/stderr on mingw.
42769         * lib/w32spawn.h: Include unistd.h.
42770         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42771         file descriptor with O_NOINHERIT flag.
42772         (fd_safer_noinherit): New function, based on fd-safer.c.
42773         (dup_safer_noinherit): New function, based on dup-safer.c.
42774         (undup_safer_noinherit): New function.
42775         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42776         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42777         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42778         instead of fd_safer.
42779         * tests/test-pipe.c: Include <windows.h>.
42780         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42781         result.
42782
42783         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42784         from main.
42785         (test_pipe): Pass an extra argument for disambiguation.
42786         (main): Invoke parent_main or child_main.
42787
42788         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42789         consistently.
42790
42791 2009-07-18  Eric Blake  <ebb9@byu.net>
42792
42793         test-pipe: fix mingw build
42794         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42795
42796 2009-07-18  Bruno Haible  <bruno@clisp.org>
42797
42798         * modules/pipe-tests (Makefile.am): Fix typo.
42799
42800 2009-07-18  Eric Blake  <ebb9@byu.net>
42801
42802         error: fix mingw build
42803         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42804         Reported by Bruno Haible.
42805
42806         error: avoid undefined use of stdout
42807         * lib/error.c (error, error_at_line): Check that fd 1 is open
42808         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42809         is handling faults and the close_stdout module wants to report the
42810         detection of closed stdout as an error.
42811
42812 2009-07-17  Eric Blake  <ebb9@byu.net>
42813
42814         pipe: be robust in face of closed fds
42815         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42816         should cause child to misbehave.
42817         * modules/pipe-tests: New module.
42818         * tests/test-pipe.c: New file.
42819         * tests/test-pipe.sh: New file.
42820         Reported by Akim Demaille.
42821
42822 2009-07-14  Bruno Haible  <bruno@clisp.org>
42823
42824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42825         Reported by anonymous kc.
42826
42827 2009-07-07  Jim Meyering  <meyering@redhat.com>
42828
42829         maint.mk: don't look for translatable strings in *.m4 or *.mk
42830         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42831         when searching for translatable strings.
42832
42833 2009-07-05  Jim Meyering  <meyering@redhat.com>
42834
42835         remove superfluous parentheses in STREQ definition
42836         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42837         * lib/getugroups.c (STREQ): Likewise.
42838         * lib/fnmatch.c (STREQ): Likewise.
42839         Spotted by Bruno Haible.
42840
42841 2009-07-04  Jim Meyering  <meyering@redhat.com>
42842
42843         argv-iter: new module
42844         * MODULES.html.sh: Add argv-iter.
42845         * lib/argv-iter.c, lib/argv-iter.h: New files.
42846         * modules/argv-iter: New file.
42847         * modules/argv-iter-tests: New file.
42848         * tests/test-argv-iter.c: Test it.
42849
42850 2009-07-04  Bruno Haible  <bruno@clisp.org>
42851
42852         Fix assertion.
42853         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42854         contains more exact copies of a given entry than file2, leave the extra
42855         copies unpaired rather than aborting.
42856         Reported by Eric Blake.
42857
42858 2009-07-02  Bruno Haible  <bruno@clisp.org>
42859
42860         Speedup git-merge-changelog for git cherry-pick.
42861         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42862         (entries_mapping_get): New function, extracted from compute_mapping.
42863         (entries_mapping_reverse_get): New function.
42864         (compute_mapping): Add a 'full' argument. Return the result in a
42865         'struct entries_mapping'.
42866         (main): Update. Access the mappings through entries_mapping_get.
42867         Reported by Eric Blake.
42868
42869 2009-07-02  Bruno Haible  <bruno@clisp.org>
42870
42871         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42872         best_i.
42873
42874 2009-07-02  Bruno Haible  <bruno@clisp.org>
42875
42876         Speed up approximate search for matching ChangeLog entries.
42877         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42878         argument. Call fstrcmp_bounded instead of fstrcmp.
42879         (compute_mapping, try_split_merged_entry, main): Update callers.
42880
42881 2009-07-02  Bruno Haible  <bruno@clisp.org>
42882
42883         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42884
42885 2009-06-30  Bruno Haible  <bruno@clisp.org>
42886
42887         Reduce the number of uc_is_cased calls.
42888         * lib/unicase.h (casing_suffix_context_t): Add
42889         'first_char_except_ignorable' field.
42890         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42891         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42892         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42893         Update initializer.
42894         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42895         case-ignorable characters.
42896         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42897         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42898         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42899         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42900         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42901
42902 2009-06-30  Bruno Haible  <bruno@clisp.org>
42903
42904         Tests for module 'unicase/ignorable'.
42905         * modules/unicase/ignorable-tests: New file.
42906         * tests/unicase/test-ignorable.c: New file, generated by
42907         gen-uni-tables.
42908
42909         Tests for module 'unicase/cased'.
42910         * modules/unicase/cased-tests: New file.
42911         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42912         * tests/unicase/test-predicate-part1.h: New file, derived from
42913         tests/unictype/test-predicate-part1.h.
42914         * tests/unicase/test-predicate-part2.h: New file, same as
42915         tests/unictype/test-predicate-part2.h.
42916
42917         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42918         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42919         (output_casing_properties): New function.
42920         (main): Call it.
42921         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42922         * lib/unicase/cased.c: Include unictype/bitmap.h.
42923         (uc_is_cased): Define through a bitmap lookup.
42924         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42925         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42926         (uc_is_case_ignorable): Define through a bitmap lookup.
42927         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42928         lib/unictype/bitmap.h.
42929         (Depends-on): Add inline. Clean up.
42930         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42931         lib/unictype/bitmap.h.
42932         (Depends-on): Add inline. Clean up.
42933         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42934         recognition.
42935         * tests/unicase/test-u16-tolower.c (main): Likewise.
42936         * tests/unicase/test-u32-tolower.c (main): Likewise.
42937
42938 2009-06-30  Bruno Haible  <bruno@clisp.org>
42939
42940         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42941         * lib/unicase/u16-casemap.c: Likewise.
42942         * lib/unicase/u32-casemap.c: Likewise.
42943
42944 2009-06-29  Bruno Haible  <bruno@clisp.org>
42945
42946         Define u32_casefold as a wrapper around u32_ct_casefold.
42947         * lib/unicase/u32-casefold.c: Update.
42948         * modules/unicase/u32-casefold (Depends-on): Add
42949         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42950         unicase/empty-suffix-context. Clean up.
42951
42952         Define u16_casefold as a wrapper around u16_ct_casefold.
42953         * lib/unicase/u16-casefold.c: Update.
42954         * modules/unicase/u16-casefold (Depends-on): Add
42955         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42956         unicase/empty-suffix-context. Clean up.
42957
42958         Define u8_casefold as a wrapper around u8_ct_casefold.
42959         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42960         * lib/unicase/u8-casefold.c: Update.
42961         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42962         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42963
42964         Define u32_totitle as a wrapper around u32_ct_totitle.
42965         * lib/unicase/u32-totitle.c: Update.
42966         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42967         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42968
42969         Define u16_totitle as a wrapper around u16_ct_totitle.
42970         * lib/unicase/u16-totitle.c: Update.
42971         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42972         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42973
42974         Define u8_totitle as a wrapper around u8_ct_totitle.
42975         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42976         functions.
42977         (FUNC): Delegate to U_CT_TOTITLE.
42978         * lib/unicase/u8-totitle.c: Update.
42979         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42980         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42981
42982         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42983         invocation.
42984         * modules/unicase/u32-tolower (Depends-on): Add
42985         unicase/empty-prefix-context, unicase/empty-suffix-context.
42986
42987         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42988         invocation.
42989         * modules/unicase/u16-tolower (Depends-on): Add
42990         unicase/empty-prefix-context, unicase/empty-suffix-context.
42991
42992         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42993         * modules/unicase/u8-tolower (Depends-on): Add
42994         unicase/empty-prefix-context, unicase/empty-suffix-context.
42995
42996         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42997         invocation.
42998         * modules/unicase/u32-toupper (Depends-on): Add
42999         unicase/empty-prefix-context, unicase/empty-suffix-context.
43000
43001         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43002         invocation.
43003         * modules/unicase/u16-toupper (Depends-on): Add
43004         unicase/empty-prefix-context, unicase/empty-suffix-context.
43005
43006         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43007         * modules/unicase/u8-toupper (Depends-on): Add
43008         unicase/empty-prefix-context, unicase/empty-suffix-context.
43009
43010         New module 'unicase/u32-ct-casefold'.
43011         * lib/unicase/u32-ct-casefold.c: New file.
43012         * modules/unicase/u32-ct-casefold: New file.
43013
43014         New module 'unicase/u16-ct-casefold'.
43015         * lib/unicase/u16-ct-casefold.c: New file.
43016         * modules/unicase/u16-ct-casefold: New file.
43017
43018         New module 'unicase/u8-ct-casefold'.
43019         * lib/unicase/u8-ct-casefold.c: New file.
43020         * lib/unicase/u-ct-casefold.h: New file, derived from
43021         lib/unicase/u-casefold.h.
43022         * modules/unicase/u8-ct-casefold: New file.
43023
43024         New module 'unicase/u32-ct-totitle'.
43025         * lib/unicase/u32-ct-totitle.c: New file.
43026         * modules/unicase/u32-ct-totitle: New file.
43027
43028         New module 'unicase/u16-ct-totitle'.
43029         * lib/unicase/u16-ct-totitle.c: New file.
43030         * modules/unicase/u16-ct-totitle: New file.
43031
43032         New module 'unicase/u8-ct-totitle'.
43033         * lib/unicase/u8-ct-totitle.c: New file.
43034         * lib/unicase/u-ct-totitle.h: New file, derived from
43035         lib/unicase/u-totitle.h.
43036         * modules/unicase/u8-ct-totitle: New file.
43037
43038         New module 'unicase/u32-ct-tolower'.
43039         * lib/unicase/u32-ct-tolower.c: New file.
43040         * modules/unicase/u32-ct-tolower: New file.
43041
43042         New module 'unicase/u16-ct-tolower'.
43043         * lib/unicase/u16-ct-tolower.c: New file.
43044         * modules/unicase/u16-ct-tolower: New file.
43045
43046         New module 'unicase/u8-ct-tolower'.
43047         * lib/unicase/u8-ct-tolower.c: New file.
43048         * modules/unicase/u8-ct-tolower: New file.
43049
43050         New module 'unicase/u32-ct-toupper'.
43051         * lib/unicase/u32-ct-toupper.c: New file.
43052         * modules/unicase/u32-ct-toupper: New file.
43053
43054         New module 'unicase/u16-ct-toupper'.
43055         * lib/unicase/u16-ct-toupper.c: New file.
43056         * modules/unicase/u16-ct-toupper: New file.
43057
43058         New module 'unicase/u8-ct-toupper'.
43059         * lib/unicase/u8-ct-toupper.c: New file.
43060         * modules/unicase/u8-ct-toupper: New file.
43061
43062         Add context arguments to u*_casemap functions.
43063         * lib/unicase/unicasemap.h: Include unicase.h.
43064         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43065         suffix_context arguments.
43066         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43067         functions.
43068         (FUNC): Add prefix_context and suffix_context arguments. Use
43069         uc_is_cased and uc_is_case_ignorable.
43070         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43071         * lib/unicase/u16-casemap.c: Likewise.
43072         * lib/unicase/u32-casemap.c: Likewise.
43073         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43074         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43075         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43076         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43077         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43078         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43079
43080         New module 'unicase/u32-suffix-context'.
43081         * lib/unicase/u32-suffix-context.c: New file.
43082         * modules/unicase/u32-suffix-context: New file.
43083
43084         New module 'unicase/u16-suffix-context'.
43085         * lib/unicase/u16-suffix-context.c: New file.
43086         * modules/unicase/u16-suffix-context: New file.
43087
43088         New module 'unicase/u8-suffix-context'.
43089         * lib/unicase/u8-suffix-context.c: New file.
43090         * lib/unicase/u-suffix-context.h: New file.
43091         * modules/unicase/u8-suffix-context: New file.
43092
43093         New module 'unicase/empty-suffix-context'.
43094         * lib/unicase/empty-suffix-context.c: New file.
43095         * modules/unicase/empty-suffix-context: New file.
43096
43097         New module 'unicase/u32-prefix-context'.
43098         * lib/unicase/u32-prefix-context.c: New file.
43099         * modules/unicase/u32-prefix-context: New file.
43100
43101         New module 'unicase/u16-prefix-context'.
43102         * lib/unicase/u16-prefix-context.c: New file.
43103         * modules/unicase/u16-prefix-context: New file.
43104
43105         New module 'unicase/u8-prefix-context'.
43106         * lib/unicase/u8-prefix-context.c: New file.
43107         * lib/unicase/u-prefix-context.h: New file.
43108         * lib/unicase/context.h: New file.
43109         * modules/unicase/u8-prefix-context: New file.
43110
43111         New module 'unicase/empty-prefix-context'.
43112         * lib/unicase/empty-prefix-context.c: New file.
43113         * modules/unicase/empty-prefix-context: New file.
43114
43115         New module 'unicase/ignorable'.
43116         * lib/unicase/ignorable.c: New file.
43117         * modules/unicase/ignorable: New file.
43118
43119         New module 'unicase/cased'.
43120         * lib/unicase/caseprop.h: New file.
43121         * lib/unicase/cased.c: New file.
43122         * modules/unicase/cased: New file.
43123
43124         New functions for case mapping of substrings.
43125         * lib/unicase.h (casing_prefix_context_t): New type.
43126         (unicase_empty_prefix_context): New variable.
43127         (u8_casing_prefix_context, u16_casing_prefix_context,
43128         u32_casing_prefix_context, u8_casing_prefixes_context,
43129         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43130         declarations.
43131         (casing_suffix_context_t): New type.
43132         (unicase_empty_suffix_context): New variable.
43133         (u8_casing_suffix_context, u16_casing_suffix_context,
43134         u32_casing_suffix_context, u8_casing_suffixes_context,
43135         u16_casing_suffixes_context, u32_casing_suffixes_context,
43136         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43137         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43138         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43139         declarations.
43140
43141 2009-06-28  Jim Meyering  <meyering@redhat.com>
43142
43143         boostrap: indent only with spaces
43144         * build-aux/bootstrap: Indent only with spaces, never TABs.
43145
43146         bootstrap: split long lines
43147         * build-aux/bootstrap: Keep line length < 80.
43148
43149         bootstrap: sync from coreutils
43150         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43151         just as autoreconf does.  Verify a list of prerequisite
43152         package-name,version-number pairs if defined in bootstrap.conf.
43153         Refer to README-prereq, if prerequisites are not satisfied.
43154
43155 2009-06-27  Eric Blake  <ebb9@byu.net>
43156
43157         tests: add test for bogus NULL definition
43158         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43159         * tests/test-stdlib.c: Likewise.
43160         * tests/test-string.c: Likewise.
43161         * tests/test-locale.c: Likewise.
43162         * tests/test-unistd.c: Likewise.
43163         * modules/stdio-tests (Depends-on): Add verify.
43164         * modules/stdlib-tests (Depends-on): Likewise.
43165         * modules/string-tests (Depends-on): Likewise.
43166         * modules/locale-tests (Depends-on): Likewise.
43167         * modules/unistd-tests (Depends-on): Likewise.
43168
43169 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43170
43171         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43172         self-explaining comment.
43173         * m4/selinux-selinux-h: Update serial.
43174         (gl_LIBSELINUX): New macro, adding a warning for missing development
43175         packages to code extracted from...
43176         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43177         Add warning for missing development packages here, too.
43178
43179 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43180
43181         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43182
43183 2009-06-25  Eric Blake  <ebb9@byu.net>
43184
43185         version-etc: fix regression
43186         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43187         gcc.
43188         (version_etc): Use it, to catch bugs with trailing NULL.
43189         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43190         (version_etc_va): Fix logic bug.
43191         * modules/version-etc-tests: Add test.
43192         * tests/test-version-etc.c: New file.
43193         * tests/test-version-etc.sh: Likewise.
43194
43195 2009-06-25  Sam Steingold  <sds@gnu.org>
43196
43197         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43198         mbtowc declaration.
43199
43200 2009-06-25  Eric Blake  <ebb9@byu.net>
43201
43202         fpurge: migrate into <stdio.h>
43203         * lib/fpurge.h: Delete...
43204         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43205         * lib/fpurge.c (fpurge): Change declaring header.
43206         * modules/fpurge (Files): Drop deleted file.
43207         (Depends-on): Add stdio.
43208         (configure.ac): Set witness.
43209         * modules/stdio (Makefile.am): Support fpurge macros.
43210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43211         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43212         * lib/fflush.c: Update client.
43213         * tests/test-fpurge.c: Likewise.
43214         * NEWS: Mention the change.
43215
43216 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43217
43218         * lib/argp-version-etc.c (program_authors): Add const
43219         qualifier.
43220         * lib/version-etc.c: Fix typos in the comments.
43221         * modules/argp-version-etc: Depends on version-etc.
43222
43223 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43224
43225         argp-version-etc: new module.
43226
43227         * lib/argp-version-etc.c: New file.
43228         * lib/argp-version-etc.h: New file.
43229         * modules/argp-version-etc: New file.
43230         * modules/argp-version-etc-tests: New file.
43231         * tests/test-argp-version-etc.c: New test.
43232         * tests/test-argp-version-etc-1.sh: New test.
43233
43234 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43235
43236         Provide additional interfaces and documentation for version-etc
43237         module.
43238
43239         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43240         interfaces.
43241         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43242         prototypes.
43243
43244 2009-06-24  Bruno Haible  <bruno@clisp.org>
43245
43246         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43247         HAVE_LIB${NAME} macro.
43248         Reported by Sam Steingold <sds@gnu.org>.
43249
43250 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43251
43252         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43253         needed.
43254
43255 2009-06-21  Bruno Haible  <bruno@clisp.org>
43256
43257         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43258         work.
43259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43260         together with LIB${NAME}, LTLIB${NAME}.
43261         Reported by Sam Steingold <sds@gnu.org>.
43262
43263 2009-06-20  Jim Meyering  <meyering@redhat.com>
43264
43265         tests: make sc_require_test_exit_idiom more generic
43266         * top/maint.mk (Exit_witness_file): New overridable variable.
43267         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43268         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43269
43270 2009-06-19  Jim Meyering  <meyering@redhat.com>
43271
43272         hash: reverse order of src/dst parameters in an internal interface
43273         * lib/hash.c (transfer_entries): Reverse order of parameters to
43274         put DST before SRC.  Adjust callers.
43275
43276         tests: test-hash: avoid wholesale duplication
43277         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43278         Instead, use a loop and add a single conditional.
43279
43280         tests: test-hash: allow seed selection via a command line argument
43281         * tests/test-hash.c (get_seed): New function.
43282         (main): Use it.
43283
43284 2009-06-19  Eric Blake  <ebb9@byu.net>
43285
43286         hash: avoid memory leak on allocation failure
43287         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43288         failure.  Factor repeated algorithm...
43289         (transfer_entries): ...into new helper routine.
43290         (hash_delete): React to hash_rehash return value.
43291
43292         hash: reduce memory pressure in hash_rehash no-op case
43293         * lib/hash.c (next_prime): Avoid overflow.
43294         (hash_initialize): Factor bucket size computation...
43295         (compute_bucket_size): ...into new helper function.
43296         (hash_rehash): Use new function and open coding to reduce memory
43297         pressure, and avoid a memory leak in USE_OBSTACK code.
43298         Reported by Jim Meyering.
43299
43300 2009-06-18  Eric Blake  <ebb9@byu.net>
43301
43302         hash: make rotation more obvious
43303         * modules/hash (Depends-on): Add bitrotate and stdint.
43304         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43305         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43306         (SIZE_MAX): Rely on headers for definition.
43307         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43308         (raw_hasher): Use rotr_sz.
43309         Suggested by Jim Meyering.
43310
43311         hash: fix memory leak in last patch
43312         * lib/hash.c (hash_rehash): Avoid memory leak.
43313
43314         hash: avoid no-op rehashing
43315         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43316
43317         hash: provide default callback functions
43318         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43319         (hash_initialize): Use them as defaults.
43320         * tests/test-hash.c (main): Test this.
43321
43322         hash: minor optimization
43323         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43324         when possible.
43325         (hash_initialize): Document this promise.
43326         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43327         * tests/test-hash.c (hash_compare_strings): Test this.
43328
43329 2009-06-18  Bruno Haible  <bruno@clisp.org>
43330
43331         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43332         going to be replaced anyway.
43333
43334 2009-06-18  Bruno Haible  <bruno@clisp.org>
43335
43336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43337         in one place.
43338         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43339         be replaced anyway.
43340
43341 2009-06-18  Eric Blake  <ebb9@byu.net>
43342
43343         hash: check for resize before insertion
43344         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43345         threshold before insertion, so that a pathological hash_rehash
43346         that fills every bucket can still trigger another rehash.
43347
43348 2009-06-18  Jim Meyering  <meyering@redhat.com>
43349
43350         hash-tests: add a loop around the small tests
43351         * tests/test-hash.c (main): Repeat small tests with selected
43352         small initial table sizes.
43353
43354 2009-06-17  Eric Blake  <ebb9@byu.net>
43355
43356         hash: minor cleanups
43357         * lib/hash.h (hash_entry): Make opaque, by moving...
43358         * lib/hash.c (hash_entry): ...here.
43359         (hash_insert): Clarify restrictions on what can be inserted.
43360         (hash_get_next): Clarify when it is safe to remove an element
43361         during traversal.
43362         (check_tuning): Skip verification when tuning is known safe.
43363         (hash_initialize): Clarify restrictions on tuning.
43364
43365 2009-06-17  Jim Meyering  <jim@meyering.net>
43366         and Eric Blake  <ebb9@byu.net>
43367
43368         hash-tests: new module
43369         * modules/hash-tests: New file.
43370         * tests/test-hash.c: New file.
43371
43372 2009-06-17  Eric Blake  <ebb9@byu.net>
43373
43374         strstr-simple: document new module
43375         * MODULES.html.sh: Document new module.
43376
43377         strstr, strcasestr: replace on platforms with broken memchr
43378         * modules/strstr: Split into...
43379         * modules/strstr-simple: ...new module that does not care about
43380         performance, but does care about glibc bug.
43381         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43382         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43383         if platform memchr is broken, per Debian bug 521737.
43384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43385         memchr.
43386         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43387         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43388         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43389         * modules/mountlist (Depends-on): Add strstr-simple.
43390         * modules/gen-uni-tables (Depends-on): Likewise.
43391         * modules/argz (Depends-on): Add strstr.
43392
43393 2009-06-17  Bruno Haible  <bruno@clisp.org>
43394
43395         * modules/posix_spawn-internal (Depends-on): Add errno.
43396
43397 2009-06-17  Bruno Haible  <bruno@clisp.org>
43398
43399         Define missing ESTALE on Interix 3.5.
43400         * lib/errno.in.h (ESTALE): Assign a value if missing.
43401         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43402         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43403         missing.
43404         * doc/posix-headers/errno.texi: Mention the Interix bug.
43405         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43406
43407 2009-06-15  Eric Blake  <ebb9@byu.net>
43408
43409         memchr, memchr2: add valgrind exception
43410         * lib/memchr.valgrind: New file.
43411         * lib/memchr2.valgrind: New file.
43412         * modules/memchr (Files): Distribute valgrind file.
43413         * modules/memchr2 (Files): Likewise.
43414
43415         docs: memchr is no longer obsolete
43416         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43417         * lib/string.in.h (memchr): Simplify logic.
43418
43419 2009-06-14  Jim Meyering  <meyering@redhat.com>
43420
43421         link-follow: fix the "checking..." message to not mention trailing slash
43422         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43423         never considered trailing slashes.
43424
43425 2009-06-14  Bruno Haible  <bruno@clisp.org>
43426
43427         * m4/memchr.m4: Mention also the bug on IA-64.
43428         * doc/posix-functions/memchr.texi: Likewise.
43429
43430 2009-06-12  Eric Blake  <ebb9@byu.net>
43431
43432         memchr: detect broken x86_64 and alpha implementations
43433         * modules/memchr-tests (Depends-on): Move mmap detection...
43434         * modules/memchr (Depends-on): ...here.
43435         (configure.ac): Set indicator.
43436         * lib/string.in.h (memchr): Declare replacement.
43437         * modules/string (Makefile.am): Trigger replacement.
43438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43439         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43440         bugs.
43441         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43442         * modules/getpagesize (License): Relax license.
43443
43444 2009-06-11  Bruno Haible  <bruno@clisp.org>
43445
43446         * lib/idpriv.h: Add more references.
43447
43448 2009-06-08  Bruno Haible  <bruno@clisp.org>
43449
43450         Tests for module 'idpriv-droptemp'.
43451         * modules/idpriv-droptemp-tests: New file.
43452         * tests/test-idpriv-droptemp.sh: New file.
43453         * tests/test-idpriv-droptemp.su.sh: New file.
43454         * tests/test-idpriv-droptemp.c: New file.
43455
43456         New module 'idpriv-droptemp'.
43457         * lib/idpriv-droptemp.c: New file.
43458         * modules/idpriv-droptemp: New file.
43459
43460 2009-06-08  Bruno Haible  <bruno@clisp.org>
43461
43462         Tests for module 'idpriv-drop'.
43463         * modules/idpriv-drop-tests: New file.
43464         * tests/test-idpriv-drop.sh: New file.
43465         * tests/test-idpriv-drop.su.sh: New file.
43466         * tests/test-idpriv-drop.c: New file.
43467
43468         New module 'idpriv-drop'.
43469         * lib/idpriv.h: New file.
43470         * lib-idpriv-drop.c: New file.
43471         * m4/idpriv.m4: New file.
43472         * modules/idpriv-drop: New file.
43473
43474 2009-06-08  Bruno Haible  <bruno@clisp.org>
43475
43476         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43477         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43478         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43479         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43480         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43481         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43482         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43483
43484 2009-06-08  Eric Blake  <ebb9@byu.net>
43485
43486         test-strstr: use memory fence, when possible
43487         * tests/test-strstr.c (main): Use memory fence, in order to be
43488         more likely to trigger Debian bug 521737.
43489         * modules/strstr-tests (Files): Pull in additional files.
43490
43491         memchr: no longer obsolete, for wider field testing
43492         * modules/memchr (Status, Notice): Delete, this module is no
43493         longer obsolete.
43494         * modules/vasnprintf (Depends-on): Add memchr.
43495
43496 2009-06-07  Jim Meyering  <meyering@redhat.com>
43497
43498         hash: declare some functions with the warn_unused_result attribute
43499         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43500
43501 2009-06-07  Bruno Haible  <bruno@clisp.org>
43502
43503         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43504         Reported by Eric Blake.
43505
43506 2009-06-06  Eric Blake  <ebb9@byu.net>
43507
43508         test-alignof: fix typo with long double
43509         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43510         compiler error.
43511
43512 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43513
43514         Escape non-texinfo { and }s.
43515         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43516         markup error.
43517
43518 2009-06-04  Jim Meyering  <meyering@redhat.com>
43519
43520         gitlog-to-changelog: don't infloop on an empty commit log
43521         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43522         Reported by Boris Petersen <transacid@centerim.org>.
43523
43524 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43525
43526         version-etc: extend for packagers
43527         Add three new configure options, intended for packagers:
43528           --with-packager="packager name"
43529           --with-packager-version="packager-specific version"
43530           --with-packager-bug-reports="packager bug reporting"
43531         An example with coreutils:
43532           $ ./configure \
43533             --with-packager=Gentoo \
43534             --with-packager-bug-report=http://bugs.gentoo.org/ \
43535             --with-packager-version="patchset 1.6"
43536           $ ./src/ls --version | head -n2
43537           ls (GNU coreutils) 7.1-dirty
43538           Packaged by Gentoo (patchset 1.6)
43539         Note that the bug reporting info via --help doesn't show up because
43540         coreutils uses its own custom emit_bug_reporting_address() implementation
43541         in src/system.h.  If it didn't, it'd look like:
43542           $ ./src/ls --help | tail -n4
43543           Report bugs to <bug-coreutils@gnu.org>.
43544           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43545           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43546           General help using GNU software: <http://www.gnu.org/gethelp/>.
43547         * lib/version-etc.c: Print new information, if provided.
43548         * m4/version-etc.m4: New file.
43549         * modules/version-etc (Files): Add m4/version-etc.m4.
43550         (configure.ac): Add gl_VERSION_ETC.
43551
43552 2009-05-31  Bruno Haible  <bruno@clisp.org>
43553
43554         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43555         and 'int64_t'.
43556         * modules/alignof-tests (Dependencies): Add stdint.
43557         Reported by Eric Blake.
43558
43559 2009-05-31  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43562         restriction due to compiler bugs.
43563         Reported by Eric Blake.
43564
43565 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43566             Bruno Haible  <bruno@clisp.org>
43567
43568         Fix test-alignof failure.
43569         * lib/alignof.h (alignof_slot): New macro.
43570         (alignof_type): New macro, with the same semantics as the previous
43571         'alignof'.
43572         (alignof): Alias to alignof_slot.
43573         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43574         check that the results are usable as constant expressions.
43575
43576 2009-05-31  Bruno Haible  <bruno@clisp.org>
43577
43578         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43579         * tests/test-memchr.c (main): Check that memchr does not read past the
43580         first occurrence of the byte.
43581         * tests/test-strstr.c (main): Update comment.
43582         Suggested by Eric Blake.
43583
43584 2009-05-30  Bruno Haible  <bruno@clisp.org>
43585
43586         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43587         detail how to use dumpbin.
43588         Reported by David Byron <dbyron@dbyron.com>.
43589
43590 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43591
43592         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43593
43594 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43595
43596         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43597
43598 2009-05-28  Bruno Haible  <bruno@clisp.org>
43599
43600         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43601         build-aux/ files.
43602
43603 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43604
43605         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43606
43607 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43608
43609         * gnulib-tool (sed_transform_main_lib_file)
43610         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43611         regexps.
43612
43613 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43614
43615         * tests/test-strstr.c: Add another self-test.
43616         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43617         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43618
43619 2009-05-23  Bruno Haible  <bruno@clisp.org>
43620
43621         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43622         change.
43623
43624 2009-05-21  Bruno Haible  <bruno@clisp.org>
43625
43626         Simplify use of mode_t varargs.
43627         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43628         uses 'mode_t' or 'int'.
43629         * lib/openat.c (openat): Likewise.
43630         * lib/open-safer.c (open_safer): Likewise.
43631         * m4/mode_t.m4: New file.
43632         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43633         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43634         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43635         * modules/open (Files): Add m4/mode_t.m4.
43636         * modules/openat (Files): Likewise.
43637         * modules/fcntl-safer (Files): Likewise.
43638         Suggested by Eric Blake.
43639
43640 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43641
43642         * doc/glibc-functions/fallocate.texi: New file.
43643         * doc/gnulib.texi: Include it.
43644
43645 2009-05-21  Eric Blake  <ebb9@byu.net>
43646             Bruno Haible  <bruno@clisp.org>
43647
43648         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43649         invocations.
43650         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43651
43652 2009-05-21  Eric Blake  <ebb9@byu.net>
43653             Bruno Haible  <bruno@clisp.org>
43654
43655         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43656         include_next. Fix of 2008-11-20 commit.
43657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43658         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43659         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43660         NEXT_MATH_H.
43661         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43662         instead of NEXT_MATH_H.
43663
43664 2009-05-21  Bruno Haible  <bruno@clisp.org>
43665
43666         Avoid redefinition warnings for SIZE_MAX.
43667         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43668         Reported by Simon Josefsson.
43669
43670 2009-05-21  Bruno Haible  <bruno@clisp.org>
43671
43672         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43673         AC_CACHE_VAL.
43674
43675 2009-05-20  Bruno Haible  <bruno@clisp.org>
43676
43677         Make zeroptr.h work on mingw.
43678         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43679         mprotect.
43680         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43681         * modules/memchr2-tests (configure.ac): Likewise.
43682         * modules/memcmp-tests (configure.ac): Likewise.
43683         * modules/memmem-tests (configure.ac): Likewise.
43684         * modules/memrchr-tests (configure.ac): Likewise.
43685         Reported by Simon Josefsson.
43686
43687 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43688
43689         * tests/test-glob.c: Include string.h for strcmp prototype.
43690
43691 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43692
43693         * modules/getdelim (Depends-on): Add explicit stdint, although it
43694         was implicitly already pulled in via realloc-posix.
43695         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43696
43697 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43698
43699         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43700         G. Christensen" <tgc@jupiterrise.com>.
43701         * m4/sys_socket_h.m4: Check for sa_family_t.
43702         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43703         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43704         * tests/test-sys_socket.c: Check that sa_family_t works.
43705
43706 2009-05-18  Eric Blake  <ebb9@byu.net>
43707
43708         maint.mk: allow gnulib_dir in VPATH build
43709         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43710
43711 2009-05-15  Jim Meyering  <meyering@redhat.com>
43712
43713         maint.mk: Give gnulib_dir a default definition.
43714         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43715         Thus, most packages no longer need to specify this variable in cfg.mk
43716
43717 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43718
43719         rename.m4: fix typos that would make non-mingw cross-configure fail
43720         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43721
43722 2009-05-13  Eric Blake  <ebb9@byu.net>
43723
43724         mmap-anon: avoid out-of-order autoconf expansion
43725         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43726         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43727         * modules/memchr-tests (Depends-on): Add extensions.
43728         * modules/memchr2-tests (Depends-on): Add extensions.
43729         * modules/memcmp-tests (Depends-on): Add extensions.
43730         * modules/memmem-tests (Depends-on): Add extensions.
43731         * modules/memrchr-tests (Depends-on): Add extensions.
43732
43733 2009-05-13  Bruno Haible  <bruno@clisp.org>
43734
43735         Make some tests ISO C 99 compliant.
43736         * tests/zerosize-ptr.h: New file.
43737         * tests/test-memchr.c: Include zerosize-ptr.h.
43738         (main): Use a zero-size object pointer instead of NULL.
43739         * tests/test-memchr2.c: Include zerosize-ptr.h.
43740         (main): Use a zero-size object pointer instead of NULL.
43741         * tests/test-memcmp.c: Include zerosize-ptr.h.
43742         (main): Use a zero-size object pointer instead of NULL.
43743         * tests/test-memmem.c: Include zerosize-ptr.h.
43744         (main): Use a zero-size object pointer instead of NULL.
43745         * tests/test-memrchr.c: Include zerosize-ptr.h.
43746         (main): Use a zero-size object pointer instead of NULL.
43747         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43748         m4/mmap-anon.m4.
43749         (Depends-on): Add getpagesize.
43750         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43751         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43752         m4/mmap-anon.m4.
43753         (Depends-on): Add getpagesize.
43754         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43755         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43756         m4/mmap-anon.m4.
43757         (Depends-on): Add getpagesize.
43758         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43759         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43760         m4/mmap-anon.m4.
43761         (Depends-on): Add getpagesize.
43762         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43763         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43764         m4/mmap-anon.m4.
43765         (Depends-on): Add getpagesize.
43766         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43767
43768 2009-05-12  Bruno Haible  <bruno@clisp.org>
43769
43770         Tests for module 'alignof'.
43771         * modules/alignof-tests: New file.
43772         * tests/test-alignof.c: New file.
43773
43774 2009-05-12  Bruno Haible  <bruno@clisp.org>
43775
43776         Fix alignof macro.
43777         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43778         vendor compilers that are always correct.
43779
43780 2009-05-12  Bruno Haible  <bruno@clisp.org>
43781
43782         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43783         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43784         not whether its fully works.
43785
43786 2009-05-12  Bruno Haible  <bruno@clisp.org>
43787
43788         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43789
43790 2009-05-12  Jim Meyering  <meyering@redhat.com>
43791
43792         * top/maint.mk: Adjust backslash alignment.
43793
43794 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43795
43796         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43797
43798 2009-05-11  Eric Blake  <ebb9@byu.net>
43799
43800         argp: avoid undefined behavior
43801         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43802         macros.
43803
43804 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43805
43806         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43807         user.name to prevent git commit from complaining.
43808
43809 2009-05-10  Bruno Haible  <bruno@clisp.org>
43810
43811         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43812         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43813         it rewrites every file name only once.
43814         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43815
43816 2009-05-08  Bruno Haible  <bruno@clisp.org>
43817
43818         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43819         instead of 'max'.
43820
43821 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43822
43823         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43824         sockaddr_storage test.
43825
43826 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43827
43828         * modules/sys_socket (Makefile.am): Substitute
43829         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43830         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43831         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43832         * tests/test-sys_socket.c: Check sockaddr_storage.
43833
43834 2009-05-08  Bruno Haible  <bruno@clisp.org>
43835
43836         New module 'alignof'.
43837         * lib/alignof.h: New file.
43838         * modules/alignof: New file.
43839
43840 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43841             Bruno Haible  <bruno@clisp.org>
43842
43843         Fix test-file-has-acl on FreeBSD.
43844         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43845         mask is implicitly added.
43846         * tests/test-file-has-acl.c: Include <signal.h>.
43847         (main): Terminate the test after 5 seconds.
43848         * modules/acl-tests (configure.ac): Check for alarm function.
43849
43850 2009-05-04  Bruno Haible  <bruno@clisp.org>
43851
43852         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43853         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43854         * modules/errno (configure.ac): Drop AC_REQUIRE.
43855         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43856         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43857
43858 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43859
43860         * modules/glob-tests: New module.
43861         * tests/test-glob.c: Add.
43862
43863 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43864
43865         * modules/fnmatch-tests: New module.
43866         * tests/test-fnmatch.c: Add.
43867
43868 2009-05-04  Eric Blake  <ebb9@byu.net>
43869
43870         maint: make the new no-submodule-changes rule VPATH-safe
43871         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43872
43873 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43874             Bruno Haible  <bruno@clisp.org>
43875
43876         acl: Fix infinite loop on FreeBSD.
43877         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43878         of return value from acl_get_entry.
43879         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43880         Likewise.
43881
43882 2009-05-03  Bruno Haible  <bruno@clisp.org>
43883
43884         * lib/acl-internal.h (acl_entries): Clarify return value.
43885         * lib/acl_entries.c (acl_entries): Likewise.
43886
43887 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43888
43889         Bug fix in acl module.
43890         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43891
43892 2009-05-03  Bruno Haible  <bruno@clisp.org>
43893
43894         Create gperf-generated file in the source dir, not in the build dir.
43895         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43896         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43897         * modules/unicase/locale-language (unicase/locale-languages.h):
43898         Likewise.
43899         * modules/unicase/special-casing (unicase/special-casing-table.h):
43900         Likewise.
43901         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43902         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43903         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43904         Reported by Ralf Wildenhues.
43905
43906 2009-05-03  Bruno Haible  <bruno@clisp.org>
43907
43908         * modules/fnmatch (Description, configure.ac): Taken from
43909         fnmatch-posix.
43910         * modules/fnmatch-posix: Turn into a symbolic reference to the
43911         'fnmatch' module, and deprecate.
43912         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43913
43914 2009-05-03  Bruno Haible  <bruno@clisp.org>
43915
43916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43917         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43918         Reported by Ralf Wildenhues.
43919
43920 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43921
43922         * m4/fnmatch.m4: Fix fnmatch re-define.
43923
43924 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43925
43926         priv-set: new module and tests; adapt write-any-file
43927         * lib/priv-set.c: New file.
43928         * lib/priv-set.h: New file.
43929         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43930         * lib/write-any-file.c: Simplify by using priv-set module.
43931         * m4/priv-set.m4: New file.
43932         * modules/priv-set: New file.
43933         * modules/unlinkdir: Add dependency on priv-set module.
43934         * modules/write-any-file: Likewise.
43935
43936         Tests for module 'priv-set'.
43937         * modules/priv-set-tests: New file.
43938         * tests/test-priv-set.c: New file.
43939
43940 2009-05-03  Jim Meyering  <meyering@redhat.com>
43941             Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43944         use the converted UTF-8 variant of the name instead.
43945
43946 2009-05-03  Jim Meyering  <meyering@redhat.com>
43947
43948         tests: tighten some getdate tests
43949         * tests/test-getdate.c (main): Tighten tests: require equality,
43950         not just greater than.  Set TZ envvar to UTC0.
43951
43952 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43953
43954         getdate: correctly interpret "next monday" when run on a Monday
43955         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43956         that e.g., "next tues" (when run on a tuesday) results in a date
43957         that is one week in the future, and not today's date.
43958         I.e., add a week when the wday is the same as the current one.
43959         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43960         and earlier by Martin Bernreuther and Jan Minář.
43961         * tests/test-getdate.c (main): Check that "next DAY" is always in
43962         the future and that "last DAY" is always in the past.
43963
43964 2009-05-02  Jim Meyering  <meyering@redhat.com>
43965
43966         build: ensure that a release build fails when a submodule is unclean
43967         * top/maint.mk (no-submodule-changes): New rule.
43968         (alpha beta major): Depend on it.
43969
43970 2009-05-02  Bruno Haible  <bruno@clisp.org>
43971
43972         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43973         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43974         shell variable gl_fnmatch_required to detect which variant is
43975         requested.
43976         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43977         gl_FUNC_FNMATCH_POSIX.
43978         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43979         exclude fnmatch-posix.
43980
43981 2009-05-02  Bruno Haible  <bruno@clisp.org>
43982
43983         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43984         * modules/mbsrtowcs (License): Change to LGPLv2+.
43985         * modules/strnlen1 (License): Likewise.
43986         Reported by Simon Josefsson.
43987
43988 2009-05-02  Bruno Haible  <bruno@clisp.org>
43989
43990         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43991         "cross".
43992         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43993         gnulib-tool was called with option --source-base=lib.
43994
43995 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43996
43997         Use automake *-local hooks without commands, for extensibility.
43998         * modules/localcharset (Makefile.am): Rename install-exec-local
43999         rule to install-exec-localcharset, and make it a prerequisite of
44000         install-exec-local.  Likewise, rename the uninstall-local rule to
44001         uninstall-localcharset, and make it a prerequisite of the former.
44002
44003 2009-05-01  Bruno Haible  <bruno@clisp.org>
44004
44005         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44006         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44007         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44009         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44010         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44011         m4/locale-zh.m4, m4/codeset.m4.
44012
44013         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44014         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44015         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44016         m4/locale-zh.m4.
44017
44018         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44019         REPLACE_WCRTOMB if mbstate_t must be replaced.
44020         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44021         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44022
44023 2009-05-01  Bruno Haible  <bruno@clisp.org>
44024
44025         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44026         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44027         dngettext, dcngettext, textdomain, bindtextdomain,
44028         bind_textdomain_codeset): Undefine before redefining.
44029
44030 2009-04-30  Bruno Haible  <bruno@clisp.org>
44031
44032         Fix bug introduced on 2009-04-25.
44033         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44034         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44035         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44036         is defined.
44037         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44038         is defined.
44039         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44040         is defined.
44041         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44042
44043 2009-04-28  Bruno Haible  <bruno@clisp.org>
44044
44045         Comment tweaks.
44046         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44047         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44048         * lib/unicase.h (u*_casexfrm): Likewise.
44049         Reported by Paolo Bonzini.
44050
44051 2009-04-28  Bruno Haible  <bruno@clisp.org>
44052
44053         Fix a compilation error.
44054         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44055         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44056         Reported by Jim Meyering.
44057
44058 2009-04-27  Bruno Haible  <bruno@clisp.org>
44059
44060         New module 'libunistring'.
44061         * modules/libunistring: New file.
44062         * m4/libunistring.m4: New file.
44063         * MODULES.html.sh (Unicode string functions): Add it.
44064
44065 2009-04-27  Eric Blake  <ebb9@byu.net>
44066
44067         maint.mk: allow package-specific header to provide <config.h>
44068         * top/maint.mk (sc_require_config_h): New variable.
44069         (sc_require_config_h, sc_require_config_h_first): Use it.
44070
44071 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44072
44073         * top/maint.mk (sc_avoid_if_before_free): Except
44074         useless-if-before-free script.
44075
44076 2009-04-27  Eric Blake  <ebb9@byu.net>
44077
44078         maintainer-makefile: depend on all required helper scripts
44079         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44080         useless-if-before-free.
44081         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44082         version, rather than assuming gnulib checkout is available.
44083         Reported by Simen Josefsson.
44084
44085 2009-04-26  Bruno Haible  <bruno@clisp.org>
44086
44087         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44088         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44089         "../" or "..".
44090
44091 2009-04-26  Bruno Haible  <bruno@clisp.org>
44092
44093         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44094         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44095         AC_LIB_HAVE_LINKFLAGS.
44096
44097 2009-04-26  Bruno Haible  <bruno@clisp.org>
44098
44099         Simplify calling convention of u*_conv_from_encoding.
44100         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44101         u32_conv_from_encoding): Expect a resultbuf argument and return the
44102         result directly as a pointer.
44103         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44104         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44105         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44106         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44107         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44108         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44109         Update.
44110         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44111         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44112         * lib/vasnprintf.c (VASNPRINTF): Update.
44113         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44114         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44115         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44116         * NEWS: Mention the change.
44117
44118 2009-04-26  Bruno Haible  <bruno@clisp.org>
44119
44120         Simplify calling convention of u*_conv_to_encoding.
44121         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44122         u32_conv_to_encoding): Expect a resultbuf argument and return the
44123         result directly as a pointer.
44124         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44125         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44126         freeing scaled_offsets if mem_iconveha failed.
44127         * lib/unicase/u-casexfrm.h (FUNC): Update.
44128         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44129         * lib/vasnprintf.c (VASNPRINTF): Update.
44130         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44131         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44132         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44133         * NEWS: Mention the change.
44134
44135 2009-04-26  Bruno Haible  <bruno@clisp.org>
44136
44137         Avoid test failures on AIX and OSF/1.
44138         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44139         malloc(0).
44140         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44141         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44142         Likewise.
44143         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44144         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44145         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44146         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44147         * doc/posix-functions/malloc.texi: Document the portability problem
44148         related to malloc(0).
44149
44150 2009-04-26  Bruno Haible  <bruno@clisp.org>
44151
44152         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44153         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44154         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44155
44156 2009-04-25  Bruno Haible  <bruno@clisp.org>
44157
44158         Avoid link error when creating a namespace clean library.
44159         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44160         as macro with arguments if already defined as an alias.
44161         * lib/signbitf.c (gl_signbitf): Don't undefine.
44162         * lib/signbitd.c (gl_signbitd): Don't undefine.
44163         * lib/signbitl.c (gl_signbitl): Don't undefine.
44164
44165 2009-04-25  Jim Meyering  <meyering@redhat.com>
44166
44167         vc-list-files: fix another quoting bug
44168         * build-aux/vc-list-files: Avoid sed backslash expansion
44169         of pathological directory names.
44170
44171 2009-04-25  Eric Blake  <ebb9@byu.net>
44172
44173         vc-list-files: fix shell quoting error
44174         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44175         timestamp.
44176
44177 2009-04-25  Jim Meyering  <meyering@redhat.com>
44178
44179         vc-list-files: restore lost functionality with subdir argument
44180         * build-aux/vc-list-files: When given a non-"." sub-directory
44181         argument, substitute the $dir/ prefix back onto each resulting name.
44182         Otherwise, coreutils' root_tests check would fail.
44183
44184 2009-04-24  Eric Blake  <ebb9@byu.net>
44185
44186         vc-list-files: ignore git symlinks
44187         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44188         than ls-files, to ignore git symlinks.
44189
44190         maint.mk: import improvements from m4
44191         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44192         (move_if_change): Delete unused macro.
44193         (news-date-check, vc-diff-check): Support VPATH builds.
44194         (announcement): Likewise.  Split --bootstrap-tools list...
44195         (boostrap-tools): ...into separate list, which can be overridden
44196         in cfg.mk.
44197         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44198         requiring dependency on useless-if-before-free module.
44199         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44200         Support VPATH builds.
44201
44202 2009-04-24  Jim Meyering  <meyering@redhat.com>
44203
44204         maint.mk: remove coreutils-specific rules and variables
44205         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44206         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44207         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44208
44209         maint.mk: remove obsolete rule
44210         * top/maint.mk (rel-check): Remove rule.
44211         (WGET, WGETFLAGS): Remove now-unused variables.
44212
44213 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44214
44215         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44216         consistency.
44217
44218         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44219         '$(PATH_SEPARATOR)' instead of ':'.
44220
44221 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44222
44223         * lib/getopt1.c (main): Use 'const' for static array.
44224
44225 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44226
44227         * top/maint.mk: Sync with coreutils.
44228         * NEWS: Explain incompatibilities.
44229
44230 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44231             Bruno Haible  <bruno@clisp.org>
44232
44233         Fix cross-compilation results.
44234         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44235         statement, as third argument of AC_TRY_RUN.
44236         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44237         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44238         Likewise.
44239         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44240         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44241         Likewise.
44242         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44243         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44244         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44245
44246 2009-04-20  Bruno Haible  <bruno@clisp.org>
44247
44248         Avoid test failure on mingw.
44249         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44250
44251 2009-04-20  Bruno Haible  <bruno@clisp.org>
44252
44253         Avoid compilation error on mingw.
44254         * modules/localename-tests (Depends-on): Add locale.
44255
44256 2009-04-19  Bruno Haible  <bruno@clisp.org>
44257
44258         Support for building a shared library on Windows platforms.
44259         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44260         (main): Test the presence of UNINORM_NFC here.
44261         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44262         (main): Test the presence of UNINORM_NFD here.
44263         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44264         (main): Test the presence of UNINORM_NFKC here.
44265         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44266         (main): Test the presence of UNINORM_NFKD here.
44267
44268 2009-04-19  Bruno Haible  <bruno@clisp.org>
44269
44270         Avoid a compiler warning.
44271         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44272         Change type of variable 'sequence'.
44273
44274 2009-04-19  Bruno Haible  <bruno@clisp.org>
44275
44276         * modules/configmake (Makefile.am): When the contents of configmake.h
44277         does not change, arrange to preserve its modification time.
44278
44279 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44280
44281         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44282         gettext domain.
44283
44284 2009-04-16  Jim Meyering  <meyering@redhat.com>
44285
44286         useless-if-before-free: improve conversion code
44287         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44288         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44289
44290 2009-04-14  Bruno Haible  <bruno@clisp.org>
44291
44292         * modules/fcntl (Depends-on): Add extensions.
44293         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44294
44295 2009-04-12  Ben Pfaff  <blp@gnu.org>
44296
44297         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44298         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44299
44300 2009-03-20  Ben Pfaff  <blp@gnu.org>
44301
44302         Make rename replace existing destinations on Windows.
44303         * m4/rename.m4: Add test for Mingw.
44304         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44305         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44306         * doc/posix-functions/rename.texi: Document.
44307
44308 2009-04-10  Bruno Haible  <bruno@clisp.org>
44309
44310         New include file "iconveh.h".
44311         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44312         * lib/striconveh.h: Include it.
44313         (enum iconv_ilseq_handler): Remove definition.
44314         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44315         striconveh.h.
44316         * lib/striconveha.c: Include striconveh.h.
44317         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44318         * modules/striconveh (Files): Add lib/iconveh.h.
44319         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44320         lib/striconveh.h.
44321
44322 2009-04-10  Bruno Haible  <bruno@clisp.org>
44323
44324         * lib/uniconv.h: Update comment.
44325
44326 2009-04-10  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44329         always.
44330         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44331         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44332         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44333         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44334         "unistring-notinline.h", so that the function gets defined always.
44335         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44336         * lib/unistr/u8-uctomb.c: Likewise.
44337         * lib/unistr/u16-mbtouc.c: Likewise.
44338         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44339         * lib/unistr/u16-uctomb.c: Likewise.
44340         * lib/unistr/u32-mbtouc.c: Likewise.
44341         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44342         * lib/unistr/u32-uctomb.c: Likewise.
44343
44344 2009-04-10  Bruno Haible  <bruno@clisp.org>
44345
44346         Mark 'utime' obsolete.
44347         * modules/utime (Status, Notice): New sections.
44348         Suggested by Jim Meyering.
44349
44350         Fix cross-compile guess for utime test.
44351         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44352         autoconf.
44353         * doc/posix-functions/utime.texi: Give more precisions.
44354         Reported by Jan <ipif@ymail.com>.
44355
44356 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44357
44358         filevercmp: correct today's change
44359         * lib/filevercmp.c: Also handle coreutils' test inputs.
44360         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44361
44362         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44363         for reporting it.
44364         * lib/filevercmp.c: Special handle for "", "." and "..".
44365         * tests/test-filevercmp.c: Enlarge the set suite.
44366
44367 2009-04-07  Jim Meyering  <meyering@redhat.com>
44368
44369         useless-if-before-free: show how to remove braced useless free, too
44370         * build-aux/useless-if-before-free: still only in a comment, though.
44371
44372 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44373
44374         maint.mk: import changes to syntax-check macros from coreutils
44375         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44376         Use them in the relevant macros.
44377
44378 2009-04-06  Bruno Haible  <bruno@clisp.org>
44379
44380         Fix unportable use of bit-fields.
44381         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44382         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44383         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44384
44385 2009-04-06  Bruno Haible  <bruno@clisp.org>
44386
44387         Avoid test failures on AIX and OSF/1.
44388         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44389         that malloc(0) = NULL.
44390         * tests/unicase/test-u8-tolower.c (check): Likewise.
44391         * tests/unicase/test-u8-totitle.c (check): Likewise.
44392         * tests/unicase/test-u8-toupper.c (check): Likewise.
44393         * tests/unicase/test-u16-casefold.c (check): Likewise.
44394         * tests/unicase/test-u16-tolower.c (check): Likewise.
44395         * tests/unicase/test-u16-totitle.c (check): Likewise.
44396         * tests/unicase/test-u16-toupper.c (check): Likewise.
44397         * tests/unicase/test-u32-casefold.c (check): Likewise.
44398         * tests/unicase/test-u32-tolower.c (check): Likewise.
44399         * tests/unicase/test-u32-totitle.c (check): Likewise.
44400         * tests/unicase/test-u32-toupper.c (check): Likewise.
44401         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44402         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44403         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44404         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44405         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44406         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44407         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44408         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44409         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44410         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44411         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44412         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44413
44414 2009-04-05  Bruno Haible  <bruno@clisp.org>
44415
44416         Work around an autoconf limitation.
44417         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44418         comment line if it would be longer than 3 KB.
44419
44420 2009-04-05  Bruno Haible  <bruno@clisp.org>
44421
44422         Avoid test failure with libiconv-1.13.
44423         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44424         of the expected test results.
44425
44426 2009-04-05  Bruno Haible  <bruno@clisp.org>
44427
44428         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44429         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44430         that it should be installed.
44431
44432 2009-04-05  Bruno Haible  <bruno@clisp.org>
44433
44434         * gnulib-tool: New option --copy-file.
44435         (func_usage): Document it.
44436         (func_dest_tmpfilename): Moved out of func_import.
44437         (func_add_file, func_update_file): New functions, extracted from
44438         func_import.
44439         (func_import): Update.
44440
44441 2009-04-05  Karl Berry  <karl@gnu.org>
44442
44443         * README: prominently mention gnulib-tool.
44444         Rearrange sections so getting the code is near the top.
44445
44446 2009-04-05  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/unicase.h: Mention u*_cmp2.
44449         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44450         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44451         * lib/unicase/ulc-casecmp.c: Likewise.
44452         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44453         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44454         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44455         unistr/u8-cmp.
44456         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44457         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44458         unistr/u16-cmp.
44459         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44460         unistr/u32-cmp.
44461
44462         * lib/uninorm.h: Mention u*_cmp2.
44463         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44464         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44465         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44466         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44467         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44468         unistr/u8-cmp.
44469         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44470         unistr/u16-cmp.
44471         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44472         unistr/u32-cmp.
44473
44474         New module 'unistr/u32-cmp2'.
44475         * lib/unistr/u32-cmp2.c: New file.
44476         * modules/unistr/u32-cmp2: New file.
44477
44478         New module 'unistr/u16-cmp2'.
44479         * lib/unistr/u16-cmp2.c: New file.
44480         * modules/unistr/u16-cmp2: New file.
44481
44482         New module 'unistr/u8-cmp2'.
44483         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44484         * lib/unistr/u8-cmp2.c: New file.
44485         * lib/unistr/u-cmp2.h: New file.
44486         * modules/unistr/u8-cmp2: New file.
44487
44488 2009-04-05  Bruno Haible  <bruno@clisp.org>
44489
44490         * lib/unictype.h (uc_property_is_valid): New macro.
44491         * tests/unictype/test-pr_byname.c (main): Use it.
44492
44493         * lib/unistr.h: Doc fixes.
44494         * lib/uniconv.h: Doc fixes.
44495         * lib/unictype.h: Doc fixes.
44496
44497 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44498
44499         Port coreutils 7.2 to Solaris 8.
44500
44501         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44502         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44503         for Solaris 8.  This is a bit of a hack, as it means it's the
44504         caller's responsibility to add -lnsl if needed, but most likely it
44505         won't be needed since only getaddrinfo uses this and getaddrinfo
44506         isn't needed on Solaris 8.
44507
44508         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44509         problem to Solaris 8 encountered with coreutils 7.2, which
44510         resulted in a message "fnmatch.c:292: warning: passing argument 4
44511         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44512         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44513
44514 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44515
44516         * m4/ld-version-script.m4: Add FIXME comment.
44517
44518 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44519
44520         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44521         SOVERSION variable.
44522
44523 2009-04-02  Bruno Haible  <bruno@clisp.org>
44524
44525         * Makefile (info, html, dvi, pdf): Combine the rules.
44526         Suggested by Jim Meyering.
44527
44528 2009-04-01  Bruno Haible  <bruno@clisp.org>
44529
44530         * Makefile (info, html, dvi, pdf): New targets.
44531         Reported by Reuben Thomas <rrt@sc3d.org>.
44532
44533 2009-04-01  Bruno Haible  <bruno@clisp.org>
44534
44535         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44536         can be put into PATH.
44537         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44538
44539 2009-04-01  Bruno Haible  <bruno@clisp.org>
44540
44541         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44542
44543 2009-04-01  Bruno Haible  <bruno@clisp.org>
44544
44545         Rename module 'visibility'.
44546         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44547         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44548         * doc/gnulib.texi: Update.
44549         * MODULES.html.sh (Misc): Update.
44550         * NEWS: Mention the change.
44551
44552 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44553
44554         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44555         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44556         Eric Blake <ebb9@byu.net> for review.
44557         * MODULES.html.sh: Add lib-msvc-compat.
44558         * doc/gnulib.texi: Link to new section.
44559         * m4/ld-output-def.m4: New file.
44560         * doc/ld-output-def.texi: New file.
44561
44562 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44563
44564         Rename ld-version-script to lib-symbol-versions.  Suggested by
44565         Bruno Haible <bruno@clisp.org>.
44566         * modules/ld-version-script: Renamed to lib-symbol-versions.
44567         * doc/ld-version-script.texi: Fix module name.
44568         * MODULES.html.sh: Add lib-symbol-versions.
44569
44570 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44571
44572         * modules/u64-tests: New file.
44573         * tests/test-u64.c: New file.
44574
44575 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44576
44577         * MODULES.html.sh: Mention u64.
44578         * modules/u64: New module.
44579         * modules/crypto/sha512: Depend on u64 module instead of providing
44580         u64.h.
44581
44582 2009-03-27  Eric Blake  <ebb9@byu.net>
44583
44584         test-strerror: make debugging EAI_SYSTEM easier
44585         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44586         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44587         failure was EAI_SYSTEM.
44588
44589 2009-03-25  Bruno Haible  <bruno@clisp.org>
44590
44591         Fix a problem with --enable-relocatable on Solaris 7.
44592         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44593         since 2008-02-24.
44594
44595 2009-03-25  Eric Blake  <ebb9@byu.net>
44596
44597         test-sockets: avoid gcc warning
44598         * tests/test-sockets.c (main): Silence compiler warning.
44599
44600 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44601
44602         New modules nproc, pthread, contributed by Glen Lenker.
44603
44604         * MODULES.html.sh: Add pthread, nproc.
44605         * lib/nproc.c: New file.
44606         * lib/nproc.h: New file.
44607         * lib/pthread.in.h: New file.
44608         * m4/pthread.m4: New file.
44609         * modules/nproc: New file.
44610         * modules/pthread: New file.
44611
44612 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44613
44614         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44615         New variable.
44616
44617 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44618
44619         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44620         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44621         * tests/test-filevercmp.c: Add tests for backup suffixes.
44622
44623 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44624
44625         * modules/stdlib (Depends-on): Add stdint, needed when defining
44626         struct random_data on, for example, HP-UX 10.20.  Reported by
44627         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44628
44629 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44630
44631         * lib/readline.c (readline): Call fflush on stdout after printing
44632         prompt.
44633
44634 2009-03-20  Bruno Haible  <bruno@clisp.org>
44635
44636         Remove dependency from 'close' module to -lws2_32 on native Windows.
44637         * lib/close-hook.h: New file.
44638         * lib/close-hook.c: New file.
44639         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44640         w32sock.h.
44641         (_gl_close_fd_maybe_socket): Remove function.
44642         (rpl_close): Invoke execute_all_close_hooks instead of
44643         _gl_close_fd_maybe_socket.
44644         * lib/sockets.c: Include close-hook.h, w32sock.h.
44645         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44646         (close_sockets_hook): New variable.
44647         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44648         (gl_sockets_cleanup): Unregister it.
44649         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44650         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44651         * modules/close-hook: New file.
44652         * modules/close (Files): Remove lib/w32sock.h.
44653         (Depends-on): Add close-hook.
44654         (Link): Remove section.
44655         * modules/sockets (Files): Add lib/w32sock.h.
44656         (Depends-on): Add close-hook.
44657         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44658         invocation.
44659         * NEWS: Mention that LIB_CLOSE is gone.
44660
44661 2009-03-23  Eric Blake  <ebb9@byu.net>
44662
44663         signal-tests: test previous patch
44664         * tests/test-signal.c: New file.
44665         * modules/signal-tests: Likewise.
44666
44667         signal.h: always support 'volatile sig_atomic_t'
44668         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44669         (gl_SIGNAL_H_DEFAULTS): Add a default.
44670         * modules/signal (Makefile.am): Substitute if needed.
44671         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44672         users can blindly add volatile.
44673         * doc/posix-headers/signal.texi (signal.h): Document it.
44674         Reported by Matthew Woehlke.
44675
44676 2009-03-23  Jim Meyering  <meyering@redhat.com>
44677
44678         pathmax: PATH_MAX: use pathconf only when available
44679         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44680         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44681         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44682         This avoids a link failure in a PSP cross-compilation environment
44683         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44684
44685         * lib/vasnprintf.c (divide): Fix typo in comment.
44686
44687 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44688
44689         * gnulib-tool (func_filter_filelist): Fix comment.
44690
44691 2009-03-20  Bruno Haible  <bruno@clisp.org>
44692
44693         Make sockets.h self-contained.
44694         * lib/sockets.c: Include sockets.h first.
44695         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44696
44697 2009-03-19  Eric Blake  <ebb9@byu.net>
44698
44699         doc: mention more functions added in cygwin 1.7.0
44700         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44701         addition.
44702         * doc/posix-functions/log2f.texi: Likewise.
44703
44704 2009-03-19  Jim Meyering  <meyering@redhat.com>
44705
44706         fsusage: avoid syntax error due to statement-before-declaration
44707         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44708         after all declarations.  Reported by Matthew Woehlke in
44709         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44710
44711 2009-03-18  Eric Blake  <ebb9@byu.net>
44712
44713         build-aux/compile: sync from automake
44714         * build-aux/compile: New file, from automake.
44715         * config/srclist.txt: Mention build-aux/compile.
44716
44717 2009-03-17  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/git-merge-changelog.c: Fix typo in comment.
44720         Reported by Reuben Thomas <rrt@sc3d.org>.
44721
44722 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44723
44724         * m4/regex.m4: update and improve help for
44725         --without-included-regex.
44726
44727 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44728
44729         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44730         failure on missing include files.
44731
44732 2009-03-17  Eric Blake  <ebb9@byu.net>
44733
44734         doc: mention more functions added in cygwin 1.7.0
44735         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44736         addition.
44737         * doc/posix-functions/fwscanf.texi: Likewise.
44738         * doc/posix-functions/swprintf.texi: Likewise.
44739         * doc/posix-functions/swscanf.texi: Likewise.
44740         * doc/posix-functions/vfwprintf.texi: Likewise.
44741         * doc/posix-functions/vfwscanf.texi: Likewise.
44742         * doc/posix-functions/vswprintf.texi: Likewise.
44743         * doc/posix-functions/vswscanf.texi: Likewise.
44744         * doc/posix-functions/vwprintf.texi: Likewise.
44745         * doc/posix-functions/vwscanf.texi: Likewise.
44746         * doc/posix-functions/wcscasecmp.texi: Likewise.
44747         * doc/posix-functions/wcsdup.texi: Likewise.
44748         * doc/posix-functions/wcsftime.texi: Likewise.
44749         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44750         * doc/posix-functions/wprintf.texi: Likewise.
44751         * doc/posix-functions/wscanf.texi: Likewise.
44752         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44753
44754 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44755
44756         maint.mk: really add $(AM_MAKEFLAGS)
44757         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44758         was inadvertently omitted in the last commit.
44759         Spotted by Bruno Haible.
44760
44761         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44762         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44763         $(AM_MAKEFLAGS)' rather than plain `make'.
44764
44765         gnulib-tool: execute $MAKE not make
44766         * gnulib-tool: Default $MAKE to 'make'.
44767         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44768         than make.  Initialize $MAKE in the do-autobuild script.
44769
44770         gnulib-tool: use $MAKE not make in generated files
44771         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44772         make, in generated files.  Initialize $MAKE in the do-autobuild
44773         script.
44774
44775         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44776
44777         GNUmakefile: disable parallelism only for multiple, recursive targets
44778         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44779         additions in the Makefile.
44780         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44781         by Automake.
44782         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44783         are listed on the command line and at least one of them is
44784         listed in $(ALL_RECURSIVE_TARGETS).
44785
44786 2009-03-14  Bruno Haible  <bruno@clisp.org>
44787
44788         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44789         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44790         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44791         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44792         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44793         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44794         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44795         unistr/u8-uctomb.
44796         * modules/unistr/u8-strchr (Depends-on): Likewise.
44797         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44798         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44799         unistr/u16-uctomb.
44800         * modules/unistr/u16-strchr (Depends-on): Likewise.
44801         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44802
44803 2009-03-12  Bruno Haible  <bruno@clisp.org>
44804
44805         Work around select() bug on Interix 3.5.
44806         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44807         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44808         * m4/select.m4: New file.
44809         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44810         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44811         * modules/select (Files): Add m4/select.m4.
44812         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44813         * modules/nanosleep (Depends-on): Add select.
44814         * modules/poll (Depends-on): Likewise.
44815         * doc/posix-functions/select.texi: Mention the Interix bug.
44816         Reported by Markus Duft <mduft@gentoo.org>.
44817
44818         * lib/select.c: Renamed from lib/winsock-select.c.
44819         * modules/select (Files): Add lib/select.c, remove
44820         lib/winsock-select.c.
44821         (configure.ac): Update.
44822
44823 2009-03-12  Jim Meyering  <meyering@redhat.com>
44824
44825         avoid gcc warnings about unused macro definitions
44826         * lib/readtokens.c (STREQ): Remove unused definition.
44827         * lib/xmalloc.c (SIZE_MAX): Likewise.
44828         * lib/openat-die.c (N_): Likewise.
44829         * lib/mountlist.c (SIZE_MAX): Remove definition.
44830         Instead, include <stdint.h>.
44831         * lib/readutmp.c: Likewise.
44832         * modules/readutmp (Depends-on): Add stdint.
44833         * modules/mountlist (Depends-on): Add stdint.
44834         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44835
44836 2009-03-10  Bruno Haible  <bruno@clisp.org>
44837
44838         Tests for module 'mbmemcasecoll'.
44839         * modules/mbmemcasecoll-tests: New file.
44840         * tests/test-mbmemcasecoll1.sh: New file.
44841         * tests/test-mbmemcasecoll2.sh: New file.
44842         * tests/test-mbmemcasecoll3.sh: New file.
44843         * tests/test-mbmemcasecoll.c: New file.
44844
44845         New module 'mbmemcasecoll'.
44846         * lib/mbmemcasecoll.h: New file.
44847         * lib/mbmemcasecoll.c: New file.
44848         * modules/mbmemcasecoll: New file.
44849
44850         * tests/test-mbmemcasecmp.h: New file, extracted from
44851         tests/test-mbmemcasecmp.c.
44852         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44853         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44854         (main): Update.
44855         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44856
44857 2009-03-09  Bruno Haible  <bruno@clisp.org>
44858
44859         Tests for module 'mbmemcasecmp'.
44860         * modules/mbmemcasecmp-tests: New file.
44861         * tests/test-mbmemcasecmp1.sh: New file.
44862         * tests/test-mbmemcasecmp2.sh: New file.
44863         * tests/test-mbmemcasecmp3.sh: New file.
44864         * tests/test-mbmemcasecmp.c: New file.
44865
44866         New module 'mbmemcasecmp'.
44867         * lib/mbmemcasecmp.h: New file.
44868         * lib/mbmemcasecmp.c: New file.
44869         * modules/mbmemcasecmp: New file.
44870
44871 2009-03-09  Bruno Haible  <bruno@clisp.org>
44872
44873         Tests for module 'unicase/ulc-casecoll'.
44874         * modules/unicase/ulc-casecoll-tests: New file.
44875         * tests/unicase/test-ulc-casecoll1.sh: New file.
44876         * tests/unicase/test-ulc-casecoll2.sh: New file.
44877         * tests/unicase/test-ulc-casecoll.c: New file.
44878
44879         New module 'unicase/ulc-casecoll'.
44880         * lib/unicase.h (ulc_casecoll): New declaration.
44881         * lib/unicase/ulc-casecoll.c: New file.
44882         * modules/unicase/ulc-casecoll: New file.
44883
44884         New module 'unicase/ulc-casexfrm'.
44885         * lib/unicase.h (ulc_casexfrm): New declaration.
44886         * lib/unicase/ulc-casexfrm.c: New file.
44887         * modules/unicase/ulc-casexfrm: New file.
44888
44889 2009-03-09  Bruno Haible  <bruno@clisp.org>
44890
44891         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44892         invocations.
44893
44894         * m4/mbscasecmp.m4: Remove file.
44895         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44896         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44897
44898         * m4/mbscasestr.m4: Remove file.
44899         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44900         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44901
44902         * m4/mbschr.m4: Remove file.
44903         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44904         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44905
44906         * m4/mbscspn.m4: Remove file.
44907         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44908         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44909
44910         * m4/mbslen.m4: Remove file.
44911         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44912         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44913
44914         * m4/mbsncasecmp.m4: Remove file.
44915         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44916         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44917
44918         * m4/mbsnlen.m4: Remove file.
44919         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44920         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44921
44922         * m4/mbspbrk.m4: Remove file.
44923         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44924         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44925
44926         * m4/mbspcasecmp.m4: Remove file.
44927         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44928         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44929
44930         * m4/mbsrchr.m4: Remove file.
44931         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44932         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44933
44934         * m4/mbssep.m4: Remove file.
44935         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44936         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44937
44938         * m4/mbsspn.m4: Remove file.
44939         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44940         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44941
44942         * m4/mbsstr.m4: Remove file.
44943         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44944         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44945
44946         * m4/mbstok_r.m4: Remove file.
44947         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44948         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44949
44950         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44951
44952         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44953         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44954
44955         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44956
44957 2009-03-08  Bruno Haible  <bruno@clisp.org>
44958
44959         Tests for module 'unicase/ulc-casecmp'.
44960         * modules/unicase/ulc-casecmp-tests: New file.
44961         * tests/unicase/test-ulc-casecmp1.sh: New file.
44962         * tests/unicase/test-ulc-casecmp2.sh: New file.
44963         * tests/unicase/test-ulc-casecmp.c: New file.
44964
44965         New module 'unicase/ulc-casecmp'.
44966         * lib/unicase.h (ulc_casecmp): New declaration.
44967         * lib/unicase/ulc-casecmp.c: New file.
44968         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44969         'const SRC_UNIT *'.
44970         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44971         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44972         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44973         * modules/unicase/ulc-casecmp: New file.
44974
44975         Tests for module 'unicase/u32-is-cased'.
44976         * modules/unicase/u32-is-cased-tests: New file.
44977         * tests/unicase/test-u32-is-cased.c: New file.
44978
44979         Tests for module 'unicase/u16-is-cased'.
44980         * modules/unicase/u16-is-cased-tests: New file.
44981         * tests/unicase/test-u16-is-cased.c: New file.
44982
44983         Tests for module 'unicase/u8-is-cased'.
44984         * modules/unicase/u8-is-cased-tests: New file.
44985         * tests/unicase/test-u8-is-cased.c: New file.
44986         * tests/unicase/test-is-cased.h: New file.
44987
44988         New module 'unicase/u32-is-cased'.
44989         * lib/unicase/u32-is-cased.c: New file.
44990         * modules/unicase/u32-is-cased: New file.
44991
44992         New module 'unicase/u16-is-cased'.
44993         * lib/unicase/u16-is-cased.c: New file.
44994         * modules/unicase/u16-is-cased: New file.
44995
44996         New module 'unicase/u8-is-cased'.
44997         * lib/unicase/u8-is-cased.c: New file.
44998         * lib/unicase/u-is-cased.h: New file.
44999         * modules/unicase/u8-is-cased: New file.
45000
45001         Tests for module 'unicase/u32-is-casefolded'.
45002         * modules/unicase/u32-is-casefolded-tests: New file.
45003         * tests/unicase/test-u32-is-casefolded.c: New file.
45004
45005         Tests for module 'unicase/u16-is-casefolded'.
45006         * modules/unicase/u16-is-casefolded-tests: New file.
45007         * tests/unicase/test-u16-is-casefolded.c: New file.
45008
45009         Tests for module 'unicase/u8-is-casefolded'.
45010         * modules/unicase/u8-is-casefolded-tests: New file.
45011         * tests/unicase/test-u8-is-casefolded.c: New file.
45012         * tests/unicase/test-is-casefolded.h: New file.
45013
45014         New module 'unicase/u32-is-casefolded'.
45015         * lib/unicase/u32-is-casefolded.c: New file.
45016         * modules/unicase/u32-is-casefolded: New file.
45017
45018         New module 'unicase/u16-is-casefolded'.
45019         * lib/unicase/u16-is-casefolded.c: New file.
45020         * modules/unicase/u16-is-casefolded: New file.
45021
45022         New module 'unicase/u8-is-casefolded'.
45023         * lib/unicase/u8-is-casefolded.c: New file.
45024         * modules/unicase/u8-is-casefolded: New file.
45025
45026         Tests for module 'unicase/u32-is-titlecase'.
45027         * modules/unicase/u32-is-titlecase-tests: New file.
45028         * tests/unicase/test-u32-is-titlecase.c: New file.
45029
45030         Tests for module 'unicase/u16-is-titlecase'.
45031         * modules/unicase/u16-is-titlecase-tests: New file.
45032         * tests/unicase/test-u16-is-titlecase.c: New file.
45033
45034         Tests for module 'unicase/u8-is-titlecase'.
45035         * modules/unicase/u8-is-titlecase-tests: New file.
45036         * tests/unicase/test-u8-is-titlecase.c: New file.
45037         * tests/unicase/test-is-titlecase.h: New file.
45038
45039         New module 'unicase/u32-is-titlecase'.
45040         * lib/unicase/u32-is-titlecase.c: New file.
45041         * modules/unicase/u32-is-titlecase: New file.
45042
45043         New module 'unicase/u16-is-titlecase'.
45044         * lib/unicase/u16-is-titlecase.c: New file.
45045         * modules/unicase/u16-is-titlecase: New file.
45046
45047         New module 'unicase/u8-is-titlecase'.
45048         * lib/unicase/u8-is-titlecase.c: New file.
45049         * modules/unicase/u8-is-titlecase: New file.
45050
45051         Tests for module 'unicase/u32-is-lowercase'.
45052         * modules/unicase/u32-is-lowercase-tests: New file.
45053         * tests/unicase/test-u32-is-lowercase.c: New file.
45054
45055         Tests for module 'unicase/u16-is-lowercase'.
45056         * modules/unicase/u16-is-lowercase-tests: New file.
45057         * tests/unicase/test-u16-is-lowercase.c: New file.
45058
45059         Tests for module 'unicase/u8-is-lowercase'.
45060         * modules/unicase/u8-is-lowercase-tests: New file.
45061         * tests/unicase/test-u8-is-lowercase.c: New file.
45062         * tests/unicase/test-is-lowercase.h: New file.
45063
45064         New module 'unicase/u32-is-lowercase'.
45065         * lib/unicase/u32-is-lowercase.c: New file.
45066         * modules/unicase/u32-is-lowercase: New file.
45067
45068         New module 'unicase/u16-is-lowercase'.
45069         * lib/unicase/u16-is-lowercase.c: New file.
45070         * modules/unicase/u16-is-lowercase: New file.
45071
45072         New module 'unicase/u8-is-lowercase'.
45073         * lib/unicase/u8-is-lowercase.c: New file.
45074         * modules/unicase/u8-is-lowercase: New file.
45075
45076         Tests for module 'unicase/u32-is-uppercase'.
45077         * modules/unicase/u32-is-uppercase-tests: New file.
45078         * tests/unicase/test-u32-is-uppercase.c: New file.
45079
45080         Tests for module 'unicase/u16-is-uppercase'.
45081         * modules/unicase/u16-is-uppercase-tests: New file.
45082         * tests/unicase/test-u16-is-uppercase.c: New file.
45083
45084         Tests for module 'unicase/u8-is-uppercase'.
45085         * modules/unicase/u8-is-uppercase-tests: New file.
45086         * tests/unicase/test-u8-is-uppercase.c: New file.
45087         * tests/unicase/test-is-uppercase.h: New file.
45088
45089         New module 'unicase/u32-is-uppercase'.
45090         * lib/unicase/u32-is-uppercase.c: New file.
45091         * modules/unicase/u32-is-uppercase: New file.
45092
45093         New module 'unicase/u16-is-uppercase'.
45094         * lib/unicase/u16-is-uppercase.c: New file.
45095         * modules/unicase/u16-is-uppercase: New file.
45096
45097         New module 'unicase/u8-is-uppercase'.
45098         * lib/unicase/u8-is-uppercase.c: New file.
45099         * modules/unicase/u8-is-uppercase: New file.
45100
45101         New module 'unicase/u32-is-invariant'.
45102         * lib/unicase/u32-is-invariant.c: New file.
45103         * modules/unicase/u32-is-invariant: New file.
45104
45105         New module 'unicase/u16-is-invariant'.
45106         * lib/unicase/u16-is-invariant.c: New file.
45107         * modules/unicase/u16-is-invariant: New file.
45108
45109         New module 'unicase/u8-is-invariant'.
45110         * lib/unicase/u8-is-invariant.c: New file.
45111         * lib/unicase/invariant.h: New file.
45112         * lib/unicase/u-is-invariant.h: New file.
45113         * modules/unicase/u8-is-invariant: New file.
45114
45115         Tests for module 'unicase/u32-casecoll'.
45116         * modules/unicase/u32-casecoll-tests: New file.
45117         * tests/unicase/test-u32-casecoll.c: New file.
45118
45119         Tests for module 'unicase/u16-casecoll'.
45120         * modules/unicase/u16-casecoll-tests: New file.
45121         * tests/unicase/test-u16-casecoll.c: New file.
45122
45123         Tests for module 'unicase/u8-casecoll'.
45124         * modules/unicase/u8-casecoll-tests: New file.
45125         * tests/unicase/test-u8-casecoll.c: New file.
45126
45127         New module 'unicase/u32-casecoll'.
45128         * lib/unicase/u32-casecoll.c: New file.
45129         * modules/unicase/u32-casecoll: New file.
45130
45131         New module 'unicase/u16-casecoll'.
45132         * lib/unicase/u16-casecoll.c: New file.
45133         * modules/unicase/u16-casecoll: New file.
45134
45135         New module 'unicase/u8-casecoll'.
45136         * lib/unicase/u8-casecoll.c: New file.
45137         * lib/unicase/u-casecoll.h: New file.
45138         * modules/unicase/u8-casecoll: New file.
45139
45140         New module 'unicase/u32-casexfrm'.
45141         * lib/unicase/u32-casexfrm.c: New file.
45142         * modules/unicase/u32-casexfrm: New file.
45143
45144         New module 'unicase/u16-casexfrm'.
45145         * lib/unicase/u16-casexfrm.c: New file.
45146         * modules/unicase/u16-casexfrm: New file.
45147
45148         New module 'unicase/u8-casexfrm'.
45149         * lib/unicase/u8-casexfrm.c: New file.
45150         * lib/unicase/u-casexfrm.h: New file.
45151         * modules/unicase/u8-casexfrm: New file.
45152
45153         Tests for module 'unicase/u32-casecmp'.
45154         * modules/unicase/u32-casecmp-tests: New file.
45155         * tests/unicase/test-u32-casecmp.c: New file.
45156
45157         Tests for module 'unicase/u16-casecmp'.
45158         * modules/unicase/u16-casecmp-tests: New file.
45159         * tests/unicase/test-u16-casecmp.c: New file.
45160
45161         Tests for module 'unicase/u8-casecmp'.
45162         * modules/unicase/u8-casecmp-tests: New file.
45163         * tests/unicase/test-u8-casecmp.c: New file.
45164         * tests/unicase/test-casecmp.h: New file.
45165
45166         New module 'unicase/u32-casecmp'.
45167         * lib/unicase/u32-casecmp.c: New file.
45168         * modules/unicase/u32-casecmp: New file.
45169
45170         New module 'unicase/u16-casecmp'.
45171         * lib/unicase/u16-casecmp.c: New file.
45172         * modules/unicase/u16-casecmp: New file.
45173
45174         New module 'unicase/u8-casecmp'.
45175         * lib/unicase/u8-casecmp.c: New file.
45176         * lib/unicase/u-casecmp.h: New file.
45177         * modules/unicase/u8-casecmp: New file.
45178
45179         Tests for module 'unicase/u32-casefold'.
45180         * modules/unicase/u32-casefold-tests: New file.
45181         * tests/unicase/test-u32-casefold.c: New file.
45182
45183         Tests for module 'unicase/u16-casefold'.
45184         * modules/unicase/u16-casefold-tests: New file.
45185         * tests/unicase/test-u16-casefold.c: New file.
45186
45187         Tests for module 'unicase/u8-casefold'.
45188         * modules/unicase/u8-casefold-tests: New file.
45189         * tests/unicase/test-u8-casefold.c: New file.
45190
45191         New module 'unicase/u32-casefold'.
45192         * lib/unicase/u32-casefold.c: New file.
45193         * modules/unicase/u32-casefold: New file.
45194
45195         New module 'unicase/u16-casefold'.
45196         * lib/unicase/u16-casefold.c: New file.
45197         * modules/unicase/u16-casefold: New file.
45198
45199         New module 'unicase/u8-casefold'.
45200         * lib/unicase/u8-casefold.c: New file.
45201         * lib/unicase/u-casefold.h: New file.
45202         * modules/unicase/u8-casefold: New file.
45203
45204         New module 'unicase/tocasefold'.
45205         * lib/unicase/casefold.h: New file.
45206         * lib/unicase/tocasefold.c: New file.
45207         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45208         * modules/unicase/tocasefold: New file.
45209
45210         Tests for module 'unicase/u32-totitle'.
45211         * modules/unicase/u32-totitle-tests: New file.
45212         * tests/unicase/test-u32-totitle.c: New file.
45213
45214         Tests for module 'unicase/u16-totitle'.
45215         * modules/unicase/u16-totitle-tests: New file.
45216         * tests/unicase/test-u16-totitle.c: New file.
45217
45218         Tests for module 'unicase/u8-totitle'.
45219         * modules/unicase/u8-totitle-tests: New file.
45220         * tests/unicase/test-u8-totitle.c: New file.
45221
45222         New module 'unicase/u32-totitle'.
45223         * lib/unicase/u32-totitle.c: New file.
45224         * modules/unicase/u32-totitle: New file.
45225
45226         New module 'unicase/u16-totitle'.
45227         * lib/unicase/u16-totitle.c: New file.
45228         * modules/unicase/u16-totitle: New file.
45229
45230         New module 'unicase/u8-totitle'.
45231         * lib/unicase/u8-totitle.c: New file.
45232         * lib/unicase/u-totitle.h: New file.
45233         * modules/unicase/u8-totitle: New file.
45234
45235         Tests for module 'unicase/u32-tolower'.
45236         * modules/unicase/u32-tolower-tests: New file.
45237         * tests/unicase/test-u32-tolower.c: New file.
45238
45239         Tests for module 'unicase/u16-tolower'.
45240         * modules/unicase/u16-tolower-tests: New file.
45241         * tests/unicase/test-u16-tolower.c: New file.
45242
45243         Tests for module 'unicase/u8-tolower'.
45244         * modules/unicase/u8-tolower-tests: New file.
45245         * tests/unicase/test-u8-tolower.c: New file.
45246
45247         New module 'unicase/u32-tolower'.
45248         * lib/unicase/u32-tolower.c: New file.
45249         * modules/unicase/u32-tolower: New file.
45250
45251         New module 'unicase/u16-tolower'.
45252         * lib/unicase/u16-tolower.c: New file.
45253         * modules/unicase/u16-tolower: New file.
45254
45255         New module 'unicase/u8-tolower'.
45256         * lib/unicase/u8-tolower.c: New file.
45257         * modules/unicase/u8-tolower: New file.
45258
45259         Tests for module 'unicase/u32-toupper'.
45260         * modules/unicase/u32-toupper-tests: New file.
45261         * tests/unicase/test-u32-toupper.c: New file.
45262
45263         Tests for module 'unicase/u16-toupper'.
45264         * modules/unicase/u16-toupper-tests: New file.
45265         * tests/unicase/test-u16-toupper.c: New file.
45266
45267         Tests for module 'unicase/u8-toupper'.
45268         * modules/unicase/u8-toupper-tests: New file.
45269         * tests/unicase/test-u8-toupper.c: New file.
45270
45271         New module 'unicase/u32-toupper'.
45272         * lib/unicase/u32-toupper.c: New file.
45273         * modules/unicase/u32-toupper: New file.
45274
45275         New module 'unicase/u16-toupper'.
45276         * lib/unicase/u16-toupper.c: New file.
45277         * modules/unicase/u16-toupper: New file.
45278
45279         New module 'unicase/u8-toupper'.
45280         * lib/unicase/u8-toupper.c: New file.
45281         * modules/unicase/u8-toupper: New file.
45282
45283         New module 'unicase/u32-casemap'.
45284         * lib/unicase/u32-casemap.c: New file.
45285         * modules/unicase/u32-casemap: New file.
45286
45287         New module 'unicase/u16-casemap'.
45288         * lib/unicase/u16-casemap.c: New file.
45289         * modules/unicase/u16-casemap: New file.
45290
45291         New module 'unicase/u8-casemap'.
45292         * lib/unicase/unicasemap.h: New file.
45293         * lib/unicase/u8-casemap.c: New file.
45294         * lib/unicase/u-casemap.h: New file.
45295         * modules/unicase/u8-casemap: New file.
45296
45297         New module 'unicase/special-casing'.
45298         * lib/unicase/special-casing.h: New file.
45299         * lib/unicase/special-casing.c: New file.
45300         * lib/unicase/special-casing-table.gperf: New file, generated by
45301         gen-uni-tables.c.
45302         * modules/unicase/special-casing: New file.
45303
45304         Tests for module 'unicase/locale-language'.
45305         * modules/unicase/locale-language-tests: New file.
45306         * tests/unicase/test-locale-language.sh: New file.
45307         * tests/unicase/test-locale-language.c: New file.
45308
45309         New module 'unicase/locale-language'.
45310         * lib/unicase/locale-language.c: New file.
45311         * lib/unicase/locale-languages.gperf: New file.
45312         * modules/unicase/locale-language: New file.
45313
45314         Generate more tables for case conversion and case folding.
45315         * lib/gen-uni-tables.c (SCC_*): New enum items.
45316         (struct special_casing_rule): New type.
45317         (casing_rules, num_casing_rules, allocated_casing_rules): New
45318         variables.
45319         (add_casing_rule, fill_casing_rules): New functions.
45320         (struct casefold_rule): New type.
45321         (casefolding_rules, num_casefolding_rules,
45322         allocated_casefolding_rules): New variables.
45323         (fill_casefolding_rules): New function.
45324         (unicode_casefold): New variable.
45325         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45326         sort_casing_rules, output_casing_rules): New functions.
45327         (main): Accept to more arguments: SpecialCasing.txt and
45328         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45329         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45330         Output mapping for casefolding.
45331
45332         * lib/unicase.h: Include stdbool.h, uninorm.h.
45333         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45334         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45335         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45336         arguments.
45337         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45338         resultp arguments.
45339         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45340         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45341         resultp arguments.
45342         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45343         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45344         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45345         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45346         declarations.
45347         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45348
45349 2009-03-08  Bruno Haible  <bruno@clisp.org>
45350
45351         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45352         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45353         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45354         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45355
45356 2009-03-07  Bruno Haible  <bruno@clisp.org>
45357
45358         Adjust u*_normcmp, u*_normcoll API.
45359         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45360         u16_normcoll, u32_normcoll): Change failure conventions.
45361         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45362         errno and return -1.
45363         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45364
45365 2009-03-07  Bruno Haible  <bruno@clisp.org>
45366
45367         Tests for module 'uninorm/u32-normcoll'.
45368         * modules/uninorm/u32-normcoll-tests: New file.
45369         * tests/uninorm/test-u32-normcoll.c: New file.
45370
45371         Tests for module 'uninorm/u16-normcoll'.
45372         * modules/uninorm/u16-normcoll-tests: New file.
45373         * tests/uninorm/test-u16-normcoll.c: New file.
45374
45375         Tests for module 'uninorm/u8-normcoll'.
45376         * modules/uninorm/u8-normcoll-tests: New file.
45377         * tests/uninorm/test-u8-normcoll.c: New file.
45378
45379 2009-03-07  Bruno Haible  <bruno@clisp.org>
45380
45381         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45382         tests/uninorm/test-u32-normcmp.c.
45383         * tests/uninorm/test-u32-normcmp.c: Include it.
45384         (test_nonascii): New function, extracted from main. Add some more
45385         tests.
45386         (main): Invoke test_ascii and test_nonascii.
45387         * modules/uninorm/u32-normcmp-tests (Files): Add
45388         tests/uninorm/test-u32-normcmp.h.
45389         (Depends-on): Remove uninorm/u32-normcmp.
45390
45391         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45392         tests/uninorm/test-u16-normcmp.c.
45393         * tests/uninorm/test-u16-normcmp.c: Include it.
45394         (test_nonascii): New function, extracted from main. Add some more
45395         tests.
45396         (main): Invoke test_ascii and test_nonascii.
45397         * modules/uninorm/u16-normcmp-tests (Files): Add
45398         tests/uninorm/test-u16-normcmp.h.
45399         (Depends-on): Remove uninorm/u16-normcmp.
45400
45401         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45402         tests/uninorm/test-u8-normcmp.c.
45403         * tests/uninorm/test-u8-normcmp.c: Include it.
45404         (test_nonascii): New function, extracted from main. Add some more
45405         tests.
45406         (main): Invoke test_ascii and test_nonascii.
45407         * modules/uninorm/u8-normcmp-tests (Files): Add
45408         tests/uninorm/test-u8-normcmp.h.
45409         (Depends-on): Remove uninorm/u8-normcmp.
45410
45411 2009-03-07  Bruno Haible  <bruno@clisp.org>
45412
45413         New module 'uninorm/u32-normcoll'.
45414         * lib/uninorm/u32-normcoll.c: New file.
45415         * modules/uninorm/u32-normcoll: New file.
45416
45417         New module 'uninorm/u16-normcoll'.
45418         * lib/uninorm/u16-normcoll.c: New file.
45419         * modules/uninorm/u16-normcoll: New file.
45420
45421         New module 'uninorm/u8-normcoll'.
45422         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45423         declarations.
45424         * lib/uninorm/u8-normcoll.c: New file.
45425         * lib/uninorm/u-normcoll.h: New file.
45426         * modules/uninorm/u8-normcoll: New file.
45427
45428         New module 'uninorm/u32-normxfrm'.
45429         * lib/uninorm/u32-normxfrm.c: New file.
45430         * modules/uninorm/u32-normxfrm: New file.
45431
45432         New module 'uninorm/u16-normxfrm'.
45433         * lib/uninorm/u16-normxfrm.c: New file.
45434         * modules/uninorm/u16-normxfrm: New file.
45435
45436         New module 'uninorm/u8-normxfrm'.
45437         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45438         declarations.
45439         * lib/uninorm/u8-normxfrm.c: New file.
45440         * lib/uninorm/u-normxfrm.h: New file.
45441         * modules/uninorm/u8-normxfrm: New file.
45442
45443 2009-03-07  Bruno Haible  <bruno@clisp.org>
45444
45445         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45446         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45447         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45448
45449 2009-03-07  Bruno Haible  <bruno@clisp.org>
45450
45451         New module 'memxfrm'.
45452         * lib/memxfrm.h: New file.
45453         * lib/memxfrm.c: New file.
45454         * modules/memxfrm: New file.
45455
45456 2009-03-07  Bruno Haible  <bruno@clisp.org>
45457
45458         New module 'memcmp2'.
45459         * lib/memcmp2.h: New file.
45460         * lib/memcmp2.c: New file.
45461         * modules/memcmp2: New file.
45462
45463 2009-03-07  Bruno Haible  <bruno@clisp.org>
45464
45465         Tests for module 'uninorm/decomposing-form'.
45466         * modules/uninorm/decomposing-form-tests: New file.
45467         * tests/uninorm/test-decomposing-form.c: New file.
45468
45469         New module 'uninorm/decomposing-form'.
45470         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45471         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45472         Add 'decomposing_variant' field.
45473         * lib/uninorm/decomposing-form.c: New file.
45474         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45475         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45476         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45477         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45478         * modules/uninorm/decomposing-form: New file.
45479         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45480         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45481
45482 2009-03-07  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45485         strings.
45486
45487 2009-03-06  Bruno Haible  <bruno@clisp.org>
45488
45489         Tests for module 'uninorm/u32-normcmp'.
45490         * tests/uninorm/test-u32-normcmp.c: New file.
45491         * modules/uninorm/u32-normcmp-tests: New file.
45492
45493         Tests for module 'uninorm/u16-normcmp'.
45494         * tests/uninorm/test-u16-normcmp.c: New file.
45495         * modules/uninorm/u16-normcmp-tests: New file.
45496
45497         Tests for module 'uninorm/u8-normcmp'.
45498         * tests/uninorm/test-u8-normcmp.c: New file.
45499         * modules/uninorm/u8-normcmp-tests: New file.
45500
45501         New module 'uninorm/u32-normcmp'.
45502         * lib/uninorm/u32-normcmp.c: New file.
45503         * modules/uninorm/u32-normcmp: New file.
45504
45505         New module 'uninorm/u16-normcmp'.
45506         * lib/uninorm/u16-normcmp.c: New file.
45507         * modules/uninorm/u16-normcmp: New file.
45508
45509         New module 'uninorm/u8-normcmp'.
45510         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45511         declarations.
45512         * lib/uninorm/u8-normcmp.c: New file.
45513         * lib/uninorm/u-normcmp.h: New file.
45514         * modules/uninorm/u8-normcmp: New file.
45515
45516 2009-03-06  Bruno Haible  <bruno@clisp.org>
45517
45518         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45519         Reported by Eric Blake.
45520
45521 2009-03-06  Eric Blake  <ebb9@byu.net>
45522             Bruno Haible  <bruno@clisp.org>
45523
45524         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45525         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45526         condition.
45527         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45528         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45529         condition.
45530         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45531
45532 2009-03-06  Eric Blake  <ebb9@byu.net>
45533
45534         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45535         to avoid compiler warnings.
45536         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45537
45538 2009-03-05  Bruno Haible  <bruno@clisp.org>
45539
45540         * tests/test-ftell.c (main): Disable test beyond end of file on
45541         FreeMiNT.
45542         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45543
45544 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45545
45546         * lib/filevercmp.c: Move hidden files up in ordering.
45547         * tests/test-filevercmp.c: Add tests for hidden files.
45548
45549 2009-03-04  Bruno Haible  <bruno@clisp.org>
45550
45551         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45552         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45553         AM_CFLAGS.
45554         Reported by Simon Josefsson.
45555
45556 2009-03-03  Bruno Haible  <bruno@clisp.org>
45557
45558         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45559         Reported by Simon Josefsson.
45560
45561         * doc/ld-version-script.texi: Update node reference.
45562
45563 2009-03-03  Bruno Haible  <bruno@clisp.org>
45564
45565         * modules/visibility (License): Change to 'unlimited'.
45566         Suggested by Simon Josefsson.
45567
45568 2009-03-03  Jim Meyering  <meyering@redhat.com>
45569
45570         unlinkdir: cannot_unlink_dir may modify process state
45571         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45572         it's neither thread-safe nor appropriate for use in a library.
45573
45574 2009-03-03  Eric Blake  <ebb9@byu.net>
45575
45576         test-closein: silence test under Darwin
45577         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45578         care if it dies from EPIPE or EBADF.
45579
45580 2009-03-03  Bruno Haible  <bruno@clisp.org>
45581
45582         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45583         earlier.
45584         * doc/visibility.texi: Fix @node and @section.
45585
45586 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45587
45588         * doc/gnulib.texi: Link to sections for ld version script and
45589         visibility.
45590         * doc/visibility.texi: Add @node and @section.
45591         * modules/ld-version-script: New module.
45592         * m4/ld-version-script.m4: New file.
45593         * doc/ld-version-script.texi: New file.
45594
45595 2009-03-02  David Lutterkort  <lutter@redhat.com>
45596
45597         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45598         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45599
45600 2009-03-02  Bruno Haible  <bruno@clisp.org>
45601
45602         * doc/visibility.texi: Mention libtool's -export-symbols option.
45603
45604 2009-03-02  Jim Meyering  <meyering@redhat.com>
45605
45606         announce-gen: new option: --no-print-checksums
45607         * build-aux/announce-gen (usage): Describe it.
45608         (print_checksums): Print a newline here, not in the [*] footnote.
45609         (main): Honor it.
45610
45611 2009-03-01  Bruno Haible  <bruno@clisp.org>
45612
45613         Use socklen_t in the native Windows replacements prototypes.
45614         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45615         instead of 'int'.
45616         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45617         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45618         * modules/getsockopt (Depends-on): Add socklen.
45619         * modules/setsockopt (Depends-on): Add socklen.
45620
45621 2009-03-01  Bruno Haible  <bruno@clisp.org>
45622
45623         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45624         least 4.2.
45625
45626 2009-03-01  Eric Blake  <ebb9@byu.net>
45627             Bruno Haible  <bruno@clisp.org>
45628
45629         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45630         error messages.
45631         * lib/wait-process.c (wait_subprocess): Omit error message about
45632         deadly signal sent to the child of termsigp != NULL.
45633
45634 2009-03-01  Eric Blake  <ebb9@byu.net>
45635
45636         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45637
45638 2009-03-01  Bruno Haible  <bruno@clisp.org>
45639
45640         Avoid a gcc warning.
45641         * tests/test-sched.c (b): Make global.
45642         Reported by Eric Blake.
45643
45644 2009-01-19  Martin Lambers  <marlam@marlam.de>
45645
45646         Provide POSIX semantics for socket timeout options on W32.
45647         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45648         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45649         * modules/setsockopt: Depend on sys_time module for struct timeval.
45650         * modules/getsockopt: Depend on sys_time module for struct timeval.
45651
45652 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45653
45654         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45655         __USE_GNU, for consistency with netdb.in.h.
45656         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45657
45658 2009-03-01  Bruno Haible  <bruno@clisp.org>
45659
45660         More support for FreeMiNT.
45661         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45662         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45663
45664 2009-03-01  Bruno Haible  <bruno@clisp.org>
45665
45666         More support for FreeMiNT.
45667         * lib/fpurge.c (fpurge): Correct last commit.
45668         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45669
45670 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45671
45672         Fix unportable awk script in vc-list-files.
45673         * build-aux/vc-list-files: In the replacement awk script, use
45674         substr with a second argument of 1, not zero.
45675         Report by Simon Josefsson.
45676
45677 2009-02-28  Bruno Haible  <bruno@clisp.org>
45678
45679         More support for FreeMiNT.
45680         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45681         to FreeMiNT today.
45682         * lib/fwriting.c (fwriting): Likewise.
45683         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45684
45685 2009-02-28  Bruno Haible  <bruno@clisp.org>
45686
45687         * tests/test-freadseek.c (main): Disable test beyond end of file on
45688         FreeMiNT.
45689         * tests/test-ftello.c (main): Likewise.
45690         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45691
45692 2009-02-28  Bruno Haible  <bruno@clisp.org>
45693
45694         Add tentative support for FreeMiNT.
45695         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45696         * lib/fpurge.c (fpurge): Likewise.
45697         * lib/freadable.c (freadable): Likewise.
45698         * lib/freading.c (freading): Likewise.
45699         * lib/freadptr.c (freadptr): Likewise.
45700         * lib/freadseek.c (freadptrinc): Likewise.
45701         * lib/fseeko.c (rpl_fseeko): Likewise.
45702         * lib/fseterr.c (fseterr): Likewise.
45703         * lib/fwritable.c (fwritable): Likewise.
45704         * lib/fwriting.c (fwriting): Likewise.
45705         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45706         Hourihane.
45707         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45708
45709 2009-02-28  Bruno Haible  <bruno@clisp.org>
45710
45711         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45712         SIGCHLD.
45713         Reported by Jim Meyering.
45714
45715 2009-02-28  Bruno Haible  <bruno@clisp.org>
45716
45717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45718         Mention the results of these tests on various platforms.
45719         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45720         order.
45721         * doc/posix-functions/printf.texi: Likewise.
45722         * doc/posix-functions/snprintf.texi: Likewise.
45723         * doc/posix-functions/sprintf.texi: Likewise.
45724         * doc/posix-functions/vfprintf.texi: Likewise.
45725         * doc/posix-functions/vprintf.texi: Likewise.
45726         * doc/posix-functions/vsnprintf.texi: Likewise.
45727         * doc/posix-functions/vsprintf.texi: Likewise.
45728         * doc/glibc-functions/obstack_printf.texi: Likewise.
45729         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45730
45731 2009-02-28  Bruno Haible  <bruno@clisp.org>
45732
45733         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45734         Reported by Loïc Minier <lool@dooz.org>.
45735
45736 2009-02-27  Bruno Haible  <bruno@clisp.org>
45737
45738         * gnulib-tool (func_import): Make the sed expression used to create the
45739         sed script for updating the .gitignore file POSIX compliant.
45740         Reported by Eric Blake.
45741
45742 2009-02-27  Bruno Haible  <bruno@clisp.org>
45743
45744         * gnulib-tool (sed): Don't alias as "sed --posix".
45745         Reported by Eric Blake.
45746
45747 2009-02-27  Bruno Haible  <bruno@clisp.org>
45748
45749         Avoid test link errors.
45750         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45751         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45752         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45753         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45755
45756 2009-02-27  Bruno Haible  <bruno@clisp.org>
45757
45758         Avoid spurious "(cached)" in configure output.
45759         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45760         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45761         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45762         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45763         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45764         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45765         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45766         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45767         Reported by Eric Blake.
45768
45769 2009-02-27  Eric Blake  <ebb9@byu.net>
45770
45771         printf: fix regression in previous patch
45772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45773
45774 2009-02-27  Bruno Haible  <bruno@clisp.org>
45775
45776         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45777         value.
45778         * lib/stdint.in.h: Likewise.
45779         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45780
45781 2009-02-27  Eric Blake  <ebb9@byu.net>
45782
45783         doc: mention more functions added in cygwin 1.7.0
45784         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45785         addition.
45786         * doc/posix-functions/open_wmemstream.texi: Likewise.
45787         * doc/posix-functions/wcsnlen.texi: Likewise.
45788         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45789         * doc/posix-functions/wcstod.texi: Likewise.
45790         * doc/posix-functions/wcstof.texi: Likewise.
45791         * doc/posix-functions/wcstoimax.texi: Likewise.
45792         * doc/posix-functions/wcstok.texi: Likewise.
45793         * doc/posix-functions/wcstoumax.texi: Likewise.
45794
45795         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45796         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45797         * doc/posix-functions/fprintf.texi: Update.
45798         * doc/posix-functions/printf.texi: Update.
45799         * doc/posix-functions/snprintf.texi: Update.
45800         * doc/posix-functions/sprintf.texi: Update.
45801         * doc/posix-functions/vfprintf.texi: Update.
45802         * doc/posix-functions/vprintf.texi: Update.
45803         * doc/posix-functions/vsnprintf.texi: Update.
45804         * doc/posix-functions/vsprintf.texi: Update.
45805         * doc/glibc-functions/obstack_printf.texi: Update.
45806         * doc/glibc-functions/obstack_vprintf.texi: Update.
45807
45808 2009-02-26  Eric Blake  <ebb9@byu.net>
45809
45810         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45811         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45812         compilation bug by using runtime conversion.
45813         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45814         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45815         * modules/ceill-tests (Files): Use nan.h.
45816         * modules/floorl-tests (Files): Likewise.
45817         * modules/frexpl-tests (Files): Likewise.
45818         * modules/isnanl-tests (Files): Likewise.
45819         * modules/ldexpl-tests (Files): Likewise.
45820         * modules/roundl-tests (Files): Likewise.
45821         * modules/truncl-tests (Files): Likewise.
45822         * tests/test-ceill.c (main): Use a working NaN.
45823         * tests/test-floorl.c (main): Likewise.
45824         * tests/test-frexpl.c (main): Likewise.
45825         * tests/test-isnan.c (test_long_double): Likewise.
45826         * tests/test-isnanl.h (main): Likewise.
45827         * tests/test-ldexpl.h (main): Likewise.
45828         * tests/test-roundl.h (main): Likewise.
45829         * tests/test-truncl.h (main): Likewise.
45830         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45831
45832 2009-02-26  Eric Blake  <ebb9@byu.net>
45833             Bruno Haible  <bruno@clisp.org>
45834
45835         Work around a *printf bug with %ls on Solaris.
45836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45837         precision is specified, sprintf stops converting the wide string
45838         argument when the number of bytes that have been produced by this
45839         conversion equals or exceeds the precision.
45840         * doc/posix-functions/fprintf.texi: Update.
45841         * doc/posix-functions/printf.texi: Update.
45842         * doc/posix-functions/snprintf.texi: Update.
45843         * doc/posix-functions/sprintf.texi: Update.
45844         * doc/posix-functions/vfprintf.texi: Update.
45845         * doc/posix-functions/vprintf.texi: Update.
45846         * doc/posix-functions/vsnprintf.texi: Update.
45847         * doc/posix-functions/vsprintf.texi: Update.
45848         * doc/glibc-functions/obstack_printf.texi: Update.
45849         * doc/glibc-functions/obstack_vprintf.texi: Update.
45850
45851 2009-02-26  Eric Blake  <ebb9@byu.net>
45852
45853         stdlib: favor compiler check of random.h
45854         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45855         to avoid an ObjC random.h installed by Swarm.
45856
45857 2009-02-26  Bruno Haible  <bruno@clisp.org>
45858
45859         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45860         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45861         Reported by Gary V. Vaughan <gary@gnu.org>.
45862
45863 2009-02-26  Bruno Haible  <bruno@clisp.org>
45864
45865         Fix *printf behaviour regarding the %ls directive.
45866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45867         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45868         NEED_PRINTF_DIRECTIVE_LS.
45869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45870         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45872         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45873         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45874         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45875         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45880         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45884         * doc/posix-functions/fprintf.texi: Update.
45885         * doc/posix-functions/printf.texi: Update.
45886         * doc/posix-functions/snprintf.texi: Update.
45887         * doc/posix-functions/sprintf.texi: Update.
45888         * doc/posix-functions/vfprintf.texi: Update.
45889         * doc/posix-functions/vprintf.texi: Update.
45890         * doc/posix-functions/vsnprintf.texi: Update.
45891         * doc/posix-functions/vsprintf.texi: Update.
45892         * doc/glibc-functions/obstack_printf.texi: Update.
45893         * doc/glibc-functions/obstack_vprintf.texi: Update.
45894         Reported by Eric Blake.
45895
45896 2009-02-25  Bruno Haible  <bruno@clisp.org>
45897
45898         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45899         with known value.
45900         Reported by Gary V. Vaughan <gary@gnu.org>.
45901
45902 2009-02-25  Bruno Haible  <bruno@clisp.org>
45903
45904         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45905         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45906         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45907         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45908         Reported by Gary V. Vaughan <gary@gnu.org>.
45909
45910 2009-02-25  Bruno Haible  <bruno@clisp.org>
45911
45912         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45913         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45914         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45915         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45916         Reported by Gary V. Vaughan <gary@gnu.org>.
45917
45918 2009-02-25  Eric Blake  <ebb9@byu.net>
45919
45920         tests: skip fseek/ftell tests if ungetc is broken
45921         * m4/ungetc.m4: New file.
45922         * modules/fseek-tests: Split test, so ungetc dependency is
45923         separate from rest of test.
45924         * modules/fseeko-tests: Likewise.
45925         * modules/ftell-tests: Likewise.
45926         * modules/ftello-tests: Likewise.
45927         * tests/test-fseek.c (main): Isolate ungetc dependency.
45928         * tests/test-fseeko.c (main): Likewise.
45929         * tests/test-ftell.c (main): Likewise.
45930         * tests/test-ftello.c (main): Likewise.
45931         * tests/test-fseek2.sh: New file.
45932         * tests/test-fseeko2.sh: Likewise.
45933         * tests/test-ftell2.sh: Likewise.
45934         * tests/test-ftello2.sh: Likewise.
45935
45936 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45937
45938         test-getaddrinfo: fix usage of skip return code 77
45939         * tests/test-gettaddrinfo.c: Return skip code 77 only
45940         for first occurance of skip (4x77 is not 77)
45941
45942 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45943
45944         strtod: avoid C99 decl-after-statement
45945         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45946
45947 2009-02-24  Eric Blake  <ebb9@byu.net>
45948
45949         strtod: detect HP-UX 11.31 bug
45950         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45951         Reported by Gary V. Vaughan.
45952
45953 2009-02-23  Bruno Haible  <bruno@clisp.org>
45954
45955         Fix invalid read past end of memory block.
45956         * lib/vasnprintf.c (DCHAR_SET): Define.
45957         (local_wcslen): Define only when needed.
45958         (local_strnlen, local_wcsnlen): New functions.
45959         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45960         directives that involve a conversion ourselves.
45961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45962         wcsnlen, mbrtowc, wcrtomb.
45963         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45964         * tests/test-vasprintf-posix.c (test_function): Likewise.
45965         * tests/test-snprintf-posix.h (test_function): Likewise.
45966         * tests/test-sprintf-posix.h (test_function): Likewise.
45967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45968
45969 2009-02-22  Bruno Haible  <bruno@clisp.org>
45970
45971         Implement new clarified decomposition of Hangul syllables.
45972         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45973         of type LTV, return only a pairwise decomposition.
45974         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45975         Likewise.
45976         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45977         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45978         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45979
45980 2009-02-22  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45983         zero-length results and shrink excess allocated memory.
45984         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45985         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45986         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45987         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45988         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45989         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45990         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45991         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45992         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45993         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45994         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45995         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45996
45997 2009-02-21  Bruno Haible  <bruno@clisp.org>
45998
45999         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46000         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46001         spaces after a period. Put a space between a macro name and its
46002         argument list. Trivial rewordings.
46003         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46004         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46005         (main): Return 0 explicitly.
46006
46007 2009-02-21  Bruno Haible  <bruno@clisp.org>
46008
46009         Tests for module 'uninorm/filter'.
46010         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46011         * modules/uninorm/filter-tests: New file.
46012
46013         New module 'uninorm/filter'.
46014         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46015         uninorm_filter_flush, uninorm_filter_free): New declarations.
46016         * lib/uninorm/uninorm-filter.c: New file.
46017         * modules/uninorm/filter: New file.
46018
46019 2009-02-21  Bruno Haible  <bruno@clisp.org>
46020
46021         Tests for module 'uninorm/nfkc'.
46022         * tests/uninorm/test-nfkc.c: New file.
46023         * tests/uninorm/test-u8-nfkc.c: New file.
46024         * tests/uninorm/test-u16-nfkc.c: New file.
46025         * tests/uninorm/test-u32-nfkc.c: New file.
46026         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46027         * tests/uninorm/test-u32-nfkc-big.c: New file.
46028         * modules/uninorm/nfkc-tests: New file.
46029
46030         New module 'uninorm/nfkc'.
46031         * lib/uninorm/nfkc.c: New file.
46032         * modules/uninorm/nfkc: New file.
46033
46034         Tests for module 'uninorm/nfkd'.
46035         * tests/uninorm/test-nfkd.c: New file.
46036         * tests/uninorm/test-u8-nfkd.c: New file.
46037         * tests/uninorm/test-u16-nfkd.c: New file.
46038         * tests/uninorm/test-u32-nfkd.c: New file.
46039         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46040         * tests/uninorm/test-u32-nfkd-big.c: New file.
46041         * modules/uninorm/nfkd-tests: New file.
46042
46043         New module 'uninorm/nfkd'.
46044         * lib/uninorm/nfkd.c: New file.
46045         * modules/uninorm/nfkd: New file.
46046
46047         Tests for module 'uninorm/nfc'.
46048         * tests/uninorm/test-nfc.c: New file.
46049         * tests/uninorm/test-u8-nfc.c: New file.
46050         * tests/uninorm/test-u16-nfc.c: New file.
46051         * tests/uninorm/test-u32-nfc.c: New file.
46052         * tests/uninorm/test-u32-nfc-big.sh: New file.
46053         * tests/uninorm/test-u32-nfc-big.c: New file.
46054         * modules/uninorm/nfc-tests: New file.
46055
46056         New module 'uninorm/nfc'.
46057         * lib/uninorm/nfc.c: New file.
46058         * modules/uninorm/nfc: New file.
46059
46060         Tests for module 'uninorm/nfd'.
46061         * tests/uninorm/test-nfd.c: New file.
46062         * tests/uninorm/test-u8-nfd.c: New file.
46063         * tests/uninorm/test-u16-nfd.c: New file.
46064         * tests/uninorm/test-u32-nfd.c: New file.
46065         * tests/uninorm/test-u32-nfd-big.sh: New file.
46066         * tests/uninorm/test-u32-nfd-big.c: New file.
46067         * tests/uninorm/test-u32-normalize-big.h: New file.
46068         * tests/uninorm/test-u32-normalize-big.c: New file.
46069         * tests/uninorm/NormalizationTest.txt: New file, created from
46070         Unicode 5.1.0 NormalizationTest.txt.
46071         * modules/uninorm/nfd-tests: New file.
46072
46073         New module 'uninorm/nfd'.
46074         * lib/uninorm/nfd.c: New file.
46075         * modules/uninorm/nfd: New file.
46076
46077         New module 'uninorm/u32-normalize'.
46078         * lib/uninorm/u32-normalize.c: New file.
46079         * modules/uninorm/u32-normalize: New file.
46080
46081         New module 'uninorm/u16-normalize'.
46082         * lib/uninorm/u16-normalize.c: New file.
46083         * modules/uninorm/u16-normalize: New file.
46084
46085         New module 'uninorm/u8-normalize'.
46086         * lib/uninorm/u8-normalize.c: New file.
46087         * lib/uninorm/normalize-internal.h: New file.
46088         * lib/uninorm/u-normalize-internal.h: New file.
46089         * modules/uninorm/u8-normalize: New file.
46090
46091         New module 'uninorm/decompose-internal'.
46092         * lib/uninorm/decompose-internal.c: New file.
46093         * modules/uninorm/decompose-internal: New file.
46094
46095         Tests for module 'uninorm/composition'.
46096         * tests/uninorm/test-composition.c: New file.
46097         * modules/uninorm/composition-tests: New file.
46098
46099         New module 'uninorm/composition'.
46100         * lib/uninorm/composition.c: New file.
46101         * lib/uninorm/composition-table.gperf: New file, generated by
46102         gen-uni-tables.
46103         * modules/uninorm/composition: New file.
46104
46105         Tests for module 'uninorm/compat-decomposition'.
46106         * tests/uninorm/test-compat-decomposition.c: New file.
46107         * modules/uninorm/compat-decomposition-tests: New file.
46108
46109         New module 'uninorm/compat-decomposition'.
46110         * lib/uninorm/decompose-internal.h: New file.
46111         * lib/uninorm/compat-decomposition.c: New file.
46112         * modules/uninorm/compat-decomposition: New file.
46113
46114         Tests for module 'uninorm/canonical-decomposition'.
46115         * tests/uninorm/test-canonical-decomposition.c: New file.
46116         * modules/uninorm/canonical-decomposition-tests: New file.
46117
46118         New module 'uninorm/canonical-decomposition'.
46119         * lib/uninorm/canonical-decomposition.c: New file.
46120         * modules/uninorm/canonical-decomposition: New file.
46121
46122         Tests for module 'uninorm/decomposition'.
46123         * tests/uninorm/test-decomposition.c: New file.
46124         * modules/uninorm/decomposition-tests: New file.
46125
46126         New module 'uninorm/decomposition'.
46127         * lib/uninorm/decomposition.c: New file.
46128         * modules/uninorm/decomposition: New file.
46129
46130         New module 'uninorm/decomposition-table'.
46131         * lib/uninorm/decomposition-table.h: New file.
46132         * lib/uninorm/decomposition-table.c: New file.
46133         * lib/uninorm/decomposition-table1.h: New file, generated by
46134         gen-uni-tables.
46135         * lib/uninorm/decomposition-table2.h: New file, generated by
46136         gen-uni-tables.
46137         * modules/uninorm/decomposition-table: New file.
46138
46139         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46140         (UC_DECOMP_*): New enumeration items.
46141         (get_decomposition): New function.
46142         (struct decomp_table): New type.
46143         (output_decomposition, output_decomposition_tables): New functions.
46144         (unicode_composition_exclusions): New variable.
46145         (fill_composition_exclusions, debug_output_composition_tables): New
46146         functions.
46147         (main): Accept one more argument. Invoke fill_composition_exclusions.
46148         Output decomposition and composition tables.
46149
46150         New module 'uninorm/base'.
46151         * lib/uninorm.h: New file.
46152         * lib/unictype.h: Update comment.
46153         * modules/uninorm/base: New file.
46154
46155 2009-02-21  David Lutterkort  <lutter@redhat.com>
46156
46157         Tests for module 'safe-alloc'.
46158         * tests/test-safe-alloc.c: New file.
46159         * modules/safe-alloc-tests: New file.
46160
46161         New module 'safe-alloc'.
46162         * lib/safe-alloc.h: New file.
46163         * lib/safe-alloc.c: New file.
46164         * m4/safe-alloc.m4: New file.
46165         * modules/safe-alloc: New file.
46166         * doc/safe-alloc.texi: New file.
46167         * doc/gnulib.texi: Include it.
46168         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46169         safe-alloc.
46170
46171 2009-02-18  Bruno Haible  <bruno@clisp.org>
46172
46173         Fix link error on non-glibc systems.
46174         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46175         variable.
46176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46177
46178 2009-02-18  Jim Meyering  <meyering@redhat.com>
46179
46180         fts: avoid used-uninitialized error due to recent change
46181         * lib/fts.c (fts_read): Guard uses of the new member,
46182         parent->fts_n_dirs_remaining, since it's not relevant for
46183         the parent of a directory specified on the command-line.
46184
46185 2009-02-17  James Youngman  <jay@gnu.org>
46186             Bruno Haible  <bruno@clisp.org>
46187
46188         * m4/include_next.m4: Reformulate comment.
46189
46190 2009-02-16  Jim Meyering  <meyering@redhat.com>
46191
46192         fts: add #if guards so that the fts_lgpl module still builds
46193         * lib/fts.c: Guard just-added hash-table-using parts with
46194         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46195         Reported by Simon Josefsson.
46196
46197 2009-02-15  Bruno Haible  <bruno@clisp.org>
46198
46199         * modules/array-mergesort-tests: New file.
46200         * tests/test-array-mergesort.c: New file.
46201
46202         New module 'array-mergesort'.
46203         * modules/array-mergesort: New file.
46204         * lib/array-mergesort.h: New file.
46205
46206 2009-02-15  Bruno Haible  <bruno@clisp.org>
46207
46208         Fix 2009-02-07 commit.
46209         * lib/gen-uni-tables.c (output_predicate, output_category,
46210         output_combclass, output_bidi_category, output_decimal_digit,
46211         output_digit, output_numeric, output_mirror, output_scripts,
46212         output_ident_category, output_simple_mapping): Fix format directives.
46213         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46214
46215 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46216
46217         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46218         fixes are available from IBM.
46219
46220 2009-02-13  Jim Meyering  <meyering@redhat.com>
46221
46222         fts: arrange not to stat non-directories in more cases
46223         This makes GNU find (when it doesn't need to stat each file)
46224         *much* more efficient at traversing reiserfs file systems.
46225         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46226         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46227         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46228         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46229         (leaf_optimization_applies): New function.
46230         (LCO_hash, LCO_compare): New helper functions.
46231         (link_count_optimize_ok): New function.
46232         (fts_stat): Initialize new member (if dir).
46233         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46234         we've just stat'ed a directory.  Skip the stat call when possible.
46235         ---
46236         Note this AFS-related exchange:
46237         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46238         and note find's pioctl call in find/fstype.c.
46239         But that is necessary only if you want to enable the
46240         optimization for AFS, and for now, I don't.
46241
46242         fts: move a function definition "up" (no semantic change)
46243         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46244         "up" to precede upcoming use of a related function.
46245
46246 2009-02-11  Jim Meyering  <meyering@redhat.com>
46247
46248         fts: correct internal computation of nlinks (optimization-related)
46249         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46250         whether the current entry is a directory, so don't test it.
46251
46252 2009-02-10  Bruno Haible  <bruno@clisp.org>
46253
46254         Tests for module 'uniwbrk/ulc-wordbreaks'.
46255         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46256         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46257         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46258
46259         Tests for module 'uniwbrk/u32-wordbreaks'.
46260         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46261         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46262
46263         Tests for module 'uniwbrk/u16-wordbreaks'.
46264         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46265         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46266
46267         Tests for module 'uniwbrk/u8-wordbreaks'.
46268         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46269         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46270
46271 2009-02-10  Bruno Haible  <bruno@clisp.org>
46272
46273         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46274         property.
46275         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46276         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46277         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46278
46279 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46280
46281         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46282         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46283
46284 2009-02-10  Bruno Haible  <bruno@clisp.org>
46285
46286         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46287         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46288         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46289         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46290         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46291         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46292
46293 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46294
46295         * lib/sockets.h (gl_fd_to_handle): New function.
46296
46297         * tests/test-sockets.c: Call gl_fd_to_handle.
46298
46299 2009-02-09  Bruno Haible  <bruno@clisp.org>
46300
46301         * doc/havelib.texi: Document the conventions on bi-arch systems.
46302
46303 2009-02-08  Bruno Haible  <bruno@clisp.org>
46304
46305         Document the AC_LIB_LINKFLAGS macro.
46306         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46307         * doc/gnulib.texi: Include it.
46308
46309 2009-02-08  Bruno Haible  <bruno@clisp.org>
46310
46311         Fix wrong order of sections, compared to TOC.
46312         * doc/gnulib.texi: Include relocatable-maint.texi after the
46313         "Regular expressions" node, not before.
46314
46315 2009-02-08  Bruno Haible  <bruno@clisp.org>
46316
46317         Tests for module 'unicase/totitle'.
46318         * modules/unicase/totitle-tests: New file.
46319
46320         Tests for module 'unicase/tolower'.
46321         * modules/unicase/tolower-tests: New file.
46322
46323         Tests for module 'unicase/toupper'.
46324         * modules/unicase/toupper-tests: New file.
46325         * tests/unicase/test-mapping-part1.h: New file.
46326         * tests/unicase/test-mapping-part2.h: New file.
46327
46328         New module 'unicase/totitle'.
46329         * modules/unicase/totitle: New file.
46330         * lib/unicase/totitle.c: New file.
46331
46332         New module 'unicase/tolower'.
46333         * modules/unicase/tolower: New file.
46334         * lib/unicase/tolower.c: New file.
46335
46336         New module 'unicase/toupper'.
46337         * modules/unicase/toupper: New file.
46338         * lib/unicase/toupper.c: New file.
46339         * lib/unicase/simple-mapping.h: New file.
46340
46341         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46342         (mapping_table): New structure.
46343         (output_simple_mapping): New function.
46344         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46345         * modules/gen-uni-tables (Description): Update.
46346         * lib/unicase/toupper.h: New file, automatically generated by
46347         gen-uni-tables.
46348         * lib/unicase/tolower.h: New file, automatically generated by
46349         gen-uni-tables.
46350         * lib/unicase/totitle.h: New file, automatically generated by
46351         gen-uni-tables.
46352         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46353         gen-uni-tables.
46354         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46355         gen-uni-tables.
46356         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46357         gen-uni-tables.
46358
46359         New module 'unicase/base'.
46360         * modules/unicase/base: New file.
46361         * lib/unicase.h: New file.
46362
46363 2009-02-08  Bruno Haible  <bruno@clisp.org>
46364
46365         New module 'uniwbrk/ulc-wordbreaks'.
46366         * modules/uniwbrk/ulc-wordbreaks: New file.
46367         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46368
46369         New module 'uniwbrk/u32-wordbreaks'.
46370         * modules/uniwbrk/u32-wordbreaks: New file.
46371         * lib/uniwbrk/u32-wordbreaks.c: New file.
46372
46373         New module 'uniwbrk/u16-wordbreaks'.
46374         * modules/uniwbrk/u16-wordbreaks: New file.
46375         * lib/uniwbrk/u16-wordbreaks.c: New file.
46376
46377         New module 'uniwbrk/u8-wordbreaks'.
46378         * modules/uniwbrk/u8-wordbreaks: New file.
46379         * lib/uniwbrk/u8-wordbreaks.c: New file.
46380         * lib/uniwbrk/u-wordbreaks.h: New file.
46381
46382         New module 'uniwbrk/table'.
46383         * modules/uniwbrk/table: New file.
46384         * lib/uniwbrk/wbrktable.h: New file.
46385         * lib/uniwbrk/wbrktable.c: New file.
46386
46387         New module 'uniwbrk/wordbreak-property'.
46388         * modules/uniwbrk/wordbreak-property: New file.
46389         * lib/uniwbrk/wordbreak-property.c: New file.
46390
46391         * lib/gen-uni-tables.c (WBP_*): New enum items.
46392         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46393         (unicode_org_wbp): New variable.
46394         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46395         New functions.
46396         (wbp_table): New structure.
46397         (output_wbp, output_wbrk_tables): New functions.
46398         (main): Accept additional argument. Invoke fill_org_wbp,
46399         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46400         output_wbrk_tables.
46401         * modules/gen-uni-tables (Description): Update.
46402         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46403         gen-uni-tables.
46404
46405         New module 'uniwbrk/base'.
46406         * modules/uniwbrk/base: New file.
46407         * lib/uniwbrk.h: New file.
46408
46409 2009-02-08  Bruno Haible  <bruno@clisp.org>
46410
46411         Update to Unicode 5.1.0.
46412         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46413         U+2185..U+2188.
46414         (is_property_default_ignorable_code_point): Don't include characters
46415         of category Cc or Cs and not-a-characters.
46416         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46417         U+0D79, U+109E, U+109F, U+A60C.
46418         * lib/unictype/bidi_of.h: Regenerated.
46419         * lib/unictype/blocks.h: Regenerated.
46420         * lib/unictype/categ_C.h: Regenerated.
46421         * lib/unictype/categ_Cf.h: Regenerated.
46422         * lib/unictype/categ_Cn.h: Regenerated.
46423         * lib/unictype/categ_L.h: Regenerated.
46424         * lib/unictype/categ_Ll.h: Regenerated.
46425         * lib/unictype/categ_Lm.h: Regenerated.
46426         * lib/unictype/categ_Lo.h: Regenerated.
46427         * lib/unictype/categ_Lu.h: Regenerated.
46428         * lib/unictype/categ_M.h: Regenerated.
46429         * lib/unictype/categ_Mc.h: Regenerated.
46430         * lib/unictype/categ_Me.h: Regenerated.
46431         * lib/unictype/categ_Mn.h: Regenerated.
46432         * lib/unictype/categ_N.h: Regenerated.
46433         * lib/unictype/categ_Nd.h: Regenerated.
46434         * lib/unictype/categ_Nl.h: Regenerated.
46435         * lib/unictype/categ_No.h: Regenerated.
46436         * lib/unictype/categ_P.h: Regenerated.
46437         * lib/unictype/categ_Pd.h: Regenerated.
46438         * lib/unictype/categ_Pe.h: Regenerated.
46439         * lib/unictype/categ_Pf.h: Regenerated.
46440         * lib/unictype/categ_Pi.h: Regenerated.
46441         * lib/unictype/categ_Po.h: Regenerated.
46442         * lib/unictype/categ_Ps.h: Regenerated.
46443         * lib/unictype/categ_S.h: Regenerated.
46444         * lib/unictype/categ_Sk.h: Regenerated.
46445         * lib/unictype/categ_Sm.h: Regenerated.
46446         * lib/unictype/categ_So.h: Regenerated.
46447         * lib/unictype/categ_of.h: Regenerated.
46448         * lib/unictype/combining.h: Regenerated.
46449         * lib/unictype/ctype_alnum.h: Regenerated.
46450         * lib/unictype/ctype_alpha.h: Regenerated.
46451         * lib/unictype/ctype_graph.h: Regenerated.
46452         * lib/unictype/ctype_lower.h: Regenerated.
46453         * lib/unictype/ctype_print.h: Regenerated.
46454         * lib/unictype/ctype_punct.h: Regenerated.
46455         * lib/unictype/ctype_upper.h: Regenerated.
46456         * lib/unictype/decdigit.h: Regenerated.
46457         * lib/unictype/digit.h: Regenerated.
46458         * lib/unictype/mirror.h: Regenerated.
46459         * lib/unictype/numeric.h: Regenerated.
46460         * lib/unictype/pr_alphabetic.h: Regenerated.
46461         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46462         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46463         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46464         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46465         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46466         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46467         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46468         * lib/unictype/pr_combining.h: Regenerated.
46469         * lib/unictype/pr_dash.h: Regenerated.
46470         * lib/unictype/pr_decimal_digit.h: Regenerated.
46471         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46472         * lib/unictype/pr_deprecated.h: Regenerated.
46473         * lib/unictype/pr_diacritic.h: Regenerated.
46474         * lib/unictype/pr_extender.h: Regenerated.
46475         * lib/unictype/pr_format_control.h: Regenerated.
46476         * lib/unictype/pr_grapheme_base.h: Regenerated.
46477         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46478         * lib/unictype/pr_grapheme_link.h: Regenerated.
46479         * lib/unictype/pr_id_continue.h: Regenerated.
46480         * lib/unictype/pr_id_start.h: Regenerated.
46481         * lib/unictype/pr_ideographic.h: Regenerated.
46482         * lib/unictype/pr_ignorable_control.h: Regenerated.
46483         * lib/unictype/pr_lowercase.h: Regenerated.
46484         * lib/unictype/pr_math.h: Regenerated.
46485         * lib/unictype/pr_numeric.h: Regenerated.
46486         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46487         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46488         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46489         * lib/unictype/pr_other_id_continue.h: Regenerated.
46490         * lib/unictype/pr_other_lowercase.h: Regenerated.
46491         * lib/unictype/pr_other_math.h: Regenerated.
46492         * lib/unictype/pr_punctuation.h: Regenerated.
46493         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46494         * lib/unictype/pr_soft_dotted.h: Regenerated.
46495         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46496         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46497         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46498         * lib/unictype/pr_uppercase.h: Regenerated.
46499         * lib/unictype/pr_xid_continue.h: Regenerated.
46500         * lib/unictype/pr_xid_start.h: Regenerated.
46501         * lib/unictype/pr_zero_width.h: Regenerated.
46502         * lib/unictype/scripts.h: Regenerated.
46503         * lib/unictype/scripts_byname.gperf: Regenerated.
46504         * lib/unictype/sy_java_ident.h: Regenerated.
46505         * lib/unilbrk/lbrkprop1.h: Regenerated.
46506         * lib/unilbrk/lbrkprop2.h: Regenerated.
46507         * tests/unictype/test-categ_C.c: Regenerated.
46508         * tests/unictype/test-categ_Cf.c: Regenerated.
46509         * tests/unictype/test-categ_Cn.c: Regenerated.
46510         * tests/unictype/test-categ_L.c: Regenerated.
46511         * tests/unictype/test-categ_Ll.c: Regenerated.
46512         * tests/unictype/test-categ_Lm.c: Regenerated.
46513         * tests/unictype/test-categ_Lo.c: Regenerated.
46514         * tests/unictype/test-categ_Lu.c: Regenerated.
46515         * tests/unictype/test-categ_M.c: Regenerated.
46516         * tests/unictype/test-categ_Mc.c: Regenerated.
46517         * tests/unictype/test-categ_Me.c: Regenerated.
46518         * tests/unictype/test-categ_Mn.c: Regenerated.
46519         * tests/unictype/test-categ_N.c: Regenerated.
46520         * tests/unictype/test-categ_Nd.c: Regenerated.
46521         * tests/unictype/test-categ_Nl.c: Regenerated.
46522         * tests/unictype/test-categ_No.c: Regenerated.
46523         * tests/unictype/test-categ_P.c: Regenerated.
46524         * tests/unictype/test-categ_Pd.c: Regenerated.
46525         * tests/unictype/test-categ_Pe.c: Regenerated.
46526         * tests/unictype/test-categ_Pf.c: Regenerated.
46527         * tests/unictype/test-categ_Pi.c: Regenerated.
46528         * tests/unictype/test-categ_Po.c: Regenerated.
46529         * tests/unictype/test-categ_Ps.c: Regenerated.
46530         * tests/unictype/test-categ_S.c: Regenerated.
46531         * tests/unictype/test-categ_Sk.c: Regenerated.
46532         * tests/unictype/test-categ_Sm.c: Regenerated.
46533         * tests/unictype/test-categ_So.c: Regenerated.
46534         * tests/unictype/test-ctype_alnum.c: Regenerated.
46535         * tests/unictype/test-ctype_alpha.c: Regenerated.
46536         * tests/unictype/test-ctype_graph.c: Regenerated.
46537         * tests/unictype/test-ctype_lower.c: Regenerated.
46538         * tests/unictype/test-ctype_print.c: Regenerated.
46539         * tests/unictype/test-ctype_punct.c: Regenerated.
46540         * tests/unictype/test-ctype_upper.c: Regenerated.
46541         * tests/unictype/test-decdigit.h: Regenerated.
46542         * tests/unictype/test-digit.h: Regenerated.
46543         * tests/unictype/test-numeric.h: Regenerated.
46544         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46545         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46546         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46547         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46548         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46549         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46550         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46551         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46552         * tests/unictype/test-pr_combining.c: Regenerated.
46553         * tests/unictype/test-pr_dash.c: Regenerated.
46554         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46555         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46556         * tests/unictype/test-pr_deprecated.c: Regenerated.
46557         * tests/unictype/test-pr_diacritic.c: Regenerated.
46558         * tests/unictype/test-pr_extender.c: Regenerated.
46559         * tests/unictype/test-pr_format_control.c: Regenerated.
46560         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46561         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46562         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46563         * tests/unictype/test-pr_id_continue.c: Regenerated.
46564         * tests/unictype/test-pr_id_start.c: Regenerated.
46565         * tests/unictype/test-pr_ideographic.c: Regenerated.
46566         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46567         * tests/unictype/test-pr_lowercase.c: Regenerated.
46568         * tests/unictype/test-pr_math.c: Regenerated.
46569         * tests/unictype/test-pr_numeric.c: Regenerated.
46570         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46571         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46572         Regenerated.
46573         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46574         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46575         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46576         * tests/unictype/test-pr_other_math.c: Regenerated.
46577         * tests/unictype/test-pr_punctuation.c: Regenerated.
46578         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46579         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46580         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46581         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46582         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46583         * tests/unictype/test-pr_uppercase.c: Regenerated.
46584         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46585         * tests/unictype/test-pr_xid_start.c: Regenerated.
46586         * tests/unictype/test-pr_zero_width.c: Regenerated.
46587
46588         Update to Unicode 5.1.0.
46589         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46590         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46591         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46592         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46593         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46594         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46595         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46596         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46597         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46598         (nonspacing_table_ind): Update.
46599         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46600
46601         Update to Unicode 5.1.0.
46602         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46603         code transform.
46604         * lib/uniname/uniname.c (unicode_character_name,
46605         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46606         * lib/uniname/uninames.h: Regenerated.
46607         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46608
46609 2009-02-07  Bruno Haible  <bruno@clisp.org>
46610
46611         Merge gen-ctype and gen-lbrk into a single program.
46612         * lib/gen-uni-tables.c: New file, incorporating
46613         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46614         Add directory prefixes to the names of the generated files.
46615         * lib/unictype/gen-ctype.c: Remove file.
46616         * lib/unilbrk/gen-lbrk.c: Remove file.
46617         * modules/gen-uni-tables: New file.
46618         * modules/unictype/gen-ctype: Remove file.
46619         * modules/unilbrk/gen-lbrk: Remove file.
46620
46621 2009-02-07  Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46624
46625         New module 'unistr/u32-strcoll'.
46626         * modules/unistr/u32-strcoll: New file.
46627         * lib/unistr/u32-strcoll.c: New file.
46628
46629         New module 'unistr/u16-strcoll'.
46630         * modules/unistr/u16-strcoll: New file.
46631         * lib/unistr/u16-strcoll.c: New file.
46632
46633         New module 'unistr/u8-strcoll'.
46634         * modules/unistr/u8-strcoll: New file.
46635         * lib/unistr/u8-strcoll.c: New file.
46636         * lib/unistr/u-strcoll.h: New file.
46637
46638 2009-02-07  Bruno Haible  <bruno@clisp.org>
46639
46640         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46641         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46642         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46643         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46644         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46645         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46646
46647 2009-02-07  Bruno Haible  <bruno@clisp.org>
46648
46649         Make 64-bit clean.
46650         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46651         output_combclass, output_bidi_category, output_decimal_digit,
46652         output_digit, output_numeric, output_mirror, output_scripts,
46653         output_ident_category): Use proper width specifier in format strings.
46654
46655 2009-02-07  Bruno Haible  <bruno@clisp.org>
46656
46657         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46658         failure behaviour.
46659
46660 2009-02-07  Jim Meyering  <meyering@redhat.com>
46661
46662         regex: avoid compilation failure with upcoming gcc-4.4
46663         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46664         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46665         "... error: integer overflow in preprocessor expression".
46666
46667 2009-02-05  Ben Pfaff  <blp@gnu.org>
46668
46669         Fix link errors on Windows when close module is used.
46670         * modules/close: Add $(LIB_CLOSE) to Link section.
46671         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46672         $(LIB_CLOSE) on Windows.
46673
46674 2009-02-05  Jim Meyering  <meyering@redhat.com>
46675
46676         still avoid unused-parameter warnings, but do it cleanly
46677         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46678         (get_fs_usage): Cast to void instead.
46679         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46680         (dev_from_mount_options, read_file_system_list): Cast to void.
46681         Prompted by Bruno Haible.
46682
46683 2009-02-04  Jim Meyering  <meyering@redhat.com>
46684
46685         fsusage.c: correct copyright year
46686         * lib/fsusage.c: Reflect year in which the change is pushed into
46687
46688         avoid misc. warnings
46689         * lib/fsusage.c (UNUSED_PARAM): Define.
46690         (get_fs_usage): Mark parameter "disk" as unused.
46691         * lib/getugroups.c (getgrent): Use "void" in prototype.
46692         * lib/mountlist.c: Mark unused parameters.
46693         (read_file_system_list): Declare a local with "const".
46694         * lib/nanosleep.c (getnow): Declare static.
46695         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46696
46697         dirfd: set errno upon failure
46698         * lib/dirfd.c: Include <errno.h>.
46699         Set errno to ENOTSUP when returning -1.
46700         * modules/dirfd (Depends-on): Add errno.
46701         Suggested by John Kodis <kodis@comcast.net>.
46702
46703 2009-02-01  Bruno Haible  <bruno@clisp.org>
46704
46705         Don't assume sizeof (long) >= sizeof (void *).
46706         * lib/memcmp.c: Include stdint.h.
46707         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46708         srcp2 to 'const byte *'.
46709         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46710         types to uintptr_t.
46711         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46712         * modules/memcmp (Depends-on): Add stdint.
46713         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46714
46715 2009-01-30  Eric Blake  <ebb9@byu.net>
46716
46717         fix more require-before-expand issues
46718         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46719         expand, AC_PROG_AWK.
46720         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46721
46722 2009-01-28  Eric Blake  <ebb9@byu.net>
46723
46724         version-etc: use consistent URL formatting
46725         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46726         Improve formatting.  Use fputs for string without %.
46727
46728 2009-01-28  Jim Meyering  <meyering@redhat.com>
46729
46730         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46731         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46732         "underquoted definition of NAME" from autoconf-2.59.
46733
46734 2009-01-28  Bruno Haible  <bruno@clisp.org>
46735
46736         * doc/gnulib.texi: Add "Obsolete modules" to index.
46737
46738 2009-01-28  Jim Meyering  <meyering@redhat.com>
46739
46740         useless-if-before-free: recognize more variants
46741         * build-aux/useless-if-before-free: Also recognize e.g.,
46742         if (NULL != p) free (p);
46743
46744 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46745
46746         test-getaddrinfo: skip (don't fail) this test when there's no network
46747         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46748         on the presumption that it means you lack network access.
46749
46750 2009-01-26  Jim Meyering  <meyering@redhat.com>
46751
46752         fflush: avoid warnings on modern systems
46753         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46754         pos and result, into scopes where they're used.
46755
46756 2009-01-26  Eric Blake  <ebb9@byu.net>
46757
46758         Silence warning reintroduced by recent extensions patch.
46759         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46760         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46761         autoconf.
46762
46763         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46764         * m4/00gnulib.m4: New file.
46765         * gnulib-tool (func_get_filelist): Always use it.
46766         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46767         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46768
46769 2009-01-25  Bruno Haible  <bruno@clisp.org>
46770
46771         Make test-quotearg work on MacOS X and AIX.
46772         * tests/test-quotearg.sh: New file.
46773         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46774         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46775         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46776         include <libintl.h>.
46777         (fake_locale): Remove variable.
46778         (gettext, dgettext, dcgettext): Remove functions.
46779         (main): Instead of setting a fake locale, set a real locale. Call
46780         textdomain and bindtextdomain.
46781         * modules/quotearg-tests (Files): Add the new files.
46782         (Depends-on): Add gettext, setenv, unsetenv.
46783         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46784         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46785         Augment TESTS_ENVIRONMENT.
46786
46787 2009-01-25  Bruno Haible  <bruno@clisp.org>
46788
46789         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46790         fr_FR.ISO8859-1 locale on MacOS X.
46791         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46792         ja_JP.eucJP locale on MacOS X.
46793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46794         zh_CN.GB18030 locale on MacOS X.
46795
46796 2009-01-25  Bruno Haible  <bruno@clisp.org>
46797
46798         Avoid link errors on MacOS X 10.3.
46799         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46800         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46801
46802 2009-01-25  Bruno Haible  <bruno@clisp.org>
46803
46804         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46805         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46806         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46807         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46808         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46809         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46810         posix_spawnattr_init, posix_spawnattr_setsigmask,
46811         posix_spawnattr_setflags, posix_spawnattr_destroy.
46812
46813         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46814         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46815         * modules/execute (Files): Remove m4/posix_spawn.m4.
46816         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46817         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46818         posix_spawnattr_init, posix_spawnattr_setsigmask,
46819         posix_spawnattr_setflags, posix_spawnattr_destroy.
46820
46821 2009-01-25  Bruno Haible  <bruno@clisp.org>
46822
46823         * lib/glthread/threadlib.c: Include <stdlib.h>.
46824
46825 2009-01-25  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/glthread/threadlib.c (dummy): New declaration.
46828
46829 2009-01-25  Bruno Haible  <bruno@clisp.org>
46830
46831         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46832         multibyte characters also for the GB18030 encoding. Don't crash when
46833         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46834
46835 2009-01-25  Bruno Haible  <bruno@clisp.org>
46836
46837         Avoid redefining 'struct random_data' on OSF/1 5.1.
46838         * lib/stdlib.in.h: Include <random.h> if it exists.
46839         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46840         HAVE_RANDOM_H. Include <random.h> when testing whether
46841         'struct random_data' exists.
46842         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46843
46844 2009-01-25  Bruno Haible  <bruno@clisp.org>
46845
46846         Don't install charset.alias on MacOS X >= 10.3.
46847         * lib/localcharset.c (DARWIN7): New macro.
46848         (get_charset_aliases): Hardcode the result for Darwin7.
46849         * modules/localcharset (install-exec-local): Don't install
46850         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46851
46852 2009-01-25  Bruno Haible  <bruno@clisp.org>
46853
46854         Don't install charset.alias on mingw and Cygwin.
46855         * modules/localcharset (install-exec-local): Don't install
46856         charset.alias on mingw and Cygwin, if the file does not yet exist.
46857         The result for these platforms is hardcoded in localcharset.c.
46858
46859 2009-01-25  Bruno Haible  <bruno@clisp.org>
46860
46861         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46863         before requiring AC_USE_SYSTEM_EXTENSIONS.
46864
46865 2009-01-25  Jim Meyering  <meyering@redhat.com>
46866
46867         c-strtod: avoid warnings
46868         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46869         "assignment discards qualifiers from pointer target type" warnings.
46870
46871 2009-01-24  Bruno Haible  <bruno@clisp.org>
46872
46873         Add support for non-UTF-8 locales on MacOS X.
46874         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46875         canonical encodings. For Darwin 7 and newer, don't map traditional
46876         encodings to UTF-8.
46877         Reported by Vincent Lefevre <vincent@vinc17.org>
46878         at <http://savannah.gnu.org/bugs/?25235>.
46879
46880 2009-01-24  Bruno Haible  <bruno@clisp.org>
46881
46882         * doc/gnulib.texi (Obsolete modules): New section.
46883         Reported by Mike Frysinger <vapier@gentoo.org>.
46884
46885 2009-01-24  Bruno Haible  <bruno@clisp.org>
46886
46887         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46888         (%.dvi): New rule.
46889
46890 2009-01-24  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46893         Reported by Eric Blake.
46894
46895 2009-01-24  Bruno Haible  <bruno@clisp.org>
46896
46897         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46898         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46899         Reported by Gary V. Vaughan <gary@gnu.org>.
46900
46901 2009-01-24  Bruno Haible  <bruno@clisp.org>
46902
46903         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46904
46905 2009-01-23  Bruno Haible  <bruno@clisp.org>
46906
46907         Make c-strtod, c-strtold usable in libraries.
46908         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46909         (C_STRTOD): Call strdup instead of xstrdup.
46910         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46911         * modules/c-strtold (Depends-on): Likewise.
46912         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46913         * NEWS: Mention the change.
46914         Reported by Michael Gold <mgold@ncf.ca>.
46915
46916 2009-01-23  Jim Meyering  <meyering@redhat.com>
46917
46918         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46919         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46920         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46921
46922 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46923
46924         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46925         GNU CoreUtils.
46926         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46927         * modules/version-etc (Description): Update.
46928
46929 2009-01-22  Bruno Haible  <bruno@clisp.org>
46930
46931         Cache the C locale object.
46932         * lib/c-strtod.c (c_locale_cache): New variable.
46933         (c_locale): New function.
46934         (C_STRTOD): Use it, and don't call freelocale.
46935         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46936         Suggested by Paolo Bonzini.
46937
46938 2009-01-21  Bruno Haible  <bruno@clisp.org>
46939
46940         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46941         conditions other than overflow.
46942
46943 2009-01-21  Bruno Haible  <bruno@clisp.org>
46944
46945         * lib/c-strtod.c: Include errno.h.
46946         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46947         value from STRTOD_L and STRTOD.
46948
46949 2009-01-21  Bruno Haible  <bruno@clisp.org>
46950         and Jim Meyering  <meyering@redhat.com>
46951
46952         nanosleep: skip configure test (fail it) for apple universal builds
46953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46954         universal builds, assume that nanosleep does not work.
46955         * modules/nanosleep (Depends-on): Add multiarch.
46956
46957         mktime: skip configure test (fail it) for apple universal builds
46958         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46959         universal builds, assume that mktime does not work.
46960         * modules/mktime (Depends-on): Add multiarch.
46961
46962 2009-01-21  Eric Blake  <ebb9@byu.net>
46963
46964         multiarch: avoid expand-before-require warning
46965         * modules/multiarch (configure.ac): Require, rather than expand,
46966         gl_MULTIARCH.
46967         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46968         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46969         enforce that all clients require it.  Partial reversion of
46970         2008-12-29 patch.
46971
46972         error: avoid expand-before-require warning
46973         * modules/errno (configure.ac): Require, rather than expand,
46974         gl_HEADER_ERRNO_H.
46975         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46976         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46977         enforce that all clients require it.
46978
46979         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46980         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46981         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46982         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46983
46984 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46985
46986         Revert:
46987         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46988
46989         regex: do not depend on obsolete modules.
46990         * modules/regex: Remove memcmp and memmove.
46991
46992 2009-01-20  Bruno Haible  <bruno@clisp.org>
46993
46994         Make the 'link' module link on Windows NT 4.
46995         * lib/link.c (_WIN32_WINNT): Don't define.
46996         (CreateHardLinkFuncType): New type.
46997         (CreateHardLinkFunc, initialized): New variables.
46998         (initialize): New function.
46999         (link): Invoke CreateHardLink indirectly through the function pointer.
47000
47001 2009-01-20  Bruno Haible  <bruno@clisp.org>
47002
47003         Fix compilation failure on mingw.
47004         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47005
47006 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47007
47008         * doc/c-strtod.texi: Mention a couple of restrictions.
47009
47010 2009-01-20  Jim Meyering  <meyering@redhat.com>
47011
47012         gettimeofday: move more declarations out of functions
47013         * lib/gettimeofday.c: Move extern declarations of tzset and
47014         gmtime out of containing functions.  Prompted by Bruno Haible.
47015
47016 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47017
47018         regex: do not depend on obsolete modules.
47019         * modules/regex: Remove memcmp and memmove.
47020
47021 2009-01-19  Bruno Haible  <bruno@clisp.org>
47022
47023         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47024         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47025         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47026         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47027         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47028
47029 2009-01-19  Bruno Haible  <bruno@clisp.org>
47030
47031         * tests/test-link.c: Include <errno.h>.
47032         (main): Exit with code 77 when a hard link cannot be created due to
47033         the file system.
47034         * tests/test-link.sh: Skip test when a hard link cannot be created due
47035         to the file system.
47036         Suggested by Eric Blake.
47037
47038 2009-01-19  Martin Lambers  <marlam@marlam.de>
47039
47040         * modules/link-tests: New file.
47041         * tests/test-link.sh: New file.
47042         * tests/test-link.c: New file.
47043
47044 2009-01-19  Eric Blake  <ebb9@byu.net>
47045
47046         doc: mention another function added in cygwin 1.7.0
47047         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47048         Another new function in cygwin 1.7.
47049
47050 2009-01-19  Bruno Haible  <bruno@clisp.org>
47051
47052         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47053         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47054         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47055         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47056         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47057         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47059         * m4/md4.m4 (gl_MD4): Likewise.
47060         * m4/md5.m4 (gl_MD5): Likewise.
47061         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47062         * m4/sha1.m4 (gl_SHA1): Likewise.
47063         * m4/sha256.m4 (gl_SHA256): Likewise.
47064         * m4/sha512.m4 (gl_SHA512): Likewise.
47065
47066 2009-01-19  Bruno Haible  <bruno@clisp.org>
47067
47068         * modules/uniname/uniname-tests (Depends-on): Add progname.
47069         * tests/uniname/test-uninames.c: Include progname.h.
47070         (main): Call set_program_name.
47071
47072         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47073         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47074         (main): Call set_program_name.
47075
47076         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47077         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47078         (main): Call set_program_name.
47079
47080         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47081         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47082         (main): Call set_program_name.
47083
47084         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47085         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47086         (main): Call set_program_name.
47087
47088         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47089         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47090         (main): Call set_program_name.
47091
47092         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47093         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47094         (main): Call set_program_name.
47095
47096         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47097         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47098         (main): Call set_program_name.
47099
47100         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47101         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47102         (main): Call set_program_name.
47103
47104 2009-01-19  Eric Blake  <ebb9@byu.net>
47105
47106         test-unistd: test previous patch
47107         * tests/test-unistd.c: Test *_FILENO macros.
47108
47109         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47110         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47111         Guarantee a definition.
47112         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47113         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47114         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47115         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47116         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47117         Likewise.
47118         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47119         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47120         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47121         Likewise.
47122         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47123         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47124         (STDERR_FILENO): Likewise.
47125         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47126         (STDERR_FILENO): Likewise.
47127         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47128         (STDERR_FILENO): Likewise.
47129         Reported by Elbert Pol.
47130
47131 2009-01-19  Eric Blake  <ebb9@byu.net>
47132
47133         doc: mention more functions added in cygwin 1.7.0
47134         * doc/posix-functions/abort.texi (abort): Update wording related
47135         to cygwin.
47136         * doc/posix-functions/daylight.texi (daylight): Likewise.
47137         * doc/posix-functions/optarg.texi (optarg): Likewise.
47138         * doc/posix-functions/optarg.texi (opterr): Likewise.
47139         * doc/posix-functions/optarg.texi (optind): Likewise.
47140         * doc/posix-functions/optarg.texi (optopt): Likewise.
47141         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47142         worked in 1.5.x, and was withdrawn in 1.7.
47143         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47144         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47145         cygwin versions.
47146         * doc/posix-functions/perror.texi (perror): Likewise.
47147         * doc/posix-functions/printf.texi (printf): Likewise.
47148         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47149         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47150         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47151         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47152         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47153         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47154         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47155         Likewise.
47156         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47157         Likewise.
47158         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47159         this function.
47160         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47161         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47162         Likewise.
47163         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47164         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47165         * doc/posix-functions/confstr.texi (confstr): Likewise.
47166         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47167         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47168         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47169         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47170         * doc/posix-functions/fputws.texi (fputws): Likewise.
47171         * doc/posix-functions/fwide.texi (fwide): Likewise.
47172         * doc/posix-functions/getwc.texi (getwc): Likewise.
47173         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47174         * doc/posix-functions/putwc.texi (putwc): Likewise.
47175         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47176         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47177         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47178         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47179         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47180         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47181         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47182         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47183         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47184         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47185         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47186
47187 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47188
47189         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47190         * lib/ioctl.c: Include <sys/ioctl.h>.
47191
47192 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47193
47194         * modules/getdate-tests (Depends-on): Add progname.
47195         * tests/test-getdate.c: Use progname module, to avoid link errors
47196         on non-glibc systems.
47197
47198 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47199
47200         * modules/filenamecat-tests (Depends-on): Add progname.
47201         * modules/fstrcmp-tests (Depends-on): Likewise.
47202
47203         * tests/test-filenamecat.c: Use progname module, to avoid link
47204         errors on non-glibc systems.
47205         * tests/test-fstrcmp.c: Likewise.
47206
47207 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47208
47209         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47210         * lib/gettimeofday.c: Move extern declaration out of function.
47211
47212 2009-01-18  Bruno Haible  <bruno@clisp.org>
47213
47214         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47215         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47216         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47217
47218 2009-01-18  Bruno Haible  <bruno@clisp.org>
47219
47220         * lib/strftime.c (MEMPCPY): Remove unused macro.
47221         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47222
47223 2009-01-18  Martin Lambers  <marlam@marlam.de>
47224
47225         New module 'link'.
47226         * lib/unistd.in.h (link): New declaration.
47227         * lib/link.c: New file.
47228         * m4/link.m4: New file.
47229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47230         HAVE_LINK.
47231         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47232         * modules/link: New file.
47233         * doc/posix-functions/link.texi: Mention the new module.
47234
47235 2009-01-18  Bruno Haible  <bruno@clisp.org>
47236
47237         * tests/test-avltree_list.c (main): Call set_program_name.
47238         * tests/test-avltree_oset.c (main): Likewise.
47239         * tests/test-obstack-printf.c: Include progname.h.
47240         (main): Call set_program_name.
47241         * tests/test-quotearg.c: Include progname.h.
47242         (main): Call set_program_name.
47243         * tests/test-xmemdup0.c: Include progname.h.
47244         (main): Call set_program_name.
47245
47246 2009-01-18  Bruno Haible  <bruno@clisp.org>
47247
47248         New module 'alphasort'.
47249         * lib/dirent.in.h (alphasort): New declaration.
47250         * lib/alphasort.c: New file, from glibc with modifications.
47251         * m4/alphasort.m4: New file.
47252         * modules/alphasort: New file.
47253         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47254         HAVE_ALPHASORT.
47255         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47256         HAVE_ALPHASORT.
47257         * doc/posix-functions/alphasort.texi: Mention the new module and the
47258         portability problems.
47259
47260 2009-01-18  Bruno Haible  <bruno@clisp.org>
47261
47262         New module 'scandir'.
47263         * lib/dirent.in.h (scandir): New declaration.
47264         * lib/scandir.c: New file, from glibc with modifications.
47265         * m4/scandir.m4: New file.
47266         * modules/scandir: New file.
47267         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47268         HAVE_SCANDIR.
47269         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47270         HAVE_SCANDIR.
47271         * doc/posix-functions/scandir.texi: Mention the new module and the
47272         portability problems.
47273
47274 2009-01-17  Bruno Haible  <bruno@clisp.org>
47275
47276         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47277         Update documentation.
47278         (func_remove_suffix): Escape all dots in the suffix. Update
47279         documentation.
47280         (func_filter_filelist): Update documentation.
47281         Reported by Ralf Wildenhues.
47282
47283 2009-01-17  Bruno Haible  <bruno@clisp.org>
47284
47285         * modules/dprintf-posix-tests: New file.
47286         * tests/test-dprintf-posix.sh: New file.
47287         * tests/test-dprintf-posix.c: New file.
47288
47289         New modules 'dprintf', 'dprintf-posix'.
47290         * lib/stdio.in.h (dprintf): New declaration.
47291         * lib/dprintf.c: New file.
47292         * m4/dprintf.m4: New file.
47293         * m4/dprintf-posix.m4: New file.
47294         * modules/dprintf: New file.
47295         * modules/dprintf-posix: New file.
47296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47297         HAVE_DPRINTF, REPLACE_DPRINTF.
47298         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47299         HAVE_DPRINTF, REPLACE_DPRINTF.
47300         * doc/posix-functions/dprintf.texi: Mention the new modules.
47301
47302 2009-01-17  Bruno Haible  <bruno@clisp.org>
47303
47304         * modules/vdprintf-posix-tests: New file.
47305         * tests/test-vdprintf-posix.sh: New file.
47306         * tests/test-vdprintf-posix.c: New file.
47307
47308         New modules 'vdprintf', 'vdprintf-posix'.
47309         * lib/stdio.in.h (vdprintf): New declaration.
47310         * lib/vdprintf.c: New file.
47311         * m4/vdprintf.m4: New file.
47312         * m4/vdprintf-posix.m4: New file.
47313         * modules/vdprintf: New file.
47314         * modules/vdprintf-posix: New file.
47315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47316         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47317         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47318         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47319         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47320
47321 2009-01-17  Bruno Haible  <bruno@clisp.org>
47322
47323         Fix replacement of fopen on mingw.
47324         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47325         mingw.
47326
47327 2009-01-17  Bruno Haible  <bruno@clisp.org>
47328
47329         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47330         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47331
47332 2009-01-17  Bruno Haible  <bruno@clisp.org>
47333
47334         Avoid test-fflush2.sh failure on mingw.
47335         * tests/test-fflush2.c: Include binary-io.h.
47336         (main): Put standard input into binary mode.
47337         * modules/fflush-tests (Depends-on): Add binary-io.
47338
47339 2009-01-17  Bruno Haible  <bruno@clisp.org>
47340
47341         * lib/wchar.in.h: In another particular situation, include only the
47342         system's <wchar.h> file.
47343         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47344         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47345         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47346
47347 2009-01-17  Bruno Haible  <bruno@clisp.org>
47348
47349         Support for stripping executables in --enable-relocatable.
47350         * build-aux/install-reloc: Expect one more argument, or an environment
47351         variable RELOC_STRIP_PROG. If set, strip the destination program and
47352         its wrapper.
47353         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47354         RELOC_STRIP_PROG.
47355         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47356         to set RELOCATABLE_STRIP.
47357         * NEWS: Mention the new Makefile requirement.
47358
47359 2009-01-17  Bruno Haible  <bruno@clisp.org>
47360
47361         * build-aux/install-reloc: Remove debugging information left over by
47362         C compiler on MacOS X.
47363
47364 2009-01-17  Bruno Haible  <bruno@clisp.org>
47365
47366         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47367         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47368         _NSGetExecutablePath.
47369
47370 2009-01-16  Jim Meyering  <meyering@redhat.com>
47371
47372         strerror: avoid warnings about discarding "const"
47373         * lib/strerror.c (rpl_strerror): Instead of returning a const
47374         string from each and every "case", use a variable, and add a single
47375         cast after the switch.
47376
47377 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47378
47379         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47380
47381 2009-01-16  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47384         array initializer syntax that also works in C++ mode.
47385         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47386
47387 2009-01-16  Jim Meyering  <meyering@redhat.com>
47388
47389         poll: suppress a warning
47390         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47391         to ignore "...unsigned expression < 0 is always false" warnings.
47392
47393 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47394
47395         poll: remove declarations of unused variables
47396         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47397         sockbuf and optlen.
47398
47399 2009-01-15  Bruno Haible  <bruno@clisp.org>
47400
47401         Make fflush-after-ungetc POSIX compliant on BSD systems.
47402         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47403         (clear_ungetc_buffer): Implement also for other systems.
47404         (rpl_fflush): On glibc systems, invoke
47405         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47406         clear_ungetc_buffer after fetching the stream's position, not before.
47407
47408 2009-01-15  Bruno Haible  <bruno@clisp.org>
47409
47410         Make fflush-after-ungetc POSIX compliant on glibc systems.
47411         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47412         after ungetc.
47413         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47414         (rpl_fflush): On glibc systems, simply call the system's fflush
47415         function after clearing the ungetc buffer.
47416         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47417         Instead, lseek only to the end of file, then use the system's fseeko
47418         for the rest. On glibc systems, reset the EOF indicator bit.
47419
47420 2009-01-15  Jim Meyering  <meyering@redhat.com>
47421
47422         openmp.m4: revert quote-adding change, for portability to older autoconf
47423         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47424         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47425         Simon Josefsson noticed the problem when using autoconf-2.61.
47426
47427 2009-01-15  Bruno Haible  <bruno@clisp.org>
47428
47429         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47430         * tests/test-fflush2.c (ASSERT): Always fail.
47431         (main): Add two tests for fflush() after ungetc(), taking into account
47432         the Austin Group's clarification.
47433         Suggested by Eric Blake.
47434
47435 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47436
47437         mktime.m4: remove K&R-style function prototypes
47438         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47439         for the Sun C++ compiler.
47440
47441 2009-01-14  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47444         while including <wchar.h>.
47445         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47446         the system's <wchar.h> file.
47447         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47448
47449 2009-01-14  Bruno Haible  <bruno@clisp.org>
47450
47451         * m4/csharp.m4: Don't mention gettext on the serial number line.
47452         * m4/csharpexec.m4: Likewise.
47453         * m4/eaccess.m4: Likewise.
47454         * m4/javaexec.m4: Likewise.
47455         * m4/sig_atomic_t.m4: Likewise.
47456         * m4/tmpdir.m4: Likewise.
47457         * m4/intldir.m4: Bump gettext version.
47458         * m4/lib-ld.m4: Likewise.
47459
47460 2009-01-14  Bruno Haible  <bruno@clisp.org>
47461
47462         * lib/progname.c (set_program_name): Add more comments.
47463         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47464
47465 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47466
47467         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47468         were sys/stat.h does not define it.
47469
47470 2009-01-14  Jim Meyering  <meyering@redhat.com>
47471
47472         many *.m4 files: improve m4 quoting
47473         99% of this change was performed by running the following commands:
47474         git ls-files | grep '\.m4$' | xargs perl -pi \
47475           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47476           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47477           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47478           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47479         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47480         The remainder were to add Copyright dates, increment serial numbers,
47481         undo some changes in comments, exclude m4/intl.m4, and add quotes
47482         around the "1" in ",1" where the unusual spacing prohibited the
47483         above regexps from doing the job.  For more details, see
47484         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47485         * m4/acl.m4: Modified.
47486         * m4/afs.m4: Likewise.
47487         * m4/alloca.m4: Likewise.
47488         * m4/argp.m4: Likewise.
47489         * m4/argz.m4: Likewise.
47490         * m4/atexit.m4: Likewise.
47491         * m4/bison-i18n.m4: Likewise.
47492         * m4/bison.m4: Likewise.
47493         * m4/byteswap.m4: Likewise.
47494         * m4/c-stack.m4: Likewise.
47495         * m4/c-strtod.m4: Likewise.
47496         * m4/calloc.m4: Likewise.
47497         * m4/canonicalize-lgpl.m4: Likewise.
47498         * m4/chown.m4: Likewise.
47499         * m4/clock_time.m4: Likewise.
47500         * m4/codeset.m4: Likewise.
47501         * m4/copy-file.m4: Likewise.
47502         * m4/csharp.m4: Likewise.
47503         * m4/csharpcomp.m4: Likewise.
47504         * m4/csharpexec.m4: Likewise.
47505         * m4/d-ino.m4: Likewise.
47506         * m4/d-type.m4: Likewise.
47507         * m4/dirfd.m4: Likewise.
47508         * m4/double-slash-root.m4: Likewise.
47509         * m4/eaccess.m4: Likewise.
47510         * m4/eealloc.m4: Likewise.
47511         * m4/environ.m4: Likewise.
47512         * m4/errno_h.m4: Likewise.
47513         * m4/euidaccess.m4: Likewise.
47514         * m4/execute.m4: Likewise.
47515         * m4/fatal-signal.m4: Likewise.
47516         * m4/fchdir.m4: Likewise.
47517         * m4/fcntl_h.m4: Likewise.
47518         * m4/fileblocks.m4: Likewise.
47519         * m4/filenamecat.m4: Likewise.
47520         * m4/findprog.m4: Likewise.
47521         * m4/flexmember.m4: Likewise.
47522         * m4/fnmatch.m4: Likewise.
47523         * m4/fopen.m4: Likewise.
47524         * m4/fpending.m4: Likewise.
47525         * m4/fprintf-posix.m4: Likewise.
47526         * m4/free.m4: Likewise.
47527         * m4/frexp.m4: Likewise.
47528         * m4/frexpl.m4: Likewise.
47529         * m4/fsusage.m4: Likewise.
47530         * m4/ftruncate.m4: Likewise.
47531         * m4/gc-camellia.m4: Likewise.
47532         * m4/gc-random.m4: Likewise.
47533         * m4/gc.m4: Likewise.
47534         * m4/getaddrinfo.m4: Likewise.
47535         * m4/getcwd-abort-bug.m4: Likewise.
47536         * m4/getcwd-path-max.m4: Likewise.
47537         * m4/getdate.m4: Likewise.
47538         * m4/getdomainname.m4: Likewise.
47539         * m4/getgroups.m4: Likewise.
47540         * m4/gethostname.m4: Likewise.
47541         * m4/gethrxtime.m4: Likewise.
47542         * m4/getline.m4: Likewise.
47543         * m4/getloadavg.m4: Likewise.
47544         * m4/getndelim2.m4: Likewise.
47545         * m4/getpass.m4: Likewise.
47546         * m4/gettext.m4: Likewise.
47547         * m4/gettime.m4: Likewise.
47548         * m4/gettimeofday.m4: Likewise.
47549         * m4/gnulib-common.m4: Likewise.
47550         * m4/group-member.m4: Likewise.
47551         * m4/host-os.m4: Likewise.
47552         * m4/iconv.m4: Likewise.
47553         * m4/iconv_open.m4: Likewise.
47554         * m4/inet_ntop.m4: Likewise.
47555         * m4/inet_pton.m4: Likewise.
47556         * m4/inline.m4: Likewise.
47557         * m4/intldir.m4: Likewise.
47558         * m4/intlmacosx.m4: Likewise.
47559         * m4/intmax.m4: Likewise.
47560         * m4/intmax_t.m4: Likewise.
47561         * m4/inttypes.m4: Likewise.
47562         * m4/inttypes_h.m4: Likewise.
47563         * m4/inttypes-pri.m4: Likewise.
47564         * m4/isapipe.m4: Likewise.
47565         * m4/isnand.m4: Likewise.
47566         * m4/isnanf.m4: Likewise.
47567         * m4/isnanl.m4: Likewise.
47568         * m4/javacomp.m4: Likewise.
47569         * m4/javaexec.m4: Likewise.
47570         * m4/jm-winsz1.m4: Likewise.
47571         * m4/jm-winsz2.m4: Likewise.
47572         * m4/lchown.m4: Likewise.
47573         * m4/lcmessage.m4: Likewise.
47574         * m4/ldexpl.m4: Likewise.
47575         * m4/lib-ld.m4: Likewise.
47576         * m4/lib-link.m4: Likewise.
47577         * m4/libsigsegv.m4: Likewise.
47578         * m4/link-follow.m4: Likewise.
47579         * m4/localcharset.m4: Likewise.
47580         * m4/locale-fr.m4: Likewise.
47581         * m4/locale-ja.m4: Likewise.
47582         * m4/locale-tr.m4: Likewise.
47583         * m4/locale-zh.m4: Likewise.
47584         * m4/lock.m4: Likewise.
47585         * m4/longlong.m4: Likewise.
47586         * m4/ls-mntd-fs.m4: Likewise.
47587         * m4/lstat.m4: Likewise.
47588         * m4/malloc.m4: Likewise.
47589         * m4/mathl.m4: Likewise.
47590         * m4/mbrtowc.m4: Likewise.
47591         * m4/mbstate_t.m4: Likewise.
47592         * m4/mbswidth.m4: Likewise.
47593         * m4/memchr.m4: Likewise.
47594         * m4/memcmp.m4: Likewise.
47595         * m4/memcpy.m4: Likewise.
47596         * m4/memmem.m4: Likewise.
47597         * m4/memmove.m4: Likewise.
47598         * m4/mempcpy.m4: Likewise.
47599         * m4/memrchr.m4: Likewise.
47600         * m4/memset.m4: Likewise.
47601         * m4/minmax.m4: Likewise.
47602         * m4/mkdir-slash.m4: Likewise.
47603         * m4/mkdtemp.m4: Likewise.
47604         * m4/mktime.m4: Likewise.
47605         * m4/mmap-anon.m4: Likewise.
47606         * m4/mountlist.m4: Likewise.
47607         * m4/nanosleep.m4: Likewise.
47608         * m4/nls.m4: Likewise.
47609         * m4/nocrash.m4: Likewise.
47610         * m4/open.m4: Likewise.
47611         * m4/openat.m4: Likewise.
47612         * m4/openmp.m4: Likewise.
47613         * m4/pathmax.m4: Likewise.
47614         * m4/perl.m4: Likewise.
47615         * m4/physmem.m4: Likewise.
47616         * m4/pipe.m4: Likewise.
47617         * m4/po.m4: Likewise.
47618         * m4/poll.m4: Likewise.
47619         * m4/posixtm.m4: Likewise.
47620         * m4/posixver.m4: Likewise.
47621         * m4/printf-frexp.m4: Likewise.
47622         * m4/printf-frexpl.m4: Likewise.
47623         * m4/printf-posix.m4: Likewise.
47624         * m4/printf-posix-rpl.m4: Likewise.
47625         * m4/printf.m4: Likewise.
47626         * m4/progtest.m4: Likewise.
47627         * m4/putenv.m4: Likewise.
47628         * m4/readline.m4: Likewise.
47629         * m4/readlink.m4: Likewise.
47630         * m4/readutmp.m4: Likewise.
47631         * m4/realloc.m4: Likewise.
47632         * m4/regex.m4: Likewise.
47633         * m4/relocatable.m4: Likewise.
47634         * m4/relocatable-lib.m4: Likewise.
47635         * m4/rename-dest-slash.m4: Likewise.
47636         * m4/rename.m4: Likewise.
47637         * m4/rmdir-errno.m4: Likewise.
47638         * m4/rmdir.m4: Likewise.
47639         * m4/roundf.m4: Likewise.
47640         * m4/roundl.m4: Likewise.
47641         * m4/rpmatch.m4: Likewise.
47642         * m4/save-cwd.m4: Likewise.
47643         * m4/selinux-selinux-h.m4: Likewise.
47644         * m4/setenv.m4: Likewise.
47645         * m4/settime.m4: Likewise.
47646         * m4/sig2str.m4: Likewise.
47647         * m4/sig_atomic_t.m4: Likewise.
47648         * m4/signalblocking.m4: Likewise.
47649         * m4/signbit.m4: Likewise.
47650         * m4/sigpipe.m4: Likewise.
47651         * m4/sockets.m4: Likewise.
47652         * m4/sockpfaf.m4: Likewise.
47653         * m4/st_dm_mode.m4: Likewise.
47654         * m4/stat-time.m4: Likewise.
47655         * m4/stdbool.m4: Likewise.
47656         * m4/stdint.m4: Likewise.
47657         * m4/stdint_h.m4: Likewise.
47658         * m4/stpcpy.m4: Likewise.
47659         * m4/stpncpy.m4: Likewise.
47660         * m4/strcase.m4: Likewise.
47661         * m4/strchrnul.m4: Likewise.
47662         * m4/strcspn.m4: Likewise.
47663         * m4/strdup.m4: Likewise.
47664         * m4/strftime.m4: Likewise.
47665         * m4/strndup.m4: Likewise.
47666         * m4/strnlen.m4: Likewise.
47667         * m4/strpbrk.m4: Likewise.
47668         * m4/strptime.m4: Likewise.
47669         * m4/strsep.m4: Likewise.
47670         * m4/strtod.m4: Likewise.
47671         * m4/strtoimax.m4: Likewise.
47672         * m4/strtok_r.m4: Likewise.
47673         * m4/strtol.m4: Likewise.
47674         * m4/strtoll.m4: Likewise.
47675         * m4/strtoul.m4: Likewise.
47676         * m4/strtoull.m4: Likewise.
47677         * m4/strtoumax.m4: Likewise.
47678         * m4/strverscmp.m4: Likewise.
47679         * m4/threadlib.m4: Likewise.
47680         * m4/timegm.m4: Likewise.
47681         * m4/tm_gmtoff.m4: Likewise.
47682         * m4/tmpdir.m4: Likewise.
47683         * m4/tmpfile.m4: Likewise.
47684         * m4/tzset.m4: Likewise.
47685         * m4/uintmax_t.m4: Likewise.
47686         * m4/unlinkdir.m4: Likewise.
47687         * m4/unlocked-io.m4: Likewise.
47688         * m4/uptime.m4: Likewise.
47689         * m4/userspec.m4: Likewise.
47690         * m4/utimbuf.m4: Likewise.
47691         * m4/utime.m4: Likewise.
47692         * m4/utimes-null.m4: Likewise.
47693         * m4/utimes.m4: Likewise.
47694         * m4/vararrays.m4: Likewise.
47695         * m4/vasnprintf.m4: Likewise.
47696         * m4/vfprintf-posix.m4: Likewise.
47697         * m4/vprintf-posix.m4: Likewise.
47698         * m4/wait-process.m4: Likewise.
47699         * m4/wchar_t.m4: Likewise.
47700         * m4/wint_t.m4: Likewise.
47701         * m4/write-any-file.m4: Likewise.
47702         * m4/yield.m4: Likewise.
47703
47704 2009-01-13  Bruno Haible  <bruno@clisp.org>
47705
47706         Avoid test-copy-file.sh failures when ACL support insufficient.
47707         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47708         TESTS_ENVIRONMENT.
47709         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47710         Reported by Jim Meyering.
47711
47712 2009-01-13  Bruno Haible  <bruno@clisp.org>
47713
47714         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47715         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47716         * modules/unistdio/u8-printf-parse (Files): Likewise.
47717         * modules/unistdio/u32-printf-parse (Files): Likewise.
47718         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47719
47720 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47721
47722         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47723         and m4/inttypes_h.m4 too.
47724
47725 2009-01-12  Eric Blake  <ebb9@byu.net>
47726
47727         tests: IRIX 6.2 cc can't compile -0.0 into .data
47728         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47729         rather than at compile-time.
47730         * tests/test-floorl.c (minus_zero): Likewise.
47731         * tests/test-frexpl.c (minus_zero): Likewise.
47732         * tests/test-isnan.c (minus_zerol): Likewise.
47733         * tests/test-isnanl.h (minus_zero): Likewise.
47734         * tests/test-ldexpl.c (minus_zero): Likewise.
47735         * tests/test-roundl.c (minus_zero): Likewise.
47736         * tests/test-signbit.c (minus_zerol): Likewise.
47737         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47738         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47739         * tests/test-truncl.c (minus_zero): Likewise.
47740         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47741         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47742         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47743
47744 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47745
47746         regex: fix glibc bug 9697
47747         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47748         handling.
47749
47750 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47751
47752         regex: fix glibc bug 697
47753         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47754         being NULL also if there are no backreferences.
47755
47756 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47757
47758         regex: merge glibc changes
47759         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47760         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47761         re_string_skip_chars, re_string_reconstruct): Likewise.
47762         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47763
47764 2009-01-07  Jim Meyering  <meyering@redhat.com>
47765
47766         poll: filter through cppi
47767         * lib/poll.c: Indent cpp directives to reflect nesting.
47768
47769 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47770
47771         poll: don't return uninitialized
47772         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47773
47774 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47775
47776         avoid compile failure on AIX 6.1
47777         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47778         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47779
47780 2009-01-04  Jim Meyering  <meyering@redhat.com>
47781
47782         remove duplicate inclusion of <stdio.h>
47783         * tests/test-fprintf-posix.c: Likewise.
47784         * tests/test-printf-posix.c: Likewise.
47785         * tests/test-snprintf-posix.c: Likewise.
47786         * tests/test-sprintf-posix.c: Likewise.
47787         * tests/test-vasprintf-posix.c: Likewise.
47788         * tests/test-vfprintf-posix.c: Likewise.
47789         * tests/test-vprintf-posix.c: Likewise.
47790         * tests/test-vsnprintf-posix.c: Likewise.
47791         * tests/test-vsprintf-posix.c: Likewise.
47792
47793 2009-01-03  Jim Meyering  <meyering@redhat.com>
47794
47795         gnulib-tool: fix sed-based filtering
47796         * gnulib-tool (func_filter_filelist): Remove extra backslash
47797         in sed_fff_filter definition.
47798
47799 2009-01-02  Jim Meyering  <meyering@redhat.com>
47800
47801         strftime: avoid compilation failure on Solaris 2.6
47802         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47803         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47804         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47805         be available.  Reported by Tom G. Christensen.  Details in
47806         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47807
47808 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47809             Bruno Haible  <bruno@clisp.org>
47810
47811         Speed up gnulib-tool by doing more string processing through shell
47812         built-ins.
47813         * gnulib-tool (fast_func_append): New variable.
47814         (func_remove_prefix, func_remove_suffix): New functions.
47815         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47816         (func_filter_filelist): New function.
47817         (func_get_dependencies): Use func_remove_suffix instead of sed.
47818         (func_get_automake_snippet): Use func_filter_filelist instead of a
47819         subshell and sed invocation.
47820
47821 2009-01-01  Bruno Haible  <bruno@clisp.org>
47822
47823         Fix a security bug.
47824         * gnulib-tool (func_import, import, update): Don't allow the characters
47825         '"', '$', '`', '\' in macro arguments that become part of commands that
47826         are evaluated.
47827
47828 2009-01-01  Bruno Haible  <bruno@clisp.org>
47829
47830         * gnulib-tool (func_reset_sigpipe): Add more comments.
47831
47832 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47833
47834         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47835         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47836         already know the answer.
47837
47838 2009-01-01  Jim Meyering  <meyering@redhat.com>
47839
47840         * lib/version-etc.c (version_etc_va): Update copyright year.
47841
47842 2008-12-30  Bruno Haible  <bruno@clisp.org>
47843
47844         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47845         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47846         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47847
47848 2008-12-29  Eric Blake  <ebb9@byu.net>
47849
47850         multiarch: avoid autoconf AC_REQUIRE bug
47851         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47852         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47853         2.63 and older.
47854         Reported by Bruno Haible, and analyzed in
47855         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47856
47857 2008-12-29  Bruno Haible  <bruno@clisp.org>
47858
47859         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47860         files in subdirectories correctly.
47861         Reported by Ralf Wildenhues.
47862
47863 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47864
47865         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47866         rather than 'join FILE -', for Solaris join.
47867
47868 2008-12-29  Bruno Haible  <bruno@clisp.org>
47869
47870         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47871         quoting.
47872         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47873         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47874         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47875         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47876         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47877         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47878         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47879         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47880         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47881         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47882         * m4/nls.m4 (AM_NLS): Likewise.
47883         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47884         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47885         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47886         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47887         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47888         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47889         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47890         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47891         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47892         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47893         * m4/xsize.m4 (gl_XSIZE): Likewise.
47894         Suggested by Jim Meyering.
47895
47896 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47897
47898         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47899         * lib/parse-duration.c: use a switch instead of cascading if's.
47900
47901 2008-12-29  Eric Blake  <ebb9@byu.net>
47902
47903         wchar.h: supply WEOF on Irix 5.3
47904         * lib/wchar.in.h (wint_t): Also supply WEOF.
47905         * lib/wctype.in.h (wint_t): Likewise.
47906         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47907         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47908         Reported by Tom G. Christensen.
47909
47910 2008-12-26  Bruno Haible  <bruno@clisp.org>
47911
47912         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47913         i486, i586, i686.
47914
47915 2008-12-26  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47918
47919 2008-12-26  Bruno Haible  <bruno@clisp.org>
47920
47921         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47922         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47923         not __STDC_CONSTANT_MACROS.
47924         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47925
47926 2008-12-25  Bruno Haible  <bruno@clisp.org>
47927
47928         Add support for universal builds to vasnprintf.
47929         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47930         universal builds, guess no.
47931         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47932         * modules/vasprintf-posix (Depends-on): Likewise.
47933         * modules/fprintf-posix (Depends-on): Likewise.
47934         * modules/vfprintf-posix (Depends-on): Likewise.
47935         * modules/snprintf-posix (Depends-on): Likewise.
47936         * modules/vsnprintf-posix (Depends-on): Likewise.
47937         * modules/sprintf-posix (Depends-on): Likewise.
47938         * modules/vsprintf-posix (Depends-on): Likewise.
47939         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47940         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47941         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47942         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47943         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47944         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47945         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47946
47947         Add support for universal builds to <inttypes.h>.
47948         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47949         _SCNu64_PREFIX): In Apple
47950         universal builds, define directly, using _LP64.
47951         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47952         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47953         * modules/inttypes (Depends-on): Add multiarch.
47954         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47955
47956         Add support for universal builds to <stdint.h>.
47957         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47958         universal builds, define directly, using _LP64.
47959         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47960         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47961         and size_t.
47962         * modules/stdint (Depends-on): Add multiarch.
47963         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47964
47965         New module 'multiarch'.
47966         * modules/multiarch: New file.
47967         * m4/multiarch.m4: New file.
47968
47969 2008-12-25  Bruno Haible  <bruno@clisp.org>
47970
47971         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47972
47973 2008-12-25  Bruno Haible  <bruno@clisp.org>
47974
47975         * modules/btowc (License): Relicense under LGPLv2+.
47976         * modules/mbsinit (License): Likewise.
47977         * modules/mbrtowc (License): Likewise.
47978         * modules/wcrtomb (License): Likewise.
47979         * modules/streq (License): Likewise.
47980         Reported by David Lutterkort <lutter@redhat.com>.
47981
47982 2008-12-23  Bruno Haible  <bruno@clisp.org>
47983
47984         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47985
47986 2008-12-23  Bruno Haible  <bruno@clisp.org>
47987
47988         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47989         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47990         GETADDRINFO_LIB, not in LIBS.
47991         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47992         * modules/canon-host (Link): Likewise.
47993         * NEWS: Mention the change.
47994         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47995         GETADDRINFO_LIB.
47996
47997 2008-12-22  Bruno Haible  <bruno@clisp.org>
47998
47999         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48000         * doc/posix-functions/iswalpha_l.texi: Likewise.
48001         * doc/posix-functions/iswblank_l.texi: Likewise.
48002         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48003         * doc/posix-functions/iswctype_l.texi: Likewise.
48004         * doc/posix-functions/iswdigit_l.texi: Likewise.
48005         * doc/posix-functions/iswgraph_l.texi: Likewise.
48006         * doc/posix-functions/iswlower_l.texi: Likewise.
48007         * doc/posix-functions/iswprint_l.texi: Likewise.
48008         * doc/posix-functions/iswpunct_l.texi: Likewise.
48009         * doc/posix-functions/iswspace_l.texi: Likewise.
48010         * doc/posix-functions/iswupper_l.texi: Likewise.
48011         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48012         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48013         * doc/posix-functions/open_wmemstream.texi: Likewise.
48014         * doc/posix-functions/swscanf.texi: Likewise.
48015         * doc/posix-functions/towctrans_l.texi: Likewise.
48016         * doc/posix-functions/towlower.texi: Likewise.
48017         * doc/posix-functions/towlower_l.texi: Likewise.
48018         * doc/posix-functions/towupper.texi: Likewise.
48019         * doc/posix-functions/towupper_l.texi: Likewise.
48020         * doc/posix-functions/vfwprintf.texi: Likewise.
48021         * doc/posix-functions/vfwscanf.texi: Likewise.
48022         * doc/posix-functions/vswscanf.texi: Likewise.
48023         * doc/posix-functions/vwprintf.texi: Likewise.
48024         * doc/posix-functions/vwscanf.texi: Likewise.
48025         * doc/posix-functions/wcpcpy.texi: Likewise.
48026         * doc/posix-functions/wcpncpy.texi: Likewise.
48027         * doc/posix-functions/wcscasecmp.texi: Likewise.
48028         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48029         * doc/posix-functions/wcscoll_l.texi: Likewise.
48030         * doc/posix-functions/wcsdup.texi: Likewise.
48031         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48032         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48033         * doc/posix-functions/wcsnlen.texi: Likewise.
48034         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48035         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48036         * doc/posix-functions/wctrans_l.texi: Likewise.
48037         * doc/posix-functions/wctype_l.texi: Likewise.
48038         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48039         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48040         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48041         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48042         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48043         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48044         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48045         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48046         * doc/glibc-functions/wcschrnul.texi: Likewise.
48047         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48048         * doc/glibc-functions/wcstod_l.texi: Likewise.
48049         * doc/glibc-functions/wcstof_l.texi: Likewise.
48050         * doc/glibc-functions/wcstol_l.texi: Likewise.
48051         * doc/glibc-functions/wcstold_l.texi: Likewise.
48052         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48053         * doc/glibc-functions/wcstoq.texi: Likewise.
48054         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48055         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48056         * doc/glibc-functions/wcstouq.texi: Likewise.
48057         * doc/glibc-functions/wmempcpy.texi: Likewise.
48058
48059 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48060             Eric Blake  <ebb9@byu.net>
48061             Paolo Bonzini  <bonzini@gnu.org>
48062             Bruno Haible  <bruno@clisp.org>
48063
48064         Make c-stack work on Haiku.
48065         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48066         (c_stack_action): Use SA_ONSTACK flag.
48067
48068 2008-12-22  Bruno Haible  <bruno@clisp.org>
48069
48070         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48071
48072 2008-12-22  Bruno Haible  <bruno@clisp.org>
48073
48074         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48075         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48076         being overridden.
48077         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48078         New macros.
48079         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48081         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48082         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48083
48084 2008-12-22  Bruno Haible  <bruno@clisp.org>
48085
48086         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48087         from test code.
48088
48089 2008-12-22  Eric Blake  <ebb9@byu.net>
48090
48091         Avoid gcc warnings on cygwin.
48092         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48093         Avoid unused variable.
48094         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48095         Likewise.
48096
48097 2008-12-22  Bruno Haible  <bruno@clisp.org>
48098
48099         Remove HAVE_MBRTOWC conditionals.
48100         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48101         (mbscasecmp): Assume mbrtowc function.
48102         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48103         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48104         * lib/mbschr.c: Include mbuiter.h unconditionally.
48105         (mbschr): Assume mbrtowc function.
48106         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48107         (mbscspn): Assume mbrtowc function.
48108         * lib/mbslen.c: Include mbuiter.h unconditionally.
48109         (mbslen): Assume mbrtowc function.
48110         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48111         (mbsncasecmp): Assume mbrtowc function.
48112         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48113         (mbsnlen): Assume mbrtowc function.
48114         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48115         (mbspbrk): Assume mbrtowc function.
48116         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48117         (mbspcasecmp): Assume mbrtowc function.
48118         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48119         (mbsrchr): Assume mbrtowc function.
48120         * lib/mbssep.c: Include mbuiter.h unconditionally.
48121         (mbssep): Assume mbrtowc function.
48122         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48123         (mbsspn): Assume mbrtowc function.
48124         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48125         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48126         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48127         (mbstok_r): Assume mbrtowc function.
48128         * lib/propername.c: Include mbuiter.h unconditionally.
48129         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48130         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48131         (trim2): Assume mbrtowc function.
48132         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48133         (mbsnwidth): Assume mbrtowc function.
48134         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48135         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48136         fallback definitions.
48137         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48138
48139 2008-12-22  Bruno Haible  <bruno@clisp.org>
48140
48141         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48142
48143 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48144
48145         * modules/regex: Request emulations for the mb*/wc* functions we need.
48146         * m4/regex.m4: Don't look for those functions here.
48147         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48148
48149 2008-12-22  Bruno Haible  <bruno@clisp.org>
48150
48151         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48152
48153 2008-12-21  Bruno Haible  <bruno@clisp.org>
48154
48155         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48156         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48157         (Include): Remove conditionalization.
48158         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48159         (Include): Remove conditionalization.
48160         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48161         (Include): Remove conditionalization.
48162         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48163         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48164         * NEWS: Mention the change.
48165         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48166         via Sergey Poznyakoff <gray@gnu.org.ua>.
48167
48168 2008-12-21  Bruno Haible  <bruno@clisp.org>
48169
48170         * MODULES.html.sh (Extended multibyte and wide character utilities
48171         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48172         wcrtomb, wcsrtombs.
48173         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48174         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48175         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48176         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48177
48178 2008-12-21  Bruno Haible  <bruno@clisp.org>
48179
48180         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48181
48182 2008-12-21  Bruno Haible  <bruno@clisp.org>
48183
48184         * modules/wcsnrtombs-tests: New file.
48185         * tests/test-wcsnrtombs1.sh: New file.
48186         * tests/test-wcsnrtombs2.sh: New file.
48187         * tests/test-wcsnrtombs3.sh: New file.
48188         * tests/test-wcsnrtombs4.sh: New file.
48189         * tests/test-wcsnrtombs.c: New file.
48190
48191         New module 'wcsnrtombs'.
48192         * lib/wchar.in.h (wcsnrtombs): New declaration.
48193         * lib/wcsnrtombs.c: New file.
48194         * lib/wcsrtombs-state.c: New file.
48195         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48196         (internal_state): Remove variable.
48197         * m4/wcsnrtombs.m4: New file.
48198         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48199         compilation units.
48200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48201         HAVE_WCSNRTOMBS.
48202         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48203         HAVE_WCSNRTOMBS.
48204         * modules/wcsnrtombs: New file.
48205         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48206         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48207
48208 2008-12-21  Bruno Haible  <bruno@clisp.org>
48209
48210         * modules/wcsrtombs-tests: New file.
48211         * tests/test-wcsrtombs1.sh: New file.
48212         * tests/test-wcsrtombs2.sh: New file.
48213         * tests/test-wcsrtombs3.sh: New file.
48214         * tests/test-wcsrtombs4.sh: New file.
48215         * tests/test-wcsrtombs.c: New file.
48216
48217         New module 'wcsrtombs'.
48218         * lib/wchar.in.h (wcsrtombs): New declaration.
48219         * lib/wcsrtombs.c: New file.
48220         * m4/wcsrtombs.m4: New file.
48221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48222         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48224         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48225         * modules/wcsrtombs: New file.
48226         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48227         bugs.
48228
48229 2008-12-21  Bruno Haible  <bruno@clisp.org>
48230
48231         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48232         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48233         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48234         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48235         if not correct.
48236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48237         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48238         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48239         m4/locale-zh.m4, m4/codeset.m4.
48240         * doc/posix-functions/wcrtomb.texi: Document the bug.
48241
48242 2008-12-21  Bruno Haible  <bruno@clisp.org>
48243
48244         Work around a btowc() bug on IRIX 6.5.
48245         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48246         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48247         REPLACE_WTOBC if not.
48248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48249         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48250         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48251
48252 2008-12-21  Bruno Haible  <bruno@clisp.org>
48253
48254         * modules/wcrtomb-tests: New file.
48255         * tests/test-wcrtomb.sh: New file.
48256         * tests/test-wcrtomb.c: New file.
48257
48258         New module 'wcrtomb'.
48259         * lib/wchar.in.h (wcrtomb): New declaration.
48260         * lib/wcrtomb.c: New file.
48261         * m4/wcrtomb.m4: New file.
48262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48263         HAVE_WCRTOMB.
48264         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48265         HAVE_WCRTOMB.
48266         * modules/wcrtomb: New file.
48267         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48268
48269 2008-12-21  Bruno Haible  <bruno@clisp.org>
48270
48271         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48272         * modules/mbsrtowcs (Files): Likewise.
48273         * modules/wctob (Files): Likewise.
48274         * modules/c-strcase-tests (Files): Likewise.
48275         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48276         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48277         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48278         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48279         * modules/vasnprintf-posix-tests (Files): Likewise.
48280
48281 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48282
48283         gitlog-to-changelog: pass all command-line arguments to git-log
48284         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48285         it is sometimes convenient to filter the commits in various ways.
48286         gitlog-to-changelog only allows --since to specify a start date,
48287         but git-log itself supports many other filtering mechanisms.
48288         At the moment, I want to filter by branch name.  Rather than
48289         adding a --branch option to gitlog-to-changelog, it seems more
48290         flexible to simply pass all options directly to git-log and let
48291         git do the work.  Notice that this effectively makes --since a
48292         redundant option for gitlog-to-changelog, but removing it would
48293         require current usage to change since calls would then require
48294         an additional '--'.
48295
48296 2008-12-21  Bruno Haible  <bruno@clisp.org>
48297
48298         * modules/mbsnrtowcs-tests: New file.
48299         * tests/test-mbsnrtowcs1.sh: New file.
48300         * tests/test-mbsnrtowcs2.sh: New file.
48301         * tests/test-mbsnrtowcs3.sh: New file.
48302         * tests/test-mbsnrtowcs4.sh: New file.
48303         * tests/test-mbsnrtowcs.c: New file.
48304
48305         New module 'mbsnrtowcs'.
48306         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48307         * lib/mbsnrtowcs.c: New file.
48308         * lib/mbsrtowcs-state.c: New file.
48309         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48310         (internal_state): Remove variable.
48311         * m4/mbsnrtowcs.m4: New file.
48312         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48313         compilation units.
48314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48315         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48316         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48317         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48318         * modules/mbsnrtowcs: New file.
48319         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48320         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48321         portability problem.
48322
48323 2008-12-21  Bruno Haible  <bruno@clisp.org>
48324
48325         Work around mbsrtowcs bug.
48326         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48327         (gl_FUNC_MBSRTOWCS): Invoke it.
48328         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48329         m4/locale-zh.m4.
48330         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48331
48332 2008-12-21  Bruno Haible  <bruno@clisp.org>
48333
48334         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48335
48336 2008-12-21  Bruno Haible  <bruno@clisp.org>
48337
48338         Update doc for AIX.
48339         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48340         16-bit wchar_t type.
48341         * doc/posix-functions/btowc.texi: Likewise.
48342         * doc/posix-functions/fgetwc.texi: Likewise.
48343         * doc/posix-functions/fgetws.texi: Likewise.
48344         * doc/posix-functions/fputwc.texi: Likewise.
48345         * doc/posix-functions/fputws.texi: Likewise.
48346         * doc/posix-functions/fwide.texi: Likewise.
48347         * doc/posix-functions/fwprintf.texi: Likewise.
48348         * doc/posix-functions/fwscanf.texi: Likewise.
48349         * doc/posix-functions/getwchar.texi: Likewise.
48350         * doc/posix-functions/getwc.texi: Likewise.
48351         * doc/posix-functions/iswalnum.texi: Likewise.
48352         * doc/posix-functions/iswalpha.texi: Likewise.
48353         * doc/posix-functions/iswblank.texi: Likewise.
48354         * doc/posix-functions/iswcntrl.texi: Likewise.
48355         * doc/posix-functions/iswctype.texi: Likewise.
48356         * doc/posix-functions/iswdigit.texi: Likewise.
48357         * doc/posix-functions/iswgraph.texi: Likewise.
48358         * doc/posix-functions/iswlower.texi: Likewise.
48359         * doc/posix-functions/iswprint.texi: Likewise.
48360         * doc/posix-functions/iswpunct.texi: Likewise.
48361         * doc/posix-functions/iswspace.texi: Likewise.
48362         * doc/posix-functions/iswupper.texi: Likewise.
48363         * doc/posix-functions/iswxdigit.texi: Likewise.
48364         * doc/posix-functions/mbrtowc.texi: Likewise.
48365         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48366         * doc/posix-functions/mbstowcs.texi: Likewise.
48367         * doc/posix-functions/mbtowc.texi: Likewise.
48368         * doc/posix-functions/putwchar.texi: Likewise.
48369         * doc/posix-functions/putwc.texi: Likewise.
48370         * doc/posix-functions/swprintf.texi: Likewise.
48371         * doc/posix-functions/tolower.texi: Likewise.
48372         * doc/posix-functions/toupper.texi: Likewise.
48373         * doc/posix-functions/towctrans.texi: Likewise.
48374         * doc/posix-functions/ungetwc.texi: Likewise.
48375         * doc/posix-functions/vswprintf.texi: Likewise.
48376         * doc/posix-functions/wcrtomb.texi: Likewise.
48377         * doc/posix-functions/wcscat.texi: Likewise.
48378         * doc/posix-functions/wcschr.texi: Likewise.
48379         * doc/posix-functions/wcscmp.texi: Likewise.
48380         * doc/posix-functions/wcscoll.texi: Likewise.
48381         * doc/posix-functions/wcscpy.texi: Likewise.
48382         * doc/posix-functions/wcscspn.texi: Likewise.
48383         * doc/posix-functions/wcsftime.texi: Likewise.
48384         * doc/posix-functions/wcslen.texi: Likewise.
48385         * doc/posix-functions/wcsncat.texi: Likewise.
48386         * doc/posix-functions/wcsncmp.texi: Likewise.
48387         * doc/posix-functions/wcsncpy.texi: Likewise.
48388         * doc/posix-functions/wcspbrk.texi: Likewise.
48389         * doc/posix-functions/wcsrchr.texi: Likewise.
48390         * doc/posix-functions/wcsrtombs.texi: Likewise.
48391         * doc/posix-functions/wcsspn.texi: Likewise.
48392         * doc/posix-functions/wcsstr.texi: Likewise.
48393         * doc/posix-functions/wcstod.texi: Likewise.
48394         * doc/posix-functions/wcstof.texi: Likewise.
48395         * doc/posix-functions/wcstoimax.texi: Likewise.
48396         * doc/posix-functions/wcstok.texi: Likewise.
48397         * doc/posix-functions/wcstold.texi: Likewise.
48398         * doc/posix-functions/wcstoll.texi: Likewise.
48399         * doc/posix-functions/wcstol.texi: Likewise.
48400         * doc/posix-functions/wcstombs.texi: Likewise.
48401         * doc/posix-functions/wcstoull.texi: Likewise.
48402         * doc/posix-functions/wcstoul.texi: Likewise.
48403         * doc/posix-functions/wcstoumax.texi: Likewise.
48404         * doc/posix-functions/wcswidth.texi: Likewise.
48405         * doc/posix-functions/wcsxfrm.texi: Likewise.
48406         * doc/posix-functions/wctob.texi: Likewise.
48407         * doc/posix-functions/wctomb.texi: Likewise.
48408         * doc/posix-functions/wctrans.texi: Likewise.
48409         * doc/posix-functions/wctype.texi: Likewise.
48410         * doc/posix-functions/wcwidth.texi: Likewise.
48411         * doc/posix-functions/wmemchr.texi: Likewise.
48412         * doc/posix-functions/wmemcmp.texi: Likewise.
48413         * doc/posix-functions/wmemcpy.texi: Likewise.
48414         * doc/posix-functions/wmemmove.texi: Likewise.
48415         * doc/posix-functions/wmemset.texi: Likewise.
48416         * doc/posix-functions/wprintf.texi: Likewise.
48417         * doc/posix-functions/wscanf.texi: Likewise.
48418
48419 2008-12-21  Bruno Haible  <bruno@clisp.org>
48420
48421         Update doc for HP-UX 11.11.
48422         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48423         in HP-UX version 11.00, not in all versions of HP-UX 11.
48424         * doc/posix-functions/fwide.texi: Likewise.
48425         * doc/posix-functions/fwprintf.texi: Likewise.
48426         * doc/posix-functions/fwscanf.texi: Likewise.
48427         * doc/posix-functions/inet_ntop.texi: Likewise.
48428         * doc/posix-functions/inet_pton.texi: Likewise.
48429         * doc/posix-functions/mbrlen.texi: Likewise.
48430         * doc/posix-functions/mbrtowc.texi: Likewise.
48431         * doc/posix-functions/mbsinit.texi: Likewise.
48432         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48433         * doc/posix-functions/swprintf.texi: Likewise.
48434         * doc/posix-functions/swscanf.texi: Likewise.
48435         * doc/posix-functions/towctrans.texi: Likewise.
48436         * doc/posix-functions/vfwprintf.texi: Likewise.
48437         * doc/posix-functions/vswprintf.texi: Likewise.
48438         * doc/posix-functions/vwprintf.texi: Likewise.
48439         * doc/posix-functions/wcrtomb.texi: Likewise.
48440         * doc/posix-functions/wcsrtombs.texi: Likewise.
48441         * doc/posix-functions/wcsstr.texi: Likewise.
48442         * doc/posix-functions/wctob.texi: Likewise.
48443         * doc/posix-functions/wctrans.texi: Likewise.
48444         * doc/posix-functions/wmemchr.texi: Likewise.
48445         * doc/posix-functions/wmemcmp.texi: Likewise.
48446         * doc/posix-functions/wmemcpy.texi: Likewise.
48447         * doc/posix-functions/wmemmove.texi: Likewise.
48448         * doc/posix-functions/wmemset.texi: Likewise.
48449         * doc/posix-functions/wprintf.texi: Likewise.
48450         * doc/posix-functions/wscanf.texi: Likewise.
48451
48452 2008-12-21  Bruno Haible  <bruno@clisp.org>
48453
48454         Work around a portability problem.
48455         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48456         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48457
48458 2008-12-20  Bruno Haible  <bruno@clisp.org>
48459
48460         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48461         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48462         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48464         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48465
48466         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48467         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48468         set.
48469         (GNULIB_defined_mbstate_t): New macro.
48470         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48471         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48472         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48473         reuses the system's mbrtowc function but works around the bugs.
48474         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48475         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48476         macros.
48477         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48478         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48479         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48480         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48481         REPLACE_MBSINIT if mbsinit needs to be overridden.
48482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48483         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48484         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48485         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48486         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48487         m4/locale-zh.m4.
48488         (Depends): Add mbsinit.
48489         * modules/mbsinit (Depends): Add mbrtowc.
48490         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48491
48492 2008-12-20  Bruno Haible  <bruno@clisp.org>
48493
48494         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48495         so that there are no conversion errors on AIX.
48496         * tests/test-mbsrtowcs.c (main): LIkewise.
48497
48498 2008-12-20  Bruno Haible  <bruno@clisp.org>
48499
48500         Work around wctob bug on Solaris <= 9.
48501         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48502         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48504         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48505         * modules/wctob (Files): Add m4/locale-fr.m4.
48506         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48507
48508 2008-12-20  Bruno Haible  <bruno@clisp.org>
48509
48510         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48511         /dev/null.
48512         * tests/test-select-in.sh: Likewise.
48513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48514
48515 2008-12-20  Bruno Haible  <bruno@clisp.org>
48516
48517         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48518         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48519         Cygwin 1.5.x.
48520
48521 2008-12-20  Bruno Haible  <bruno@clisp.org>
48522
48523         Ensure mbstate_t is defined on HP-UX 11.11.
48524         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48525         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48526         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48527         AC_USE_SYSTEM_EXTENSIONS.
48528         * modules/fnmatch (Depends-on): Add extensions.
48529         * modules/mbrlen (Depends-on): Likewise.
48530         * modules/mbrtowc (Depends-on): Likewise.
48531         * modules/mbsinit (Depends-on): Likewise.
48532         * modules/mbsrtowcs (Depends-on): Likewise.
48533         * modules/mbswidth (Depends-on): Likewise.
48534         * modules/quotearg (Depends-on): Likewise.
48535         * modules/strftime (Depends-on): Likewise.
48536
48537 2008-12-20  Bruno Haible  <bruno@clisp.org>
48538
48539         Ensure wctob is declared on IRIX 6.5.
48540         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48541         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48542         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48544         of HAVE_WCTOB.
48545         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48546         HAVE_WCTOB.
48547         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48548
48549 2008-12-19  Bruno Haible  <bruno@clisp.org>
48550
48551         * modules/mbsrtowcs-tests: New file.
48552         * tests/test-mbsrtowcs1.sh: New file.
48553         * tests/test-mbsrtowcs2.sh: New file.
48554         * tests/test-mbsrtowcs3.sh: New file.
48555         * tests/test-mbsrtowcs4.sh: New file.
48556         * tests/test-mbsrtowcs.c: New file.
48557
48558         New module 'mbsrtowcs'.
48559         * lib/wchar.in.h (mbsrtowcs): New declaration.
48560         * lib/mbsrtowcs.c: New file.
48561         * m4/mbsrtowcs.m4: New file.
48562         * modules/mbsrtowcs: New file.
48563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48564         HAVE_MBSRTOWCS.
48565         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48566         HAVE_MBSRTOWCS.
48567         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48568
48569 2008-12-19  Bruno Haible  <bruno@clisp.org>
48570
48571         New module 'mbrlen'.
48572         * lib/wchar.in.h (mbrlen): New declaration.
48573         * lib/mbrlen.c: New file.
48574         * m4/mbrlen.m4: New file.
48575         * modules/mbrlen: New file.
48576         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48577         HAVE_MBRLEN.
48578         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48579         HAVE_MBRLEN.
48580         * doc/posix-functions/mbrlen.texi: Document the new module.
48581
48582 2008-12-19  Bruno Haible  <bruno@clisp.org>
48583
48584         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48585         * modules/mbrtowc (Depends-on): Add verify.
48586         Suggested by Paul Eggert.
48587
48588 2008-12-18  Bruno Haible  <bruno@clisp.org>
48589
48590         * modules/mbsinit-tests: New file.
48591         * tests/test-mbsinit.sh: New file.
48592         * tests/test-mbsinit.c: New file.
48593
48594 2008-12-18  Bruno Haible  <bruno@clisp.org>
48595
48596         * modules/mbrtowc-tests: New file.
48597         * tests/test-mbrtowc1.sh: New file.
48598         * tests/test-mbrtowc2.sh: New file.
48599         * tests/test-mbrtowc3.sh: New file.
48600         * tests/test-mbrtowc4.sh: New file.
48601         * tests/test-mbrtowc.c: New file.
48602
48603         New module 'mbrtowc'.
48604         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48605         mbsinit and mbrtowc.
48606         (mbrtowc): New declaration.
48607         * lib/mbrtowc.c: New file.
48608         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48609         * modules/mbrtowc: New file.
48610         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48611         HAVE_MBRTOWC.
48612         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48613         HAVE_MBRTOWC.
48614         * doc/posix-functions/mbrtowc.texi: Document the new module.
48615
48616 2008-12-18  Bruno Haible  <bruno@clisp.org>
48617
48618         New module 'wctob'.
48619         * lib/wchar.in.h (wctob): New declaration.
48620         * lib/wctob.c: New file.
48621         * m4/wctob.m4: New file.
48622         * modules/wctob: New file.
48623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48624         HAVE_WCTOB.
48625         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48626         * doc/posix-functions/wctob.texi: Document the new module.
48627
48628 2008-12-18  Bruno Haible  <bruno@clisp.org>
48629
48630         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48631         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48632
48633 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48634
48635         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48636         G. Christensen" <tgc@jupiterrise.com>.
48637
48638         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48639         G. Christensen" <tgc@jupiterrise.com>.
48640
48641         * lib/flock.c: Need to include string.h.  Reported by "Tom
48642         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48643         <ebb9@byu.net>.
48644
48645 2008-12-18  Bruno Haible  <bruno@clisp.org>
48646
48647         * m4/locale-ja.m4: New file, from GNU gettext.
48648
48649 2008-12-17  Bruno Haible  <bruno@clisp.org>
48650
48651         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48652         Suggested by Eric Blake.
48653
48654 2008-12-17  Bruno Haible  <bruno@clisp.org>
48655
48656         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48657
48658 2008-12-17  Bruno Haible  <bruno@clisp.org>
48659
48660         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48661         * modules/mbsinit (Depends-on): Add verify.
48662         Suggested by Paul Eggert.
48663
48664 2008-12-17  Bruno Haible  <bruno@clisp.org>
48665
48666         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48667         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48668         gl_FUNC_MBRTOWC.
48669         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48670         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48671         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48672         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48673         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48674         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48675         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48676         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48677         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48678         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48679         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48680         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48681         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48682         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48683         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48684         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48685         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48686         * modules/trim (configure.ac): Likewise.
48687
48688 2008-12-17  Bruno Haible  <bruno@clisp.org>
48689
48690         * modules/btowc-tests: New file.
48691         * tests/test-btowc1.sh: New file.
48692         * tests/test-btowc2.sh: New file.
48693         * tests/test-btowc.c: New file.
48694
48695         New module 'btowc'.
48696         * lib/wchar.in.h (btowc): New declaration.
48697         * lib/btowc.c: New file.
48698         * m4/btowc.m4: New file.
48699         * modules/btowc: New file.
48700         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48701         HAVE_BTOWC.
48702         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48703         * doc/posix-functions/btowc.texi: Document the new module.
48704
48705 2008-12-17  Bruno Haible  <bruno@clisp.org>
48706
48707         New module 'mbsinit'.
48708         * lib/wchar.in.h (mbsinit): New declaration.
48709         * lib/mbsinit.c: New file.
48710         * m4/mbsinit.m4: New file.
48711         * modules/mbsinit: New file.
48712         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48713         HAVE_MBSINIT.
48714         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48715         HAVE_MBSINIT.
48716         * doc/posix-functions/mbsinit.texi: Document the new module.
48717
48718 2008-12-16  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/unistd.in.h: Add comment.
48721         * tests/test-environ.c: Don't include <stdlib.h>.
48722
48723 2008-12-16  Bruno Haible  <bruno@clisp.org>
48724
48725         * lib/parse-duration.h (parse_duration): Document return value
48726         convention.
48727         * lib/parse-duration.c: Include specification header first. Add
48728         comments.
48729         (_): Remove macro.
48730         (parse_year_month_day, parse_hour_minute_second): Move side effects
48731         outside of strchr call.
48732         (parse_non_iso8601): Move side effects outside of isspace call.
48733         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48734         call.
48735
48736 2008-12-16  Bruno Haible  <bruno@clisp.org>
48737
48738         * tests/test-parse-duration.sh: Produce no output when the test
48739         succeeds.
48740
48741 2008-12-16  Bruno Haible  <bruno@clisp.org>
48742
48743         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48744         expressions.
48745
48746 2008-12-15  Bruno Haible  <bruno@clisp.org>
48747
48748         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48749         * doc/glibc-functions/flistxattr.texi: Likewise.
48750         * doc/glibc-functions/fopencookie.texi: Likewise.
48751         * doc/glibc-functions/fremovexattr.texi: Likewise.
48752         * doc/glibc-functions/fsetxattr.texi: Likewise.
48753         * doc/glibc-functions/getxattr.texi: Likewise.
48754         * doc/glibc-functions/lgetxattr.texi: Likewise.
48755         * doc/glibc-functions/listxattr.texi: Likewise.
48756         * doc/glibc-functions/llistxattr.texi: Likewise.
48757         * doc/glibc-functions/lremovexattr.texi: Likewise.
48758         * doc/glibc-functions/lsetxattr.texi: Likewise.
48759         * doc/glibc-functions/removexattr.texi: Likewise.
48760         * doc/glibc-functions/setxattr.texi: Likewise.
48761         * doc/posix-functions/open_memstream.texi: Likewise.
48762
48763 2008-12-15  Eric Blake  <ebb9@byu.net>
48764
48765         Update doc for cygwin 1.7.
48766         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48767         functions.
48768         * doc/posix-functions/fchmodat.texi: Likewise.
48769         * doc/posix-functions/fchownat.texi: Likewise.
48770         * doc/posix-functions/fdopendir.texi: Likewise.
48771         * doc/posix-functions/fmemopen.texi: Likewise.
48772         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48773         * doc/posix-functions/fstatat.texi: Likewise.
48774         * doc/posix-functions/futimens.texi: Likewise.
48775         * doc/posix-functions/gai_strerror.texi: Likewise.
48776         * doc/posix-functions/getaddrinfo.texi: Likewise.
48777         * doc/posix-functions/getnameinfo.texi: Likewise.
48778         * doc/posix-functions/if_freenameindex.texi: Likewise.
48779         * doc/posix-functions/if_indextoname.texi: Likewise.
48780         * doc/posix-functions/if_nameindex.texi: Likewise.
48781         * doc/posix-functions/if_nametoindex.texi: Likewise.
48782         * doc/posix-functions/insque.texi: Likewise.
48783         * doc/posix-functions/linkat.texi: Likewise.
48784         * doc/posix-functions/llrint.texi: Likewise.
48785         * doc/posix-functions/llrintf.texi: Likewise.
48786         * doc/posix-functions/llrintl.texi: Likewise.
48787         * doc/posix-functions/lockf.texi: Likewise.
48788         * doc/posix-functions/lrintl.texi: Likewise.
48789         * doc/posix-functions/mkdirat.texi: Likewise.
48790         * doc/posix-functions/mkfifoat.texi: Likewise.
48791         * doc/posix-functions/mknodat.texi: Likewise.
48792         * doc/posix-functions/mq_close.texi: Likewise.
48793         * doc/posix-functions/mq_getattr.texi: Likewise.
48794         * doc/posix-functions/mq_notify.texi: Likewise.
48795         * doc/posix-functions/mq_open.texi: Likewise.
48796         * doc/posix-functions/mq_receive.texi: Likewise.
48797         * doc/posix-functions/mq_send.texi: Likewise.
48798         * doc/posix-functions/mq_setattr.texi: Likewise.
48799         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48800         * doc/posix-functions/mq_timedsend.texi: Likewise.
48801         * doc/posix-functions/mq_unlink.texi: Likewise.
48802         * doc/posix-functions/open_memstream.texi: Likewise.
48803         * doc/posix-functions/openat.texi: Likewise.
48804         * doc/posix-functions/posix_fadvise.texi: Likewise.
48805         * doc/posix-functions/posix_fallocate.texi: Likewise.
48806         * doc/posix-functions/posix_madvise.texi: Likewise.
48807         * doc/posix-functions/posix_memalign.texi: Likewise.
48808         * doc/posix-functions/posix_openpt.texi: Likewise.
48809         * doc/posix-functions/readlinkat.texi: Likewise.
48810         * doc/posix-functions/remque.texi: Likewise.
48811         * doc/posix-functions/renameat.texi: Likewise.
48812         * doc/posix-functions/rintl.texi: Likewise.
48813         * doc/posix-functions/sem_unlink.texi: Likewise.
48814         * doc/posix-functions/shm_open.texi: Likewise.
48815         * doc/posix-functions/shm_unlink.texi: Likewise.
48816         * doc/posix-functions/signgam.texi: Likewise.
48817         * doc/posix-functions/sigset.texi: Likewise.
48818         * doc/posix-functions/stpcpy.texi: Likewise.
48819         * doc/posix-functions/stpncpy.texi: Likewise.
48820         * doc/posix-functions/strerror.texi: Likewise.
48821         * doc/posix-functions/strtod.texi: Likewise.
48822         * doc/posix-functions/symlinkat.texi: Likewise.
48823         * doc/posix-functions/unlinkat.texi: Likewise.
48824         * doc/posix-functions/utimensat.texi: Likewise.
48825         * doc/glibc-functions/bindresvport.texi: Likewise.
48826         * doc/glibc-functions/dn_expand.texi: Likewise.
48827         * doc/glibc-functions/exp10.texi: Likewise.
48828         * doc/glibc-functions/exp10f.texi: Likewise.
48829         * doc/glibc-functions/fgetxattr.texi: Likewise.
48830         * doc/glibc-functions/flistxattr.texi: Likewise.
48831         * doc/glibc-functions/fopencookie.texi: Likewise.
48832         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48833         * doc/glibc-functions/fremovexattr.texi: Likewise.
48834         * doc/glibc-functions/fsetxattr.texi: Likewise.
48835         * doc/glibc-functions/getifaddrs.texi: Likewise.
48836         * doc/glibc-functions/getxattr.texi: Likewise.
48837         * doc/glibc-functions/lgetxattr.texi: Likewise.
48838         * doc/glibc-functions/listxattr.texi: Likewise.
48839         * doc/glibc-functions/llistxattr.texi: Likewise.
48840         * doc/glibc-functions/lremovexattr.texi: Likewise.
48841         * doc/glibc-functions/lsetxattr.texi: Likewise.
48842         * doc/glibc-functions/pow10.texi: Likewise.
48843         * doc/glibc-functions/pow10f.texi: Likewise.
48844         * doc/glibc-functions/rcmd_af.texi: Likewise.
48845         * doc/glibc-functions/removexattr.texi: Likewise.
48846         * doc/glibc-functions/res_init.texi: Likewise.
48847         * doc/glibc-functions/res_mkquery.texi: Likewise.
48848         * doc/glibc-functions/res_query.texi: Likewise.
48849         * doc/glibc-functions/res_querydomain.texi: Likewise.
48850         * doc/glibc-functions/res_send.texi: Likewise.
48851         * doc/glibc-functions/rresvport_af.texi: Likewise.
48852         * doc/glibc-functions/setxattr.texi: Likewise.
48853         * doc/glibc-functions/strcasestr.texi: Likewise.
48854
48855 2008-12-15  Bruno Haible  <bruno@clisp.org>
48856
48857         Fix compilation error on OSF/1 4.0.
48858         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48859         <sys/time.h>, simply delegate to the system header.
48860         Reported by Daniel Richard G. <oss@teragram.com>.
48861
48862 2008-12-15  Bruno Haible  <bruno@clisp.org>
48863
48864         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48865         * doc/posix-functions/fchmodat.texi: Likewise.
48866         * doc/posix-functions/fchownat.texi: Likewise.
48867         * doc/posix-functions/fdopendir.texi: Likewise.
48868         * doc/posix-functions/fstatat.texi: Likewise.
48869         * doc/posix-functions/mkdirat.texi: Likewise.
48870         * doc/posix-functions/unlinkat.texi: Likewise.
48871
48872 2008-12-14  Bruno Haible  <bruno@clisp.org>
48873
48874         Update doc for POSIX:2008.
48875         * doc/posix-functions/faccessat.texi: New file.
48876         * doc/posix-functions/fchmodat.texi: New file.
48877         * doc/posix-functions/fchownat.texi: New file.
48878         * doc/posix-functions/fdopendir.texi: New file.
48879         * doc/posix-functions/fstatat.texi: New file.
48880         * doc/posix-functions/futimens.texi: New file.
48881         * doc/posix-functions/linkat.texi: New file.
48882         * doc/posix-functions/mkdirat.texi: New file.
48883         * doc/posix-functions/mkfifoat.texi: New file.
48884         * doc/posix-functions/mknodat.texi: New file.
48885         * doc/posix-functions/open_wmemstream.texi: New file.
48886         * doc/posix-functions/openat.texi: New file.
48887         * doc/posix-functions/psiginfo.texi: New file.
48888         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48889         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48890         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48891         * doc/posix-functions/readlinkat.texi: New file.
48892         * doc/posix-functions/renameat.texi: New file.
48893         * doc/posix-functions/strerror_l.texi: New file.
48894         * doc/posix-functions/symlinkat.texi: New file.
48895         * doc/posix-functions/unlinkat.texi: New file.
48896         * doc/posix-functions/utimensat.texi: New file.
48897         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48898
48899 2008-12-14  Bruno Haible  <bruno@clisp.org>
48900
48901         Update doc for POSIX:2008.
48902         * doc/posix-functions/alphasort.texi: Renamed from
48903         doc/glibc-functions/alphasort.texi.
48904         * doc/posix-functions/dirfd.texi: Renamed from
48905         doc/glibc-functions/dirfd.texi.
48906         * doc/posix-functions/dprintf.texi: Renamed from
48907         doc/glibc-functions/dprintf.texi.
48908         * doc/posix-functions/duplocale.texi: Renamed from
48909         doc/glibc-functions/duplocale.texi.
48910         * doc/posix-functions/fexecve.texi: Renamed from
48911         doc/glibc-functions/fexecve.texi.
48912         * doc/posix-functions/fmemopen.texi: Renamed from
48913         doc/glibc-functions/fmemopen.texi.
48914         * doc/posix-functions/freelocale.texi: Renamed from
48915         doc/glibc-functions/freelocale.texi.
48916         * doc/posix-functions/getdate_err.texi: Renamed from
48917         doc/glibc-functions/getdate_err.texi.
48918         * doc/posix-functions/isalnum_l.texi: Renamed from
48919         doc/glibc-functions/isalnum_l.texi.
48920         * doc/posix-functions/isalpha_l.texi: Renamed from
48921         doc/glibc-functions/isalpha_l.texi.
48922         * doc/posix-functions/isblank_l.texi: Renamed from
48923         doc/glibc-functions/isblank_l.texi.
48924         * doc/posix-functions/iscntrl_l.texi: Renamed from
48925         doc/glibc-functions/iscntrl_l.texi.
48926         * doc/posix-functions/isdigit_l.texi: Renamed from
48927         doc/glibc-functions/isdigit_l.texi.
48928         * doc/posix-functions/isgraph_l.texi: Renamed from
48929         doc/glibc-functions/isgraph_l.texi.
48930         * doc/posix-functions/islower_l.texi: Renamed from
48931         doc/glibc-functions/islower_l.texi.
48932         * doc/posix-functions/isprint_l.texi: Renamed from
48933         doc/glibc-functions/isprint_l.texi.
48934         * doc/posix-functions/ispunct_l.texi: Renamed from
48935         doc/glibc-functions/ispunct_l.texi.
48936         * doc/posix-functions/isspace_l.texi: Renamed from
48937         doc/glibc-functions/isspace_l.texi.
48938         * doc/posix-functions/isupper_l.texi: Renamed from
48939         doc/glibc-functions/isupper_l.texi.
48940         * doc/posix-functions/iswalnum_l.texi: Renamed from
48941         doc/glibc-functions/iswalnum_l.texi.
48942         * doc/posix-functions/iswalpha_l.texi: Renamed from
48943         doc/glibc-functions/iswalpha_l.texi.
48944         * doc/posix-functions/iswblank_l.texi: Renamed from
48945         doc/glibc-functions/iswblank_l.texi.
48946         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48947         doc/glibc-functions/iswcntrl_l.texi.
48948         * doc/posix-functions/iswctype_l.texi: Renamed from
48949         doc/glibc-functions/iswctype_l.texi.
48950         * doc/posix-functions/iswdigit_l.texi: Renamed from
48951         doc/glibc-functions/iswdigit_l.texi.
48952         * doc/posix-functions/iswgraph_l.texi: Renamed from
48953         doc/glibc-functions/iswgraph_l.texi.
48954         * doc/posix-functions/iswlower_l.texi: Renamed from
48955         doc/glibc-functions/iswlower_l.texi.
48956         * doc/posix-functions/iswprint_l.texi: Renamed from
48957         doc/glibc-functions/iswprint_l.texi.
48958         * doc/posix-functions/iswpunct_l.texi: Renamed from
48959         doc/glibc-functions/iswpunct_l.texi.
48960         * doc/posix-functions/iswspace_l.texi: Renamed from
48961         doc/glibc-functions/iswspace_l.texi.
48962         * doc/posix-functions/iswupper_l.texi: Renamed from
48963         doc/glibc-functions/iswupper_l.texi.
48964         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48965         doc/glibc-functions/iswxdigit_l.texi.
48966         * doc/posix-functions/isxdigit_l.texi: Renamed from
48967         doc/glibc-functions/isxdigit_l.texi.
48968         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48969         doc/glibc-functions/mbsnrtowcs.texi.
48970         * doc/posix-functions/mkdtemp.texi: Renamed from
48971         doc/glibc-functions/mkdtemp.texi.
48972         * doc/posix-functions/newlocale.texi: Renamed from
48973         doc/glibc-functions/newlocale.texi.
48974         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48975         doc/glibc-functions/nl_langinfo_l.texi.
48976         * doc/posix-functions/open_memstream.texi: Renamed from
48977         doc/glibc-functions/open_memstream.texi.
48978         * doc/posix-functions/opterr.texi: Renamed from
48979         doc/glibc-functions/opterr.texi.
48980         * doc/posix-functions/optind.texi: Renamed from
48981         doc/glibc-functions/optind.texi.
48982         * doc/posix-functions/optopt.texi: Renamed from
48983         doc/glibc-functions/optopt.texi.
48984         * doc/posix-functions/psignal.texi: Renamed from
48985         doc/glibc-functions/psignal.texi.
48986         * doc/posix-functions/scandir.texi: Renamed from
48987         doc/glibc-functions/scandir.texi.
48988         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48989         doc/glibc-functions/sched_get_priority_min.texi.
48990         * doc/posix-functions/signgam.texi: Renamed from
48991         doc/glibc-functions/signgam.texi.
48992         * doc/posix-functions/stpcpy.texi: Renamed from
48993         doc/glibc-functions/stpcpy.texi.
48994         * doc/posix-functions/stpncpy.texi: Renamed from
48995         doc/glibc-functions/stpncpy.texi.
48996         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48997         doc/glibc-functions/strcasecmp_l.texi.
48998         * doc/posix-functions/strcoll_l.texi: Renamed from
48999         doc/glibc-functions/strcoll_l.texi.
49000         * doc/posix-functions/strfmon_l.texi: Renamed from
49001         doc/glibc-functions/strfmon_l.texi.
49002         * doc/posix-functions/strftime_l.texi: Renamed from
49003         doc/glibc-functions/strftime_l.texi.
49004         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49005         doc/glibc-functions/strncasecmp_l.texi.
49006         * doc/posix-functions/strndup.texi: Renamed from
49007         doc/glibc-functions/strndup.texi.
49008         * doc/posix-functions/strnlen.texi: Renamed from
49009         doc/glibc-functions/strnlen.texi.
49010         * doc/posix-functions/strsignal.texi: Renamed from
49011         doc/glibc-functions/strsignal.texi.
49012         * doc/posix-functions/strxfrm_l.texi: Renamed from
49013         doc/glibc-functions/strxfrm_l.texi.
49014         * doc/posix-functions/timer_gettime.texi: Renamed from
49015         doc/glibc-functions/timer_gettime.texi.
49016         * doc/posix-functions/tolower_l.texi: Renamed from
49017         doc/glibc-functions/tolower_l.texi.
49018         * doc/posix-functions/toupper_l.texi: Renamed from
49019         doc/glibc-functions/toupper_l.texi.
49020         * doc/posix-functions/towctrans_l.texi: Renamed from
49021         doc/glibc-functions/towctrans_l.texi.
49022         * doc/posix-functions/towlower_l.texi: Renamed from
49023         doc/glibc-functions/towlower_l.texi.
49024         * doc/posix-functions/towupper_l.texi: Renamed from
49025         doc/glibc-functions/towupper_l.texi.
49026         * doc/posix-functions/uselocale.texi: Renamed from
49027         doc/glibc-functions/uselocale.texi.
49028         * doc/posix-functions/vdprintf.texi: Renamed from
49029         doc/glibc-functions/vdprintf.texi.
49030         * doc/posix-functions/wcpcpy.texi:
49031         Renamed from doc/glibc-functions/wcpcpy.texi.
49032         * doc/posix-functions/wcpncpy.texi: Renamed from
49033         doc/glibc-functions/wcpncpy.texi.
49034         * doc/posix-functions/wcscasecmp.texi: Renamed from
49035         doc/glibc-functions/wcscasecmp.texi.
49036         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49037         doc/glibc-functions/wcscasecmp_l.texi.
49038         * doc/posix-functions/wcscoll_l.texi: Renamed from
49039         doc/glibc-functions/wcscoll_l.texi.
49040         * doc/posix-functions/wcsdup.texi: Renamed from
49041         doc/glibc-functions/wcsdup.texi.
49042         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49043         doc/glibc-functions/wcsncasecmp.texi.
49044         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49045         doc/glibc-functions/wcsncasecmp_l.texi.
49046         * doc/posix-functions/wcsnlen.texi: Renamed from
49047         doc/glibc-functions/wcsnlen.texi.
49048         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49049         doc/glibc-functions/wcsnrtombs.texi.
49050         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49051         doc/glibc-functions/wcsxfrm_l.texi.
49052         * doc/posix-functions/wctrans_l.texi: Renamed from
49053         doc/glibc-functions/wctrans_l.texi.
49054         * doc/posix-functions/wctype_l.texi: Renamed from
49055         doc/glibc-functions/wctype_l.texi.
49056         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49057         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49058         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49059         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49060         these subsections.
49061         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49062         Remove sections.
49063
49064 2008-12-14  Bruno Haible  <bruno@clisp.org>
49065
49066         Update doc for POSIX:2008.
49067         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49068
49069 2008-12-14  Bruno Haible  <bruno@clisp.org>
49070
49071         Update doc for POSIX:2008.
49072         * doc/pastposix-functions/bcmp.texi: Renamed from
49073         doc/posix-functions/bcmp.texi.
49074         * doc/pastposix-functions/bcopy.texi: Renamed from
49075         doc/posix-functions/bcopy.texi.
49076         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49077         doc/posix-functions/bsd_signal.texi.
49078         * doc/pastposix-functions/bzero.texi: Renamed from
49079         doc/posix-functions/bzero.texi.
49080         * doc/pastposix-functions/ecvt.texi: Renamed from
49081         doc/posix-functions/ecvt.texi.
49082         * doc/pastposix-functions/fcvt.texi: Renamed from
49083         doc/posix-functions/fcvt.texi.
49084         * doc/pastposix-functions/ftime.texi: Renamed from
49085         doc/posix-functions/ftime.texi.
49086         * doc/pastposix-functions/gcvt.texi: Renamed from
49087         doc/posix-functions/gcvt.texi.
49088         * doc/pastposix-functions/getcontext.texi: Renamed from
49089         doc/posix-functions/getcontext.texi.
49090         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49091         doc/posix-functions/gethostbyaddr.texi.
49092         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49093         doc/posix-functions/gethostbyname.texi.
49094         * doc/pastposix-functions/getwd.texi: Renamed from
49095         doc/posix-functions/getwd.texi.
49096         * doc/pastposix-functions/h_errno.texi: Renamed from
49097         doc/posix-functions/h_errno.texi.
49098         * doc/pastposix-functions/index.texi: Renamed from
49099         doc/posix-functions/index.texi.
49100         * doc/pastposix-functions/makecontext.texi: Renamed from
49101         doc/posix-functions/makecontext.texi.
49102         * doc/pastposix-functions/mktemp.texi: Renamed from
49103         doc/posix-functions/mktemp.texi.
49104         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49105         doc/posix-functions/pthread_attr_getstackaddr.texi.
49106         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49107         doc/posix-functions/pthread_attr_setstackaddr.texi.
49108         * doc/pastposix-functions/rindex.texi: Renamed from
49109         doc/posix-functions/rindex.texi.
49110         * doc/pastposix-functions/scalb.texi: Renamed from
49111         doc/posix-functions/scalb.texi.
49112         * doc/pastposix-functions/setcontext.texi: Renamed from
49113         doc/posix-functions/setcontext.texi.
49114         * doc/pastposix-functions/swapcontext.texi: Renamed from
49115         doc/posix-functions/swapcontext.texi.
49116         * doc/pastposix-functions/ualarm.texi: Renamed from
49117         doc/posix-functions/ualarm.texi.
49118         * doc/pastposix-functions/usleep.texi: Renamed from
49119         doc/posix-functions/usleep.texi.
49120         * doc/pastposix-functions/vfork.texi: Renamed from
49121         doc/posix-functions/vfork.texi.
49122         * doc/pastposix-functions/wcswcs.texi: Renamed from
49123         doc/posix-functions/wcswcs.texi.
49124         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49125         (Function Substitutes): Update.
49126
49127 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49128
49129         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49130         m4/strerror.m4.
49131
49132 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49133             Bruno Haible  <bruno@clisp.org>
49134
49135         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49136
49137 2008-12-13  Bruno Haible  <bruno@clisp.org>
49138
49139         * modules/strtoull (Depends-on): Remove unistd.
49140
49141 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49142
49143         * modules/strtoull (Depends-on): Add stdlib.
49144
49145 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49146
49147         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49148
49149 2008-12-10  Jim Meyering  <meyering@redhat.com>
49150
49151         gl_ASSERT: don't say assertions are disabled when they're not
49152         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49153         "checking whether to enable assertions... no", when they are in
49154         fact enabled.  This is solely a bug in the output of configure.
49155         In spite of saying "no", NDEBUG was not defined in that case.
49156         Also, as noted by Eric Blake, leave assertions enabled upon
49157         --enable-assert=INVALID.
49158
49159 2008-12-10  Bruno Haible  <bruno@clisp.org>
49160
49161         Change MODULES.html to refer to POSIX:2008 where possible.
49162         * MODULES.html.sh (POSIX2008_URL): New variable.
49163         (posix_headers): Remove sys/timeb, ucontext.
49164         (posix2001_headers): New variable.
49165         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49166         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49167         index, makecontext, mktemp, pthread_attr_getstackaddr,
49168         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49169         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49170         (posix2001_functions): New variable.
49171         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49172         otherwise.
49173
49174 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49175
49176         add missing include to parse-duration.c
49177         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49178         * modules/parse-duration (Depends-on): Add xalloc.
49179
49180         fix sed script reading maint.mk
49181         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49182         (syntax-check-rules): Use it.
49183
49184 2008-12-09  Bruno Haible  <bruno@clisp.org>
49185
49186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49187         MacOS X 10.4/PowerPC.
49188         Reported by Simon Josefsson.
49189
49190 2008-12-08  Jim Meyering  <meyering@redhat.com>
49191
49192         work around mingw's lack of some S_IF definitions
49193         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49194         Reported by Simon Josefsson.
49195
49196 2008-12-08  Bruno Haible  <bruno@clisp.org>
49197
49198         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49199         applied to variables. Needed on MacOS X 10.4/PowerPC.
49200         Reported by Simon Josefsson.
49201
49202 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49203         and Eric Blake  <ebb9@byu.net>
49204
49205         assert: honor --enable-assert
49206         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49207         order to honor --enable-assert, rather than treating it as a
49208         synonym for --disable-assert.
49209
49210 2008-12-08  Jim Meyering  <meyering@redhat.com>
49211
49212         * lib/posixtm.c: Remove now-useless declaration of mktime.
49213
49214         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49215
49216 2008-12-07  Bruno Haible  <bruno@clisp.org>
49217
49218         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49219         test_once): Mark functions as static.
49220         * tests/test-tls.c (test_tls): Likewise.
49221
49222 2008-12-07  Bruno Haible  <bruno@clisp.org>
49223
49224         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49225         iconv_register_autodetect.
49226
49227 2008-12-07  Jim Meyering  <meyering@redhat.com>
49228
49229         posixtm.c: avoid a warning
49230         * lib/posixtm.c (posixtime): Don't initialize tm0.
49231         It's no longer needed to placate gcc4's -Wuninitialized,
49232         and the attempt to placate would elicit a new warning.
49233
49234         unicodeio.c: mark unused parameters
49235         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49236         (fallback_failure_callback): Likewise.
49237
49238 2008-12-07  Bruno Haible  <bruno@clisp.org>
49239
49240         * gnulib-tool (func_create_testdir): When building the tests
49241         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49242         Reported by Simon Josefsson.
49243
49244 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49245
49246         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49247
49248 2008-12-06  Bruno Haible  <bruno@clisp.org>
49249
49250         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49251         Suggested by Eric Blake.
49252
49253 2008-12-06  Bruno Haible  <bruno@clisp.org>
49254
49255         Fix a c-stack test failure on MacOS X.
49256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49257         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49258         handler for SIGBUS as well.
49259         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49260         install a signal handler for SIGBUS as well.
49261         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49262
49263 2008-12-06  Bruno Haible  <bruno@clisp.org>
49264
49265         Advocacy documentation.
49266         * doc/gnulib-intro.texi (Benefits): New section.
49267         * doc/gnulib.texi: Update.
49268
49269 2008-12-06  Bruno Haible  <bruno@clisp.org>
49270
49271         Document the 'manywarnings' module.
49272         * doc/manywarnings.texi: New file.
49273         * doc/gnulib.texi: Include it.
49274
49275 2008-12-05  Eric Blake  <ebb9@byu.net>
49276
49277         tests: silence some gcc warnings
49278         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49279         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49280         type mismatches.
49281
49282 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49283             Bruno Haible  <bruno@clisp.org>
49284
49285         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49286
49287 2008-11-29  Jim Meyering  <meyering@redhat.com>
49288
49289         unicodeio.c: mark unused parameters
49290         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49291         (fallback_failure_callback): Likewise.
49292
49293         fts: fix a thinko
49294         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49295         (set_stat_type): Return S_IF*-valued "type" directly.
49296         Prompted by James Youngman's spotting a related bug.
49297         Confirmed by further testing through find.
49298
49299         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49300         * lib/fts.c (D_TYPE): Define.
49301         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49302         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49303         (s_ifmt_shift_bits): New function.
49304         (set_stat_type): New function.
49305         (fts_build): When not calling fts_stat, call set_stat_type
49306         to propagate dirent.d_type info to fts_read caller.
49307         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49308         fts_statp->st_mode type information may be valid.
49309
49310 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49311
49312         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49313         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49314         <sds@gnu.org>.
49315
49316 2008-11-20  Bruno Haible  <bruno@clisp.org>
49317
49318         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49319         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49320         INCLUDE_NEXT.
49321         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49322         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49323         * modules/math (Makefile.am): Substitute
49324         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49325         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49326
49327 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49328             Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/stdint.in.h: Define all type macros so that their expansion is
49331         a single typedef'ed token. Fixes a compilation failure in Boost which
49332         does "using ::int8_t;".
49333
49334 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49335
49336         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49337         gl_MANYWARN_ALL_GCC.
49338         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49339         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49340         * modules/manywarnings: New file.
49341         * MODULES.html.sh: Mention manywarnings module.
49342
49343 2008-11-18  Bruno Haible  <bruno@clisp.org>
49344
49345         * doc/gnulib-tool.texi (Unit tests): New section.
49346
49347 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49348
49349         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49350         paths like 'lib/po/foo.po'.
49351
49352 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49353
49354         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49355         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49356
49357 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49358
49359         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49360         parameter works.
49361
49362 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49363
49364         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49365
49366 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49367
49368         * modules/parse-duration-tests: New file.
49369         * tests/test-parse-duration.sh: New file.
49370         * tests/test-parse-duration.c: New file.
49371
49372         New module 'parse-duration'.
49373         * lib/parse-duration.h: New file.
49374         * lib/parse-duration.c: New file.
49375         * modules/parse-duration: New file.
49376
49377 2008-11-17  Bruno Haible  <bruno@clisp.org>
49378
49379         * tests/test-select-out.sh: Comment out the first pipe test.
49380         Reported by Simon Josefsson.
49381
49382 2008-11-17  Bruno Haible  <bruno@clisp.org>
49383
49384         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49385         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49386         gl_HOSTENT.
49387
49388 2008-11-17  Bruno Haible  <bruno@clisp.org>
49389
49390         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49391         -lnetwork and -lnet. Needed for Haiku and BeOS.
49392
49393 2008-11-16  Bruno Haible  <bruno@clisp.org>
49394
49395         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49396
49397 2008-11-16  Bruno Haible  <bruno@clisp.org>
49398
49399         Avoid test failure on Haiku.
49400         * tests/test-fsync.c: Include <errno.h>.
49401         (main): Don't require that fsync (0) fails.
49402
49403 2008-11-15  Bruno Haible  <bruno@clisp.org>
49404
49405         New module 'hostent'.
49406         * modules/hostent: New file.
49407         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49408
49409 2008-11-15  Bruno Haible  <bruno@clisp.org>
49410
49411         New module 'servent'.
49412         * modules/servent: New file.
49413         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49414
49415 2008-11-15  Bruno Haible  <bruno@clisp.org>
49416
49417         Avoid generating same test program with two different rules.
49418         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49419         test-frexp to test-frexp-nolibm.
49420         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49421         test-frexpl to test-frexpl-nolibm.
49422
49423 2008-11-15  Bruno Haible  <bruno@clisp.org>
49424
49425         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49426         $(FREXPL_LIBM).
49427
49428 2008-11-15  Bruno Haible  <bruno@clisp.org>
49429
49430         * lib/netdb.in.h: Activate the definitions also when the system's
49431         <netdb.h> has 'struct addrinfo'.
49432         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49433         EAI_OVERFLOW or AI_NUMERICSERV.
49434         * doc/posix-headers/netdb.texi: Document the problem.
49435
49436 2008-11-15  Bruno Haible  <bruno@clisp.org>
49437
49438         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49439
49440         Make the 'sched' module work on platforms where <sched.h> exists but
49441         is incomplete (such as Haiku).
49442         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49443         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49444         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49445         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49446         HAVE_STRUCT_SCHED_PARAM.
49447         * modules/sched (Depends-on): Add include_next.
49448         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49449         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49450         * doc/posix-headers/sched.texi: Document the issue.
49451
49452 2008-11-13  Jim Meyering  <meyering@redhat.com>
49453
49454         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49455         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49456         test would fail due to the difference in the Report bugs to ...
49457         line.  The expected address is empty, "<>", while the actual
49458         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49459
49460 2008-11-12  Bruno Haible  <bruno@clisp.org>
49461
49462         lstat: don't compile lstat.c on systems lacking lstat
49463         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49464         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49465         Reported by Daniel P. Berrange via Jim Meyering.
49466
49467 2008-11-12  Jim Meyering  <meyering@redhat.com>
49468
49469         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49470
49471 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49472
49473         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49474         instead.
49475
49476 2008-11-12  Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/unicodeio.c: Include unistr.h.
49479         (utf8_wctomb): Remove function.
49480         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49481
49482 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49483
49484         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49485         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49486         <bruno@clisp.org>.
49487         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49488
49489 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49490
49491         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49492         * doc/gnulib.texi: Add section for warnings.
49493
49494 2008-11-11  Bruno Haible  <bruno@clisp.org>
49495
49496         * lib/sockets.h: Add a comment.
49497
49498 2008-11-11  Karl Berry  <karl@gnu.org>
49499
49500         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49501
49502 2008-11-11  Eric Blake  <ebb9@byu.net>
49503
49504         fdl.texi: avoid git symlinks
49505         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49506
49507 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49508
49509         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49510
49511 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49512
49513         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49514         (gl_WARN_ADD): Substitute $2 if literal.
49515
49516 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49517
49518         * m4/warning.m4: Remove.
49519
49520 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49521
49522         * m4/warnings.m4: Almost complete rewrite. :-)
49523
49524 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49525
49526         * modules/warnings: New module.
49527         * m4/warnings.m4: New file.
49528         * MODULES.html.sh: Mention warnings module.
49529         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49530         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49531
49532 2008-11-10  Eric Blake  <ebb9@byu.net>
49533
49534         fdl.texi: make a symlink to the latest version
49535         * doc/standards.texi: Revert today's earlier change.
49536         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49537         * doc/fdl.texi: ...and replace this with a symlink to the newer
49538         fdl-1.3.texi.
49539
49540 2008-11-10  Bruno Haible  <bruno@clisp.org>
49541
49542         * tests/test-select-fd.c (main): Accept the result file name as fourth
49543         argument.
49544         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49545         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49546
49547 2008-11-10  Bruno Haible  <bruno@clisp.org>
49548
49549         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49550         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49551         as autoconf-substituted macros.
49552         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49553         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49554         gl_NETDB_H_DEFAULTS. Set these variables.
49555         * modules/netdb (Makefile.am): Substitute these variables.
49556
49557 2008-11-10  Eric Blake  <ebb9@byu.net>
49558
49559         standards.texi: include correct file for FDL 1.3
49560         * doc/standards.texi (GNU Free Documentation License): Change
49561         include file to pull in FDL 1.3, not 1.2.
49562
49563         fdl.texi: revert accidental change to license
49564         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49565
49566 2008-11-10  Bruno Haible  <bruno@clisp.org>
49567
49568         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49569         cross-compiling guesses also when the native compile gives no result.
49570
49571 2008-11-10  Bruno Haible  <bruno@clisp.org>
49572
49573         * lib/spawni.c (__spawni): Force variable into the stack.
49574
49575 2008-11-10  Bruno Haible  <bruno@clisp.org>
49576
49577         Add support for Haiku.
49578         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49579         glibc and BeOS, but also on Haiku.
49580         * lib/fpurge.c (fpurge): Likewise.
49581         * lib/freadable.c (freadable): Likewise.
49582         * lib/freadahead.c (freadahead): Likewise.
49583         * lib/freading.c (freading): Likewise.
49584         * lib/freadptr.c (freadptr): Likewise.
49585         * lib/freadseek.c (freadptrinc): Likewise.
49586         * lib/fseeko.c (rpl_fseeko): Likewise.
49587         * lib/fseterr.c (fseterr): Likewise.
49588         * lib/fwritable.c (fwritable): Likewise.
49589         * lib/fwriting.c (fwriting): Likewise.
49590         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49591
49592 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49593
49594         * lib/config.charset: Treat Haiku like BeOS.
49595
49596 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49597
49598         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49599         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49600
49601 2008-11-08  Bruno Haible  <bruno@clisp.org>
49602
49603         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49604         AC_CACHE_CHECK.
49605
49606 2008-11-08  Bruno Haible  <bruno@clisp.org>
49607
49608         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49609
49610 2008-11-08  Bruno Haible  <bruno@clisp.org>
49611
49612         * tests/test-select-fd.c: New file.
49613         * tests/test-select-in.sh: New file.
49614         * tests/test-select-out.sh: New file.
49615         * tests/test-select-stdin.c: New file.
49616         * modules/select-tests (Files): Add the new files.
49617         (Depends-on): Add gettimeofday.
49618         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49619         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49620         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49621
49622 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49623             Bruno Haible  <bruno@clisp.org>
49624
49625         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49626
49627 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49628
49629         * build-aux/pmccabe2html: Added support for C++ source files.
49630
49631 2008-11-05  Ben Pfaff  <blp@gnu.org>
49632
49633         Fix lib/close.c build on Windows.
49634         * modules/close (Files): Add lib/w32sock.h.
49635
49636 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49637
49638         Accept Bison's NEWS format.
49639         * build-aux/announce-gen (print_news_deltas): Tweak
49640         $re_prefix.
49641
49642 2008-11-04  Bruno Haible  <bruno@clisp.org>
49643
49644         * modules/random_r (Maintainer): Add glibc.
49645
49646 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49647
49648         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49649         by karl@freefriends.org (Karl Berry).
49650         * doc/alloca.texi: Likewise.
49651         * doc/c-ctype.texi: Likewise.
49652         * doc/c-strcase.texi: Likewise.
49653         * doc/c-strcaseeq.texi: Likewise.
49654         * doc/c-strcasestr.texi: Likewise.
49655         * doc/c-strstr.texi: Likewise.
49656         * doc/c-strtod.texi: Likewise.
49657         * doc/c-strtold.texi: Likewise.
49658         * doc/ctime.texi: Likewise.
49659         * doc/error.texi: Likewise.
49660         * doc/fdl.texi: Likewise.
49661         * doc/gcd.texi: Likewise.
49662         * doc/getdate.texi: Likewise.
49663         * doc/gnulib-intro.texi: Likewise.
49664         * doc/gnulib-tool.texi: Likewise.
49665         * doc/gnulib.texi: Likewise.
49666         * doc/inet_ntoa.texi: Likewise.
49667         * doc/maintain.texi: Likewise.
49668         * doc/make-stds.texi: Likewise.
49669         * doc/quote.texi: Likewise.
49670         * doc/regexprops-generic.texi: Likewise.
49671         * doc/standards.texi: Likewise.
49672         * doc/verify.texi: Likewise.
49673         * doc/visibility.texi: Likewise.
49674         * doc/gnulib.texi (GNU Free Documentation License): Include
49675         fdl-1.3.texi instead of fdl.texi.
49676
49677 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49678
49679         * doc/fdl-1.3.texi: New file, from
49680         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49681         * modules/fdl-1.3: Add.
49682         * MODULES.html.sh: Add fdl-1.3.
49683
49684 2008-11-03  Bruno Haible  <bruno@clisp.org>
49685
49686         Make determination of absolute name of header file work with AIX xlc.
49687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49688         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49689         preprocessing.
49690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49691         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49692
49693 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49694
49695         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49696         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49697         <ludo@gnu.org>.
49698
49699 2008-11-02  Bruno Haible  <bruno@clisp.org>
49700
49701         Mark 'strpbrk' obsolete.
49702         * modules/strpbrk (Status, Notice): New sections.
49703         * modules/strtok_r (Depends-on): Add strpbrk.
49704
49705 2008-11-02  Bruno Haible  <bruno@clisp.org>
49706
49707         Mark 'strdup' obsolete.
49708         * modules/strdup (Status, Notice): New sections.
49709         * modules/findprog (Depends-on): Add strdup.
49710         * modules/getaddrinfo (Depends-on): Likewise.
49711         * modules/localename (Depends-on): Likewise.
49712         * modules/relocatable-lib (Depends-on): Likewise.
49713         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49714         * modules/relocatable-prog (Depends-on): Likewise.
49715         * modules/trim (Depends-on): Likewise.
49716         * modules/unictype/gen-ctype (Depends-on): Likewise.
49717         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49718
49719 2008-11-02  Bruno Haible  <bruno@clisp.org>
49720
49721         Mark 'strcspn' obsolete.
49722         * modules/strcspn (Status, Notice): New sections.
49723
49724 2008-11-02  Bruno Haible  <bruno@clisp.org>
49725
49726         Mark 'rmdir' obsolete.
49727         * modules/rmdir (Status, Notice): New sections.
49728         * modules/clean-temp (Depends-on): Add rmdir.
49729         * modules/openat (Depends-on): Likewise.
49730
49731 2008-11-02  Bruno Haible  <bruno@clisp.org>
49732
49733         Mark 'raise' obsolete.
49734         * modules/raise (Status, Notice): New sections.
49735         (Include): Specify <signal.h>.
49736         * modules/stdio (Depends-on): Add raise.
49737         * modules/write (Depends-on): Likewise.
49738
49739 2008-11-02  Bruno Haible  <bruno@clisp.org>
49740
49741         Mark 'memset' obsolete.
49742         * modules/memset (Status, Notice): New sections.
49743
49744 2008-11-02  Bruno Haible  <bruno@clisp.org>
49745
49746         Mark 'memmove' obsolete.
49747         * modules/memmove (Status, Notice): New sections.
49748         * modules/argp (Depends-on): Add memmove.
49749         * modules/argz (Depends-on): Likewise.
49750         * modules/canonicalize (Depends-on): Likewise.
49751         * modules/canonicalize-lgpl (Depends-on): Likewise.
49752         * modules/fts (Depends-on): Likewise.
49753         * modules/getcwd (Depends-on): Likewise.
49754         * modules/human (Depends-on): Likewise.
49755         * modules/regex (Depends-on): Likewise.
49756         * modules/striconveh (Depends-on): Likewise.
49757         * modules/trim (Depends-on): Likewise.
49758         * modules/unistr/u8-move (Depends-on): Likewise.
49759         * modules/unistr/u16-move (Depends-on): Likewise.
49760         * modules/unistr/u32-move (Depends-on): Likewise.
49761
49762 2008-11-02  Bruno Haible  <bruno@clisp.org>
49763
49764         Mark 'memcpy' obsolete.
49765         * modules/memcpy (Status, Notice): New sections.
49766
49767 2008-11-02  Bruno Haible  <bruno@clisp.org>
49768
49769         Mark 'memcmp' obsolete.
49770         * modules/memcmp (Status, Notice): New sections.
49771         * modules/argmatch (Depends-on): Add memchr.
49772         * modules/backupfile (Depends-on): Likewise.
49773         * modules/c-strcasestr (Depends-on): Likewise.
49774         * modules/crypto/des (Depends-on): Likewise.
49775         * modules/csharpcomp (Depends-on): Likewise.
49776         * modules/fnmatch (Depends-on): Likewise.
49777         * modules/git-merge-changelog (Depends-on): Likewise.
49778         * modules/isnand (Depends-on): Likewise.
49779         * modules/isnand-nolibm (Depends-on): Likewise.
49780         * modules/isnanf (Depends-on): Likewise.
49781         * modules/isnanf-nolibm (Depends-on): Likewise.
49782         * modules/isnanl (Depends-on): Likewise.
49783         * modules/isnanl-nolibm (Depends-on): Likewise.
49784         * modules/mbchar (Depends-on): Likewise.
49785         * modules/memcoll (Depends-on): Likewise.
49786         * modules/quotearg (Depends-on): Likewise.
49787         * modules/regex (Depends-on): Likewise.
49788         * modules/relocatable-prog (Depends-on): Likewise.
49789         * modules/same (Depends-on): Likewise.
49790         * modules/signbit (Depends-on): Likewise.
49791         * modules/strcasestr-simple (Depends-on): Likewise.
49792         * modules/unictype/gen-ctype (Depends-on): Likewise.
49793         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49794         * modules/uniname/uniname (Depends-on): Likewise.
49795         * modules/unistr/u8-cmp (Depends-on): Likewise.
49796
49797 2008-11-02  Bruno Haible  <bruno@clisp.org>
49798
49799         Mark 'memchr' obsolete.
49800         * modules/memchr (Status, Notice): New sections.
49801         * modules/argp (Depends-on): Add memchr.
49802         * modules/base64 (Depends-on): Likewise.
49803         * modules/c-strcasestr (Depends-on): Likewise.
49804         * modules/chdir-long (Depends-on): Likewise.
49805         * modules/fnmatch (Depends-on): Likewise.
49806         * modules/getsubopt (Depends-on): Likewise.
49807         * modules/git-merge-changelog (Depends-on): Likewise.
49808         * modules/glob (Depends-on): Likewise.
49809         * modules/strcasestr-simple (Depends-on): Likewise.
49810         * modules/strnlen (Depends-on): Likewise.
49811
49812 2008-11-02  Bruno Haible  <bruno@clisp.org>
49813
49814         Mark 'atexit' obsolete.
49815         * modules/atexit (Status, Notice): New sections.
49816         * modules/chdir-long (Depends-on): Add atexit.
49817         * modules/wait-process (Depends-on): Likewise.
49818
49819 2008-11-02  Bruno Haible  <bruno@clisp.org>
49820
49821         * gnulib-tool: New option --with-obsolete.
49822         (func_usage): Document it.
49823         (func_modules_transitive_closure): Drop obsolete dependencies if
49824         incobsolete is not true.
49825         (func_import): Read and save the incobsolete variable to the cache.
49826
49827 2008-11-02  Bruno Haible  <bruno@clisp.org>
49828
49829         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49830         * gnulib-tool: New option --extract-status.
49831         (func_usage): Document it.
49832         (sed_extract_prog): Recognize it.
49833         (func_get_status): New function.
49834
49835 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49836
49837         * modules/sockets (License): Change from LGPL to LGPLv2+.
49838
49839 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49840
49841         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49842
49843 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49844
49845         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49846         Mention times and sys_times.
49847         * modules/sys_times, modules/sys_times-tests: New modules.
49848         * modules/times, modules/times-tests: Likewise
49849         * m4/sys_times_h.m4: New file.
49850         * lib/sys_times.in.h: Likewise
49851         * lib/times.c: Likewise.
49852         * tests/test-sys_times.c: Likewise.
49853         * tests/test-times.c: Likewise.
49854         * doc/posix-headers/sys_times.texi: Update.
49855         * doc/posix-functions/times.texi: Update.
49856
49857 2008-10-28  Jim Meyering  <meyering@redhat.com>
49858
49859         * modules/tempname (Depends-on): Add lstat.
49860
49861         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49862
49863 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49864
49865         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49866         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49867         using idiom used elsewhere in gnulib.
49868
49869 2008-10-27  Jim Meyering  <meyering@redhat.com>
49870
49871         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49872
49873 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49874
49875         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49876         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49877         programs.
49878         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49879
49880 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49881
49882         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49883
49884 2008-10-27  Bruno Haible  <bruno@clisp.org>
49885
49886         * tests/test-lstat.c: Include <stdio.h>.
49887
49888 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49889
49890         * modules/lstat-tests: New module.
49891         * tests/test-lstat.c: New file.
49892
49893 2008-10-26  Jim Meyering  <meyering@redhat.com>
49894
49895         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49896
49897 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49898             Bruno Haible  <bruno@clisp.org>
49899
49900         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49901         * modules/configmake (Include): Add a note that the include must come
49902         after all system headers.
49903         * lib/javaversion.c: Include configmake.h after all other includes.
49904
49905 2008-10-26  Bruno Haible  <bruno@clisp.org>
49906
49907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49908         HAVE_STRUCT_RANDOM_DATA to 1.
49909         (gl_STDLIB_H): Simplify.
49910
49911 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49912
49913         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49914         substitute HAVE_STRUCT_RANDOM_DATA.
49915         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49916         random_data.
49917         * modules/stdlib (Makefile.am): Substitute
49918         HAVE_STRUCT_RANDOM_DATA.
49919
49920 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49921
49922         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49923         * doc/gnulib-intro.texi (Copyright): Likewise.
49924
49925 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49926
49927         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49928         findings.
49929
49930 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49931             Bruno Haible  <bruno@clisp.org>
49932
49933         * lib/unistd.in.h: Include <winsock2.h>.
49934         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49935         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49936         Provide dummy declarations.
49937         (gethostname): Override.
49938         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49939         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49940         gl_PREREQ_SYS_H_WINSOCK2.
49941         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49942         * doc/posix-functions/gethostname.texi: More details.
49943
49944 2008-10-25  Bruno Haible  <bruno@clisp.org>
49945
49946         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49947         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49948         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49949
49950         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49951         here ...
49952         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49953         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49954         gl_UNISTD_H_DEFAULTS.
49955
49956 2008-10-25  Eric Blake  <ebb9@byu.net>
49957
49958         signbit: avoid spurious compiler failure
49959         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49960         declarations inside function.
49961
49962 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49963             Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49966         * modules/random_r (Depends-on): Add stdint.
49967
49968 2008-10-24  Bruno Haible  <bruno@clisp.org>
49969
49970         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49971         Eggert.
49972         * modules/strerror (License): Likewise.
49973
49974 2008-10-24  Jim Meyering  <meyering@redhat.com>
49975
49976         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49977         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49978
49979 2008-10-24  Eric Blake  <ebb9@byu.net>
49980
49981         getgroups: fix compilation when getgroups is available
49982         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49983         but with <config.h> override of getgroups disabled.
49984
49985 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49986
49987         * doc/gnulib.texi (Header files): Add note about C++ problems.
49988         Explained by Bruno Haible <bruno@clisp.org>.
49989
49990 2008-10-23  Bruno Haible  <bruno@clisp.org>
49991
49992         Define a dummy SA_NODEFER macro on Interix.
49993         * lib/signal.in.h (SA_NODEFER): Define fallback.
49994         Reported by Aleksey Cheusov <cheusov@tut.by> via
49995         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49996
49997 2008-10-23  Bruno Haible  <bruno@clisp.org>
49998
49999         * modules/freadahead (License): Change to LGPLv2+.
50000         Suggested by Simon Josefsson.
50001
50002 2008-10-23  Jim Meyering  <meyering@redhat.com>
50003
50004         random_r: new module
50005         * modules/random_r: New file.
50006         * m4/random_r.m4: New file.
50007         * lib/random_r.c: New file, from glibc.
50008         * modules/random_r-tests: New file.
50009         * tests/test-random_r.c: New file.
50010         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50011          Declare.
50012         (RAND_MAX): Define.
50013         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50014         * modules/stdlib: Substitute them, too.
50015         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50016         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50017         * doc/glibc-functions/random_r.texi: Likewise.
50018         * doc/glibc-functions/setstate_r.texi: Likewise.
50019         * doc/glibc-functions/srandom_r.texi: Likewise.
50020         * config/srclist.txt: Mention it.
50021
50022 2008-10-23  David Lutterkort  <lutter@redhat.com>
50023
50024         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50025         link requirement
50026
50027 2008-10-23  Jim Meyering  <meyering@redhat.com>
50028
50029         selinux-h: mark parameters of stub functions as intentionally unused
50030         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50031         * lib/se-context.in.h: Likewise.
50032
50033 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50034
50035         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50036
50037 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50038
50039         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50040
50041 2008-10-22  Eric Blake  <ebb9@byu.net>
50042
50043         glthread/thread: avoid compiler warning
50044         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50045         Add unreachable abort to silence compiler.
50046
50047 2008-10-22  Eric Blake  <ebb9@byu.net>
50048
50049         netdb: also supply struct addrinfo for cygwin 1.5.x
50050         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50051         older cygwin.
50052         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50053         cygwin.
50054         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50055
50056 2008-10-22  Bruno Haible  <bruno@clisp.org>
50057
50058         * users.txt: Update entry about pspp.
50059
50060 2008-10-21  Bruno Haible  <bruno@clisp.org>
50061
50062         Simplification.
50063         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50064         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50065
50066         Simplification.
50067         * lib/ioctl.c (ioctl): Don't undefine.
50068         * lib/socket.c (socket): Don't undefine.
50069
50070         Remove unused module indicator macros.
50071         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50072         GNULIB_$1 as a C macro.
50073
50074         * doc/posix-functions/close.texi: Undo last change.
50075         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50076         Windows platforms.
50077
50078 2008-10-21  Bruno Haible  <bruno@clisp.org>
50079
50080         Add gethostname() declaration to <unistd.h>.
50081         * lib/unistd.in.h (gethostname): New declaration.
50082         * lib/gethostname.c: Include <unistd.h>.
50083         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50084         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50086         and HAVE_GETHOSTNAME.
50087         * modules/gethostname (Depends-on): Add unistd.
50088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50089         (Include): Specify <unistd.h>.
50090         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50091         HAVE_GETHOSTNAME.
50092         * tests/test-gethostname.c: Include <unistd.h> first.
50093
50094 2008-10-21  Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50097         * modules/select-tests (Depends-on): Likewise.
50098         Reported by Simon Josefsson.
50099
50100 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50101
50102         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50103         * lib/accept.c: New file, based on winsock.c.
50104         * lib/bind.c: New file, based on winsock.c.
50105         * lib/connect.c: New file, based on winsock.c.
50106         * lib/getpeername.c: New file, based on winsock.c.
50107         * lib/getsockname.c: New file, based on winsock.c.
50108         * lib/getsockopt.c: New file, based on winsock.c.
50109         * lib/ioctl.c: New file, based on winsock.c.
50110         * lib/listen.c: New file, based on winsock.c.
50111         * lib/recv.c: New file, based on winsock.c.
50112         * lib/recvfrom.c: New file, based on winsock.c.
50113         * lib/send.c: New file, based on winsock.c.
50114         * lib/sendto.c: New file, based on winsock.c.
50115         * lib/setsockopt.c: New file, based on winsock.c.
50116         * lib/shutdown.c: New file, based on winsock.c.
50117         * lib/socket.c: New file, based on winsock.c.
50118         * lib/w32sock.h: New file, based on winsock.c.
50119         * lib/winsock.c: Remove file.
50120         * modules/accept: Likewise.
50121         * modules/bind: Likewise.
50122         * modules/connect: Likewise.
50123         * modules/getpeername: Likewise.
50124         * modules/getsockname: Likewise.
50125         * modules/getsockopt: Likewise.
50126         * modules/ioctl: Likewise.
50127         * modules/listen: Likewise.
50128         * modules/recv: Likewise.
50129         * modules/recvfrom: Likewise.
50130         * modules/send: Likewise.
50131         * modules/sendto: Likewise.
50132         * modules/setsockopt: Likewise.
50133         * modules/shutdown: Likewise.
50134         * modules/socket: Use socket.c instead of winsock.c.
50135         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50136         * doc/posix-functions/accept.texi: Doc fix.
50137         * doc/posix-functions/bind.texi: Doc fix.
50138         * doc/posix-functions/close.texi: Doc fix.
50139         * doc/posix-functions/connect.texi: Doc fix.
50140         * doc/posix-functions/getpeername.texi: Doc fix.
50141         * doc/posix-functions/getsockname.texi: Doc fix.
50142         * doc/posix-functions/getsockopt.texi: Doc fix.
50143         * doc/posix-functions/ioctl.texi: Doc fix.
50144         * doc/posix-functions/listen.texi: Doc fix.
50145         * doc/posix-functions/recv.texi: Doc fix.
50146         * doc/posix-functions/recvfrom.texi: Doc fix.
50147         * doc/posix-functions/send.texi: Doc fix.
50148         * doc/posix-functions/sendto.texi: Doc fix.
50149         * doc/posix-functions/setsockopt.texi: Doc fix.
50150         * doc/posix-functions/shutdown.texi: Doc fix.
50151         * doc/posix-functions/socket.texi: Doc fix.
50152
50153 2008-10-20  Bruno Haible  <bruno@clisp.org>
50154
50155         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50156         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50157         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50158         as an alias for SIGABRT.
50159         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50160         (sigaction): Map it to SIGABRT.
50161         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50162
50163 2008-10-20  Bruno Haible  <bruno@clisp.org>
50164
50165         * lib/fts.c: Don't include lstat.h.
50166         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50167
50168         Move the lstat() declaration to <sys/stat.h>.
50169         * lib/lstat.h: Remove file.
50170         * lib/sys_stat.in.h: Add special invocation convention.
50171         (lstat): New declaration.
50172         * lib/lstat.c (orig_lstat): New function.
50173         (rpl_lstat): Use orig_lstat instead of lstat.
50174         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50175         AC_C_INLINE. Set REPLACE_LSTAT.
50176         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50177         and REPLACE_LSTAT.
50178         * modules/lstat (Files): Remove lib/lstat.h.
50179         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50180         (Include): Specify <sys/stat.h> instead of lstat.h.
50181         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50182         REPLACE_LSTAT.
50183         * NEWS: Mention the change.
50184
50185 2008-10-20  Bruno Haible  <bruno@clisp.org>
50186
50187         * modules/posix_spawn-tests: New file.
50188         * tests/test-posix_spawn3.c: New file.
50189
50190 2008-10-20  Bruno Haible  <bruno@clisp.org>
50191
50192         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50193         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50194         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50195         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50196         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50197
50198 2008-10-20  Bruno Haible  <bruno@clisp.org>
50199
50200         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50201         of posix_spawn on AIX 5.3.
50202
50203 2008-10-20  Bruno Haible  <bruno@clisp.org>
50204
50205         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50206
50207 2008-10-20  Bruno Haible  <bruno@clisp.org>
50208
50209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50210         of AC_LANG_PROGRAM.
50211
50212 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50213
50214         * lib/netdb.in.h: Don't define GNU specific constants until they
50215         are supported or needed.  Reported by Bruno Haible
50216         <bruno@clisp.org>.
50217
50218 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50219
50220         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50221
50222 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50223
50224         * lib/getaddrinfo.h: Remove file.
50225         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50226         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50227         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50228         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50229         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50230         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50231         * tests/test-getaddrinfo.c: Likewise.
50232         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50233         * NEWS: Mention change.
50234
50235 2008-10-19  Bruno Haible  <bruno@clisp.org>
50236
50237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50238
50239 2008-10-19  Bruno Haible  <bruno@clisp.org>
50240
50241         * lib/wait-process.c: Include simply <sys/wait.h>.
50242         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50243         WIFSTOPPED): Remove fallback definitions.
50244         * modules/wait-process (Depends-on): Add sys_wait.
50245
50246         New module 'sys_wait'.
50247         * modules/sys_wait: New file.
50248         * lib/sys_wait.in.h: New file, partially copied from
50249         lib/wait-process.c.
50250         * m4/sys_wait_h.m4: New file.
50251         * doc/posix-headers/sys_wait.texi: Mention the new module.
50252
50253 2008-10-19  Bruno Haible  <bruno@clisp.org>
50254
50255         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50256
50257 2008-10-19  Bruno Haible  <bruno@clisp.org>
50258
50259         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50260         * lib/wait-process.c (WAIT_T): Remove type.
50261         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50262         (wait_subprocess): Update.
50263
50264 2008-10-19  Bruno Haible  <bruno@clisp.org>
50265
50266         New module 'atoll'.
50267         * modules/atoll: New file.
50268         * lib/stdlib.in.h (atoll): New declaration.
50269         * lib/atoll.c: New file, from glibc with modifications.
50270         * m4/atoll.m4: New file.
50271         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50272         HAVE_ATOLL.
50273         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50274         * doc/posix-functions/atoll.texi: Mention the new module.
50275
50276 2008-10-19  Bruno Haible  <bruno@clisp.org>
50277
50278         Add strtoull() declaration to <stdlib.h>.
50279         * lib/stdlib.in.h (strtoull): New declaration.
50280         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50281         Set HAVE_STRTOULL.
50282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50283         HAVE_STRTOULL.
50284         * modules/strtoull (Depends-on): Add stdlib.
50285         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50286         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50287         HAVE_STRTOULL.
50288
50289 2008-10-19  Bruno Haible  <bruno@clisp.org>
50290
50291         Add strtoll() declaration to <stdlib.h>.
50292         * lib/stdlib.in.h (strtoll): New declaration.
50293         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50294         Set HAVE_STRTOLL.
50295         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50296         HAVE_STRTOLL.
50297         * modules/strtoll (Depends-on): Add stdlib.
50298         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50299         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50300
50301 2008-10-19  Bruno Haible  <bruno@clisp.org>
50302
50303         * modules/bcopy (Depends-on): Add strings.
50304         (Include): Specify <strings.h>.
50305
50306 2008-10-19  Bruno Haible  <bruno@clisp.org>
50307
50308         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50309
50310 2008-10-19  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50313         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50314         mingw.
50315
50316 2008-10-19  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/atanl.c: Don't include isnanl.h.
50319         * lib/cosl.c: Likewise.
50320         * lib/ldexpl.c: Likewise.
50321         * lib/logl.c: Likewise.
50322         * lib/sinl.c: Likewise.
50323         * lib/sqrtl.c: Likewise.
50324         * lib/tanl.c: Likewise.
50325
50326         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50327         * lib/isnanf.h: Remove file.
50328         * lib/isnand.h: Remove file.
50329         * lib/isnanl.h: Remove file.
50330         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50331         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50332         macros.
50333         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50334         HAVE_ISNANF, don't define it as a C macro.
50335         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50336         HAVE_ISNAND, don't define it as a C macro.
50337         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50338         HAVE_ISNANL, don't define it as a C macro.
50339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50340         HAVE_ISNAN[FDL].
50341         * modules/isnanf (Files): Remove lib/isnanf.h.
50342         (Depends-on): Add math.
50343         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50344         (Include): Specify <math.h> instead of isnanf.h.
50345         * modules/isnand (Files): Remove lib/isnand.h.
50346         (Depends-on): Add math.
50347         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50348         (Include): Specify <math.h> instead of isnand.h.
50349         * modules/isnanl (Files): Remove lib/isnanl.h.
50350         (Depends-on): Add math.
50351         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50352         (Include): Specify <math.h> instead of isnanl.h.
50353         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50354         HAVE_ISNAN[FDL].
50355         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50356         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50357         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50358         * NEWS: Mention the change.
50359
50360 2008-10-18  Bruno Haible  <bruno@clisp.org>
50361
50362         Add getusershell(), setusershell(), endusershell() declarations to
50363         <unistd.h>.
50364         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50365         declarations.
50366         * lib/getusershell.c: Include unistd.h.
50367         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50368         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50369         HAVE_GETUSERSHELL.
50370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50371         and HAVE_GETUSERSHELL.
50372         * modules/getusershell (Depends-on): Add unistd, extensions.
50373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50374         (Include): Specify <unistd.h>.
50375         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50376         HAVE_GETUSERSHELL.
50377
50378 2008-10-18  Bruno Haible  <bruno@clisp.org>
50379
50380         Add a getloadavg() declaration to <stdlib.h>.
50381         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50382         getloadavg declaration.
50383         (getloadavg): New declaration.
50384         * lib/getloadavg.c: Include <stdlib.h> first.
50385         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50386         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50387         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50389         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50390         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50392         (Include): Specify <stdlib.h>.
50393         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50394         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50395
50396 2008-10-18  Bruno Haible  <bruno@clisp.org>
50397
50398         * lib/dirchownmod.c: Don't include lchmod.h.
50399
50400         Move the lchmod() declaration to <sys/stat.h>.
50401         * lib/lchmod.h: Remove file.
50402         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50403         (lchmod): New declaration, moved here from lib/lchown.h.
50404         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50405         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50406         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50407         and HAVE_LCHMOD.
50408         * modules/lchmod (Files): Remove lib/lchmod.h.
50409         (Depends-on): Add sys_stat, extensions.
50410         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50411         (Include): Specify <sys/stat.h> instead of lchmod.h.
50412         * modules/sys_stat (Depends-on): Add link-warning.
50413         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50414         definition of GL_LINK_WARNING.
50415         * NEWS: Mention the change.
50416
50417 2008-10-18  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/fchdir.c: Don't include dirfd.h.
50420         * lib/fts.c: Likewise.
50421         * lib/getcwd.c: Likewise.
50422         * lib/glob.c: Likewise.
50423
50424         Move the dirfd() declaration to <dirent.h>.
50425         * lib/dirfd.h: Remove file.
50426         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50427         (dirfd): New declaration.
50428         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50429         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50430         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50431         HAVE_DECL_DIRFD.
50432         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50433         HAVE_DECL_DIRFD.
50434         * modules/dirfd (Files): Remove lib/dirfd.h.
50435         (Depends-on): Add dirent, extensions.
50436         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50437         (Include): Specify <dirent.h> instead of dirfd.h.
50438         * modules/dirent (Depends-on): Add link-warning.
50439         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50440         definition of GL_LINK_WARNING.
50441         * NEWS: Mention the change.
50442
50443 2008-10-18  Bruno Haible  <bruno@clisp.org>
50444
50445         Move the euidaccess() declaration to <unistd.h>.
50446         * lib/euidaccess.h: Remove file.
50447         * lib/unistd.in.h (euidaccess): New declaration.
50448         * lib/euidaccess.c: Don't include euidaccess.h.
50449         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50450         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50452         and HAVE_EUIDACCESS.
50453         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50454         (Depends-on): Add unistd.
50455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50456         (Include): Specify <unistd.h> instead of euidaccess.h.
50457         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50458         HAVE_EUIDACCESS.
50459         * NEWS: Mention the change.
50460
50461 2008-10-18  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50464
50465         Move the getdomainname() declaration to <unistd.h>.
50466         * lib/getdomainname.h: Remove file.
50467         * lib/unistd.in.h (getdomainname): New declaration.
50468         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50469         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50470         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50471         HAVE_GETDOMAINNAME.
50472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50473         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50474         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50475         (Depends-on): Add unistd, extensions.
50476         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50477         (Includes): Specify <unistd.h> instead of getdomainname.h.
50478         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50479         HAVE_GETDOMAINNAME.
50480         * NEWS: Mention the change.
50481
50482 2008-10-18  Bruno Haible  <bruno@clisp.org>
50483
50484         * modules/dirent: New file.
50485         * m4/dirent_h.m4: New file.
50486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50487         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50488         * modules/fchdir (Files): Remove lib/dirent.in.h.
50489         (Depends-on): Add dirent.
50490         (Makefile.am): Move rules to modules/dirent.
50491         * doc/posix-headers/dirent.texi: Mention the new module.
50492
50493 2008-10-18  Bruno Haible  <bruno@clisp.org>
50494
50495         Avoid -Wunused-parameter warnings in public gnulib header files.
50496         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50497         macro.
50498         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50499
50500 2008-10-18  Bruno Haible  <bruno@clisp.org>
50501
50502         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50503         * doc/glibc-functions/error.texi: Mention the module 'error'.
50504         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50505         * doc/glibc-functions/getdomainname.texi: Mention the module
50506         'getdomainname'.
50507         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50508         * doc/glibc-functions/getpagesize.texi: Mention the module
50509         'getpagesize'.
50510         * doc/glibc-functions/getusershell.texi: Mention the module
50511         'getusershell'.
50512         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50513         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50514         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50515         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50516         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50517         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50518         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50519         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50520         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50521         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50522         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50523         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50524         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50525         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50526
50527 2008-10-17  Bruno Haible  <bruno@clisp.org>
50528
50529         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50530         HP-UX and IRIX, use -0.0L.
50531         * tests/test-ceill.c (minus_zero): Likewise.
50532         * tests/test-floorl.c (minus_zero): Likewise.
50533         * tests/test-frexpl.c (minus_zero): Likewise.
50534         * tests/test-isnan.c (minus_zerol): Likewise.
50535         * tests/test-isnanl.h (minus_zero): Likewise.
50536         * tests/test-ldexpl.c (minus_zero): Likewise.
50537         * tests/test-roundl.c (minus_zero): Likewise.
50538         * tests/test-signbit.c (minus_zerol): Likewise.
50539         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50540         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50541         * tests/test-truncl.c (minus_zero): Likewise.
50542         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50543         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50544         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50545         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50546
50547 2008-10-17  Bruno Haible  <bruno@clisp.org>
50548
50549         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50550         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50551         that it gets activated only for gcc >= 3.0.
50552         * lib/dirent.in.h: Likewise.
50553         * lib/errno.in.h: Likewise.
50554         * lib/fcntl.in.h: Likewise.
50555         * lib/float.in.h: Likewise.
50556         * lib/iconv.in.h: Likewise.
50557         * lib/inttypes.in.h: Likewise.
50558         * lib/locale.in.h: Likewise.
50559         * lib/math.in.h: Likewise.
50560         * lib/netdb.in.h: Likewise.
50561         * lib/netinet_in.in.h: Likewise.
50562         * lib/search.in.h: Likewise.
50563         * lib/signal.in.h: Likewise.
50564         * lib/spawn.in.h: Likewise.
50565         * lib/stdarg.in.h: Likewise.
50566         * lib/stdint.in.h: Likewise.
50567         * lib/stdio.in.h: Likewise.
50568         * lib/stdlib.in.h: Likewise.
50569         * lib/string.in.h: Likewise.
50570         * lib/strings.in.h: Likewise.
50571         * lib/sys_file.in.h: Likewise.
50572         * lib/sys_ioctl.in.h: Likewise.
50573         * lib/sys_select.in.h: Likewise.
50574         * lib/sys_socket.in.h: Likewise.
50575         * lib/sys_stat.in.h: Likewise.
50576         * lib/sys_time.in.h: Likewise.
50577         * lib/sysexits.in.h: Likewise.
50578         * lib/time.in.h: Likewise.
50579         * lib/unistd.in.h: Likewise.
50580         * lib/wchar.in.h: Likewise.
50581         * lib/wctype.in.h: Likewise.
50582         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50583
50584 2008-10-17  Jim Meyering  <meyering@redhat.com>
50585
50586         ignore-value: don't depend on inline module
50587         * modules/ignore-value (Depends-on): Remove 'inline'.
50588         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50589         Suggestion from Bruno Haible.
50590
50591 2008-10-17  Bruno Haible  <bruno@clisp.org>
50592
50593         New implementation of condition variables for Win32.
50594         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50595         (gl_linked_waitqueue_t): New type.
50596         (gl_cond_t): Use it.
50597         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50598         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50599         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50600         (glthread_cond_init_func, glthread_cond_wait_func,
50601         glthread_cond_timedwait_func, glthread_cond_signal_func,
50602         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50603         Reimplemented on the basis of gl_linked_waitqueue_t.
50604         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50605         gl_waitqueue_t.
50606         (gl_rwlock_t): Update.
50607         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50608
50609 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50610
50611         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50612         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50613
50614 2008-10-17  Jim Meyering  <meyering@redhat.com>
50615
50616         ignore-value: new module
50617         * modules/ignore-value: New file.
50618         * lib/ignore-value.h: New file.
50619         * MODULES.html.sh (Compiler warning management): New section,
50620         just for this module.  More to come.
50621
50622 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50625         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50626         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50627
50628 2008-10-16  Jim Meyering  <meyering@redhat.com>
50629
50630         openat-die.c: avoid 'no previous prototype' warning
50631         * lib/openat-die.c: Include "openat.h".
50632         Reported by Reuben Thomas <rrt@sc3d.org>.
50633
50634 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50635
50636         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50637         * lib/netdb.in.h: Fix typo.
50638         Reported by Bruno Haible  <bruno@clisp.org>
50639
50640         * lib/netdb.in.h: Include sys/socket.h for platforms without
50641         netdb.h, to get structures like hostent on MinGW.
50642         * modules/netdb (Depends-on): Add sys_socket.
50643
50644 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50645
50646         * modules/netdb, modules/netdb-tests: New file.
50647         * m4/netdb_h.m4: New file.
50648         * lib/netdb.in.h: Add, currently just an empty file pending
50649         definitions.
50650         * tests/test-netdb.c: New file.
50651         * doc/posix-headers/netdb.texi: Mention that we replace it if
50652         needed.
50653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50654         netdb.
50655
50656 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50657
50658         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50659         with code.
50660
50661 2008-10-13  Bruno Haible  <bruno@clisp.org>
50662
50663         * lib/glthread/cond.c (glthread_cond_wait_func,
50664         glthread_cond_timedwait_func): Add a comment.
50665
50666 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50667
50668         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50669         * tests/test-select.c: Likewise,
50670
50671 2008-10-13  Bruno Haible  <bruno@clisp.org>
50672
50673         * lib/glthread/cond.c (glthread_cond_wait_func,
50674         glthread_cond_timedwait_func): Fix variable name.
50675         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50676
50677 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50678
50679         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50681         struct sockaddr.sa_len.
50682         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50683
50684 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50685
50686         * build-aux/pmccabe2html: Add css and css_url parameters.
50687
50688 2008-10-12  Bruno Haible  <bruno@clisp.org>
50689
50690         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50691         calling aclx_get.
50692         Reported by Rainer Tammer <tammer@tammer.net>.
50693
50694 2008-10-12  Bruno Haible  <bruno@clisp.org>
50695
50696         Use msvcrt aware primitives for creation/termination of Win32 threads.
50697         * lib/glthread/thread.c: Include <process.h>.
50698         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50699         (wrapper_func): Update signature.
50700         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50701
50702 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50703             Bruno Haible  <bruno@clisp.org>
50704
50705         Provide a Win32 implementation of the 'cond' module.
50706         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50707         * lib/glthread/cond.c (glthread_cond_init_func,
50708         glthread_cond_wait_func, glthread_cond_timedwait_func,
50709         glthread_cond_signal_func, glthread_cond_broadcast_func,
50710         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50711         * modules/cond (Dependencies): Add gettimeofday.
50712
50713 2008-10-11  Bruno Haible  <bruno@clisp.org>
50714
50715         Make sleep work on older versions of mingw.
50716         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50717         only whether it exists.
50718         * doc/posix-functions/sleep.texi: Mention the problem with older
50719         versions of mingw.
50720
50721 2008-10-11  Bruno Haible  <bruno@clisp.org>
50722
50723         New module 'shutdown'.
50724         * modules/shutdown: New file.
50725         * lib/sys_socket.in.h (shutdown): New declaration.
50726         * lib/winsock.c (shutdown): New function.
50727         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50728         GNULIB_SHUTDOWN.
50729         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50730         * doc/posix-functions/shutdown.texi: Document the new module.
50731
50732 2008-10-11  Jim Meyering  <meyering@redhat.com>
50733
50734         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50735
50736 2008-10-11  Bruno Haible  <bruno@clisp.org>
50737
50738         New module 'fclose'.
50739         * modules/fclose: New file.
50740         * lib/stdio.in.h (fclose): New declaration.
50741         * lib/fclose.c: New file.
50742         * m4/fclose.m4: New file.
50743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50744         REPLACE_FCLOSE.
50745         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50746         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50747         REPLACE_FCLOSE.
50748         * modules/close (Depends-on): fclose.
50749         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50750
50751 2008-10-11  Bruno Haible  <bruno@clisp.org>
50752
50753         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50754         set errno and don't call _close.
50755
50756 2008-10-10  Bruno Haible  <bruno@clisp.org>
50757
50758         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50759         ACL, not afterwards. Fixes test failure on Cygwin.
50760
50761 2008-10-09  Ben Pfaff  <blp@gnu.org>
50762
50763         * build-aux/announce-gen: Fix gnulib version related part of usage
50764         message.  Die with a useful error message if no tarballs are
50765         found.
50766
50767 2008-10-10  Jim Meyering  <meyering@redhat.com>
50768
50769         bootstrap: use git's --depth=N option only if it's supported
50770         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50771         recognize the --depth option.  Reported by Pádraig Brady.
50772
50773 2008-10-09  Bruno Haible  <bruno@clisp.org>
50774
50775         New module 'ioctl'.
50776         * modules/ioctl: New file.
50777         * lib/sys_socket.in.h (ioctl): Remove declaration.
50778         * lib/winsock.c: Include <sys/ioctl.h>.
50779         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50780         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50781         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50782         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50783         * doc/posix-functions/ioctl.texi: Mention the new module.
50784
50785 2008-10-09  Bruno Haible  <bruno@clisp.org>
50786
50787         New module 'sys_ioctl'.
50788         * lib/sys_ioctl.in.h: New file.
50789         * m4/sys_ioctl_h.m4: New file.
50790         * modules/sys_ioctl: New file.
50791         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50792
50793 2008-10-09  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50796         * lib/winsock.c: Include <stdarg.h>.
50797         (rpl_ioctl): Change to second argument 'int' and then varargs.
50798
50799 2008-10-09  Bruno Haible  <bruno@clisp.org>
50800
50801         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50802         when the sys_socket module is present and the system has <winsock2.h>.
50803
50804 2008-10-09  Bruno Haible  <bruno@clisp.org>
50805
50806         * doc/posix-functions/close.texi: Mention module 'close' instead of
50807         module 'sys_socket'.
50808
50809 2008-10-09  Bruno Haible  <bruno@clisp.org>
50810
50811         * doc/glibc-headers/sys_ioctl.texi: New file.
50812         * doc/gnulib.texi: Include it.
50813
50814 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50815             Bruno Haible  <bruno@clisp.org>
50816
50817         Combine the two replacements of 'close'.
50818         * lib/sys_socket.in.h (close): Define to a reminder to include
50819         <unistd.h>.
50820         (_gl_close_fd_maybe_socket): New declaration.
50821         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50822         * lib/winsock.c (close): Remove undefinition.
50823         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50824         needed for the gnulib module 'close'.
50825         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50826         define to an error symbol or to a warning, if suitable.
50827         * lib/close.c: Include <sys/socket.h>.
50828         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50829         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50830         UNISTD_H_HAVE_WINSOCK2_H.
50831         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50833         UNISTD_H_HAVE_WINSOCK2_H.
50834         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50835         (configure.ac): Set a module indicator.
50836         (Makefile.am): Substitute GNULIB_CLOSE.
50837         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50838         * modules/poll-tests (Depends-on): Add close.
50839         * modules/select-tests (Depends-on): Likewise.
50840
50841 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50842             Bruno Haible  <bruno@clisp.org>
50843
50844         New module 'close'.
50845         * modules/close: New file.
50846         * lib/unistd.in.h (close): Move declaration out of the
50847         FCHDIR_REPLACEMENT scope.
50848         (_gl_unregister_fd): New declaration.
50849         * lib/close.c: New file.
50850         * lib/fchdir.c (rpl_close): Remove function.
50851         * m4/close.m4: New file.
50852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50853         close.
50854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50855         REPLACE_CLOSE.
50856         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50857         REPLACE_CLOSE.
50858         * modules/fchdir (Depends-on): Add close.
50859
50860 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50861             Bruno Haible  <bruno@clisp.org>
50862
50863         * lib/fcntl.in.h (open): Simplify conditionals.
50864         (_gl_register_fd): New declaration.
50865         * lib/fchdir.c (rpl_open): Remove function.
50866         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50867         also.
50868         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50869         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50870         open.
50871
50872 2008-10-09  Jim Meyering  <meyering@redhat.com>
50873
50874         GNUmakefile: use the more name-space-friendly "_version"
50875         * top/GNUmakefile (_dummy): Update.
50876         (_version): Rename from "version".
50877
50878 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50879             Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50882         rpl_close.
50883         (_gl_register_fd): New function, extracted from rpl_open.
50884         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50885         (rpl_open, rpl_opendir): Use _gl_register_fd.
50886
50887 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50888
50889         Fix organization of 'open' replacement.
50890         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50891         (gl_FUNC_OPEN): Use it.
50892         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50893
50894 2008-10-08  Bruno Haible  <bruno@clisp.org>
50895
50896         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50897
50898 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50899
50900         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50901         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50902         listen).
50903
50904 2008-10-08  Eric Blake  <ebb9@byu.net>
50905
50906         GNUmakefile: add 'make version' target
50907         * top/GNUmakefile (_curr-ver): Split version update rules...
50908         (version): ...into a target.
50909
50910 2008-10-07  Bruno Haible  <bruno@clisp.org>
50911
50912         Use a more portable replacement expression for -0.0L.
50913         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50914         instead of -0.0L. Fix m4 quotation.
50915
50916         * tests/test-signbit.c: Include <float.h>.
50917         (minus_zero): New variable.
50918         (test_signbitl): Use minus_zero instead of -zero.
50919         * modules/signbit-tests (Depends-on): Add float.
50920
50921         * tests/test-ceill.c: Include <float.h>.
50922         (zero): Remove variable.
50923         (minus_zero): New variable.
50924         (main): Use minus_zero instead of -zero.
50925         * modules/ceill-tests (Depends-on): Add float.
50926
50927         * tests/test-floorl.c: Include <float.h>.
50928         (zero): Remove variable.
50929         (minus_zero): New variable.
50930         (main): Use minus_zero instead of -zero.
50931         * modules/floorl-tests (Depends-on): Add float.
50932
50933         * tests/test-roundl.c: Include <float.h>.
50934         (zero): Remove variable.
50935         (minus_zero): New variable.
50936         (main): Use minus_zero instead of -zero.
50937         * modules/roundl-tests (Depends-on): Add float.
50938
50939         * tests/test-truncl.c: Include <float.h>.
50940         (zero): Remove variable.
50941         (minus_zero): New variable.
50942         (main): Use minus_zero instead of -zero.
50943         * modules/truncl-tests (Depends-on): Add float.
50944
50945         * tests/test-frexpl.c (zero): Remove variable.
50946         (minus_zero): New variable.
50947         (main): Use minus_zero instead of -zero.
50948         * modules/frexpl-tests (Depends-on): Add float.
50949
50950         * tests/test-isnan.c (zerol): Remove variable.
50951         (minus_zerol): New variable.
50952         (test_long_double): Use minus_zerol instead of -zerol.
50953         * modules/isnan-tests (Depends-on): Add float.
50954
50955         * tests/test-isnanl.h (zero): Remove variable.
50956         (minus_zero): New variable.
50957         (main): Use minus_zero instead of -zero.
50958         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50959         * modules/isnanl-tests (Depends-on): Add float.
50960
50961         * tests/test-ldexpl.c (zero): Remove variable.
50962         (minus_zero): New variable.
50963         (main): Use minus_zero instead of -zero.
50964         * modules/ldexpl-tests (Depends-on): Add float.
50965
50966         * tests/test-snprintf-posix.h (zerol): Remove variable.
50967         (minus_zerol): New variable.
50968         (test_function): Use minus_zerol instead of -zerol.
50969         * modules/snprintf-posix-tests (Depends-on): Add float.
50970         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50971
50972         * tests/test-sprintf-posix.h (zerol): Remove variable.
50973         (minus_zerol): New variable.
50974         (test_function): Use minus_zerol instead of -zerol.
50975         * modules/sprintf-posix-tests (Depends-on): Add float.
50976         * modules/vsprintf-posix-tests (Depends-on): Add float.
50977
50978         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50979         (minus_zerol): New variable.
50980         (test_function): Use minus_zerol instead of -zerol.
50981         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50982
50983         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50984         (minus_zerol): New variable.
50985         (test_function): Use minus_zerol instead of -zerol.
50986         * modules/vasprintf-posix-tests (Depends-on): Add float.
50987
50988 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50989
50990         * MODULES.html.sh (Support for building documentation): Mention
50991         pmccabe2html.  Sort entries.
50992
50993         Add pmccabe2html module, from gnupdf.
50994         * build-aux/pmccabe.css: New file.
50995         * build-aux/pmccabe2html: New file.
50996         * m4/pmccabe2html.m4: New file.
50997         * modules/pmccabe2html: New file.
50998
50999 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51000
51001         flock: new module
51002         * MODULES.html.sh: Add to list of modules.
51003         * lib/flock.c: flock implementation for Windows and Unix systems
51004         which have fcntl.
51005         * doc/glibc-functions/flock.texi: Update documentation.
51006         * lib/sys_file.in.h: <sys/file.h> header file.
51007         * m4/flock.m4: M4 macros.
51008         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51009         * modules/flock: flock module.
51010         * modules/flock-tests: flock tests module.
51011         * modules/sys_file: sys/file.h module.
51012         * tests/test-flock.c: test suite for flock.
51013
51014 2008-10-06  Jim Meyering  <meyering@redhat.com>
51015
51016         bootstrap: check for LT_INIT more portably still ;-)
51017         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51018         Spotted by Bruno Haible.
51019
51020 2008-10-06  Eric Blake  <ebb9@byu.net>
51021
51022         test-signbit: avoid tripping Irix cc bug on -0.0L
51023         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51024         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51025         entire testsuite consistent and avoids an Irix 6.2 bug.
51026
51027 2008-10-05  Bruno Haible  <bruno@clisp.org>
51028             Jim Meyering  <jim@meyering.net>
51029
51030         Add an option for ignoring EPIPE during close_stdout.
51031         * lib/closeout.h: Include <stdbool.h>.
51032         (close_stdout_set_ignore_EPIPE): New declaration.
51033         * lib/closeout.c: Include <stdbool.h>.
51034         (ignore_EPIPE): New variable.
51035         (close_stdout_set_ignore_EPIPE): New function.
51036         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51037         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51038         failure.
51039         * modules/closeout (Depends-on): Add stdbool.
51040
51041 2008-10-05  Bruno Haible  <bruno@clisp.org>
51042
51043         * modules/accept: New file.
51044         * modules/bind: New file.
51045         * modules/connect: New file.
51046         * modules/getpeername: New file.
51047         * modules/getsockname: New file.
51048         * modules/getsockopt: New file.
51049         * modules/listen: New file.
51050         * modules/recv: New file.
51051         * modules/recvfrom: New file.
51052         * modules/send: New file.
51053         * modules/sendto: New file.
51054         * modules/setsockopt: New file.
51055         * modules/socket: New file.
51056         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51057         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51058         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51059         the particular module is requested. Add a link warning when the
51060         particular module is not requested.
51061         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51062         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51063         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51064         the particular module is requested.
51065         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51066         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51067         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51068         * modules/sys_socket (Depends-on): Add link-warning.
51069         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51070         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51071         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51072         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51073         GL_LINK_WARNING.
51074         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51075         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51076         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51077         * doc/posix-functions/getpeername.texi: Mention the new module
51078         'getpeername'.
51079         * doc/posix-functions/getsockname.texi: Mention the new module
51080         'getsockname'.
51081         * doc/posix-functions/getsockopt.texi: Mention the new module
51082         'getsockopt'.
51083         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51084         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51085         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51086         * doc/posix-functions/send.texi: Mention the new module 'send'.
51087         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51088         * doc/posix-functions/setsockopt.texi: Mention the new module
51089         'setsockopt'.
51090         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51091         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51092         listen, connect, accept.
51093         * modules/select-tests (Depends-on): Likewise.
51094
51095 2008-10-05  Bruno Haible  <bruno@clisp.org>
51096
51097         * lib/winsock.c (strerror): Remove unused #undef.
51098         (rpl_close): Remove unused local variable.
51099
51100         * modules/sys_socket (Depends-on); Add errno.
51101
51102 2008-10-05  Bruno Haible  <bruno@clisp.org>
51103
51104         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51105         (select): Add a link warning when the 'select' module is not used.
51106         * modules/sys_select (Depends-on): Add link-warning.
51107         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51108         Suggested by Paolo Bonzini.
51109
51110 2008-10-05  Jim Meyering  <meyering@redhat.com>
51111
51112         bootstrap: check for LT_INIT more portably
51113         * build-aux/bootstrap: Avoid using grep -E, since it's not
51114         portable enough.  Suggestion from Bruno Haible.
51115
51116 2008-10-05  Bruno Haible  <bruno@clisp.org>
51117
51118         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51119         as being fixed by gnulib.
51120
51121 2008-10-05  Bruno Haible  <bruno@clisp.org>
51122
51123         * modules/select-tests: New file, mostly copied from
51124         modules/sys_select-tests.
51125         * tests/test-select.c: New file, mostly copied from
51126         tests/test-sys_select.c.
51127         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51128         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51129         (Makefile.am): Remove test_sys_select_LDADD.
51130
51131         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51132         to an undefined symbol, for an error message.
51133         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51134         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51135         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51136         winsock-select.c here.
51137         * modules/sys_select (Files): Remove lib/winsock-select.c.
51138         (Depends-on): Remove alloca.
51139         (Makefile.am): Substitute GNULIB_SELECT.
51140         * modules/select: New file.
51141         * doc/posix-functions/select.texi: Update.
51142
51143 2008-10-05  Bruno Haible  <bruno@clisp.org>
51144
51145         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51146         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51147         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51148         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51149         getdtablesize.
51150         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51151         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51152
51153 2008-10-05  Bruno Haible  <bruno@clisp.org>
51154
51155         * modules/getdtablesize-tests: New file.
51156         * tests/test-getdtablesize.c: New file.
51157
51158         New module 'getdtablesize'.
51159         * lib/unistd.in.h (getdtablesize): New declaration.
51160         * lib/getdtablesize.c: New file.
51161         * m4/getdtablesize.m4: New file.
51162         * modules/getdtablesize: New file.
51163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51164         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51165         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51166         HAVE_GETDTABLESIZE.
51167         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51168
51169 2008-10-05  Bruno Haible  <bruno@clisp.org>
51170
51171         * modules/sched (Makefile.am): Fix typo.
51172         Reported by Simon Josefsson.
51173
51174 2008-10-05  Jim Meyering  <meyering@redhat.com>
51175
51176         bootstrap: check for LT_INIT, too
51177         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51178         are deprecated.  Suggestion from Ralf Wildenhues.
51179
51180 2008-10-05  Bruno Haible  <bruno@clisp.org>
51181
51182         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51183         overriding them by ours.
51184         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51185
51186 2008-10-05  Jim Meyering  <meyering@redhat.com>
51187
51188         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51189         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51190         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51191
51192 2008-10-04  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/dup2 (License): Change to LGPLv2+.
51195         * modules/sleep (License): Likewise.
51196         * modules/perror (License): Likewise.
51197         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51198         Blake.
51199         * modules/signal (License): Likewise.
51200         * modules/sigprocmask (License): Likewise.
51201         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51202         Meyering.
51203
51204 2008-10-04  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51207         Reported by Rainer Tammer <tammer@tammer.net>.
51208
51209 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51210             Bruno Haible  <bruno@clisp.org>
51211
51212         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51213         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51214         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51215
51216 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51217
51218         filevercmp: new module
51219         * lib/filevercmp.h: New function filevercmp comparing version strings.
51220         * lib/filevercmp.c: Implementation of filevercmp function.
51221         * modules/filevercmp: Module metadata.
51222         * tests/test-filevercmp.c: Unit test for new module.
51223         * modules/filevercmp-tests: Unit test metadata.
51224         * MODULES.html.sh: Add filevercmp module.
51225
51226 2008-10-03  Bruno Haible  <bruno@clisp.org>
51227
51228         * lib/c-ctype.h: Add comment.
51229         Reported by Jim Meyering.
51230
51231 2008-10-02  Bruno Haible  <bruno@clisp.org>
51232
51233         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51234
51235 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51236
51237         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51238         name of bootstrap.conf accordingly.
51239
51240 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51241
51242         * build-aux/bootstrap: Install git-merge-changelog configuration
51243         items into .gitconfig if needed.
51244
51245 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51246
51247         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51248         git repository, and initialize/update it accordingly.
51249
51250 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51251
51252         * modules/fsync-tests: New file.
51253         * tests/test-fsync.c: New file.
51254
51255         New module 'fsync'.
51256         * lib/fsync.c: New file.
51257         * m4/fsync.m4: New file.
51258         * modules/fsync: New file.
51259         * lib/unistd.in.h (fsync): New declaration.
51260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51261         GNULIB_FSYNC and HAVE_FSYNC.
51262         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51263         * MODULES.html.sh (posix_functions): Add fsync.
51264         * doc/posix-functions/fsync.texi: Mention the new module.
51265
51266 2008-10-02  Jim Meyering  <meyering@redhat.com>
51267
51268         fts.c: sync with similar code from coreutils' remove.c
51269         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51270         Guard also with "#if defined __linux__", since for now at least,
51271         this code is Linux-kernel-specific.
51272
51273 2008-10-02  Jim Meyering  <meyering@redhat.com>
51274
51275         fts: bug fixes
51276         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51277         Include <sys/vfs.h>, not <sys/statfs.h>.
51278
51279         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51280         Include <sys/vfs.h>, not <sys/statfs.h>.
51281
51282 2008-10-01  Bruno Haible  <bruno@clisp.org>
51283
51284         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51285         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51286         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51287         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51288         * doc/posix-functions/posix_spawnp.texi: Likewise.
51289         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51290         whether posix_spawn actually works.
51291         * m4/pipe.m4 (gl_PIPE): Likewise.
51292         * modules/execute (Files): Add m4/posix_spawn.m4.
51293         * modules/pipe (Files): Add m4/posix_spawn.m4.
51294         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51295
51296 2008-10-01  Jim Meyering  <meyering@redhat.com>
51297
51298         remove trailing spaces
51299         * NEWS: Likewise.
51300         * lib/poll.c (poll): Likewise.
51301         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51302         * lib/winsock.c (rpl_close): Likewise.
51303         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51304         * modules/yield: Likewise.
51305         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51306         * tests/test-sys_select.c (connect_to_socket): Likewise.
51307
51308         fts.c: adjust a new interface to be more generally useful
51309         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51310         (fts_build): Adjust caller.
51311
51312 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51313
51314         * modules/cond-tests: New file.
51315         * tests/test-cond.c: New file.
51316
51317 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51318             Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/cond (Dependencies): Add errno, time.
51321         * lib/glthread/cond.h: Include <time.h>.
51322         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51323         across platforms.
51324
51325 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51326             Bruno Haible  <bruno@clisp.org>
51327
51328         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51329
51330 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51331             Bruno Haible  <bruno@clisp.org>
51332
51333         * modules/tls-tests (Depends-on): Add thread, yield.
51334         (configure.ac): Remove all checks.
51335         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51336         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51337         gl_thread_self): Remove definitions. Include glthread/thread.h and
51338         glthread/yield.h instead.
51339         (test_tls): Pass an additional NULL argument to gl_thread_join.
51340
51341 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51342             Bruno Haible  <bruno@clisp.org>
51343
51344         * modules/lock-tests (Depends-on): Add thread, yield.
51345         (configure.ac): Remove all checks.
51346         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51347         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51348         gl_thread_self): Remove definitions. Include glthread/thread.h and
51349         glthread/yield.h instead.
51350         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51351         additional NULL argument to gl_thread_join.
51352
51353 2008-09-30  Bruno Haible  <bruno@clisp.org>
51354
51355         Fix the Win32 implementation of the 'thread' module.
51356         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51357         pointer type.
51358         (gl_thread_self): Invoke gl_thread_self_func.
51359         (gl_thread_self_func): New declaration.
51360         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51361         (do_init_self_key, init_self_key): New functions.
51362         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51363         Remove some fields.
51364         (running_threads, running_lock): Remove variables.
51365         (get_current_thread_handle): New function.
51366         (gl_thread_self_func, wrapper_func, glthread_create_func,
51367         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51368         simplified.
51369
51370 2008-09-30  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51373         files.
51374
51375 2008-09-30  Jim Meyering  <meyering@redhat.com>
51376
51377         fts.m4: correct the test for statfs.f_type
51378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51379         when checking for statfs.f_type.
51380
51381 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51382
51383         tests: avoid some compiler warnings
51384         * tests/test-memchr.c (main): Pass NULL indirectly.
51385         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51386
51387 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51388
51389         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51390         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51391         exactly specified dayshifts.
51392         (dayshift): New rule.
51393         (rel): Add dayshift.
51394         (relative_time_table) [tomorrow, yesterday, today, now]:
51395         Use tDAY_SHIFT in place of tDAY_UNIT.
51396         * tests/test-getdate.c: Add tests for now-disallowed countable
51397         dayshifts, e.g., "4 yesterday ago".
51398
51399 2008-09-29  Bruno Haible  <bruno@clisp.org>
51400
51401         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51402         * tests/test-posix_spawn1.in.sh: Renamed from
51403         tests/test-posix_spawn.in.sh.
51404         * tests/test-posix_spawn2.c: New file.
51405         * tests/test-posix_spawn2.in.sh: New file.
51406         * modules/posix_spawnp-tests (Files): Update.
51407         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51408
51409 2008-09-29  Bruno Haible  <bruno@clisp.org>
51410
51411         Propagate effects of putenv/setenv/unsetenv to child processes.
51412         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51413         * lib/pipe.c (create_pipe): Likewise.
51414
51415 2008-09-29  Bruno Haible  <bruno@clisp.org>
51416
51417         Enable use of shell scripts as executables in mingw.
51418         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51419         run the program as a shell script.
51420         * lib/pipe.c (create_pipe): Likewise.
51421         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51422         resulting array.
51423
51424 2008-09-29  Eric Blake  <ebb9@byu.net>
51425
51426         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51427
51428 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51429
51430         * doc/posix-functions/accept.texi: Update mingw problems.
51431         * doc/posix-functions/bind.texi: Update mingw problems.
51432         * doc/posix-functions/close.texi: Update mingw problems.
51433         * doc/posix-functions/connect.texi: Update mingw problems.
51434         * doc/posix-functions/getpeername.texi: Update mingw problems.
51435         * doc/posix-functions/getsockname.texi: Update mingw problems.
51436         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51437         * doc/posix-functions/ioctl.texi: Update mingw problems.
51438         * doc/posix-functions/listen.texi: Update mingw problems.
51439         * doc/posix-functions/recv.texi: Update mingw problems.
51440         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51441         * doc/posix-functions/select.texi: Update mingw problems.
51442         * doc/posix-functions/send.texi: Update mingw problems.
51443         * doc/posix-functions/sendto.texi: Update mingw problems.
51444         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51445         * doc/posix-functions/socket.texi: Update mingw problems.
51446
51447 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51448             Bruno Haible  <bruno@clisp.org>
51449
51450         * lib/sys_select.in.h: Include sys/time.h.
51451         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51452         * modules/sys_select: Depend on sys_time.
51453         * tests/test-sys_select.c: Test that sys/select.h defines struct
51454         timeval fully.
51455
51456 2008-09-29  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51459         * lib/sys_select.in.h: Likewise.
51460
51461 2008-09-29  Bruno Haible  <bruno@clisp.org>
51462
51463         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51464
51465 2008-09-29  Bruno Haible  <bruno@clisp.org>
51466
51467         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51468         Set LIBSOCKET instead of augmenting LIBS.
51469         * modules/sockets (Link): New section.
51470         * modules/sockets-tests (test_sockets_LDADD): New variable.
51471         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51472         * modules/poll-tests (test_poll_LDADD): New variable.
51473         * NEWS: Document the change.
51474
51475 2008-09-29  Bruno Haible  <bruno@clisp.org>
51476
51477         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51478         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51479         ARPA_INET_H directly.
51480         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51481
51482 2008-09-28  Bruno Haible  <bruno@clisp.org>
51483
51484         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51485         from gl_HEADER_SYS_SOCKET.
51486         (gl_HEADER_SYS_SOCKET): Invoke it.
51487         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51488
51489 2008-09-28  Bruno Haible  <bruno@clisp.org>
51490
51491         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51492         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51493         Needed on OSF/1 4.0.
51494
51495 2008-09-28  Bruno Haible  <bruno@clisp.org>
51496
51497         Override open more carefully.
51498         * lib/open.c (orig_open): New function.
51499         (rpl_open): Use orig_open instead of open.
51500         * lib/fcntl.in.h: Add special invocation convention.
51501         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51502         (gl_FUNC_OPEN): Invoke it.
51503
51504         Override freopen more carefully.
51505         * lib/freopen.c (orig_freopen): New function.
51506         (rpl_freopen): Use orig_freopen instead of freopen.
51507         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51508         (gl_FUNC_FREOPEN): Invoke it.
51509
51510         Override fopen more carefully.
51511         * lib/fopen.c (orig_fopen): New function.
51512         (rpl_fopen): Use orig_fopen instead of fopen.
51513         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51514         (gl_FUNC_FOPEN): Invoke it.
51515         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51516
51517 2008-09-28  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51520         SIGPIPE.
51521
51522 2008-09-28  Bruno Haible  <bruno@clisp.org>
51523
51524         * tests/test-sigaction.c (handler, main): Disable the check whether
51525         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51526         glibc systems with LinuxThreads.
51527
51528 2008-09-28  Bruno Haible  <bruno@clisp.org>
51529
51530         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51531
51532         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51533         with AIX xlc.
51534         * lib/fcntl.in.h (open): Likewise.
51535         Reported by Rainer Tammer <tammer@tammer.net>.
51536
51537 2008-09-28  Bruno Haible  <bruno@clisp.org>
51538
51539         * modules/posix_spawnp-tests: New file.
51540         * tests/test-posix_spawn.c: New file.
51541         * tests/test-posix_spawn.in.sh: New file.
51542
51543         New module 'posix_spawnp'.
51544         * modules/posix_spawnp: New file.
51545         * lib/spawnp.c: New file, from GNU libc with modifications.
51546         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51547
51548         New module 'posix_spawn'.
51549         * modules/posix_spawn: New file.
51550         * lib/spawn.c: New file, from GNU libc with modifications.
51551         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51552
51553         New module 'posix_spawnattr_destroy'.
51554         * modules/posix_spawnattr_destroy: New file.
51555         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51556         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51557         module.
51558
51559         New module 'posix_spawnattr_setsigmask'.
51560         * modules/posix_spawnattr_setsigmask: New file.
51561         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51562         modifications.
51563         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51564         new module.
51565
51566         New module 'posix_spawnattr_getsigmask'.
51567         * modules/posix_spawnattr_getsigmask: New file.
51568         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51569         modifications.
51570         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51571         new module.
51572
51573         New module 'posix_spawnattr_setsigdefault'.
51574         * modules/posix_spawnattr_setsigdefault: New file.
51575         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51576         modifications.
51577         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51578         new module.
51579
51580         New module 'posix_spawnattr_getsigdefault'.
51581         * modules/posix_spawnattr_getsigdefault: New file.
51582         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51583         modifications.
51584         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51585         new module.
51586
51587         New module 'posix_spawnattr_setschedpolicy'.
51588         * modules/posix_spawnattr_setschedpolicy: New file.
51589         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51590         modifications.
51591         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51592         new module.
51593
51594         New module 'posix_spawnattr_getschedpolicy'.
51595         * modules/posix_spawnattr_getschedpolicy: New file.
51596         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51597         modifications.
51598         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51599         new module.
51600
51601         New module 'posix_spawnattr_setschedparam'.
51602         * modules/posix_spawnattr_setschedparam: New file.
51603         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51604         modifications.
51605         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51606         new module.
51607
51608         New module 'posix_spawnattr_getschedparam'.
51609         * modules/posix_spawnattr_getschedparam: New file.
51610         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51611         modifications.
51612         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51613         new module.
51614
51615         New module 'posix_spawnattr_setpgroup'.
51616         * modules/posix_spawnattr_setpgroup: New file.
51617         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51618         modifications.
51619         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51620         module.
51621
51622         New module 'posix_spawnattr_getpgroup'.
51623         * modules/posix_spawnattr_getpgroup: New file.
51624         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51625         modifications.
51626         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51627         module.
51628
51629         New module 'posix_spawnattr_setflags'.
51630         * modules/posix_spawnattr_setflags: New file.
51631         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51632         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51633         module.
51634
51635         New module 'posix_spawnattr_getflags'.
51636         * modules/posix_spawnattr_getflags: New file.
51637         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51638         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51639         module.
51640
51641         New module 'posix_spawnattr_init'.
51642         * modules/posix_spawnattr_init: New file.
51643         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51644         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51645         module.
51646
51647         New module 'posix_spawn_file_actions_destroy'.
51648         * modules/posix_spawn_file_actions_destroy: New file.
51649         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51650         modifications.
51651         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51652         the new module.
51653
51654         New module 'posix_spawn_file_actions_addopen'.
51655         * modules/posix_spawn_file_actions_addopen: New file.
51656         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51657         modifications.
51658         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51659         the new module.
51660
51661         New module 'posix_spawn_file_actions_adddup2'.
51662         * modules/posix_spawn_file_actions_adddup2: New file.
51663         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51664         modifications.
51665         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51666         the new module.
51667
51668         New module 'posix_spawn_file_actions_addclose'.
51669         * modules/posix_spawn_file_actions_addclose: New file.
51670         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51671         modifications.
51672         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51673         the new module.
51674
51675         New module 'posix_spawn_file_actions_init'.
51676         * modules/posix_spawn_file_actions_init: New file.
51677         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51678         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51679         new module.
51680
51681         New module 'posix_spawn-internal'.
51682         * modules/posix_spawn-internal: New file.
51683         * lib/spawn_int.h: New file, from GNU libc with modifications.
51684         * lib/spawni.c: New file, from GNU libc with modifications.
51685         * m4/posix_spawn.m4: New file.
51686
51687         New module 'spawn'.
51688         * modules/spawn: New file.
51689         * lib/spawn.in.h: New file, from GNU libc with modifications.
51690         * m4/spawn_h.m4: New file.
51691         * doc/posix-headers/spawn.texi: Mention the new module.
51692
51693 2008-09-28  Bruno Haible  <bruno@clisp.org>
51694
51695         * modules/sched-tests: New file.
51696         * tests/test-sched.c: New file.
51697
51698         New module 'sched'.
51699         * modules/sched: New file.
51700         * lib/sched.in.h: New file.
51701         * m4/sched_h.m4: New file.
51702         * doc/posix-headers/sched.texi: Mention the new module.
51703
51704 2008-09-27  Eric Blake  <ebb9@byu.net>
51705
51706         Fix previous patch, and tweak references to $0.
51707         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51708         (func_version, func_gnulib_dir): Don't call this program
51709         gnulib-tool.
51710         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51711         with using $0 in function.
51712         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51713         (func_fatal_error): Reuse the name the user invoked us with.
51714
51715 2008-09-27  Bruno Haible  <bruno@clisp.org>
51716
51717         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51718         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51719         (gl_ICONV_H): Not here.
51720         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51721         instead of assigning ICONV_H directly.
51722
51723         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51725         WCHAR_H directly.
51726
51727 2008-09-27  Bruno Haible  <bruno@clisp.org>
51728
51729         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51730         * modules/arpa_inet (Depends-on): Add link-warning.
51731         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51732         * modules/unistd (Makefile.am): Likewise.
51733
51734 2008-09-26  Bruno Haible  <bruno@clisp.org>
51735
51736         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51737         variables.
51738         (func_version): Essentially copied from gnulib-tool.
51739         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51740         func_readlink): Copied from gnulib-tool.
51741
51742 2008-09-26  Bruno Haible  <bruno@clisp.org>
51743
51744         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51745         invoking git-version-gen.
51746
51747 2008-09-26  Bruno Haible  <bruno@clisp.org>
51748
51749         * posix-modules: Update to directory names changed on 2008-01-19.
51750         Remove commas in output before splitting into words. No more need to
51751         avoid 'ftruncate' since 2007-02-19.
51752
51753 2008-09-26  Bruno Haible  <bruno@clisp.org>
51754
51755         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51756
51757 2008-09-26  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51760         * modules/fwriteerror (Depends-on): Add errno.
51761
51762 2008-09-26  Bruno Haible  <bruno@clisp.org>
51763
51764         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51765         * tests/test-vc-list-files-cvs.sh: Likewise.
51766
51767 2008-09-26  Bruno Haible  <bruno@clisp.org>
51768
51769         * doc/posix-headers/sys_resource.texi: Reorder items.
51770
51771 2008-09-26  Jim Meyering  <meyering@redhat.com>
51772
51773         fts: tweak inode comparison function
51774         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51775         inode numbers, as documented.
51776
51777         fts: sort dirent entries on inode number before traversing
51778         This avoids a quadratic, seek-related performance penalty when
51779         operating on a directory containing many entries (measurable at 10k;
51780         3.5 hours at 2 million entries with a cold cache) on certain types
51781         of file systems, including ext3 and ext4, but not tmpfs.
51782         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51783         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51784         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51785         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51786         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51787         (fts_build): Set the stat.st_ino member from D_INO.
51788         If it is likely to be useful, sort dirent entries on inode number.
51789
51790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51791         and the struct statfs.f_type member.
51792         * modules/fts (Depends-on): Add d-ino.
51793
51794 2008-09-26  Bruno Haible  <bruno@clisp.org>
51795
51796         * modules/sigpipe-die (Depends-on): Add sigpipe.
51797
51798         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51799         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51800         and GNULIB_STDIO_H_SIGPIPE are set.
51801         * lib/stdio-write.c: New file.
51802         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51803         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51804         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51805         REPLACE_STDIO_WRITE_FUNCS.
51806         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51807         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51808         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51809         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51810         * modules/stdio (Files): Add lib/stdio-write.c.
51811         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51812         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51813         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51814         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51815         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51816         REPLACE_FPRINTF_POSIX.
51817         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51818         REPLACE_PRINTF_POSIX.
51819         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51820         REPLACE_VFPRINTF_POSIX.
51821         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51822         REPLACE_VPRINTF_POSIX.
51823         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51824         SIGPIPE issue.
51825         * doc/posix-functions/fputc.texi: Likewise.
51826         * doc/posix-functions/fputs.texi: Likewise.
51827         * doc/posix-functions/fwrite.texi: Likewise.
51828         * doc/posix-functions/printf.texi: Likewise.
51829         * doc/posix-functions/putc.texi: Likewise.
51830         * doc/posix-functions/putchar.texi: Likewise.
51831         * doc/posix-functions/puts.texi: Likewise.
51832         * doc/posix-functions/vfprintf.texi: Likewise.
51833         * doc/posix-functions/vprintf.texi: Likewise.
51834
51835         * modules/safe-write (Depends-on): Add write.
51836
51837         * modules/sigpipe-tests: New file.
51838         * tests/test-sigpipe.c: New file.
51839         * tests/test-sigpipe.sh: New file.
51840
51841         * modules/write: New file.
51842         * lib/unistd.in.h: Include <sys/types.h>.
51843         (write): New declaration.
51844         * lib/write.c: New file.
51845         * m4/write.m4: New file.
51846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51847         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51848         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51849         GNULIB_WRITE, REPLACE_WRITE.
51850         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51851         and the SIGPIPE issue.
51852
51853         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51854         (raise): New declaration.
51855         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51856         (ext_signal): New function.
51857         (rpl_raise): New function.
51858         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51859         GNULIB_SIGNAL_H_SIGPIPE.
51860         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51861         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51862
51863         * modules/sigpipe: New file.
51864         * m4/sigpipe.m4: New file.
51865
51866 2008-09-25  Derek Price  <derek@ximbiot.com>
51867             Bruno Haible  <bruno@clisp.org>
51868
51869         * gnulib-tool (func_import): Report all license incompatibilities, not
51870         just the first one.
51871
51872 2008-09-25  Bruno Haible  <bruno@clisp.org>
51873
51874         * gnulib-tool (func_import): When computing the edits, consider not
51875         only the Makefile.ams that exist but also those that will be generated.
51876
51877 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51878
51879         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51880         fixes gnulib-tool --test warning about duplicate dependency.
51881
51882 2008-09-25  Bruno Haible  <bruno@clisp.org>
51883
51884         * gnulib-tool: Don't ask the user to perform edits in the generated
51885         Makefile.ams.
51886         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51887         apply to the Makefile.am being generated.
51888         (func_emit_tests_Makefile_am): Execute edits that apply to the
51889         Makefile.am being generated.
51890         (func_import): Setup list of Makefile.am edits before emitting the
51891         Makefile.ams, not at the end.
51892         (func_create_testdir): Update.
51893         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51894
51895 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51896
51897         * gnulib-tool (func_import): Store the --tests-base option in the
51898         comment in gnulib-cache.m4.
51899
51900 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51901
51902         * NEWS: Document increased portability that sys_select now provides.
51903
51904         * lib/sys_select.in.h: Install select wrapper.
51905         * lib/sys_socket.in.h: Use more descriptive name when there is no
51906         select wrapper.
51907         * lib/winsock-select.c: New.
51908         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51909         Require gl_HEADER_SYS_SOCKET.
51910         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51911         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51912         * tests/test-sys_select.c: Add functional tests.
51913
51914 2008-09-24  Eric Blake  <ebb9@byu.net>
51915
51916         open, fopen: close fd leak in last patch
51917         * lib/open.c (rpl_open): Close fd before returning error.
51918         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51919         * doc/posix-functions/open.texi (open): Document that Irix also
51920         has the bug.
51921         * doc/posix-functions/fopen.texi (fopen): Likewise.
51922         Reported by Paolo Bonzini.
51923
51924 2008-09-24  Bruno Haible  <bruno@clisp.org>
51925
51926         Ensure that a filename ending in a slash cannot be used to access a
51927         non-directory.
51928         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51929         to check whether it's really a directory.
51930         * lib/fopen.c: Include fcntl.h, unistd.h.
51931         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51932         and fdopen().
51933         * modules/fopen (Depends-on): Add unistd.
51934         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51935         * tests/test-fopen.c (main): Likewise.
51936         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51937         * doc/posix-functions/fopen.texi: Likewise.
51938         Reported by Eric Blake.
51939
51940 2008-09-23  Eric Blake  <ebb9@byu.net>
51941
51942         c-stack: avoid compiler optimizations when provoking overflow
51943         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51944         recursion harder to optimize, to ensure a stack overflow occurs.
51945         * tests/test-c-stack.c (recurse): Likewise.
51946         Borrowed from libsigsegv.
51947
51948         c-stack: work around Irix sigaltstack bug
51949         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51950         whether sigaltstack uses wrong end of stack_t (copied in part from
51951         libsigsegv).
51952         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51953         Irix bug, without requiring an over-allocation.
51954         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51955         bug.
51956
51957         fopen: document mingw bug on directories
51958         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51959         not allowing a stream visiting a directory, even though reading
51960         from such a stream is not portable.
51961
51962 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51963
51964         * lib/poll.c: Rewrite.
51965         * modules/poll: Depend on alloca.
51966
51967 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51968
51969         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51970         instead define prototypes for a full set of wrappers.  Ensure
51971         that Cygwin does not use the compatibility code, which is only
51972         for MinGW.
51973         * lib/winsock.c: New.
51974         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51975         * modules/sys_socket: Add lib/winsock.c.
51976
51977         * modules/poll-tests: Add errno and perror.
51978         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51979
51980 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51981
51982         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51983
51984 2008-09-23  Bruno Haible  <bruno@clisp.org>
51985
51986         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51987         * doc/glibc-functions/*: Likewise.
51988
51989 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51990
51991         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51992         success.
51993
51994 2008-09-22  Eric Blake  <ebb9@byu.net>
51995             Bruno Haible  <bruno@clisp.org>
51996
51997         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51998         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51999         supply %A but mishandle pseudo-NaN.
52000         Reported by Simon Josefsson.
52001
52002 2008-09-21  Bruno Haible  <bruno@clisp.org>
52003
52004         * tests/test-lock.c (main): Tweak skip message.
52005         * tests/test-tls.c (main): Likewise.
52006
52007 2008-09-21  Bruno Haible  <bruno@clisp.org>
52008
52009         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52010         whether 'struct sigaction' has sa_sigaction here...
52011         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52012         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52013
52014 2008-09-21  Bruno Haible  <bruno@clisp.org>
52015
52016         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52017         section.
52018         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52019         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52020         the new section.
52021         (Support for obsolete systems lacking POSIX:2001): New section.
52022         (String handling <string.h>): Move strdup to the new section.
52023         Suggested by Simon Josefsson and Paolo Bonzini.
52024
52025 2008-09-21  Bruno Haible  <bruno@clisp.org>
52026
52027         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52028         exponents in %e and %g results on 'long double'. Needed for mingw's
52029         improved *printf functions.
52030         * tests/test-vasprintf-posix.c (test_function): Likewise.
52031         * tests/test-snprintf-posix.h (test_function): Likewise.
52032         * tests/test-sprintf-posix.h (test_function): Likewise.
52033         Reported by Eric Blake.
52034
52035 2008-09-21  Bruno Haible  <bruno@clisp.org>
52036
52037         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52038         * tests/test-sprintf-posix.h (test_function): Likewise.
52039
52040 2008-09-21  Bruno Haible  <bruno@clisp.org>
52041
52042         * modules/getpass (Depends-on): Add strdup-posix.
52043
52044         New module 'strdup-posix'.
52045         * modules/strdup-posix: New file.
52046         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52047         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52049         REPLACE_STRDUP.
52050         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52051         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52052         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52053         strdup-posix.
52054
52055         * modules/strdup (Depends-on): Remove malloc-posix.
52056
52057 2008-09-20  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52060         Wildenhues.
52061
52062 2008-09-20  Bruno Haible  <bruno@clisp.org>
52063
52064         Ensure that wint_t gets defined on IRIX 5.3.
52065         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52066         * lib/wctype.in.h (wint_t): Likewise.
52067         (__wctype_wint_t): Remove type.
52068         (isw*): Use wint_t instead of __wctype_wint_t.
52069         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52070         * modules/wchar (Files): Add m4/wint_t.m4.
52071         (Makefile.am): Substitute HAVE_WINT_T.
52072         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52073         * tests/test-wctype.c: Check that wint_t is defined.
52074         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52075         * doc/posix-headers/wctype.texi: Likewise.
52076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52077
52078 2008-09-18  Bruno Haible  <bruno@clisp.org>
52079
52080         * gnulib-tool (func_exit): Update comment.
52081
52082 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52083
52084         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52085         assumes strdup exists and does not depend on strdup to return
52086         ENOMEM on out of memory conditions.
52087
52088 2008-09-18  Bruno Haible  <bruno@clisp.org>
52089
52090         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52091         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52092         digits for the exponent.
52093
52094 2008-09-18  Jim Meyering  <meyering@redhat.com>
52095             Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/vasnprintf.c (decimal_point_char): Define also if
52098         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52099
52100 2008-09-16  Bruno Haible  <bruno@clisp.org>
52101         and Eric Blake  <ebb9@byu.net>
52102
52103         vasnprintf: support Irix 5.3
52104         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52105         that mishandle long double infinity.
52106         Reported by Tom G. Christensen.
52107
52108 2008-09-16  Bruno Haible  <bruno@clisp.org>
52109
52110         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52111         Solaris 9.
52112         * doc/glibc-functions/alphasort.texi: Likewise.
52113         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52114
52115 2008-09-16  Jim Meyering  <meyering@redhat.com>
52116
52117         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52118         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52119         a umask modification leak out of a subshell.  Otherwise, the
52120         opensolaris /bin/sh would be accepted and thus cause unwarranted
52121         failures in the coreutils test suite.
52122
52123 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52124
52125         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52126         to succeed.
52127
52128 2008-09-16  Jim Meyering  <meyering@redhat.com>
52129
52130         avoid spurious test failure when library is built without ACL support
52131         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52132         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52133         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52134         * tests/test-copy-acl.sh: Likewise.
52135
52136 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52137
52138         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52139         based on character occurrence counts.
52140
52141 2008-09-15  Eric Blake  <ebb9@byu.net>
52142
52143         tests: avoid some compiler warnings
52144         * tests/test-memchr.c (main): Pass NULL indirectly.
52145         * tests/test-closein.c (main): Avoid unused variable.
52146
52147 2008-09-15  Bruno Haible  <bruno@clisp.org>
52148
52149         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52150         are missing on OpenBSD 4.0 individually.
52151         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52152
52153 2008-09-15  Bruno Haible  <bruno@clisp.org>
52154
52155         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52156         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52157         * doc/posix-functions/perror.texi: Likewise.
52158         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52159         is missing.
52160         Reported by Eric Blake.
52161
52162         * lib/errno.in.h: Use replacement values >= 2000.
52163         Reported by Eric Blake.
52164
52165 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52166
52167         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52168         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52169         limit.
52170         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52171         compareseq was aborted.
52172
52173 2008-09-14  Bruno Haible  <bruno@clisp.org>
52174
52175         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52176         yvec_edit_count.
52177         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52178         (fstrcmp_bounded): Simplify result computation accordingly.
52179
52180 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52181
52182         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52183         (fstrcmp): Define in terms of fstrcmp_bounded.
52184         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52185         lower_bound argument.
52186         Return quickly if the result is certainly < lower_bound.
52187         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52188
52189 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52190
52191         * lib/diffseq.h (EARLY_ABORT): New macro.
52192         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52193         evaluates to true.
52194
52195 2008-09-14  Bruno Haible  <bruno@clisp.org>
52196
52197         * modules/perror-tests: New file.
52198         * tests/test-perror.sh: New file.
52199         * tests/test-perror.c: New file.
52200
52201         New module 'perror'.
52202         * lib/stdio.in.h (perror): New declaration.
52203         * lib/perror.c: New file.
52204         * m4/perror.m4: New file.
52205         * modules/perror: New file.
52206         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52207         * doc/posix-functions/perror.texi: Mention the perror module.
52208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52209         REPLACE_PERROR.
52210         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52211         REPLACE_PERROR.
52212
52213 2008-09-14  Bruno Haible  <bruno@clisp.org>
52214
52215         * modules/stdio (Makefile.am): Reorder to match the order in
52216         lib/stdio.in.h.
52217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52218
52219 2008-09-13  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52222
52223 2008-09-13  Bruno Haible  <bruno@clisp.org>
52224
52225         Extend strerror to cover the added errno values.
52226         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52227         (rpl_strerror): Provide error messages for the added errno values and
52228         for the WSA* values.
52229         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52230         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52231         strerror.
52232         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52233         * modules/strerror (Depends-on): Add errno.
52234         * doc/posix-functions/strerror.texi: Document the change.
52235         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52236         and EOVERFLOW.
52237
52238 2008-09-13  Bruno Haible  <bruno@clisp.org>
52239
52240         * modules/EOVERFLOW: Remove file.
52241         * m4/eoverflow.m4: Remove file.
52242         * modules/EOVERFLOW-tests: Remove file.
52243         * tests/test-EOVERFLOW.c: Remove file.
52244         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52245         * modules/ftell (Depends-on): Likewise.
52246         * modules/getdelim (Depends-on): Likewise.
52247         * modules/getugroups (Depends-on): Likewise.
52248         * modules/poll (Depends-on): Likewise.
52249         * modules/snprintf (Depends-on): Likewise.
52250         * modules/sprintf-posix (Depends-on): Likewise.
52251         * modules/vasnprintf (Depends-on): Likewise.
52252         * modules/vasprintf (Depends-on): Likewise.
52253         * modules/vfprintf-posix (Depends-on): Likewise.
52254         * modules/vsnprintf (Depends-on): Likewise.
52255         * modules/vsprintf-posix (Depends-on): Likewise.
52256         * modules/xvasprintf (Depends-on): Likewise.
52257         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52258         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52259         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52260         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52261         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52262         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52263         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52264         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52265         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52266         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52267         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52268         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52269         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52270         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52271         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52272         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52273         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52274         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52275         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52276         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52277         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52278         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52279         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52280         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52281         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52283         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52284         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52285         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52286         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52287         * MODULES.html.sh: Remove EOVERFLOW.
52288         * NEWS: Mention the change.
52289
52290 2008-09-13  Bruno Haible  <bruno@clisp.org>
52291
52292         * modules/errno-tests: New file.
52293         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52294
52295         * lib/errno.in.h: New file.
52296         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52297         * modules/errno: New file.
52298         * doc/posix-headers/errno.texi: Update documentation.
52299         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52300
52301 2008-09-13  Bruno Haible  <bruno@clisp.org>
52302
52303         * tests/test-poll.c: Use #if for native Windows, rather than testing
52304         __MSVCRT__.
52305
52306 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52307             Bruno Haible  <bruno@clisp.org>
52308
52309         * lib/glob.c: Don't include <pwd.h> on native Windows.
52310         (WINDOWS32): New macro.
52311         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52312
52313 2008-09-13  Bruno Haible  <bruno@clisp.org>
52314
52315         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52316         (ETIMEDOUT): Remove macro.
52317         (glthread_cond_timedwait_multithreaded): New declaration.
52318         (glthread_cond_timedwait): Use it.
52319         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52320         (glthread_cond_timedwait_multithreaded): New function.
52321
52322 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52323
52324         * modules/poll-tests: Do not check for io.h.
52325         * tests/test-poll.c: Check for __MSVCRT__ instead.
52326
52327 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52328
52329         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52330         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52331         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52332
52333 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52334
52335         * modules/poll-tests: New.
52336         * tests/test-poll.c: New.
52337
52338 2008-09-12  Eric Blake  <ebb9@byu.net>
52339
52340         frexp: test for NetBSD failure on -0.0
52341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52342         not all, bugs from NetBSD 3.0 have been fixed.
52343         * doc/posix-functions/frexp.texi (frexp): Document bug.
52344         Reported by Thomas Klausner.
52345
52346         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52347         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52348         literal -0.0.
52349         Reported by Jonathan C. Patschke <jp@centtech.com>.
52350
52351 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52352
52353         * lib/glthread/cond.h: Use dummy implementation also if
52354         USE_WIN32_THREADS.
52355
52356 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52357
52358         * modules/fnmatch-posix (License): Change to LGPLv2+.
52359         * modules/fnmatch-gnu (License): Likewise.
52360
52361 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52362
52363         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52364
52365 2008-09-11  Jim Meyering  <meyering@redhat.com>
52366
52367         * users.txt: Add gtk-vnc.
52368
52369 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52370
52371         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52372         rotate amounts.
52373
52374         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52375         required for 16-bit and 8-bit rotates.
52376         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52377         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52378         UINT8_MAX instead of hard-coded constants.
52379         Suggested by Paul Eggert.
52380
52381 2008-09-07  Bruno Haible  <bruno@clisp.org>
52382
52383         * tests/test-striconveh.c (main): Check behaviour when converting from
52384         UTF-7.
52385
52386         Make striconveh work better with stateful encodings.
52387         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52388         that iconv does not increment the inptr when returning -1/EINVAL.
52389
52390 2008-09-07  Bruno Haible  <bruno@clisp.org>
52391
52392         * build-aux/config.rpath: Update according to libtool-2.2.6.
52393         * build-aux/config.libpath: Likewise.
52394
52395 2008-09-06  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52398         * lib/freadptr.c (freadptr): Likewise.
52399         * lib/freadseek.c (freadptrinc): Likewise.
52400         Reported by Simon Josefsson.
52401
52402 2008-09-06  Bruno Haible  <bruno@clisp.org>
52403
52404         * modules/freadptr (License): Change to LGPLv2+.
52405         * modules/freadseek (License): Likewise.
52406         Suggested by Eric Blake.
52407
52408         * modules/memchr2 (License): Change to LGPLv2+.
52409         Approved by Eric Blake.
52410
52411 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52412             Bruno Haible  <bruno@clisp.org>
52413
52414         Make gnulib-tool work with native 'sed' on AIX.
52415         * gnulib-tool (sed_noop): New variable.
52416         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52417         func_add_or_update, func_create_testdir): Use it to initialize sed
52418         script variables.
52419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52420
52421 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52422             Bruno Haible  <bruno@clisp.org>
52423
52424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52425         also works after #include directives.
52426
52427 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52428
52429         getdate.y: reject an out-of-range timezone value
52430         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52431         the range [-24...+24].  When specified with only one or two digits,
52432         * tests/test-getdate.c: Tests for the fix.
52433         * doc/getdate.texi: Document this change.
52434
52435 2008-09-03  Bruno Haible  <bruno@clisp.org>
52436
52437         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52438
52439 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52440
52441         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52442         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52443         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52444         Blake <ebb9@byu.net>.
52445
52446         * tests/test-bitrotate.c: Add more test vectors.
52447
52448 2008-09-02  Eric Blake  <ebb9@byu.net>
52449
52450         vasnprintf-posix: handle large precision via %.*d
52451         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52452         when handling it ourselves.
52453         * tests/test-vasnprintf-posix.c (test_function): Add test.
52454         * tests/test-snprintf-posix.h (test_function): Likewise.
52455         * tests/test-sprintf-posix.h (test_function): Likewise.
52456         * tests/test-vasprintf-posix.c (test_function): Likewise.
52457         Reported by Alain Guibert.
52458
52459 2008-09-01  Eric Blake  <ebb9@byu.net>
52460
52461         c-stack: make configure-time check more robust
52462         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52463         successful sigaction call.
52464         Reported by Tom G. Christensen.
52465
52466 2008-09-01  Bruno Haible  <bruno@clisp.org>
52467
52468         New module 'findprog-lgpl'.
52469         * modules/findprog-lgpl: New file.
52470         * lib/findprog-lgpl.c: New file.
52471         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52472         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52473         to decide whether to use strdup or xstrdup, concatenated_filename or
52474         xconcatenated_filename.
52475
52476 2008-09-01  Bruno Haible  <bruno@clisp.org>
52477
52478         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52479         'xconcat-filename' (GPL).
52480         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52481         (License): Change to LGPLv2+.
52482         * modules/xconcat-filename: New file.
52483         * lib/concat-filename.h (concatenated_filename): Change specification.
52484         (xconcatenated_filename): New declaration.
52485         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52486         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52487         memory situations.
52488         * lib/xconcat-filename.c: New file.
52489         * NEWS: Mention the change.
52490         * lib/findprog.c: Include concat-filename.h, not filename.h.
52491         (find_in_path): Use xconcatenated_filename instead of
52492         concatenated_filename.
52493         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52494         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52495         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52496         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52497         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52498         instead of concatenated_filename.
52499         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52500         (execute_java_class): Use xconcatenated_filename instead of
52501         concatenated_filename.
52502         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52503         * modules/javacomp (Depends-on): Likewise.
52504         * modules/javaexec (Depends-on): Likewise.
52505
52506 2008-09-01  Bruno Haible  <bruno@clisp.org>
52507
52508         Split module 'filename' into 'filename' and 'concat-filename'.
52509         * modules/filename: Keep only lib/filename.h.
52510         (License): Change to LGPLv2+.
52511         * modules/concat-filename: New file, extracted from modules/filename.
52512         * lib/filename.h (concatenated_filename): Remove declaration.
52513         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52514         * lib/concat-filename.c: Include concat-filename.h.
52515         * NEWS: Mention the change.
52516
52517 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52518
52519         * lib/bitrotate.h (rotl8, rotr8): Add.
52520
52521         * modules/bitrotate (configure.ac): Need
52522         AC_REQUIRE([AC_C_INLINE]).
52523         (Description): Mention stdint.h.  Reported by Bruno Haible
52524         <bruno@clisp.org>.
52525
52526         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52527         Paolo Bonzini <bonzini@gnu.org>.
52528
52529 2008-08-31  Bruno Haible  <bruno@clisp.org>
52530
52531         Assume Solaris specific bi-arch conventions on Solaris systems.
52532         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52533         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52534         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52535         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52536         like acl_libdirstem.
52537         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52538         acl_libdirstem.
52539         * NEWS: Mention the change.
52540         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52541
52542 2008-08-31  Jim Meyering  <meyering@redhat.com>
52543
52544         * lib/strftime.h: Add comments describing the two added arguments.
52545
52546         remove duplicate #include directives
52547         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52548         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52549
52550 2008-08-31  Bruno Haible  <bruno@clisp.org>
52551
52552         New module 'sigpipe-die'.
52553         * modules/sigpipe-die: New file.
52554         * lib/sigpipe-die.h: New file.
52555         * lib/sigpipe-die.c: New file.
52556         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52557
52558 2008-08-31  Bruno Haible  <bruno@clisp.org>
52559
52560         Don't override previously installed signal handlers.
52561         * lib/fatal-signal.c (saved_sigactions): New variable.
52562         (uninstall_handlers): Reset the signal to the saved handler, not
52563         to SIG_DFL (except when ignored).
52564         (install_handlers): Save the previous handlers.
52565
52566 2008-08-30  Bruno Haible  <bruno@clisp.org>
52567
52568         * gnulib-tool (func_reset_sigpipe): New function.
52569         (func_get_automake_snippet, func_modules_transitive_closure,
52570         func_import): Invoke it before a join command that reads from stdin,
52571         to avoid "echo: write error: Broken pipe" error messages on stderr.
52572         Reported by Sam Steingold <sds@gnu.org>.
52573
52574 2008-08-30  Bruno Haible  <bruno@clisp.org>
52575
52576         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52577         Code copied from m4/open.m4.
52578         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52579         access and the filename ends in a slash. Code copied from lib/open.c.
52580         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52581         * tests/test-fopen.c (main): Check against bug with trailing slash.
52582
52583 2008-08-29  Bruno Haible  <bruno@clisp.org>
52584
52585         Avoid some "gcc -pedantic" warnings.
52586         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52587         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52588         * lib/dirent.in.h: Likewise.
52589         * lib/fcntl.in.h: Likewise.
52590         * lib/float.in.h: Likewise.
52591         * lib/iconv.in.h: Likewise.
52592         * lib/inttypes.in.h: Likewise.
52593         * lib/locale.in.h: Likewise.
52594         * lib/math.in.h: Likewise.
52595         * lib/netinet_in.in.h: Likewise.
52596         * lib/search.in.h: Likewise.
52597         * lib/signal.in.h: Likewise.
52598         * lib/stdarg.in.h: Likewise.
52599         * lib/stdint.in.h: Likewise.
52600         * lib/stdio.in.h: Likewise.
52601         * lib/stdlib.in.h: Likewise.
52602         * lib/string.in.h: Likewise.
52603         * lib/strings.in.h: Likewise.
52604         * lib/sys_select.in.h: Likewise.
52605         * lib/sys_socket.in.h: Likewise.
52606         * lib/sys_stat.in.h: Likewise.
52607         * lib/sys_time.in.h: Likewise.
52608         * lib/sysexits.in.h: Likewise.
52609         * lib/time.in.h: Likewise.
52610         * lib/unistd.in.h: Likewise.
52611         * lib/wchar.in.h: Likewise.
52612         * lib/wctype.in.h: Likewise.
52613         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52614         * modules/fchdir (Makefile.am): Likewise.
52615         * modules/fcntl (Makefile.am): Likewise.
52616         * modules/float (Makefile.am): Likewise.
52617         * modules/iconv_open (Makefile.am): Likewise.
52618         * modules/inttypes (Makefile.am): Likewise.
52619         * modules/locale (Makefile.am): Likewise.
52620         * modules/math (Makefile.am): Likewise.
52621         * modules/netinet_in (Makefile.am): Likewise.
52622         * modules/search (Makefile.am): Likewise.
52623         * modules/signal (Makefile.am): Likewise.
52624         * modules/stdarg (Makefile.am): Likewise.
52625         * modules/stdint (Makefile.am): Likewise.
52626         * modules/stdio (Makefile.am): Likewise.
52627         * modules/stdlib (Makefile.am): Likewise.
52628         * modules/string (Makefile.am): Likewise.
52629         * modules/strings (Makefile.am): Likewise.
52630         * modules/sys_select (Makefile.am): Likewise.
52631         * modules/sys_socket (Makefile.am): Likewise.
52632         * modules/sys_stat (Makefile.am): Likewise.
52633         * modules/sys_time (Makefile.am): Likewise.
52634         * modules/sysexits (Makefile.am): Likewise.
52635         * modules/time (Makefile.am): Likewise.
52636         * modules/unistd (Makefile.am): Likewise.
52637         * modules/wchar (Makefile.am): Likewise.
52638         * modules/wctype (Makefile.am): Likewise.
52639         Reported by Reuben Thomas <rrt@sc3d.org>.
52640
52641 2008-08-29  Bruno Haible  <bruno@clisp.org>
52642
52643         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52644         any more.
52645
52646 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52647
52648         * MODULES.html.sh (Misc): Add bitrotate.
52649
52650         * modules/bitrotate: New file.
52651
52652         * lib/bitrotate.h: New file.
52653
52654         * modules/bitrotate-tests: New file.
52655
52656         * tests/test-bitrotate.c: New file.
52657
52658         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52659         on the bitrotate module.
52660
52661         * lib/arctwo.c: Use new bitrotate module.
52662
52663 2008-08-29  Jim Meyering  <meyering@redhat.com>
52664
52665         bootstrap: merge changes from coreutils
52666         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52667         of copied files.  Remove a kludge, now that this is fixed.
52668         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52669         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52670         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52671
52672 2008-08-29  Bruno Haible  <bruno@clisp.org>
52673
52674         * MODULES.html.sh: Remove --cvs-urls option.
52675
52676 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52677
52678         maint.mk: adjust to file name change
52679         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52680
52681 2008-08-28  Jim Meyering  <meyering@redhat.com>
52682
52683         * modules/getndelim2 (License): Relicense to LGPLv2+.
52684         Approved by Richard Stallman for the version of 1995, and by
52685         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52686
52687 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52688
52689         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52690         dummy if one is not available.  Do not touch them if
52691         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52692         (getc_maybe_unlocked): New.
52693         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52694
52695 2008-08-26  Eric Blake  <ebb9@byu.net>
52696
52697         doc/INSTALL: resync from autoconf
52698         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52699         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52700         moving...
52701         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52702         * INSTALL: Regenerate.
52703         * INSTALL.ISO: New file.
52704         * INSTALL.UTF-8: Likewise.
52705
52706 2008-08-26  Jim Meyering  <meyering@redhat.com>
52707
52708         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52709         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52710         these definitions conditional, so that they may be overridden, too.
52711
52712 2008-08-26  Bruno Haible  <bruno@clisp.org>
52713
52714         Generate INSTALL file variants with prettier quotes.
52715         * doc/Makefile (INSTALL_PRELUDE): New macro.
52716         (INSTALL): Use it.
52717         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52718
52719 2008-08-26  Bruno Haible  <bruno@clisp.org>
52720
52721         Run makeinfo in an English locale.
52722         * doc/Makefile (MAKEINFO): New variable.
52723
52724 2008-08-26  Bruno Haible  <bruno@clisp.org>
52725
52726         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52727         Suggested by Eric Blake.
52728
52729 2008-08-25  Bruno Haible  <bruno@clisp.org>
52730
52731         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52732
52733 2008-08-25  Eric Blake  <ebb9@byu.net>
52734
52735         c-stack: test that stack overflow can be caught
52736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52737         that platform allows handling stack overflow; at least OS/2 EMX
52738         has sigaltstack, but crashes before transferring control to
52739         handler on stack overflow.
52740         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52741         check for HAVE_STACK_OVERFLOW_HANDLING.
52742         Reported by Elbert Pol.
52743
52744 2008-08-25  Bruno Haible  <bruno@clisp.org>
52745
52746         * doc/posix-functions/strftime.texi: Fix description of strftime
52747         module.
52748
52749 2008-08-24  Bruno Haible  <bruno@clisp.org>
52750
52751         * tests/uniwidth/test-uc_width2.c: New file.
52752         * tests/uniwidth/test-uc_width2.sh: New file.
52753         * modules/uniwidth/width-tests (Files): Add the new files.
52754         (TESTS): Add uniwidth/test-uc_width2.sh.
52755         (TESTS_ENVIRONMENT): New variable.
52756         (check_PROGRAMS): Add test-uc_width2.
52757         (test_uc_width2_SOURCES): New variable.
52758
52759         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52760         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52761         not 0x00AB.
52762         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52763
52764 2008-08-22  Eric Blake  <ebb9@byu.net>
52765
52766         test-lock, test-tls: mention why a test is skipped
52767         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52768         skipped.
52769         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52770
52771         count-one-bits: relax license
52772         * modules/count-one-bits (License): Relicense to LGPLv2+.
52773         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52774
52775 2008-08-22  Andreas Schwab  <schwab@suse.de>
52776
52777         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52778         Remove spurious space in assignment.
52779
52780 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52781
52782         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52783         Paul Eggert <eggert@CS.UCLA.EDU>.
52784
52785 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52786
52787         * modules/gettext: Add m4/threadlib.m4.
52788
52789 2008-08-19  Eric Blake  <ebb9@byu.net>
52790
52791         test-c-stack: fix compilation failure on FreeBSD 5.0
52792         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52793         headers before <sys/resource.h>.
52794         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52795         the bug.
52796         Reported by Nelson H. F. Beebe.
52797
52798         strverscmp: migrate from "strverscmp.h" to <string.h>
52799         * modules/string (Makefile.am): Add new hooks.
52800         * modules/strverscmp (Files): Remove strverscmp.h.
52801         (Depends-on): Add string.
52802         (configure.ac): Add indicator.
52803         (Include): Mention new header.
52804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52805         defaults.
52806         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52807         results.
52808         * lib/strverscmp.h: Delete.
52809         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52810         * tests/test-strverscmp.c (includes): Adjust client.
52811         * lib/check-version.c (includes): Likewise.
52812         * NEWS: Document the change.
52813
52814         strverscmp: add unit test
52815         * modules/strverscmp-tests: New file.
52816         * tests/test-strverscmp.c: Likewise.
52817
52818 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52819
52820         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52821         regarding Windows crypto stuff, from Mono.
52822
52823 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52824
52825         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52826         if present, for intel RND.  Return error on failures.
52827
52828 2008-08-18  Ben Pfaff  <blp@gnu.org>
52829
52830         gitlog-to-changelog: give better diagnostic for failed pipe-open
52831         * build-aux/gitlog-to-changelog: Improve error message: suggest
52832         that the version of Git may be too old.
52833
52834 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52835
52836         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52837         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52838
52839 2008-08-18  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52842         pthread_in_use().
52843
52844 2008-08-18  Bruno Haible  <bruno@clisp.org>
52845
52846         * lib/glthread/threadlib.c: Include <pthread.h>.
52847
52848 2008-08-18  Bruno Haible  <bruno@clisp.org>
52849
52850         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52851         glthread_recursive_lock_* macros.
52852         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52853         Fix syntax error.
52854
52855 2008-08-18  Bruno Haible  <bruno@clisp.org>
52856
52857         * lib/glthread/thread.c: Avoid forcing a context switch right after
52858         thread creation.
52859
52860 2008-08-17  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52863         * lib/glthread/thread.h: Provide Win32 specific implementation.
52864         * modules/thread (Files): Add lib/glthread/thread.c.
52865         (Depends-on): Add lock.
52866         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52867
52868 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52869
52870         New module 'yield'.
52871         * modules/yield: New file.
52872         * lib/glthread/yield.h: New file.
52873         * m4/yield.m4: New file.
52874         * MODULES.html.sh (Multithreading): Add yield.
52875
52876 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52877
52878         New module 'thread'.
52879         * modules/thread: New file.
52880         * lib/glthread/thread.h: New file.
52881         * m4/thread.m4: New file.
52882         * MODULES.html.sh (Multithreading): Add thread.
52883
52884 2008-08-17  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/glthread/lock.h: Include <stdlib.h> always.
52887         * lib/glthread/tls.h: Likewise.
52888         * lib/glthread/cond.h: Likewise.
52889
52890 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52891
52892         New module 'cond'.
52893         * modules/cond: New file.
52894         * lib/glthread/cond.h: New file.
52895         * lib/glthread/cond.c: New file.
52896         * m4/cond.m4: New file.
52897         * MODULES.html.sh (Multithreading): Add cond.
52898
52899 2008-08-16  Eric Blake  <ebb9@byu.net>
52900
52901         c-stack: fix regression on Irix 5.3 from 2008-06-21
52902         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52903         sa_sigaction...
52904         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52905         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52906         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52907         * modules/signal (Makefile.am): Use the value.
52908         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52909         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52910         * doc/posix-headers/signal.texi (signal.h): Document this
52911         portability issue.
52912         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52913         Reported by Tom G. Christensen.
52914
52915 2008-08-17  Bruno Haible  <bruno@clisp.org>
52916
52917         New module 'threadlib'.
52918         * modules/threadlib: New file.
52919         * lib/glthread/threadlib.c: New file, extracted from
52920         lib/glthread/lock.c.
52921         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52922         functions.
52923         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52924         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52925         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52926         macros.
52927         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52928         (gl_DISABLE_THREADS): Remove macro.
52929         * modules/lock (Files): Remove build-aux/config.rpath.
52930         (Depends-on): Remove havelib. Add threadlib.
52931         (configure.ac-early): Remove section.
52932         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52933         * modules/tls (Depends-on): Remove lock. Add threadlib.
52934         (Link): New section, copied from threadlib.
52935         * MODULES.html.sh (Multithreading): Add threadlib.
52936
52937 2008-08-14  Bruno Haible  <bruno@clisp.org>
52938
52939         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52940         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52941         glthread_rwlock_unlock, glthread_rwlock_destroy,
52942         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52943         glthread_recursive_lock_destroy): Define as macros always.
52944         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52945         glthread_lock_lock.
52946         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52947         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52948         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52949         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52950         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52951         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52952         (glthread_recursive_lock_lock_func): Renamed from
52953         glthread_recursive_lock_lock.
52954         (glthread_recursive_lock_unlock_func): Renamed from
52955         glthread_recursive_lock_unlock.
52956         (glthread_recursive_lock_destroy_func): Renamed from
52957         glthread_recursive_lock_destroy.
52958
52959 2008-08-14  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/glthread/lock.h: Renamed from lib/lock.h.
52962         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52963         * lib/glthread/tls.h: Renamed from lib/tls.h.
52964         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52965         * lib/fstrcmp.c: Update includes.
52966         * lib/strsignal.c: Update includes.
52967         * modules/lock (Files, Makefile.am): Update.
52968         (Include): Change to "glthread/lock.h".
52969         * modules/tls (Files, Makefile.am): Update.
52970         (Include): Change to "glthread/tls.h".
52971         * tests/test-lock.c: Update includes.
52972         * tests/test-tls.c: Update includes.
52973         * NEWS: Mention the renamed header files.
52974
52975 2008-08-11  Jim Meyering  <meyering@redhat.com>
52976
52977         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52978
52979 2008-08-11  Eric Blake  <ebb9@byu.net>
52980
52981         test-c-stack: avoid C99-ism
52982         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52983         before statement.
52984         Reported by Alain Guibert.
52985
52986 2008-08-10  Jim Meyering  <meyering@redhat.com>
52987
52988         ensure that return value of uinttostr et al are not ignored
52989         * lib/inttostr.h (__GNUC_PREREQ): Define.
52990         (__attribute_warn_unused_result__): Define.
52991         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52992
52993 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52994
52995         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52996         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52997
52998 2008-08-07  Jim Meyering  <meyering@redhat.com>
52999
53000         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53001
53002         * modules/mkstemp (License): Relicense under LGPLv2+.
53003         * modules/tempname (License): Likewise.
53004
53005 2008-08-06  Bruno Haible  <bruno@clisp.org>
53006
53007         * lib/poll.c (poll): Further micro-optimization.
53008
53009 2008-08-06  Jim Meyering  <meyering@redhat.com>
53010
53011         inet_pton.c: use locale-independent tolower
53012         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53013         (inet_pton6): Use c_tolower rather than tolower.
53014         * modules/inet_pton (Depends-on): Add c-ctype.
53015
53016 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53017
53018         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53019         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53020
53021 2008-08-06  Jim Meyering  <meyering@redhat.com>
53022
53023         * modules/inet_pton (License): Relicense under LGPLv2+.
53024
53025 2008-08-03  Bruno Haible  <bruno@clisp.org>
53026
53027         Additional non-aborting API for lock and tls.
53028         * lib/lock.h: Include <errno.h>.
53029         (glthread_lock_init): New macro/function.
53030         (gl_lock_init): Define as wrapper around glthread_lock_init.
53031         (glthread_lock_lock): New macro/function.
53032         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53033         (glthread_lock_unlock): New macro/function.
53034         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53035         (glthread_lock_destroy): New macro/function.
53036         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53037         (glthread_rwlock_init): New macro/function.
53038         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53039         (glthread_rwlock_rdlock): New macro/function.
53040         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53041         (glthread_rwlock_wrlock): New macro/function.
53042         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53043         (glthread_rwlock_unlock): New macro/function.
53044         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53045         (glthread_rwlock_destroy): New macro/function.
53046         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53047         (glthread_recursive_lock_init): New macro/function.
53048         (gl_recursive_lock_init): Define as wrapper around
53049         glthread_recursive_lock_init.
53050         (glthread_recursive_lock_lock): New macro/function.
53051         (gl_recursive_lock_lock): Define as wrapper around
53052         glthread_recursive_lock_lock.
53053         (glthread_recursive_lock_unlock): New macro/function.
53054         (gl_recursive_lock_unlock): Define as wrapper around
53055         glthread_recursive_lock_unlock.
53056         (glthread_recursive_lock_destroy): New macro/function.
53057         (gl_recursive_lock_destroy): Define as wrapper around
53058         glthread_recursive_lock_destroy.
53059         (glthread_once): New macro/function.
53060         (gl_once): Define as wrapper around glthread_once.
53061         Update function declarations.
53062         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53063         glthread_rwlock_init. Return error code.
53064         (glthread_rwlock_rdlock_multithreaded): Renamed from
53065         glthread_rwlock_rdlock. Return error code.
53066         (glthread_rwlock_wrlock_multithreaded): Renamed from
53067         glthread_rwlock_wrlock. Return error code.
53068         (glthread_rwlock_unlock_multithreaded): Renamed from
53069         glthread_rwlock_unlock. Return error code.
53070         (glthread_rwlock_destroy_multithreaded): Renamed from
53071         glthread_rwlock_destroy. Return error code.
53072         (glthread_recursive_lock_init_multithreaded): Renamed from
53073         glthread_recursive_lock_init. Return error code.
53074         (glthread_recursive_lock_lock_multithreaded): Renamed from
53075         glthread_recursive_lock_lock. Return error code.
53076         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53077         glthread_recursive_lock_unlock. Return error code.
53078         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53079         glthread_recursive_lock_destroy. Return error code.
53080         (glthread_once_call): Make static.
53081         (glthread_once_multithreaded): Renamed from glthread_once.
53082         * lib/tls.h: Include <errno.h>.
53083         (glthread_tls_key_init): New macro/function.
53084         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53085         (glthread_tls_set): New macro/function.
53086         (gl_tls_set): Define as wrapper around glthread_tls_set.
53087         (glthread_tls_key_destroy): New macro/function.
53088         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53089         Update function declarations.
53090         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53091         glthread_tls_get.
53092         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53093
53094 2008-08-04  Eric Blake  <ebb9@byu.net>
53095
53096         gnumakefile: use space, not TAB, outside of targets
53097         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53098
53099 2008-08-02  Jim Meyering  <meyering@redhat.com>
53100
53101         getdate.y: avoid locale-dependent date parsing failure
53102         In Turkish locales, getdate would fail to recognize keywords
53103         containing a lowercase "i".  The solution is not to rely on
53104         locale-sensitive case-conversion.
53105         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53106         (lookup_word): Use c_toupper in place of toupper.
53107         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53108         Reported by Vefa Bicakci <bicave@superonline.com> in
53109         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53110         * modules/getdate (Depends-on): Add c-ctype.
53111
53112 2008-08-02  Bruno Haible  <bruno@clisp.org>
53113
53114         * gnulib-tool (func_import): When updating or creating a .gitignore
53115         file, prepend each added line with a slash, and ignore leading slashes
53116         from the existing lines.
53117         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53118
53119 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53120
53121         Portability fix for GNU make 3.79.1.
53122         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53123         versions do not understand.
53124
53125 2008-08-01  Bruno Haible  <bruno@clisp.org>
53126
53127         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53128         * tests/test-isnanf.h (zero): New variable.
53129         (main): Avoid literal -0.0f.
53130         * tests/test-isnand.h (zero): New variable.
53131         (main): Avoid literal -0.0.
53132         * tests/test-isnanl.h (zero): New variable.
53133         (main): Avoid literal -0.0L.
53134         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53135         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53136         -0.0, -0.0L.
53137         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53138         (test_signbitd): Avoid literal -0.0.
53139         (test_signbitl): Avoid literal -0.0L.
53140         * tests/test-ceilf1.c (zero): New variable.
53141         (main): Avoid literal -0.0f.
53142         * tests/test-ceill.c (zero): New variable.
53143         (main): Avoid literal -0.0L.
53144         * tests/test-floorf1.c (zero): New variable.
53145         (main): Avoid literal -0.0f.
53146         * tests/test-floorl.c (zero): New variable.
53147         (main): Avoid literal -0.0L.
53148         * tests/test-roundf1.c (zero): New variable.
53149         (main): Avoid literal -0.0f.
53150         * tests/test-round1.c (zero): New variable.
53151         (main): Avoid literal -0.0.
53152         * tests/test-roundl.c (zero): New variable.
53153         (main): Avoid literal -0.0L.
53154         * tests/test-truncf1.c (zero): New variable.
53155         (main): Avoid literal -0.0f.
53156         * tests/test-trunc1.c (zero): New variable.
53157         (main): Avoid literal -0.0.
53158         * tests/test-truncl.c (zero): New variable.
53159         (main): Avoid literal -0.0L.
53160         * tests/test-frexp.c (zero): New variable.
53161         (main): Avoid literal -0.0.
53162         * tests/test-frexpl.c (zero): New variable.
53163         (main): Avoid literal -0.0L.
53164         * tests/test-ldexpl.c (zero): New variable.
53165         (main): Avoid literal -0.0L.
53166         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53167         (zerod, zerol): New variables.
53168         (test_function): Avoid literals -0.0, -0.0L.
53169         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53170         (zerod, zerol): New variables.
53171         (test_function): Avoid literals -0.0, -0.0L.
53172         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53173         (zerod, zerol): New variables.
53174         (test_function): Avoid literals -0.0, -0.0L.
53175         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53176         (zerod, zerol): New variables.
53177         (test_function): Avoid literals -0.0, -0.0L.
53178         * tests/test-strtod.c (zero): New variable.
53179         (main): Avoid literal -0.0.
53180         Reported by Jonathan C. Patschke <jp@centtech.com>.
53181
53182 2008-07-31  Jim Meyering  <meyering@redhat.com>
53183
53184         sha256.h: correct definition of SHA224_DIGEST_SIZE
53185         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53186         Reported by Paulie Pena IV <paulie4@gmail.com>.
53187         Define as 224 / 8, rather than as a literal.
53188         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53189         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53190         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53191
53192 2008-07-31  Bruno Haible  <bruno@clisp.org>
53193
53194         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53195         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53196         Reported by Jonathan Patschke <jp@centtech.com>.
53197
53198 2008-07-31  Bruno Haible  <bruno@clisp.org>
53199
53200         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53201         Reported by Paolo Bonzini <bonzini@gnu.org>.
53202
53203 2008-07-30  Eric Blake  <ebb9@byu.net>
53204
53205         test-strtod: allow compilation without -lm
53206         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53207         Reported by Dennis Clarke <blastwave@gmail.com>.
53208
53209 2008-07-28  Jim Meyering  <meyering@redhat.com>
53210
53211         bootstrap: work also when there are no .po files in po/
53212         * build-aux/bootstrap (update_po_files): Complete the change
53213         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53214
53215 2008-07-27  Jim Meyering  <meyering@redhat.com>
53216
53217         * users.txt: Add zile.
53218
53219 2008-07-26  Ben Pfaff  <blp@gnu.org>
53220
53221         Add missing dependencies on new m4/exponent[fdl].m4 files.
53222         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53223         * modules/isnand-nolibm: Add m4/exponentd.m4.
53224         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53225         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53226         m4/isnan[fdl].m4, because the macros actually used moved.
53227         Reported by Jim Meyering.
53228
53229 2008-07-14  Ben Pfaff  <blp@gnu.org>
53230
53231         Add isinf module.
53232         * lib/isinf.c: New file.
53233         * lib/math.in.h: Define isinf macro if we have decided to replace
53234         it.
53235         * m4/isinf.m4: New file.
53236         * m4/math_h.m4: Initialize and substitute variables for isinf
53237         module.
53238         * modules/isinf: New file.
53239         * modules/isinf-tests: New file.
53240         * modules/math: Add substitutions for new module.
53241         * tests/test-isinf.c: New file.
53242         * doc/posix-functions/isinf.texi: Mention new module.
53243         * MODULES.html.sh: Mention new module.
53244
53245 2008-07-14  Ben Pfaff  <blp@gnu.org>
53246
53247         Factor out some macros for use by additional modules.
53248         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53249         exponentf.m4.
53250         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53251         exponentd.m4.
53252         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53253         file exponentl.m4.
53254         * m4/exponentf.m4: New file.
53255         * m4/exponentd.m4: New file.
53256         * m4/exponentl.m4: New file.
53257         * modules/isnanf: Use new file m4/exponentf.m4.
53258         * modules/isnand: Use new file m4/exponentd.m4.
53259         * modules/isnanl: Use new file m4/exponentl.m4.
53260
53261 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53262
53263         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53264         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53265         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53266         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53267
53268         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53269         readlink on platforms without PATH_MAX.
53270
53271 2008-07-21  Eric Blake  <ebb9@byu.net>
53272
53273         Warn, not fail, on stale version.
53274         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53275
53276         Don't allow installation with stale devel version number.
53277         * top/GNUmakefile (_is-install-target): New macro.
53278         (_curr-ver): Forbid installation with stale version number.
53279
53280 2008-07-20  Bruno Haible  <bruno@clisp.org>
53281
53282         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53283         TESTS_ENVIRONMENT.
53284         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53285
53286 2008-07-20  Bruno Haible  <bruno@clisp.org>
53287
53288         * lib/c-stack.h (c_stack_action): Add documentation.
53289         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53290
53291 2008-07-20  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53294         * modules/readlink (License): Likewise.
53295
53296 2008-07-17  Eric Blake  <ebb9@byu.net>
53297
53298         * modules/c-stack (Link): Fix typo.
53299
53300         Make c-stack use libsigsegv, when available.
53301         * modules/c-stack (Depends-on): Add libsigsegv.
53302         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53303         needed.
53304         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53305         (segv_handler, overflow_handler, c_stack_action)
53306         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53307         implementation when libsigsegv is available, but only when using
53308         the library is necessary.
53309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53310         comment, explaining why XSI check fails on Linux.
53311         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53312         * tests/test-c-stack2.sh: Tweak skip message.
53313         * NEWS: Document new link-time requirements.
53314
53315 2008-07-16  Eric Blake  <ebb9@byu.net>
53316
53317         c-stack: Expose false positives when not using libsigsegv.
53318         * modules/c-stack-tests (Files): Expand test.
53319         * tests/test-c-stack.c (main): Add means to conditionally trigger
53320         non-overflow SIGSEGV.
53321         * tests/test-c-stack2.sh: New file.
53322
53323 2008-07-14  Bruno Haible  <bruno@clisp.org>
53324
53325         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53326         Reported by Eric Blake.
53327
53328 2008-07-14  Sam Steingold  <sds@gnu.org>
53329             Bruno Haible  <bruno@clisp.org>
53330
53331         New module libsigsegv.
53332         * modules/libsigsegv: New file.
53333         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53334         modifications.
53335         * MODULES.html.sh (Signal handling): New section.
53336
53337 2008-07-14  Bruno Haible  <bruno@clisp.org>
53338
53339         * modules/unictype/ctype-* (Description): Add the word "function".
53340         Improves the resulting doc in MODULES.html.
53341
53342 2008-07-12  Ben Pfaff  <blp@gnu.org>
53343
53344         Add longlong module.
53345         * modules/longlong: New file.
53346
53347 2008-07-12  Bruno Haible  <bruno@clisp.org>
53348
53349         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53350         to empty.
53351
53352 2008-07-10  Ben Pfaff  <blp@gnu.org>
53353
53354         Add isnan module.
53355         * doc/posix-functions/isnan.texi: Mention new module.
53356         * lib/math.in.h: Define isnan macro if we have decided to replace
53357         it.
53358         * m4/isnan.m4: New file.
53359         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53360         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53361         also.
53362         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53363         redundancy.
53364         * m4/math_h.m4: Initialize and substitute variables for isnan
53365         module.
53366         * modules/isnan: New file.
53367         * modules/isnan-tests: New file.
53368         * modules/math: Add substitutions for new module.
53369         * tests/test-isnan.c: New file.
53370         * MODULES.html.sh: Mention new module.
53371
53372 2008-07-10  Ben Pfaff  <blp@gnu.org>
53373
53374         Add isnanf module.
53375         * lib/isnanf.m4: New file.
53376         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53377         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53378         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53379         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53380         * modules/isnanf: New file.
53381         * modules/isnanf-tests: New file.
53382         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53383         files.
53384         * tests/test-isnanf-nolibm.c: factored most of its contents into
53385         new file tests/test-isnanf.h.
53386         * tests/test-isnanf.h: New file.
53387         * tests/test-isnanf.c: New file.
53388         * MODULES.html.sh: Mention new module.
53389         * doc/glibc-functions/isnanf.texi: Mention new module.
53390
53391 2008-07-10  Ben Pfaff  <blp@gnu.org>
53392
53393         Add isnand module.
53394         * lib/isnand.h: New file.
53395         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53396         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53397         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53398         functionality also.
53399         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53400         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53401         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53402         * modules/isnand: New file.
53403         * modules/isnand-tests: New file.
53404         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53405         files.
53406         * tests/test-isnand-nolibm.c: factored most of its contents into
53407         new file tests/test-isnand.h.
53408         * tests/test-isnand.h: New file.
53409         * tests/test-isnand.c: New file.
53410         * MODULES.html.sh: Mention new module.
53411
53412 2008-07-10  Ben Pfaff  <blp@gnu.org>
53413
53414         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53415         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53416         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53417         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53418         * modules/isnanf-nolibm: Update references to renamed files.
53419         * modules/isnand-nolibm: Likewise.
53420         * modules/isnanf-nolibm-tests: Likewise.
53421         * modules/isnand-nolibm-tests: Likewise.
53422         * lib/frexp.c: Likewise.
53423         * lib/isfinite.c: Likewise.
53424         * lib/signbitd.c: Likewise.
53425         * lib/signbitf.c: Likewise.
53426         * lib/vasnprintf.c: Likewise.
53427         * tests/test-ceilf1.c: Likewise.
53428         * tests/test-ceilf2.c: Likewise.
53429         * tests/test-floorf1.c: Likewise.
53430         * tests/test-floorf2.c: Likewise.
53431         * tests/test-frexp.c: Likewise.
53432         * tests/test-round1.c: Likewise.
53433         * tests/test-round2.c: Likewise.
53434         * tests/test-roundf1.c: Likewise.
53435         * tests/test-strtod.c: Likewise.
53436         * tests/test-trunc1.c: Likewise.
53437         * tests/test-trunc2.c: Likewise.
53438         * tests/test-truncf1.c: Likewise.
53439         * tests/test-truncf2.c: Likewise.
53440         * NEWS: Mention the renamed header files.
53441
53442 2008-07-11  Jim Meyering  <meyering@redhat.com>
53443
53444         vc-list-files: make the last-resort awk code more portable
53445         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53446         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53447         does not support it.
53448
53449 2008-07-10  Eric Blake  <ebb9@byu.net>
53450
53451         Work with tar's bootstrap.
53452         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53453         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53454         an m4 comment.
53455
53456 2008-07-09  Jim Meyering  <meyering@redhat.com>
53457
53458         posix-shell.m4: fix typo that made this test malfunction
53459         * m4/posix-shell.m4: Remove capitalization in variable name.
53460
53461 2008-07-08  Bruno Haible  <bruno@clisp.org>
53462
53463         * m4/onceonly.m4: Update comments.
53464         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53465
53466 2008-07-04  Jim Meyering  <meyering@redhat.com>
53467
53468         * users.txt: Add vc-dwim.
53469         (bison, coreutils): Use the gitweb URL.
53470
53471 2008-07-03  Jim Meyering  <meyering@redhat.com>
53472
53473         * users.txt: Add libffcall.  From Sam Steingold.
53474
53475 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53476
53477         getdate.y: do not ignore TZ with relative day, month or year offset
53478         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53479         relative-date-handling, since otherwise, the latter would clobber the
53480         sole output (an updated Start value) of the tz-handling block.
53481         * tests/test-getdate.c: Tests for the fix
53482
53483 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53484
53485         Recognize 'foo_LIBRARIES += libgnu.a'.
53486         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53487         makefile snippet has already specified an installation location,
53488         also using '+='.
53489
53490 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53491
53492         getdate.y: factor out common actions
53493         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53494         Use them in place of open-coded actions.
53495
53496 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53497
53498         Add self-test for getdate module.
53499         * modules/getdate-tests: New file.
53500         * tests/test-getdate.c: New file.
53501
53502 2008-06-29  Bruno Haible  <bruno@clisp.org>
53503
53504         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53505         .gitignore.
53506         Reported by Sylvain Beucler <beuc@beuc.net>.
53507
53508 2008-06-29  Bruno Haible  <bruno@clisp.org>
53509
53510         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53511         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53512
53513 2008-06-29  Bruno Haible  <bruno@clisp.org>
53514
53515         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53516         EXTRA_DIST.
53517         Reported by Sylvain Beucler <beuc@beuc.net>.
53518
53519 2008-06-26  Jim Meyering  <meyering@redhat.com>
53520
53521         make several modules depend on the "open" module
53522         This provides slightly increased consistency when opening-for-write
53523         the name of a non-directory spelled with a trailing slash.
53524         * modules/chdir-safer: Likewise.
53525         * modules/chown: Likewise.
53526         * modules/clean-temp: Likewise.
53527         * modules/copy-file: Likewise.
53528         * modules/fchdir: Likewise.
53529         * modules/fcntl-safer: Likewise.
53530         * modules/pipe: Likewise.
53531         * modules/utime: Likewise.
53532         Prompted by Eric Blake and Bruno Haible.
53533
53534 2008-06-24  Andreas Schwab  <schwab@suse.de>
53535
53536         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53537         literals can be used as initializers for global variables.
53538
53539 2008-06-23  Eric Blake  <ebb9@byu.net>
53540
53541         Make gnulib-cache.m4 easier to diff.
53542         * gnulib-tool (func_import): Allow newlines when reading cached
53543         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53544
53545 2008-06-23  Bruno Haible  <bruno@clisp.org>
53546
53547         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53548         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53549         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53550         m4/signalblocking.m4.
53551         (gl_PREREQ_SIGACTION): Don't invoke it.
53552         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53553         gl_PREREQ_SIG_HANDLER_H.
53554         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53555         Don't check for sigaction here.
53556
53557 2008-06-23  Bruno Haible  <bruno@clisp.org>
53558
53559         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53560         (install_handlers): Don't set the SA_RESETHAND flag.
53561
53562 2008-06-23  Bruno Haible  <bruno@clisp.org>
53563
53564         * m4/sigaction.m4: Comment fixes.
53565         * lib/signal.in.h: Likewise.
53566
53567 2008-06-23  Eric Blake  <ebb9@byu.net>
53568
53569         Fix typo.
53570         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53571
53572         Avoid SA_ namespace.
53573         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53574         Reported by Ralf Wildenhues.
53575
53576         Avoid test failure due to SA_RESTORER.
53577         * tests/test-sigaction.c (SA_MASK): New macro.
53578         (main): Avoid failing due to extension flags being set.
53579         Reported by Jim Meyering.
53580
53581         Revert use of sig-handler.h in sigprocmask.c.
53582         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53583         it requires the existence of struct sigaction.
53584         * lib/sigprocmask.c (handler_t): Restore typedef.
53585         (rpl_signal, old_handlers): Use local type.
53586
53587 2008-06-22  Bruno Haible  <bruno@clisp.org>
53588
53589         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53590         conditionally.
53591         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53592
53593 2008-06-22  Bruno Haible  <bruno@clisp.org>
53594
53595         * doc/posix-functions/siginterrupt.texi: Move note.
53596
53597         * lib/signal.in.h (SA_RESTART): New macro.
53598         * lib/sigaction.c: Update comment.
53599
53600         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53601
53602         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53603         (gl_PREREQ_SIGPROCMASK): Invoke it.
53604         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53605
53606         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53607
53608         * lib/sigprocmask.c: Update a comment.
53609
53610 2008-06-21  Eric Blake  <ebb9@byu.net>
53611
53612         Use sigaction module rather than signal().
53613         * modules/c-stack (Depends-on): Add sigaction.
53614         * modules/fatal-signal (Depends-on): Likewise.
53615         * modules/nanosleep (Depends-on): Likewise.
53616         * modules/sigprocmask (Files): Add sig-handler.h.
53617         * modules/sigaction (Files): Likewise.
53618         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53619         Eggert.
53620         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53621         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53622         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53623         (init_fatal_signals): Likewise.
53624         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53625         (siginterrupt): Delete fallback.
53626         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53627         instead.
53628         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53629         siginterrupt.
53630
53631         New module sigaction, for mingw.
53632         * modules/sigaction: New module...
53633         * modules/sigaction-tests: ...and its test.
53634         * m4/sigaction.m4: New file.
53635         * lib/sigaction.c: Likewise.
53636         * tests/test-sigaction.c: Likewise.
53637         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53638         * modules/signal (Makefile.am): Likewise.
53639         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53640         needed.
53641         * doc/posix-headers/signal.texi (signal.h): Mention provided
53642         types.
53643         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53644         that sigaction is preferable.
53645         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53646         module.
53647         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53648         sigaction.
53649
53650         Improve robustness of sigprocmask by overriding signal.
53651         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53652         is in use.
53653         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53654         (SIGKILL, SIGSTOP): Provide fallbacks.
53655         (rpl_signal): Implement.
53656         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53657         signal can be called inside handlers.
53658
53659         Fix nanosleep module on mingw.
53660         * modules/nanosleep (Depends-on): Add sys_select.
53661         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53662
53663         Fix licensing of sigprocmask.
53664         * modules/raise (License): Relicense as LGPL.
53665
53666 2008-06-21  Bruno Haible  <bruno@clisp.org>
53667
53668         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53669         result if it contains question marks.
53670         Reported by Michael Geng <linux@michaelgeng.de>.
53671
53672 2008-06-19  Bruno Haible  <bruno@clisp.org>
53673
53674         Fix CVS-ism.
53675         * doc/gnulib.texi: Include updated-stamp.texi.
53676         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53677         (updated-stamp.texi): New rule.
53678         (gnulib.info): Depend on it.
53679         * doc/.gitignore: Add updated-stamp.texi.
53680         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53681
53682 2008-06-19  Bruno Haible  <bruno@clisp.org>
53683
53684         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53685         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53686
53687 2008-06-19  Eric Blake  <ebb9@byu.net>
53688
53689         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53690         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53691         Reported by Stepan Kasal.
53692
53693 2008-06-18  Bruno Haible  <bruno@clisp.org>
53694
53695         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53696         Reported by Eric Blake.
53697
53698 2008-06-18  Eric Blake  <ebb9@byu.net>
53699
53700         Work around cygwin 1.5.25 strsignal bug.
53701         * tests/test-strsignal.c: Allow for const char *.
53702         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53703
53704 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53705
53706         * users.txt: Update URL to article and add author/date
53707         information.
53708
53709 2008-06-17  Bruno Haible  <bruno@clisp.org>
53710
53711         New macro gl_DISABLE_THREADS.
53712         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53713         if the user did not pass --enable-threads or --disable-threads option.
53714         (gl_DISABLE_THREADS): New macro.
53715         Reported by Eric Blake <ebb9@byu.net>.
53716
53717 2008-06-17  Bruno Haible  <bruno@clisp.org>
53718
53719         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53720         when the macro ignores it.
53721         Based on a patch by Eric Blake <ebb9@byu.net>.
53722
53723 2008-06-17  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/tls (License): Change to LGPLv2+.
53726         Reported by Eric Blake.
53727
53728 2008-06-17  Eric Blake  <ebb9@byu.net>
53729
53730         Simplify c-stack prerequisites.
53731         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53732         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53733         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53734         check.
53735         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53736         <sys/resource.h>.
53737
53738         Move c-stack test into testsuite.
53739         * modules/c-stack-tests: New file.
53740         * lib/c-stack.c [DEBUG]: Move test program...
53741         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53742         fail test if sigaltstack is lacking.
53743         * tests/test-c-stack.sh: New driver file.
53744
53745 2008-06-16  Eric Blake  <ebb9@byu.net>
53746
53747         Use raise module consistently.
53748         * modules/fatal-signal (Depends-on): Add raise.
53749         * modules/sigprocmask (Depends-on): Likewise.
53750         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53751         * lib/sigprocmask.c (sigprocmask): Likewise.
53752         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53753         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53754
53755         Fix compliance bug in sigpending.
53756         * lib/sigprocmask.c (sigpending): Return pending array via
53757         parameter, not return value.
53758
53759 2008-06-14  Eric Blake  <ebb9@byu.net>
53760
53761         Improve obstack-printf test code.
53762         * tests/test-obstack-printf.c (test_function): Fix comment, and
53763         simplify usage of obstack_* in macros.  Add a test for coverage.
53764         Reported by Bruno Haible.
53765
53766 2008-06-14  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53769         array size as a constant, not as a const variable.
53770         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53771         AC_USE_SYSTEM_EXTENSIONS.
53772         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53773         Test whether the obstack_printf function actually exists.
53774         * modules/obstack-printf (Depends-on): Add extensions.
53775         (Include): Remove obstack.h.
53776         * modules/obstack-printf-posix (Depends-on): Add extensions.
53777         (Include): Remove obstack.h.
53778
53779 2008-06-13  Eric Blake  <ebb9@byu.net>
53780
53781         Add obstack-printf and obstack-printf-posix modules.
53782         * modules/obstack-printf: New file.
53783         * modules/obstack-printf-posix: Likewise.
53784         * MODULES.html.sh (Misc): Mention them.
53785         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53786         Likewise.
53787         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53788         Likewise.
53789         * modules/stdio (Makefile.am): Accomodate new modules.
53790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53791         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53792         Declare.
53793         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53794         functions.
53795         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53796         (gl_REPLACE_OBSTACK_PRINTF): New macros
53797         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53798         * tests/test-obstack-printf.c: New file.
53799         * modules/obstack-printf-tests: Likewise.
53800         * modules/obstack-printf-posix-tests: Likewise.
53801
53802 2008-06-11  Bruno Haible  <bruno@clisp.org>
53803
53804         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53805         * lib/open.c: Include errno.h.
53806         (open): Fail when attempting to write to a file that has a trailing
53807         slash.
53808         * tests/test-open.c (main): Test against trailing slash bug.
53809         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53810
53811 2008-06-10  Bruno Haible  <bruno@clisp.org>
53812
53813         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53814         for $? to work inside the trap command, with various /bin/sh-s.
53815         * tests/test-vc-list-files-cvs.sh: Likewise.
53816
53817 2008-06-10  Bruno Haible  <bruno@clisp.org>
53818
53819         * lib/acl-internal.h: Don't include gettext.h here.
53820         * lib/set-mode-acl.c: Include gettext.h here.
53821         * lib/copy-acl.c: Likewise.
53822
53823 2008-06-10  Bruno Haible  <bruno@clisp.org>
53824
53825         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53826         * lib/wait-process.c (wait_subprocess): Likewise.
53827         * lib/execute.h (execute): Add termsigp argument.
53828         * lib/execute.c (execute): Likewise.
53829         * lib/csharpcomp.c (compile_csharp_using_pnet,
53830         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53831         * lib/csharpexec.c (execute_csharp_using_pnet,
53832         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53833         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53834         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53835         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53836         is_jikes_present): Update.
53837         * lib/javaexec.c (execute_java_class): Update.
53838         * lib/javaversion.c (execute_and_read_line): Update.
53839         * NEWS: Document the changes.
53840         Reported by Eric Blake.
53841
53842 2008-06-10  Eric Blake  <ebb9@byu.net>
53843
53844         Add missing include.
53845         * tests/test-strstr.c (includes): Add <signal.h>.
53846         * tests/test-strcasestr.c (includes): Likewise.
53847         * tests/test-memmem.c (includes): Likewise.
53848
53849 2008-06-10  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/wait-process.c (wait_subprocess): Add an assertion.
53852
53853 2008-06-10  Bruno Haible  <bruno@clisp.org>
53854
53855         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53856
53857 2008-06-10  Bruno Haible  <bruno@clisp.org>
53858
53859         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53860         using alarm().
53861         * tests/test-strcasestr.c (main): Likewise.
53862         * tests/test-strstr.c (main): Likewise.
53863
53864 2008-06-09  Bruno Haible  <bruno@clisp.org>
53865
53866         Work around the Solaris 10 ACE ACLs ABI change.
53867         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53868         declare if ACL_NO_TRIVIAL is present.
53869         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53870         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53871         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53872         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53873         define if ACL_NO_TRIVIAL is present.
53874         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53875         and use the current ABI.
53876         (file_has_acl): Use same #if condition as elsewhere.
53877         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53878         in use, and use the current ABI.
53879         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53880         Reported by Jim Meyering.
53881
53882 2008-06-09  Eric Blake  <ebb9@byu.net>
53883
53884         Work around environments that (stupidly) ignore SIGALRM.
53885         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53886         before using alarm().
53887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53889         Reported by Ian Beckwith <ianb@erislabs.net>.
53890
53891         Produce autobuild blurb earlier in log.
53892         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53893
53894 2008-06-09  Jim Meyering  <meyering@redhat.com>
53895         and OndÅ™ej Vašík  <ovasik@redhat.com>
53896
53897         utimens.c: correct kernel bug work-around
53898         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53899         failure, not success, and the kernel bug we're trying to work
53900         around affects not just the utimensat call, but also the fallback
53901         futimens call.
53902         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53903         not success.
53904         [HAVE_FUTIMENS]: Use the same work-around, here.
53905
53906 2008-06-09  Jim Meyering  <meyering@redhat.com>
53907
53908         add more guards around definition of ACE_-related code
53909         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53910         ALLOW and ACE_OWNER are also defined.
53911
53912 2008-06-08  Bruno Haible  <bruno@clisp.org>
53913
53914         * lib/acl-internal.h: Add me as co-author.
53915         * lib/file-has-acl.c: Likewise.
53916         * lib/set-mode-acl.c: Likewise.
53917         * lib/copy-acl.c: Likewise.
53918
53919 2008-06-08  Bruno Haible  <bruno@clisp.org>
53920
53921         Add support for AIX ACLs.
53922         * lib/acl-internal.h (acl_nontrivial): New declaration.
53923         * lib/file-has-acl.c (acl_nontrivial): New function.
53924         (file_has_acl): Add implementation using AIX 4 ACL API.
53925         * lib/set-mode-acl.c (qset_acl): Likewise.
53926         * lib/copy-acl.c (qcopy_acl): Likewise.
53927
53928 2008-06-08  Bruno Haible  <bruno@clisp.org>
53929
53930         Add support for HP-UX ACLs.
53931         * lib/acl-internal.h (acl_nontrivial): New declaration.
53932         * lib/file-has-acl.c (acl_nontrivial): New function.
53933         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53934         * lib/set-mode-acl.c (qset_acl): Likewise.
53935         * lib/copy-acl.c (qcopy_acl): Likewise.
53936
53937 2008-06-08  Bruno Haible  <bruno@clisp.org>
53938
53939         Add support for Cygwin ACLs.
53940         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53941         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53942         the chmod_or_fchmod call.
53943         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53944
53945 2008-06-08  Bruno Haible  <bruno@clisp.org>
53946
53947         Fix bug with setuid modes in Solaris 10+ code.
53948         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53949         succeeded, when the mode contains some special bits.
53950
53951 2008-06-08  Bruno Haible  <bruno@clisp.org>
53952
53953         Add support for Solaris 7..10 ACLs.
53954         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53955         declarations.
53956         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53957         functions.
53958         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53959         * lib/set-mode-acl.c (qset_acl): Likewise.
53960         * lib/copy-acl.c (qcopy_acl): Likewise.
53961
53962 2008-06-08  Bruno Haible  <bruno@clisp.org>
53963
53964         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53965         declaration.
53966         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53967         (acl_access_nontrivial): Remove MacOS X case.
53968         (file_has_acl): Use acl_extended_nontrivial.
53969         * lib/copy-acl.c (qcopy_acl): Likewise.
53970
53971 2008-06-08  Bruno Haible  <bruno@clisp.org>
53972
53973         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53974
53975 2008-06-08  Jim Meyering  <meyering@redhat.com>
53976
53977         * modules/acl (Maintainer): Add Bruno Haible.
53978
53979 2008-06-07  Bruno Haible  <bruno@clisp.org>
53980
53981         Improve support for Tru64 ACLs.
53982         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53983         ACL on OSF/1.
53984
53985 2008-06-07  Bruno Haible  <bruno@clisp.org>
53986
53987         Add support for MacOS X ACLs.
53988         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53989         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53990         * lib/set-mode-acl.c (qset_acl): Likewise.
53991         * lib/copy-acl.c (qcopy_acl): Likewise.
53992
53993 2008-06-07  Bruno Haible  <bruno@clisp.org>
53994
53995         Fix memory leak introduced on 2008-05-22.
53996         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53997         use.
53998
53999 2008-06-07  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54002         to construct an empty ACL.
54003
54004 2008-06-07  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54007         precisely.
54008         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54009
54010 2008-06-07  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54013         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54014
54015 2008-06-07  Bruno Haible  <bruno@clisp.org>
54016
54017         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54018         regardless of POSIX.
54019         * doc/posix-functions/_longjmp.texi: Likewise.
54020         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54021         SystemV platform in this case.
54022
54023 2008-06-06  Eric Blake  <ebb9@byu.net>
54024
54025         Document abort() bugs.
54026         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54027
54028         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54029         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54030         sigsetjmp.
54031         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54032         siglongjmp, but only as a macro.
54033         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54034         is obsolete.
54035         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54036
54037         Tweak documentation to cover cygwin argz bugs.
54038         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54039         argz bug fix; no code change needed since no cygwin releases
54040         occurred between the last fix and the bug being tested.
54041         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54042         module and recently fixed cygwin bugs.
54043         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54044         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54045         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54046         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54047         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54048         Likewise.
54049         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54050         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54051         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54052         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54053         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54054         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54055         Likewise.
54056
54057         Avoid gcc warning on cygwin.
54058         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54059         !ACL_NO_TRIVIAL]: Avoid unused variable.
54060
54061 2008-06-05  Eric Blake  <ebb9@byu.net>
54062
54063         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54064         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54065         git-version-gen fails to come up with a version.
54066         Reported by Simon Josefsson.
54067
54068 2008-06-05  Jim Meyering  <meyering@redhat.com>
54069             Paul Eggert  <eggert@cs.ucla.edu>
54070
54071         utimens.c: work around a probable Linux kernel bug
54072         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54073         appears to be a kernel bug that causes utimensat to return 280
54074         instead of 0, indicating success.
54075
54076 2008-06-04  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54079         2008-06-01 commit.
54080
54081 2008-06-04  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54084         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54085         (file_has_acl): Use it. Save errno afterwards.
54086         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54087
54088 2008-06-03  Bruno Haible  <bruno@clisp.org>
54089
54090         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54091         draft code. Simplify #ifs.
54092         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54093         Put Solaris code after POSIX-draft code. Fix comments regarding
54094         Solaris 10, HP-UX. Mention Cygwin.
54095         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54096
54097 2008-06-03  Eric Blake  <ebb9@byu.net>
54098
54099         Provide fallback for older kernels.
54100         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54101         Provide runtime fallback if kernel lacks support.
54102         Reported by Mike Frysinger.
54103
54104 2008-06-02  Bruno Haible  <bruno@clisp.org>
54105
54106         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54107         it exists.
54108
54109 2008-06-02  Bruno Haible  <bruno@clisp.org>
54110
54111         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54112         * lib/copy-acl.c (qcopy_acl): Update comment.
54113
54114 2008-06-02  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54117         like ACL APIs.
54118
54119 2008-06-02  Bruno Haible  <bruno@clisp.org>
54120
54121         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54122         * tests/test-set-mode-acl.sh: Likewise.
54123         * tests/test-copy-acl.sh: Likewise.
54124         * tests/test-copy-file.sh: Likewise.
54125
54126 2008-06-02  Bruno Haible  <bruno@clisp.org>
54127
54128         * tests/test-file-has-acl.sh: Remove unused code.
54129
54130 2008-06-01  Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54133         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54134         messages.
54135         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54136
54137 2008-06-01  Bruno Haible  <bruno@clisp.org>
54138
54139         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54140         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54141         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54142         APIs.
54143         * modules/acl-tests (configure.ac): Remove tests now contained in
54144         m4/acl.m4.
54145
54146 2008-06-02  Jim Meyering  <meyering@redhat.com>
54147
54148         announce-gen: use a better key-server host name
54149         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54150         it may be more consistently reliable.  Suggested by Werner Koch
54151         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54152
54153 2008-06-01  Bruno Haible  <bruno@clisp.org>
54154
54155         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54156         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54157
54158 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54159
54160         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54161
54162 2008-06-01  Bruno Haible  <bruno@clisp.org>
54163
54164         New ACL tests.
54165         * tests/test-file-has-acl.sh: New file.
54166         * tests/test-file-has-acl.c: New file.
54167         * tests/test-set-mode-acl.sh: New file.
54168         * tests/test-set-mode-acl.c: New file.
54169         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54170         * tests/test-copy-acl.c: New file.
54171         * modules/acl-tests: New file, based on modules/copy-file-tests.
54172         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54173         (Depends-on): Add acl-tests.
54174         (configure.ac): Remove checks.
54175         (Makefile.am): Don't create test-sameacls program here any more.
54176
54177 2008-06-01  Bruno Haible  <bruno@clisp.org>
54178
54179         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54180         * tests/test-sameacls.c: Include progname.h.
54181         (main): Invoke set_program_name. Portability fixes for MacOS X,
54182         Solaris, HP-UX.
54183
54184 2008-06-01  Bruno Haible  <bruno@clisp.org>
54185
54186         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54187         function.
54188         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54189
54190 2008-06-01  Bruno Haible  <bruno@clisp.org>
54191
54192         * modules/rpmatch (Depends-on): Add strdup.
54193
54194 2008-06-01  Bruno Haible  <bruno@clisp.org>
54195
54196         * lib/pipe.c: Include unistd-safer.h.
54197         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54198         * modules/pipe (Depends-on): Add unistd-safer.
54199
54200 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54201
54202         * modules/autobuild (configure.ac): Call AB_INIT.
54203
54204 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54205
54206         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54207         Suggested by Bruno Haible <bruno@clisp.org>.
54208
54209 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54210
54211         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54212         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54213         <bruno@clisp.org>.
54214
54215 2008-05-29  Eric Blake  <ebb9@byu.net>
54216
54217         Prefer new POSIX 200x interfaces over futimesat.
54218         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54219         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54220         when available.
54221         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54222
54223 2008-05-28  Bruno Haible  <bruno@clisp.org>
54224
54225         * modules/stpcpy (License): Change to LGPLv2+.
54226         Requested by David Lutterkort <dlutter@redhat.com>.
54227
54228 2008-05-27  Bruno Haible  <bruno@clisp.org>
54229
54230         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54231         current mingw.
54232         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54233
54234 2008-05-27  Bruno Haible  <bruno@clisp.org>
54235
54236         * modules/iconv_open (Link): New section, from module 'iconv'.
54237         * modules/striconv (Link): Likewise.
54238         * modules/striconveh (Link): Likewise.
54239         * modules/xstriconv (Link): Likewise.
54240         * modules/unicodeio (Link): Likewise.
54241         * modules/propername (Link): Likewise.
54242         Reported by Jim Meyering.
54243
54244 2008-05-26  Jim Meyering  <meyering@redhat.com>
54245
54246         sha256: do not artificially restrict buffer length to be < 2^32
54247         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54248         uint32_t to size_t.
54249         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54250         to match.
54251
54252         avoid unaligned access errors, e.g., on sparc
54253         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54254         direct access through a possibly-unaligned uint64* pointer.
54255         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54256         direct access through a possibly-unaligned uint32* pointer.
54257         Prompted by this patch from Tom "spot" Callaway:
54258         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54259
54260         sha512.c: fix typo in comment
54261         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54262
54263 2008-05-25  Bruno Haible  <bruno@clisp.org>
54264
54265         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54266         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54267         (Makefile.am): Update lib_SOURCES.
54268
54269 2008-05-25  Bruno Haible  <bruno@clisp.org>
54270
54271         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54272
54273 2008-05-25  Jim Meyering  <meyering@redhat.com>
54274
54275         useless-if-before-free: freed expr may have white-space differences
54276         * build-aux/useless-if-before-free: Recognize cases in which the
54277         freed expression differs from the tested one in embedded white
54278         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54279         $1 was used, so we can't make any regexp shy.  Improved tests now
54280         detect this.
54281
54282         useless-if-before-free: accept white space in the expression.
54283         * build-aux/useless-if-before-free: For now, any white space
54284         in the expression must be identical in the free argument.
54285
54286         useless-if-before-free: efficiency tweak
54287         * build-aux/useless-if-before-free: Make the expression-matching
54288         regexp "shy".
54289         Make the *outer* regexp shy, not the expr-matching one.
54290
54291         update code-in-comment to accept cast of free arg
54292         * build-aux/useless-if-before-free: Update regexp.
54293
54294 2008-05-25  Bruno Haible  <bruno@clisp.org>
54295
54296         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54297         * modules/copy-file-tests (Files, Makefile.am): Update.
54298         * tests/test-copy-file.c (func_test_copy): Update.
54299
54300 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54301
54302         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54303
54304 2008-05-23  Bruno Haible  <bruno@clisp.org>
54305
54306         Improve support for ACLs on OSF/1.
54307         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54308         Remove fallback for unknown flavors of ACLs.
54309
54310 2008-05-22  Bruno Haible  <bruno@clisp.org>
54311
54312         Add support for ACLs on OSF/1.
54313         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54314         replacements.
54315         (acl_free_text): New macro fallback.
54316         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54317         acl_free.
54318         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54319         acl_free_text function. Require AC_C_INLINE.
54320
54321 2008-05-22  Bruno Haible  <bruno@clisp.org>
54322
54323         Make copy_acl work on MacOS X 10.5.
54324         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54325         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54326         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54327         If MODE_INSIDE_ACL, don't assume that every system has the same text
54328         representation for ACLs as FreeBSD.
54329         * lib/copy-acl.c (copy_acl): Add support for platforms with
54330         !MODE_INSIDE_ACL.
54331         * lib/file-has-acl.c (file_has_acl): Likewise.
54332         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54333         FreeBSD, MacOS X, or IRIX, respectively.
54334
54335 2008-05-22  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/acl.h: Don't include <sys/acl.h>.
54338         (GETACLCNT): Move fallback to lib/acl-internal.h.
54339         * lib/acl-internal.h: Include <sys/acl.h> here.
54340         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54341
54342 2008-05-22  Bruno Haible  <bruno@clisp.org>
54343
54344         Split off copy_acl function to separate file.
54345         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54346         * lib/acl.c (copy_acl): Moved function to separate file.
54347         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54348         * modules/acl (Files): Add lib/copy-acl.c.
54349         (Makefiles.am): Augment lib_SOURCES.
54350
54351 2008-05-22  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/copy-file-tests: New file.
54354         * tests/test-copy-file.sh: New file.
54355         * tests/test-copy-file.c: New file.
54356         * tests/test-copy-file-sameacls.c: New file.
54357
54358 2008-05-22  Eric Blake  <ebb9@byu.net>
54359
54360         Avoid gcc warning.
54361         * tests/test-memcmp.c (main): Pass NULL indirectly.
54362
54363 2008-05-21  Bruno Haible  <bruno@clisp.org>
54364
54365         Add reference doc about ACLs.
54366         * doc/acl-resources.txt: New file.
54367         * doc/acl-cygwin.txt: New file.
54368
54369 2008-05-21  Bruno Haible  <bruno@clisp.org>
54370
54371         Avoid one more warning from gcc.
54372         * lib/vasnprintf.c (IF_LINT): Update comments.
54373         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54374
54375 2008-05-21  Jim Meyering  <meyering@redhat.com>
54376
54377         avoid a warning from gcc
54378         * lib/vasnprintf.c (IF_LINT): Define.
54379         (scale10_round_decimal_long_double):
54380         Use it to avoid a "may be used uninitialized" warning.
54381         (scale10_round_decimal_double): Likewise.
54382
54383 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54384
54385         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54386         declared.
54387
54388 2008-05-20  Bruno Haible  <bruno@clisp.org>
54389
54390         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54391         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54392
54393 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54394
54395         * modules/memcmp-tests: New file.
54396         * tests/test-memcmp.c: New file.
54397
54398 2008-05-19  Bruno Haible  <bruno@clisp.org>
54399
54400         * modules/propername (Notice, configure.ac): Put quoted "..." into
54401         --keyword option.
54402         * lib/propername.h: Update comments accordingly.
54403         Reported by Eric Blake.
54404
54405 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54406
54407         * modules/getpass-gnu (Depends-on): Add fseeko.
54408
54409 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54410
54411         * modules/base64-tests: New file.
54412
54413 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54414
54415         * lib/base64.c (base64_decode_ctx): If a decode context structure
54416         was passed in use it to ignore newlines.  If a context structure
54417         was _not_ passed in, continue to treat newlines as garbage (this
54418         is the historical behavior).  Formerly base64_decode.
54419         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54420         takes a decode context structure.
54421         * lib/base64.h (base64_decode): Macro for four-argument calls.
54422         (base64_decode_alloc): Likewise.
54423         * lib/base64.c (base64_decode_ctx): If a decode context structure
54424         was passed in use it to ignore newlines.  If a context structure
54425         was _not_ passed in, continue to treat newlines as garbage (this
54426         is the historical behavior).  Formerly base64_decode.
54427         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54428         takes a decode context structure.
54429         * lib/base64.h (base64_decode): Macro for four-argument calls.
54430         (base64_decode_alloc): Likewise.
54431
54432 2008-05-19  Jim Meyering  <meyering@redhat.com>
54433
54434         avoid a warning from gcc
54435         * lib/trim.c (IF_LINT): Define.
54436         (trim2): Use it to avoid a "may be used uninitialized" warning.
54437
54438         Fix doc typo.
54439         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54440
54441 2008-05-19  Bruno Haible  <bruno@clisp.org>
54442
54443         * doc/glibc-functions/getpass.texi: Document limits of other
54444         implementations.
54445
54446 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54447             Bruno Haible <bruno@clisp.org>
54448
54449         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54450
54451 2008-05-18  Bruno Haible  <bruno@clisp.org>
54452
54453         * modules/propername: New file, from GNU gettext.
54454         * lib/propername.h: New file, from GNU gettext.
54455         * lib/propername.c: New file, from GNU gettext.
54456         * MODULES.html.sh (Internationalization functions): Add propername.
54457
54458 2008-05-16  Jim Meyering  <meyering@redhat.com>
54459             Bruno Haible  <bruno@clisp.org>
54460
54461         Avoid some warnings from "gcc -Wshadow".
54462         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54463
54464 2008-05-15  Eric Blake  <ebb9@byu.net>
54465
54466         Extend previous patch to cygwin 1.7.0.
54467         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54468         fast implementation in cygwin >= 1.7.0.
54469         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54471
54472 2008-05-15  Bruno Haible  <bruno@clisp.org>
54473
54474         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54475         implementation in glibc >= 2.9.
54476         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54478
54479 2008-05-15  Bruno Haible  <bruno@clisp.org>
54480
54481         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54482         (Unicode string functions): Add unilbrk/*.
54483         Reported by Karl Berry.
54484
54485 2008-05-15  Eric Blake  <ebb9@byu.net>
54486
54487         Fix violation of <stdbool.h> replacement in regex.
54488         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54489         * lib/regexec.c (re_search_internal): Likewise.
54490         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54491
54492 2008-05-15  Jim Meyering  <meyering@redhat.com>
54493
54494         avoid distracting test output when git or cvs is not found
54495         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54496         * tests/test-vc-list-files-git.sh: Likewise.
54497
54498 2008-05-15  Eric Blake  <ebb9@byu.net>
54499
54500         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54501         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54502         glibc version.
54503         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54504         * doc/posix-functions/strstr.texi (strstr): Likewise.
54505         * lib/str-two-way.h (MAX): Sychronize with glibc.
54506
54507 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54508
54509         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54510         opr.ctx_type.
54511         (calc_first): Initialize constraint field.
54512         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54513         Fix grammar.
54514         (duplicate_node): Merge constraint field for all node types.
54515         (calc_eclosure_iter): Look at constraint field for all node types.
54516         * lib/regex_internal.c (create_cd_newstate): Don't look at
54517         opr.ctx_type.
54518
54519 2008-05-14  Bruno Haible  <bruno@clisp.org>
54520
54521         Help GCC to do better code generation.
54522         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54523         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54524         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54525         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54526         Declare with attribute 'malloc' if supported.
54527
54528 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54529
54530         use "echo STR|wc -c" rather than unportable "expr length STR"
54531         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54532         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54533
54534 2008-05-14  Jim Meyering  <meyering@redhat.com>
54535
54536         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54537         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54538         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54539         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54540         via Collin Lasse.
54541
54542 2008-05-14  Eric Blake  <ebb9@byu.net>
54543
54544         Avoid quadratic growth in gl_LIBSOURCES.
54545         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54546         Suggested by Bruno Haible.
54547
54548         Test xmemdup0.
54549         * modules/xmemdup0-tests: New file.
54550         * tests/test-xmemdup0.c: Likewise.
54551
54552 2008-05-13  Eric Blake  <ebb9@byu.net>
54553
54554         Split xmemdup0 into its own module.
54555         * modules/xmemdup0: New file.
54556         * lib/xmemdup0.h: Likewise.
54557         * lib/xmemdup0.c: Likewise.
54558         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54559         * lib/xalloc.h (xmemdup0): Remove.
54560         * lib/xmalloc.c (xmemdup0): Likewise.
54561
54562 2008-05-13  Eric Blake  <ebb9@byu.net>
54563             Bruno Haible  <bruno@clisp.org>
54564
54565         Reduce number of forks required during autoconf.
54566         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54567         and gl_LIBSOURCES_DIR.
54568         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54569         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54570         m4_syscmd per file.
54571         <m4_foreach_w>: Move...
54572         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54573
54574 2008-05-13  Eric Blake  <ebb9@byu.net>
54575
54576         * gnulib-tool: Fix various comment typos.
54577
54578 2008-05-12  Bruno Haible  <bruno@clisp.org>
54579
54580         Tailor the linebreaking algorithm.
54581         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54582
54583 2008-05-12  Bruno Haible  <bruno@clisp.org>
54584
54585         Update to Unicode 5.0.0.
54586         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54587         LBP_JV, LBP_JT. Redistribute values.
54588         (unilbrk_table): Change size.
54589         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54590         Unicode TR#14 rev. 22.
54591         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54592         LBP_JV, LBP_JT. Redistribute values.
54593         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54594         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54595         Update.
54596         * lib/unilbrk/lbrkprop1.h: Regenerated.
54597         * lib/unilbrk/lbrkprop2.h: Regenerated.
54598         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54599         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54600         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54601         Likewise.
54602         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54603         Likewise.
54604         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54605         result.
54606         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54607         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54608         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54609         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54610         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54611         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54612
54613 2008-05-11  Bruno Haible  <bruno@clisp.org>
54614
54615         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54616
54617 2008-05-11  Bruno Haible  <bruno@clisp.org>
54618
54619         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54620         * modules/unilbrk/gen-lbrk: New file.
54621
54622 2008-05-11  Bruno Haible  <bruno@clisp.org>
54623
54624         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54625         * m4/sha512.m4 (gl_SHA512): Likewise.
54626
54627 2008-05-11  Jim Meyering  <meyering@redhat.com>
54628
54629         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54630         * modules/crypto/sha256: New file.
54631         * modules/crypto/sha512: Likewise.
54632         * lib/sha256.c: Likewise.
54633         * lib/sha256.h: Likewise.
54634         * lib/sha512.c: Likewise.
54635         * lib/sha512.h: Likewise.
54636         * lib/u64.h: Likewise.
54637         * m4/sha256.m4: Likewise.
54638         * m4/sha512.m4: Likewise.
54639         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54640
54641 2008-05-10  Bruno Haible  <bruno@clisp.org>
54642
54643         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54644         (Input/Output <stdio.h>): Add xprintf.
54645         (Signal handling <signal.h>): Add strsignal.
54646         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54647         (Core language properties): Add func.
54648         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54649         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54650         strings.
54651         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54652         (Input/output): New section.
54653         (File system functions): Add openat-die, stat-macros.
54654         (Networking functions): Add sockets.
54655         (Unicode string functions): Add unictype/*.
54656         (Support for building libraries and executables): Add gperf.
54657         (Support for building documentation): Add agpl-3.0.
54658         (Misc): Add nocrash.
54659
54660 2008-05-10  Bruno Haible  <bruno@clisp.org>
54661
54662         * modules/unictype/gen-ctype: New file.
54663
54664 2008-05-10  Jim Meyering  <meyering@redhat.com>
54665
54666         Make chdir-safer.c more efficient on a system with no symlinks.
54667         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54668         also if ELOOP is zero.  Suggested by Bruno Haible.
54669
54670         Make chdir-safer.c slightly safer.
54671         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54672         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54673
54674         Avoid compile failure on systems without ELOOP (like mingw).
54675         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54676         Reported by Bruno Haible.
54677
54678 2008-05-10  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54681         (is_utf8_encoding): Use a case-insensitive comparison.
54682         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54683         streq.
54684
54685 2008-05-10  Bruno Haible  <bruno@clisp.org>
54686
54687         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54688         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54689         * lib/unilbrk/ulc-common.h (iconv_string_length,
54690         iconv_string_keeping_offsets): Remove declarations.
54691         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54692         Don't include <iconv.h>, streq.h, xsize.h.
54693         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54694         conversion.
54695         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54696         <iconv.h>, streq.h, xsize.h.
54697         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54698         conversion.
54699         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54700         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54701         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54702         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54703
54704 2008-05-10  Bruno Haible  <bruno@clisp.org>
54705
54706         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54707         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54708
54709         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54710         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54711
54712         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54713         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54714
54715         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54716         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54717
54718         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54719         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54720
54721         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54722         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54723
54724         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54725         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54726
54727         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54728         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54729
54730 2008-05-10  Bruno Haible  <bruno@clisp.org>
54731
54732         Split up 'linebreak' module.
54733         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54734         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54735         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54736         modifications.
54737         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54738         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54739         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54740         lib/linebreak.c.
54741         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54742         lib/linebreak.c.
54743         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54744         lib/linebreak.c.
54745         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54746         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54747         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54748         lib/linebreak.c.
54749         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54750         lib/linebreak.c.
54751         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54752         lib/linebreak.c.
54753         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54754         lib/linebreak.c.
54755         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54756         lib/linebreak.c.
54757         * modules/unilbrk/base: New file.
54758         * modules/unilbrk/tables: New file.
54759         * modules/unilbrk/u8-possible-linebreaks: New file.
54760         * modules/unilbrk/u16-possible-linebreaks: New file.
54761         * modules/unilbrk/u32-possible-linebreaks: New file.
54762         * modules/unilbrk/ulc-common: New file.
54763         * modules/unilbrk/ulc-possible-linebreaks: New file.
54764         * modules/unilbrk/u8-width-linebreaks: New file.
54765         * modules/unilbrk/u16-width-linebreaks: New file.
54766         * modules/unilbrk/u32-width-linebreaks: New file.
54767         * modules/unilbrk/ulc-width-linebreaks: New file.
54768         * lib/linebreak.h: Remove file.
54769         * lib/linebreak.c: Remove file.
54770         * m4/linebreak.m4: Remove file.
54771         * modules/linebreak: Remove file.
54772         * NEWS: Mention the changes.
54773
54774 2008-05-09  Eric Blake  <ebb9@byu.net>
54775
54776         Add xmemdup0.
54777         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54778         implementation.
54779         * lib/xmalloc.c (xmemdup0): New C implementation.
54780
54781 2008-05-08  Bruno Haible  <bruno@clisp.org>
54782
54783         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54784
54785 2008-05-07  Eric Blake  <ebb9@byu.net>
54786
54787         Support cross-compilation of <wctype.h>.
54788         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54789         AC_CACHE_CHECK.
54790
54791 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54792
54793         * build-aux/vc-list-files: Add support for bzr.
54794
54795 2008-05-03  Jim Meyering  <meyering@redhat.com>
54796
54797         avoid failed assertion with tight malloc
54798         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54799
54800 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54801
54802         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54803         are needed from arpa/inet.h.
54804         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54805         Reported by Bruno Haible.
54806
54807 2008-05-02  Jim Meyering  <meyering@redhat.com>
54808
54809         avoid compilation error on FreeBSD 6
54810         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54811
54812 2008-05-01  Jim Meyering  <meyering@redhat.com>
54813
54814         useless-if-before-free: correct --help's exit status description
54815         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54816         for one or more matches, etc.  Reported by Bruno Haible.
54817
54818         vc-list-files: make the stand-alone gnulib test work
54819         * modules/vc-list-files-tests (configure.ac):
54820         Define and AC_SUBST abs_aux_dir.
54821         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54822         $(abs_top_srcdir) to each script and having each of them
54823         duplicate the work of setting PATH, set PATH here, using
54824         the new variable, abs_aux_dir instead.
54825         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54826         * tests/test-vc-list-files-git.sh: Likewise.
54827         Reported by Bruno Haible.
54828
54829 2008-05-01  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54832         reallocation. Rename 'done' to 'found_delimiter'.
54833
54834 2008-05-01  Jim Meyering  <meyering@redhat.com>
54835
54836         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54837         * build-aux/vc-list-files: Use `...`, not $(...).
54838
54839 2008-04-30  Jim Meyering  <meyering@redhat.com>
54840
54841         add tests for vc-list-files
54842         * modules/vc-list-files-tests: New module.
54843         * tests/test-vc-list-files-cvs.sh: New file.
54844         * tests/test-vc-list-files-git.sh: New file.
54845
54846         avoid a warning from gcc
54847         * lib/getndelim2.c (IF_LINT): Define.
54848         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54849
54850         vc-list-files: work properly with build-aux/cvsu, too
54851         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54852         to all cvs-based clauses.
54853
54854         vc-list-files: work properly in the CVS+awk case, too
54855         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54856
54857         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54858         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54859         take more than one file argument, so .  Add quotes, just in case $dir
54860         ever contains a shell meta-character.  Prompted by Soren Hansen in
54861         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54862
54863 2008-04-29  Eric Blake  <ebb9@byu.net>
54864
54865         Optimize getndelim2 to use block operations when possible.
54866         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54867         freadseek, and memchr2.
54868         * lib/getndelim2.c (getndelim2): Use them for block reads.
54869
54870 2008-04-29  Bruno Haible  <bruno@clisp.org>
54871
54872         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54873         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54874         * modules/inet_ntop (Depends-on): Add extensions.
54875         * modules/inet_pton (Depends-on): Likewise.
54876         Reported by Simon Josefsson.
54877
54878 2008-04-29  Jim Meyering  <meyering@redhat.com>
54879
54880         When the is more than one match in a block, match all of them.
54881         * build-aux/useless-if-before-free: Iterate through each block
54882         until there are no more matches.
54883
54884         Fix broken useless-if-before-free script.
54885         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54886         the expression to match cast of argument to free-like function.
54887
54888 2008-04-29  Eric Blake  <ebb9@byu.net>
54889
54890         Use new header.
54891         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54892
54893 2008-04-29  Jim Meyering  <meyering@redhat.com>
54894
54895         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54896         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54897         by gnulib to exist and to declare e.g., inet_ntop.
54898         Don't include "inet_ntop.h", now removed.
54899
54900         * m4/arpa_inet_h.m4: Remove trailing blanks.
54901
54902 2008-04-29  Eric Blake  <ebb9@byu.net>
54903
54904         Silence valgrind on safe reads beyond potential array bounds.
54905         * lib/rawmemchr.valgrind: New file.
54906         * lib/strchrnul.valgrind: Likewise.
54907         * modules/rawmemchr (Files): Distribute new file.
54908         * modules/strchrnul (Files): Likewise.
54909         Suggested by Bruno Haible.
54910
54911 2008-04-29  Bruno Haible  <bruno@clisp.org>
54912
54913         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54914         (inet_ntop, inet_pton): Change portability warning's wording.
54915         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54916         Invoke gl_CHECK_NEXT_HEADERS.
54917         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54918         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54919         set ARPA_INET_H.
54920         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54921         * modules/arpa_inet (Description): No longer only for systems that
54922         lack it.
54923         (Depends-on): Add include_next.
54924         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54925         HAVE_ARPA_INET_H.
54926
54927 2008-04-29  Jim Meyering  <meyering@redhat.com>
54928
54929         * modules/mkdir (License): Re-license as LGPLv2+.
54930
54931 2008-04-29  Bruno Haible  <bruno@clisp.org>
54932
54933         * modules/rawmemchr (Maintainer): Set to Eric.
54934         * modules/strchrnul (Maintainer): Likewise.
54935
54936 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54937
54938         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54939         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54940
54941         * modules/arpa_inet (arpa/inet.h): Use them.
54942
54943 2008-04-28  Eric Blake  <ebb9@byu.net>
54944
54945         Test getndelim2.
54946         * modules/getndelim2-tests: New file.
54947         * tests/test-getndelim2.c: Likewise.
54948         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54949         stream.
54950         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54951
54952         * MODULES.html.sh: Document new module.
54953
54954 2008-04-20  Bruno Haible  <bruno@clisp.org>
54955
54956         * lib/c-stack.c (die): Use raise.
54957         * modules/c-stack (Depends-on): Add raise.
54958
54959 2008-04-28  Bruno Haible  <bruno@clisp.org>
54960
54961         Expect rpmatch to be declared.
54962         * lib/yesno.c (rpmatch): Remove declaration.
54963
54964         Declare rpmatch.
54965         * lib/stdlib.in.h (rpmatch): New declaration.
54966         * lib/rpmatch.c: Include <stdlib.h> first.
54967         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54968         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54970         HAVE_RPMATCH.
54971         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54972         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54973         (Include): Set to <stdlib.h>.
54974         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54975         HAVE_RPMATCH.
54976         * NEWS: Document the change.
54977
54978 2008-04-28  Bruno Haible  <bruno@clisp.org>
54979
54980         Change rpmatch to use nl_langinfo when appropriate.
54981         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54982         (N_): New macro.
54983         (localized_pattern): New function/macro.
54984         (try): Remove match, nomatch arguments. Copy the pattern into safe
54985         memory before caching it.
54986         (rpmatch): Use localized_pattern. Add translator comments.
54987         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54988         Suggested by Eric Blake.
54989         * modules/rpmatch (Depends-on): Add stdbool.
54990
54991 2008-04-28  Eric Blake  <ebb9@byu.net>
54992
54993         Add rawmemchr module, matching glibc.
54994         * modules/string (Makefile.am): New indicator.
54995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54996         * lib/string.in.h (rawmemchr): Declare when appropriate.
54997         * modules/rawmemchr: New file.
54998         * m4/rawmemchr.m4: Likewise.
54999         * lib/rawmemchr.c: Likewise.
55000         * modules/rawmemchr-tests: Likewise.
55001         * tests/test-rawmemchr.c: Likewise.
55002         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55003         module.
55004         * modules/strchrnul (Depends-on): Add rawmemchr.
55005         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55006
55007         Whitespace cleanup.
55008         * tests/test-strchrnul.c: Reindent.
55009         * lib/strchrnul.c: Likewise.
55010
55011         Optimize and test strchrnul.
55012         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55013         * modules/strchrnul-tests: New file.
55014         * tests/test-strchrnul.c: Likewise.
55015
55016         Remove intprops dependency.
55017         * modules/memchr (Depends-on): Remove intprops.
55018         * modules/memrchr (Depends-on): Likewise.
55019         * modules/memchr2 (Depends-on): Likewise.
55020         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55021         * lib/memrchr.c (__memrchr): Likewise.
55022         * lib/memrchr2.c (memchr2): Likewise.
55023         Reported by Simon Josefsson.
55024
55025 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55026
55027         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55028         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55029
55030 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55031
55032         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55033
55034         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55035
55036         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55037
55038         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55039         declarations.
55040         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55041
55042         * m4/inet_pton.m4: Don't check for header files.
55043
55044         * m4/inet_ntop.m4: Don't check for header files.
55045
55046 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55047
55048         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55049         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55050         trigger for cygwin).
55051         Reported by Bruno Haible  <bruno@clisp.org>.
55052
55053 2008-04-28  Bruno Haible  <bruno@clisp.org>
55054
55055         * doc/posix-functions/strdup.texi: Mention mingw problem.
55056
55057 2008-04-27  Bruno Haible  <bruno@clisp.org>
55058
55059         * modules/stat-time-tests (Depends-on): Add sleep.
55060         * tests/test-stat-time.c (force_unlink): New function.
55061         (cleanup): Use it.
55062         (test_mtime): Remove the ctime related tests.
55063         (test_ctime): New function, containing the ctime related tests.
55064         (main): Call test_ctime, except on native Windows platforms.
55065
55066 2008-04-27  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/rpmatch.c (rpmatch): Add some comments.
55069         Reported by James Youngman <jay@gnu.org>.
55070
55071 2008-04-27  Bruno Haible  <bruno@clisp.org>
55072
55073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55074         quiet NaNs.
55075
55076 2008-04-27  Bruno Haible  <bruno@clisp.org>
55077
55078         Make test-yesno.sh work on mingw.
55079         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55080         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55081         (main): Set stdin to binary mode.
55082         * modules/yesno-tests (Depends-on): Add binary-io.
55083
55084 2008-04-27  Bruno Haible  <bruno@clisp.org>
55085
55086         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55087         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55088         argument that lie outside the IEEE 854 domain.
55089         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55090         (gl_ISFINITE): Use it.
55091         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55092
55093 2008-04-27  Bruno Haible  <bruno@clisp.org>
55094
55095         Allow local renaming in config.h.
55096         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55097
55098 2008-04-27  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/memchr.c (__memchr): Change type of 'i'.
55101         * lib/memchr2.c (memchr2): Likewise.
55102
55103 2008-04-26  Eric Blake  <ebb9@byu.net>
55104         and Bruno Haible  <bruno@clisp.org>
55105
55106         Optimize and test memrchr.
55107         * modules/memrchr (Depends-on): Add intprops.
55108         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55109         * modules/memrchr-tests: New file.
55110         * tests/test-memrchr.c: New file.
55111
55112 2008-04-26  Bruno Haible  <bruno@clisp.org>
55113
55114         Add tentative support for DragonFly BSD.
55115         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55116         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55117         fp.
55118         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55119         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55120         * lib/fpurge.c (fpurge): Likewise.
55121         * lib/freadable.c (freaadable): Likewise.
55122         * lib/freadahead.c (freadahead): Likewise.
55123         * lib/freading.c (freading): Likewise.
55124         * lib/freadptr.c (freadptr): Likewise.
55125         * lib/freadseek.c (freadptrinc): Likewise.
55126         * lib/fseeko.c (fseeko): Likewise.
55127         * lib/fseterr.c (fseterr): Likewise.
55128         * lib/fwritable.c (fwritable): Likewise.
55129         * lib/fwriting.c (fwriting): Likewise.
55130
55131 2008-04-26  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/stdio-impl.h: New file.
55134         * lib/fbufmode.c: Include stdio-impl.h.
55135         (fbufmode): Use fp_, remove redundant #defines.
55136         * lib/fflush.c: Include stdio-impl.h.
55137         (clear_ungetc_buffer): Remove redundant #defines.
55138         * lib/fpurge.c: Include stdio-impl.h.
55139         (fpurge): Remove redundant #defines.
55140         * lib/freadable.c: Include stdio-impl.h.
55141         (freadable): Remove redundant #defines.
55142         * lib/freadahead.c: Include stdio-impl.h.
55143         (freadahead): Remove redundant #defines.
55144         * lib/freading.c: Include stdio-impl.h.
55145         (freading): Remove redundant #defines.
55146         * lib/freadptr.c: Include stdio-impl.h.
55147         (freadptr): Remove redundant #defines.
55148         * lib/freadseek.c: Include stdio-impl.h.
55149         (freadptrinc): Remove redundant #defines.
55150         * lib/fseeko.c: Include stdio-impl.h.
55151         (rpl_fseeko): Remove redundant #defines.
55152         * lib/fseterr.c: Include stdio-impl.h.
55153         (fseterr): Remove redundant #defines.
55154         * lib/fwritable.c: Include stdio-impl.h.
55155         (fwritable: Remove redundant #defines.
55156         * lib/fwriting.c: Include stdio-impl.h.
55157         (fwriting): Remove redundant #defines.
55158         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55159         * modules/fflush (Files): Likewise.
55160         * modules/fpurge (Files): Likewise.
55161         * modules/freadable (Files): Likewise.
55162         * modules/freadahead (Files): Likewise.
55163         * modules/freading (Files): Likewise.
55164         * modules/freadptr (Files): Likewise.
55165         * modules/freadseek (Files): Likewise.
55166         * modules/fseeko (Files): Likewise.
55167         * modules/fseterr (Files): Likewise.
55168         * modules/fwritable (Files): Likewise.
55169         * modules/fwriting (Files): Likewise.
55170
55171 2008-04-26  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55174         restore_seek_optimization, update_fpos_cache): New functions, extracted
55175         from rpl_fflush.
55176         (rpl_fflush): Use them.
55177         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55178         (gl_REPLACE_FFLUSH): Use it.
55179
55180 2008-04-26  Bruno Haible  <bruno@clisp.org>
55181
55182         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55183         on Solaris.
55184         * tests/test-xstrtoimax.sh: Likewise.
55185         * tests/test-xstrtoumax.sh: Likewise.
55186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55187
55188 2008-04-26  Bruno Haible  <bruno@clisp.org>
55189
55190         * modules/memchr-tests: New file.
55191         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55192
55193 2008-04-26  Eric Blake  <ebb9@byu.net>
55194             Bruno Haible  <bruno@clisp.org>
55195
55196         * lib/memchr.c: Include intprops.h.
55197         (__memchr): Optimize parallel detection of matching bytes. Rename local
55198         variables. Add explanatory comments.
55199
55200 2008-04-26  Bruno Haible  <bruno@clisp.org>
55201
55202         Fix module 'memchr', broken since 2000-10-28.
55203         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55204
55205 2008-04-26  Bruno Haible  <bruno@clisp.org>
55206
55207         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55208         comments.
55209
55210 2008-04-25  Eric Blake  <ebb9@byu.net>
55211
55212         Use native fstatat on cygwin 1.7.0.
55213         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55214         first.
55215
55216 2008-04-23  Eric Blake  <ebb9@byu.net>
55217
55218         Improve memchr2 performance.
55219         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55220         NUL bytes.
55221         * modules/memchr2 (Depends-on): Use intprops.h.
55222
55223 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55224
55225         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55226         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55227         <blp@cs.stanford.edu>.
55228
55229 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55230
55231         * lib/arpa_inet.in.h: New file.
55232
55233         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55234         (Makefile.am): Sed in substitute header file.
55235
55236         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55237         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55238
55239         * modules/inet_ntop (configure.ac): Use
55240         gl_ARPA_INET_MODULE_INDICATOR.
55241
55242         * modules/inet_pton (configure.ac): Use
55243         gl_ARPA_INET_MODULE_INDICATOR.
55244
55245 2008-04-22  Jim Meyering  <meyering@redhat.com>
55246
55247         * modules/verify (License): Re-license as LGPLv2+.
55248
55249 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55250
55251         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55252         parameter to void* as per POSIX standard (MinGW uses char*).
55253
55254 2008-04-21  Bruno Haible  <bruno@clisp.org>
55255
55256         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55257         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55258         Define to replacements if REPLACE_ISWCNTRL is 1.
55259         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55260         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55261         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55262         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55263         what it fixes.
55264         * doc/posix-functions/iswalpha.texi: Likewise.
55265         * doc/posix-functions/iswblank.texi: Likewise.
55266         * doc/posix-functions/iswcntrl.texi: Likewise.
55267         * doc/posix-functions/iswdigit.texi: Likewise.
55268         * doc/posix-functions/iswgraph.texi: Likewise.
55269         * doc/posix-functions/iswlower.texi: Likewise.
55270         * doc/posix-functions/iswprint.texi: Likewise.
55271         * doc/posix-functions/iswpunct.texi: Likewise.
55272         * doc/posix-functions/iswspace.texi: Likewise.
55273         * doc/posix-functions/iswupper.texi: Likewise.
55274         * doc/posix-functions/iswxdigit.texi: Likewise.
55275         Reported by Alain Guibert.
55276
55277 2008-04-21  Bruno Haible  <bruno@clisp.org>
55278
55279         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55280         Patch by Alain Guibert.
55281
55282 2008-04-21  Bruno Haible  <bruno@clisp.org>
55283
55284         Fix test failures on mingw.
55285         * tests/test-xstrtol.c (print_no_progname): New function.
55286         (main): Install it in error_print_progname hook.
55287         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55288         * tests/test-xstrtoimax.sh: Likewise.
55289         * tests/test-xstrtoumax.sh: Likewise.
55290
55291 2008-04-21  Bruno Haible  <bruno@clisp.org>
55292
55293         Fix test failure on mingw.
55294         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55295
55296 2008-04-21  Bruno Haible  <bruno@clisp.org>
55297
55298         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55299         Actually assign a value.
55300
55301 2008-04-20  Bruno Haible  <bruno@clisp.org>
55302
55303         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55304         take 2.
55305         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55306         'canonicalize-lgpl' module is also used.
55307         * lib/canonicalize-lgpl.c: Undo last change.
55308         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55309
55310 2008-04-20  Bruno Haible  <bruno@clisp.org>
55311
55312         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55313         config.h. Provide _mkdir based fallback for mingw.
55314         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55315         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55316         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55317         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55318         rather than defining mkdir in config.h.
55319         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55320         (gl_SYS_STAT_H_DEFAULTS): New macro.
55321         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55322         HAVE_IO_H any more.
55323         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55324         HAVE_DECL_MKDIR and HAVE_IO_H.
55325
55326 2008-04-20  Bruno Haible  <bruno@clisp.org>
55327
55328         * lib/isapipe.c: Port to native Windows platforms.
55329
55330 2008-04-20  Bruno Haible  <bruno@clisp.org>
55331
55332         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55333
55334 2008-04-21  Eric Blake  <ebb9@byu.net>
55335
55336         Work around preprocessors that don't handle UINTMAX_MAX.
55337         * lib/memchr2.c (memchr2): Avoid embedded #if.
55338         Reported by Alain Guibert, fix suggested by Bruno Haible.
55339
55340 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55341
55342         * doc/posix-functions/strftime.texi (strftime): Explain better
55343         Windows incompatibility.  Suggested by Micah Cowan
55344         <micah@cowan.name>.
55345
55346 2008-04-20  Bruno Haible  <bruno@clisp.org>
55347
55348         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55349         unistr/u8-mblen.
55350
55351 2008-04-20  Bruno Haible  <bruno@clisp.org>
55352
55353         Fix test failure on platforms with non-GNU iconv.
55354         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55355         (U_TO_U8): Use it, rather than u16_to_u8.
55356         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55357         units at the end of the input string.
55358         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55359
55360 2008-04-20  Bruno Haible  <bruno@clisp.org>
55361
55362         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55363         when the resulting length is 0.
55364         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55365
55366 2008-04-20  Bruno Haible  <bruno@clisp.org>
55367
55368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55369         works.
55370         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55371
55372 2008-04-20  Bruno Haible  <bruno@clisp.org>
55373
55374         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55375         * modules/tsearch-tests (configure.ac): Test for initstate function.
55376
55377 2008-04-20  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55380         for nlink_t if missing.
55381         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55382
55383 2008-04-19  Bruno Haible  <bruno@clisp.org>
55384
55385         Work around snprintf bug on Linux libc5.
55386         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55388         gl_SNPRINTF_SIZE1.
55389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55390         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55391         that test failed.
55392         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55393         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55394         * modules/snprintf (Files): Add m4/printf.m4.
55395         * modules/vsnprintf (Files): Likewise.
55396         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55397         * doc/posix-functions/vsnprintf.texi: Likewise.
55398
55399 2008-04-19  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55402         from 0.0058 to less than 10^-7.
55403
55404 2008-04-19  Bruno Haible  <bruno@clisp.org>
55405
55406         Fix rounding when a precision is given.
55407         * lib/vasnprintf.c (is_borderline): New function.
55408         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55409         9...9x.
55410         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55411         %e, %g.
55412         * tests/test-vasprintf-posix.c (test_function): Likewise.
55413         * tests/test-snprintf-posix.h (test_function): Likewise.
55414         * tests/test-sprintf-posix.h (test_function): Likewise.
55415         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55416         * tests/test-printf-posix.h (test_function): Likewise.
55417         * tests/test-printf-posix.output: Update.
55418         Reported by John Darrington <john@darrington.wattle.id.au> via
55419         Ben Pfaff <blp@cs.stanford.edu>.
55420
55421 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55422
55423         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55424         Suggested by Bruno Haible <bruno@clisp.org>.
55425
55426 2008-04-17  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55429         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55430         implementation.
55431         Patch by Bruce Merry <bmerry@gmail.com>.
55432
55433 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55434
55435         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55436         doesn't work under Windows.
55437
55438 2008-04-16  Bruno Haible  <bruno@clisp.org>
55439
55440         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55441         New macros.
55442         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55443         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55444         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55445         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55446         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55447         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55448         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55449         macros.
55450         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55451         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55452         Northern Sotho, Uighur.
55453
55454 2008-04-16  Bruno Haible  <bruno@clisp.org>
55455
55456         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55457         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55458         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55459         Reported by Daniel Bergström <daniel@octocode.com>.
55460
55461 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55462             Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55465         function.
55466         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55467         New functions, mostly extracted from gl_locale_name_default.
55468         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55469
55470 2008-04-16  Eric Blake  <ebb9@byu.net>
55471
55472         Adjust strtod detection to catch glibc 2.7 bug.
55473         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55474         Reported by John Gatewood Ham.
55475
55476 2008-04-16  Bruno Haible  <bruno@clisp.org>
55477
55478         Add tentative support for Linux libc5.
55479         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55480         * lib/fpurge.c (fpurge): Likewise.
55481         * lib/freadable.c (freadable): Likewise.
55482         * lib/freadahead.c (freadahead): Likewise.
55483         * lib/freading.c (freading): Likewise.
55484         * lib/freadptr.c (freadptr): Likewise.
55485         * lib/freadseek.c (freadptrinc): Likewise.
55486         * lib/fseeko.c (rpl_fseeko): Likewise.
55487         * lib/fseterr.c (fseterr): Likewise.
55488         * lib/fwritable.c (fwritable): Likewise.
55489         * lib/fwriting.c (fwriting): Likewise.
55490         Reported by Alain Guibert <alguibert+bts@free.fr>.
55491
55492 2008-04-15  Bruno Haible  <bruno@clisp.org>
55493
55494         * modules/mathl (configure.ac): Define module indicator.
55495
55496 2008-04-15  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/logl.c (logl): Remove unused variables.
55499
55500 2008-04-15  Bruno Haible  <bruno@clisp.org>
55501
55502         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55503         fails.
55504
55505 2008-04-15  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/trim.c (trim2): Fix argument of isspace() macro.
55508
55509 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55510
55511         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55512         to 0.
55513         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55514
55515 2008-04-14  Bruno Haible  <bruno@clisp.org>
55516
55517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55518         AC_LANG_PROGRAM argument.
55519         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55520         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55522         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55523         * m4/math_h.m4 (gl_MATH_H): Likewise.
55524         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55525         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55526         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55527         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55528         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55529         * m4/regex.m4 (gl_REGEX): Likewise.
55530         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55531         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55533         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55535         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55536         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55537         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55538
55539 2008-04-14  Jim Meyering  <meyering@redhat.com>
55540
55541         test-strtod: fix typos: s/abs/fabs/
55542         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55543
55544 2008-04-13  Bruno Haible  <bruno@clisp.org>
55545
55546         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55547         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55548         module is also used and while not building the reloc-wrapper.
55549
55550 2008-04-13  Bruno Haible  <bruno@clisp.org>
55551
55552         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55553
55554 2008-04-13  Bruno Haible  <bruno@clisp.org>
55555
55556         Fix AIX compilation failure introduced on 2008-04-02.
55557         * tests/test-frexp.c (exp): Undefine before redefining.
55558         * tests/test-frexpl.c (exp): Likewise.
55559
55560 2008-04-13  Bruno Haible  <bruno@clisp.org>
55561
55562         Work around a HP-UX stdio bug.
55563         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55564         * tests/test-ftello.c (main): Likewise.
55565         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55566         * doc/posix-functions/ftello.texi: Likewise.
55567
55568 2008-04-13  Bruno Haible  <bruno@clisp.org>
55569
55570         Make test-signbit pass on HP-UX/hppa.
55571         * tests/test-signbit.c (minus_zerol): New variable.
55572         (test_signbitl): Use it.
55573
55574 2008-04-13  Bruno Haible  <bruno@clisp.org>
55575
55576         Make truncl work on OSF/1 4.0.
55577         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55578         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55579         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55581         HAVE_DECL_TRUNCL.
55582         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55583         HAVE_DECL_TRUNCL.
55584         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55585
55586 2008-04-13  Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55589
55590 2008-04-13  Bruno Haible  <bruno@clisp.org>
55591
55592         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55593         expression, so as to avoid HP-UX 11 cc compiler bug.
55594
55595 2008-04-13  Bruno Haible  <bruno@clisp.org>
55596
55597         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55598
55599 2008-04-13  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/git-merge-changelog.c: Remove empty declaration outside of
55602         functions.
55603
55604 2008-04-13  Bruno Haible  <bruno@clisp.org>
55605
55606         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55607
55608 2008-04-13  Bruno Haible  <bruno@clisp.org>
55609
55610         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55611         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55612         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55613         also if it exists but lacks definitions of the SHUT_* macros.
55614         * modules/sys_socket (Description): Update.
55615         Reported by Elbert Pol <e.pol@chello.nl>.
55616
55617 2008-04-13  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/localcharset.c (OS2): Don't redefine if already defined.
55620         Reported by Elbert Pol <e.pol@chello.nl>.
55621
55622 2008-04-13  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/binary-io.h [__EMX__]: Include <io.h>.
55625         Reported by Elbert Pol <e.pol@chello.nl>.
55626
55627 2008-04-12  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/fpucw.h: Enable the definitions also for x86_64.
55630         Needed for NetBSD/x86_64.
55631         Reported by Thomas Klausner <tk@giga.or.at>.
55632
55633 2008-04-12  Bruno Haible  <bruno@clisp.org>
55634
55635         * tests/test-strtod.c: Include isnand.h.
55636         (main): Use isnand instead of isnan.
55637         Reported by Jim Meyering.
55638
55639 2008-04-12  Bruno Haible  <bruno@clisp.org>
55640
55641         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55642         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55643
55644 2008-04-12  Jim Meyering  <meyering@redhat.com>
55645
55646         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55647
55648 2008-04-12  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55651         Reported by Elbert Pol <e.pol@chello.nl>.
55652
55653 2008-04-12  Eric Blake  <ebb9@byu.net>
55654
55655         Work around Solaris 10 math.h bug.
55656         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55657         (gl_MATH_H_DEFAULTS): Set up default.
55658         * modules/math (Makefile.am): Replace new indicators.
55659         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55660         * tests/test-math.c (main): Test this.
55661         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55662         * doc/posix-headers/math.texi (math.h): Mention bug.
55663         Reported by Nelson H. F. Beebe and Jim Meyering.
55664
55665 2008-04-11  Bruno Haible  <bruno@clisp.org>
55666
55667         Adapt to future versions of Apple GCC.
55668         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55669         Reported by Peter O'Gorman <peter@pogma.com>.
55670
55671 2008-04-11  Bruno Haible  <bruno@clisp.org>
55672
55673         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55674
55675 2008-04-11  Bruno Haible  <bruno@clisp.org>
55676
55677         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55678
55679         * modules/getaddrinfo-tests (Makefile.am): Define
55680         test_getaddrinfo_LDADD.
55681
55682 2008-04-11  Bruno Haible  <bruno@clisp.org>
55683
55684         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55685         (init): Fix syntax error.
55686         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55687         is declared.
55688
55689 2008-04-11  Bruno Haible  <bruno@clisp.org>
55690
55691         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55692         * modules/glob (Depends-on): Add stdbool.
55693
55694 2008-04-11  Bruno Haible  <bruno@clisp.org>
55695
55696         * lib/trim.c: Include <string.h>.
55697
55698 2008-04-11  Eric Blake  <ebb9@byu.net>
55699
55700         Avoid compile failure on OS/2.
55701         * lib/regex_internal.h (internal_function): Disable optimization
55702         on OS/2 (__EMX__), where it caused compiler error.
55703         Reported by Elbert Pol.
55704
55705 2008-04-11  Bruno Haible  <bruno@clisp.org>
55706
55707         Flush the standard error stream before aborting. Needed on mingw.
55708         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55709         * tests/test-array_list.c (ASSERT): Likewise.
55710         * tests/test-array_oset.c (ASSERT): Likewise.
55711         * tests/test-avltree_list.c (ASSERT): Likewise.
55712         * tests/test-avltree_oset.c (ASSERT): Likewise.
55713         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55714         * tests/test-binary-io.c (ASSERT): Likewise.
55715         * tests/test-byteswap.c (ASSERT): Likewise.
55716         * tests/test-c-ctype.c (ASSERT): Likewise.
55717         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55718         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55719         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55720         * tests/test-c-strstr.c (ASSERT): Likewise.
55721         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55722         * tests/test-canonicalize.c (ASSERT): Likewise.
55723         * tests/test-carray_list.c (ASSERT): Likewise.
55724         * tests/test-ceilf1.c (ASSERT): Likewise.
55725         * tests/test-ceilf2.c (ASSERT): Likewise.
55726         * tests/test-ceill.c (ASSERT): Likewise.
55727         * tests/test-count-one-bits.c (ASSERT): Likewise.
55728         * tests/test-fbufmode.c (ASSERT): Likewise.
55729         * tests/test-fflush2.c (ASSERT): Likewise.
55730         * tests/test-floorf1.c (ASSERT): Likewise.
55731         * tests/test-floorf2.c (ASSERT): Likewise.
55732         * tests/test-floorl.c (ASSERT): Likewise.
55733         * tests/test-fopen.c (ASSERT): Likewise.
55734         * tests/test-fpending.c (ASSERT): Likewise.
55735         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55736         * tests/test-fpurge.c (ASSERT): Likewise.
55737         * tests/test-freadable.c (ASSERT): Likewise.
55738         * tests/test-freadahead.c (ASSERT): Likewise.
55739         * tests/test-freading.c (ASSERT): Likewise.
55740         * tests/test-freadptr.c (ASSERT): Likewise.
55741         * tests/test-freadptr2.c (ASSERT): Likewise.
55742         * tests/test-freadseek.c (ASSERT): Likewise.
55743         * tests/test-freopen.c (ASSERT): Likewise.
55744         * tests/test-frexp.c (ASSERT): Likewise.
55745         * tests/test-frexpl.c (ASSERT): Likewise.
55746         * tests/test-fseek.c (ASSERT): Likewise.
55747         * tests/test-fseeko.c (ASSERT): Likewise.
55748         * tests/test-fstrcmp.c (ASSERT): Likewise.
55749         * tests/test-ftell.c (ASSERT): Likewise.
55750         * tests/test-ftello.c (ASSERT): Likewise.
55751         * tests/test-func.c (ASSERT): Likewise.
55752         * tests/test-fwritable.c (ASSERT): Likewise.
55753         * tests/test-fwriting.c (ASSERT): Likewise.
55754         * tests/test-getdelim.c (ASSERT): Likewise.
55755         * tests/test-getline.c (ASSERT): Likewise.
55756         * tests/test-i-ring.c (ASSERT): Likewise.
55757         * tests/test-iconv-utf.c (ASSERT): Likewise.
55758         * tests/test-iconv.c (ASSERT): Likewise.
55759         * tests/test-isfinite.c (ASSERT): Likewise.
55760         * tests/test-isnand.c (ASSERT): Likewise.
55761         * tests/test-isnanf.c (ASSERT): Likewise.
55762         * tests/test-isnanl.h (ASSERT): Likewise.
55763         * tests/test-ldexpl.c (ASSERT): Likewise.
55764         * tests/test-linked_list.c (ASSERT): Likewise.
55765         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55766         * tests/test-localename.c (ASSERT): Likewise.
55767         * tests/test-lseek.c (ASSERT): Likewise.
55768         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55769         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55770         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55771         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55772         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55773         * tests/test-mbschr.c (ASSERT): Likewise.
55774         * tests/test-mbscspn.c (ASSERT): Likewise.
55775         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55776         * tests/test-mbspbrk.c (ASSERT): Likewise.
55777         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55778         * tests/test-mbsrchr.c (ASSERT): Likewise.
55779         * tests/test-mbsspn.c (ASSERT): Likewise.
55780         * tests/test-mbsstr1.c (ASSERT): Likewise.
55781         * tests/test-mbsstr2.c (ASSERT): Likewise.
55782         * tests/test-mbsstr3.c (ASSERT): Likewise.
55783         * tests/test-memchr2.c (ASSERT): Likewise.
55784         * tests/test-memmem.c (ASSERT): Likewise.
55785         * tests/test-open.c (ASSERT): Likewise.
55786         * tests/test-printf-frexp.c (ASSERT): Likewise.
55787         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55788         * tests/test-printf-posix.c (ASSERT): Likewise.
55789         * tests/test-quotearg.c (ASSERT): Likewise.
55790         * tests/test-rbtree_list.c (ASSERT): Likewise.
55791         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55792         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55793         * tests/test-round1.c (ASSERT): Likewise.
55794         * tests/test-roundf1.c (ASSERT): Likewise.
55795         * tests/test-roundl.c (ASSERT): Likewise.
55796         * tests/test-signbit.c (ASSERT): Likewise.
55797         * tests/test-sleep.c (ASSERT): Likewise.
55798         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55799         * tests/test-snprintf.c (ASSERT): Likewise.
55800         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55801         * tests/test-stat-time.c (ASSERT): Likewise.
55802         * tests/test-strcasestr.c (ASSERT): Likewise.
55803         * tests/test-strerror.c (ASSERT): Likewise.
55804         * tests/test-striconv.c (ASSERT): Likewise.
55805         * tests/test-striconveh.c (ASSERT): Likewise.
55806         * tests/test-striconveha.c (ASSERT): Likewise.
55807         * tests/test-strsignal.c (ASSERT): Likewise.
55808         * tests/test-strstr.c (ASSERT): Likewise.
55809         * tests/test-strtod.c (ASSERT): Likewise.
55810         * tests/test-trunc1.c (ASSERT): Likewise.
55811         * tests/test-trunc2.c (ASSERT): Likewise.
55812         * tests/test-truncf1.c (ASSERT): Likewise.
55813         * tests/test-truncf2.c (ASSERT): Likewise.
55814         * tests/test-truncl.c (ASSERT): Likewise.
55815         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55816         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55817         * tests/test-vasnprintf.c (ASSERT): Likewise.
55818         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55819         * tests/test-vasprintf.c (ASSERT): Likewise.
55820         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55821         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55822         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55823         * tests/test-vsnprintf.c (ASSERT): Likewise.
55824         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55825         * tests/test-wcwidth.c (ASSERT): Likewise.
55826         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55827         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55828         * tests/test-xvasprintf.c (ASSERT): Likewise.
55829         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55830         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55831         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55832         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55833         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55834         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55835         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55836         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55837         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55838         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55839         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55840         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55841         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55842         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55843         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55844         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55845         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55846         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55847         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55848         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55849         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55850         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55851         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55852         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55853         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55854         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55855         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55856         * tests/unictype/test-combining.c (ASSERT): Likewise.
55857         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55858         * tests/unictype/test-digit.c (ASSERT): Likewise.
55859         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55860         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55861         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55862         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55863         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55864         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55865         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55866         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55867         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55868         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55869         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55870         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55871         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55872         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55873         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55874         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55875         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55876         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55877         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55878         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55879         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55880         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55881         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55882         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55883         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55884         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55885         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55886         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55887         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55888         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55889         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55890         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55891         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55892         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55893         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55894         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55895         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55896         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55897         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55898         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55899         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55900         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55901         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55902         Reported by Eric Blake.
55903
55904 2008-04-11  Bruno Haible  <bruno@clisp.org>
55905
55906         * lib/wchar.in.h: Tweak comment.
55907
55908 2008-04-11  Bruno Haible  <bruno@clisp.org>
55909
55910         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55911         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55912         gl_COMMON.
55913         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55914
55915 2008-04-11  Bruno Haible  <bruno@clisp.org>
55916
55917         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55918
55919 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55920
55921         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55922         of attempting to use non-existing /dev/*random.  Based on patch
55923         from Adam Strzelecki <ono@java.pl> in
55924         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55925
55926 2008-04-08  Bruno Haible  <bruno@clisp.org>
55927
55928         Add tentative support for emx+gcc.
55929         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55930         * lib/fpurge.c (fpurge): Likewise.
55931         * lib/freadable.c (freadable): Likewise.
55932         * lib/freadahead.c (freadahead): Likewise.
55933         * lib/freading.c (freading): Likewise.
55934         * lib/freadptr.c (freadptr): Likewise.
55935         * lib/freadseek.c (freadptrinc): Likewise.
55936         * lib/fseeko.c (rpl_fseeko): Likewise.
55937         * lib/fseterr.c (fseterr): Likewise.
55938         * lib/fwritable.c (fwritable): Likewise.
55939         * lib/fwriting.c (fwriting): Likewise.
55940         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55941
55942 2008-04-09  Eric Blake  <ebb9@byu.net>
55943
55944         Avoid some autoconf warnings.
55945         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55946         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55947         * m4/afs.m4 (gl_AFS): Likewise.
55948         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55949         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55951         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55952         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55953         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55954         (AC_CHECK_DECLS_ONCE): Likewise.
55955         Rename file...
55956         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55957         gnulib-tool requires autoconf 2.59 or better.
55958         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55959
55960 2008-04-08  Eric Blake  <ebb9@byu.net>
55961
55962         Use 'git describe --match' if present (added in git 1.5.5).
55963         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55964         if possible.
55965
55966 2008-04-08  Bruno Haible  <bruno@clisp.org>
55967
55968         Add tentative support for OpenServer.
55969         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55970         _ptr, _cnt.
55971         * lib/fpurge.c (fpurge): Likewise.
55972         * lib/freadable.c (freadable): Likewise.
55973         * lib/freadahead.c (freadahead): Likewise.
55974         * lib/freading.c (freading): Likewise.
55975         * lib/freadptr.c (freadptr): Likewise.
55976         * lib/freadseek.c (freadptrinc): Likewise.
55977         * lib/fseeko.c (rpl_fseeko): Likewise.
55978         * lib/fseterr.c (fseterr): Likewise.
55979         * lib/fwritable.c (fwritable): Likewise.
55980         * lib/fwriting.c (fwriting): Likewise.
55981         Reported by Roger Cornelius <rac@tenzing.org> and
55982         Brian K. White <brian@aljex.com>.
55983
55984 2008-04-06  Jim Meyering  <meyering@redhat.com>
55985
55986         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55987
55988 2008-04-06  Bruno Haible  <bruno@clisp.org>
55989
55990         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55991         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55992         * tests/test-printf-posix.sh: Likewise.
55993         * tests/test-vfprintf-posix.sh: Likewise.
55994         * tests/test-vprintf-posix.sh: Likewise.
55995         * tests/test-xprintf-posix.sh: Likewise.
55996
55997 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55998
55999         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56000         hide error from 'ls', needed on OS/2.
56001         Report by Elbert Pol <elbert.pol@gmail.com>.
56002
56003 2008-04-04  Eric Blake  <ebb9@byu.net>
56004
56005         Make test-fseeko.c failures meaningful.
56006         * tests/test-fseeko.c: Print line number on failure.
56007         * tests/test-fseek.c: Likewise.
56008         Reported by Nelson H. F. Beebe.
56009
56010         Improve strtod bug detection check.
56011         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56012         required for Solaris 10.
56013         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56014
56015 2008-04-04  Bruno Haible  <bruno@clisp.org>
56016
56017         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56018         by m4/setenv.m4.
56019
56020 2008-04-03  Eric Blake  <ebb9@byu.net>
56021
56022         Ensure sane .version contents.
56023         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56024         version string.
56025         * build-aux/git-version-gen: Improve documentation.
56026
56027         Make GNU make output nicer.
56028         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56029         MAKECMDGOALS to enforce message for all command line targets.  Set
56030         srcdir for use in maint.mk.
56031
56032         Another maintainer tweak.
56033         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56034         a target that regenerates version.
56035
56036 2008-04-03  Jim Meyering  <meyering@redhat.com>
56037
56038         vc-list-files: don't cause coreutils "make po-check" failure
56039         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56040
56041 2008-04-03  Eric Blake  <ebb9@byu.net>
56042
56043         Allow VPATH usage of vc-list-files.
56044         * build-aux/vc-list-files (scriptversion): Add timestamp.
56045         (options): Add --help, --version, -C.
56046         (CVS): Support installed cvsu.
56047
56048 2008-04-02  Bruno Haible  <bruno@clisp.org>
56049
56050         Avoid some "statement with no effect" warnings from gcc.
56051         * tests/test-wctype.c (main): Explicitly ignore unused values.
56052         Reported by Jim Meyering.
56053
56054 2008-04-02  Jim Meyering  <meyering@redhat.com>
56055
56056         Avoid some warnings from "gcc -Wshadow".
56057         * tests/test-frexp.c (exp): Define to a different identifier.
56058         * tests/test-frexpl.c (exp): Likewise.
56059
56060 2008-04-03  Jim Meyering  <meyering@redhat.com>
56061
56062         bootstrap: remove dangling *.[ch] symlinks from lib
56063         * build-aux/bootstrap [dangling symlink removal]: Move find's
56064         -depth option to precede all others, to avoid a warning.
56065         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56066
56067 2008-04-02  Bruno Haible  <bruno@clisp.org>
56068
56069         Avoid some warnings from "gcc -Wshadow".
56070         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56071         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56072         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56073         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56074         Reported by Jim Meyering.
56075
56076 2008-04-01  Bruno Haible  <bruno@clisp.org>
56077
56078         Fix test to work on IRIX 6.5 with cc.
56079         * tests/test-math.c (numeric_equal): New function.
56080         (main): Use it.
56081
56082 2008-04-01  Bruno Haible  <bruno@clisp.org>
56083
56084         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56085
56086 2008-04-01  Bruno Haible  <bruno@clisp.org>
56087
56088         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56089         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56090         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56091         (Depends-on): Remove math.
56092
56093         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56094         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56095         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56096         (Depends-on): Remove math.
56097
56098         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56099         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56100         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56101         (Depends-on): Remove math.
56102         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56103         (Depends-on): Remove math.
56104
56105         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56106         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56107         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56108         (Depends-on): Remove math.
56109         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56110         (Depends-on): Remove math.
56111
56112         * tests/test-round1.c: Include nan.h.
56113         (main): Use NaNd instead of NAN.
56114         * modules/round-tests (Files): Add tests/nan.h.
56115
56116         * tests/test-trunc1.c: Include nan.h.
56117         (main): Use NaNd instead of NAN.
56118         * modules/trunc-tests (Files): Add tests/nan.h.
56119
56120         * tests/test-roundf1.c: Include nan.h.
56121         (main): Use NaNf instead of NAN.
56122         * modules/roundf-tests (Files): Add tests/nan.h.
56123
56124         * tests/test-truncf1.c: Include nan.h.
56125         (main): Use NaNf instead of NAN.
56126         * modules/truncf-tests (Files): Add tests/nan.h.
56127
56128         * tests/test-ceilf1.c: Include nan.h.
56129         (main): Use NaNf instead of NAN.
56130         * modules/ceilf-tests (Files): Add tests/nan.h.
56131
56132         * tests/test-floorf1.c: Include nan.h.
56133         (main): Use NaNf instead of NAN.
56134         * modules/floorf-tests (Files): Add tests/nan.h.
56135
56136         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56137         (main): Use NaNf instead of NAN.
56138         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56139
56140         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56141         (main): Use NaNd instead of NAN.
56142         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56143
56144         * tests/test-frexp.c: Include nan.h.
56145         (main): Use NaNd instead of NAN.
56146         * modules/frexp-tests (Files): Add tests/nan.h.
56147
56148         * lib/isnan.c: Don't include <math.h>.
56149         (FUNC): Don't use NAN macro.
56150         * modules/isnand-nolibm (Depends-on): Remove math.
56151         * modules/isnanf-nolibm (Depends-on): Remove math.
56152         * modules/isnanl (Depends-on): Remove math.
56153         * modules/isnanl-nolibm (Depends-on): Remove math.
56154
56155         * tests/nan.h: New file.
56156
56157 2008-04-01  Eric Blake  <ebb9@byu.net>
56158
56159         Fix typos.
56160         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56161         values to be the right type.
56162
56163         For now, cater to gnulib strtod inaccuracies.
56164         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56165         fractional results.  While not as nice from a QoI perspective, it
56166         is a quicker patch than correctly implementing decimal to binary
56167         rounding.
56168
56169 2008-03-31  Eric Blake  <ebb9@byu.net>
56170
56171         Guarantee a definition of NAN.
56172         * lib/math.in.h (NAN): Define if missing.
56173         * tests/test-math.c (main): Test it.
56174         * doc/posix-headers/math.texi (math.h): Document this.
56175         * lib/isnan.c (rpl_isnand): Use it.
56176         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56177         * tests/test-floorf1.c (NaN): Likewise.
56178         * tests/test-frexp.c (NaN): Likewise.
56179         * tests/test-isnand.c (NaN): Likewise.
56180         * tests/test-isnanf.c (NaN): Likewise.
56181         * tests/test-round1.c (NaN): Likewise.
56182         * tests/test-roundf1.c (NaN): Likewise.
56183         * tests/test-snprintf-posix.h (NaN): Likewise.
56184         * tests/test-sprintf-posix.h (NaN): Likewise.
56185         * tests/test-trunc1.c (NaN): Likewise.
56186         * tests/test-truncf1.c (NaN): Likewise.
56187         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56188         * tests/test-vasprintf-posix.c (NaN): Likewise.
56189         * modules/isnand-nolibm (Depends-on): Add math.
56190         * modules/isnanf-nolibm (Depends-on): Likewise.
56191         * modules/isnanl (Depends-on): Likewise.
56192         * modules/isnanl-nolibm (Depends-on): Likewise.
56193         * modules/snprintf-posix-tests (Depends-on): Likewise.
56194         * modules/sprintf-posix-tests (Depends-on): Likewise.
56195         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56196         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56197         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56198         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56199
56200 2008-03-31  Bruno Haible  <bruno@clisp.org>
56201
56202         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56203         * doc/posix-functions/strtod.texi: Likewise.
56204
56205 2008-03-31  Bruno Haible  <bruno@clisp.org>
56206
56207         * tests/test-strtod.c (main): Don't use C99 syntax.
56208
56209 2008-03-31  Bruno Haible  <bruno@clisp.org>
56210
56211         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56212         Reported by Eric Blake.
56213
56214 2008-03-31  Jim Meyering  <meyering@redhat.com>
56215
56216         Don't compare actual signbit return values.
56217         * tests/test-strtod.c (main): Rather, compare only their
56218         zero/non-zero nature.
56219
56220 2008-03-31  Eric Blake  <ebb9@byu.net>
56221
56222         More strtod documentation.
56223         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56224         failures as distinct bugs.
56225
56226 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56227
56228         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56229         Problem reported by Erik Benada in
56230         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56231
56232 2008-03-30  Bruno Haible  <bruno@clisp.org>
56233
56234         * tests/test-strtod.c: Add comments about which assertion fails on which
56235         platform.
56236         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56237
56238 2008-03-30  Eric Blake  <ebb9@byu.net>
56239
56240         Test signbit behavior on zeros.
56241         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56242         (test_signbitd, test_signbitl): Likewise.
56243
56244         More strtod touchups.
56245         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56246         sign of negative underflow, for now.  Use .5, not .1.
56247         * doc/posix-functions/strtod.texi (strtod): Mention these
56248         limitations.
56249         Reported by Jim Meyering.
56250
56251 2008-03-30  Bruno Haible  <bruno@clisp.org>
56252
56253         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56254         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56255
56256 2008-03-30  Bruno Haible  <bruno@clisp.org>
56257
56258         Avoid failure when attempting to return empty iconv results on some
56259         platforms.
56260         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56261         allocation, don't report ENOMEM when the resulting string is empty.
56262
56263 2008-03-30  Bruno Haible  <bruno@clisp.org>
56264
56265         Fix buffer overrun.
56266         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56267         Don't consider the width for tmp_length. Check count against tmp_length
56268         before doing the padding. Ensure enough allocation during padding.
56269
56270 2008-03-30  Eric Blake  <ebb9@byu.net>
56271
56272         strtod touchups.
56273         * lib/strtod.c (strtod): Avoid compiler warnings.
56274         Reported by Jim Meyering.
56275
56276 2008-03-30  Bruno Haible  <bruno@clisp.org>
56277
56278         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56279         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56280         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56281         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56282         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56283         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56284         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56285         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56286
56287         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56288         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56289         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56290         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56291         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56292         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56293         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56294         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56295
56296         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56297         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56298         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56299         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56300         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56301         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56302         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56303         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56304
56305         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56306         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56307
56308         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56309         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56310
56311         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56312         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56313
56314         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56315         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56316         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56317
56318         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56320         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56321
56322         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56324         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56325
56326         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56328         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56329
56330         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56331         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56333         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56334         (Depends-on): Add EOVERFLOW.
56335         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56336         (Depends-on): Add EOVERFLOW.
56337         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56338         (Depends-on): Add EOVERFLOW.
56339         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56340         (Depends-on): Add EOVERFLOW.
56341         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56342         (Depends-on): Add EOVERFLOW.
56343         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56344         (Depends-on): Add EOVERFLOW.
56345         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56346         (Depends-on): Add EOVERFLOW.
56347         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56348         (Depends-on): Add EOVERFLOW.
56349
56350         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56352         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56353
56354         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56356         * modules/snprintf (Depends-on): Add EOVERFLOW.
56357
56358         * lib/poll.c (EOVERFLOW): Remove fallback.
56359         * modules/poll (Depends-on): Add EOVERFLOW.
56360
56361         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56362         * modules/getugroups (Depends-on): Add EOVERFLOW.
56363
56364         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56365         * modules/getdelim (Depends-on): Add EOVERFLOW.
56366
56367         * lib/ftell.c (EOVERFLOW): Remove fallback.
56368         * modules/ftell (Depends-on): Add EOVERFLOW.
56369
56370         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56372         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56373
56374         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56375
56376         * modules/EOVERFLOW-tests: New file.
56377         * tests/test-EOVERFLOW.c: New file.
56378
56379         * modules/EOVERFLOW: New file.
56380         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56381
56382 2008-03-30  Bruno Haible  <bruno@clisp.org>
56383
56384         Fix bug introduced on 2007-06-10.
56385         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56386         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56387
56388 2008-03-30  Bruno Haible  <bruno@clisp.org>
56389
56390         Improve freadseek's efficiency after ungetc.
56391         * lib/freadseek.c: Include freadahead.h.
56392         (freadptrinc): New function, extracted from freadseek.
56393         (freadseek): Use it in a loop. Use freadahead to determine the number
56394         of loop iterations.
56395         * modules/freadseek (Depends-on): Add freadahead.
56396         (configure.ac): Require AC_C_INLINE.
56397
56398 2008-03-30  Bruno Haible  <bruno@clisp.org>
56399
56400         * lib/freadseek.c (freadseek): Don't ignore the return value of
56401         freadptr.
56402
56403 2008-03-29  Eric Blake  <ebb9@byu.net>
56404
56405         Add hex float support.
56406         * modules/strtod (Depends-on): Add c-ctype.
56407         (Link): Mention POW_LIB.
56408         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56409         whitespace between 'e' and exponent.
56410         * tests/test-strtod.c (main): Enable hex float tests.
56411         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56412         now provides.
56413
56414         Document various strtod bugs, with some fixes.
56415         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56416         "-0x", "inf", "nan", and hex constants.
56417         * doc/posix-functions/atof.texi (atof): Likewise.
56418         * modules/stdlib (Makefile.am): Support strtod.
56419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56420         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56421         detect additional strtod bugs.
56422         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56423         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56424         bool where appropriate.  Parse 'inf' and 'nan'.
56425         * tests/test-strtod.c: New file.
56426         * modules/strtod (Depends-on): Add stdbool, stdlib.
56427         (configure.ac): Turn on module indicator.
56428         * modules/strtod-tests: New module.
56429
56430 2008-03-29  Eric Blake  <ebb9@byu.net>
56431
56432         Fix ftell on mingw.
56433         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56434         * modules/ftell-tests (Depends-on): Add binary-io.
56435         * modules/ftello-tests (Depends-on): Likewise.
56436         * tests/test-ftell.c (main): Enhance test to cover behavior after
56437         ungetc.  Enforce binary mode.
56438         * tests/test-ftello.c (main): Likewise.
56439
56440         Pass test-freadseek on cygwin.
56441         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56442         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56443         ungetc buffer.
56444
56445         * tests/test-fflush2.c (main): Fix typo.
56446
56447 2008-03-29  Bruno Haible  <bruno@clisp.org>
56448
56449         * tests/test-fflush2.c (main): Temporarily disable the contents of
56450         this test.
56451         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56452         Reported by Eric Blake.
56453
56454 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56455
56456         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56457         (GC_SHA224_DIGEST_SIZE): Add.
56458
56459         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56460         (gc_hash_digest_length): Likewise.
56461         (gc_hash_buffer): Likewise.
56462
56463 2008-03-25  Bruno Haible  <bruno@clisp.org>
56464
56465         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56466         detail which gettext release to use.
56467         Reported by Simon Josefsson.
56468
56469 2008-03-26  Jim Meyering  <meyering@redhat.com>
56470
56471         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56472         * modules/gnumakefile (clean-GNUmakefile): Also, use
56473         test ... && ... || : syntax rather than if-then ... fi.
56474
56475         gnumakefile: Don't double-quote-expand $(VPATH) value.
56476         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56477
56478 2008-03-24  Eric Blake  <ebb9@byu.net>
56479
56480         Alter GNUmakefile to install into top directory.
56481         * modules/maintainer-makefile: Split, and add dependency...
56482         * modules/gnumakefile: to this new module.
56483         * build-aux/GNUmakefile: Move...
56484         * top/GNUmakefile: ...here.
56485         * build-aux/maint.mk: Move...
56486         * top/maint.mk: ...here.
56487         * MODULES.html.sh (Support for maintaining...): Document new
56488         module.
56489
56490 2008-03-23  Bruno Haible  <bruno@clisp.org>
56491
56492         * gnulib-tool: New options --vc-files, --no-vc-files.
56493         (func_usage): Document them.
56494         (vc_files): New variable.
56495         (func_import): Consider vc_files.
56496         (func_create_testdir): Set vc_files to empty.
56497         Suggested by Jim Meyering and Karl Berry.
56498
56499 2008-03-23  Bruno Haible  <bruno@clisp.org>
56500
56501         Fix regex compilation error on HP-UX 11.
56502         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56503         * modules/regex (Files): Add m4/mbstate_t.m4.
56504         Reported by Ton Voon <ton.voon@altinity.com>.
56505
56506 2008-03-23  Bruno Haible  <bruno@clisp.org>
56507
56508         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56509
56510 2008-03-23  Eric Blake  <ebb9@byu.net>
56511             Bruno Haible  <bruno@clisp.org>
56512
56513         Install files from top/ in the destination directory.
56514         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56515         augmentation also for the files from top/.
56516         (func_import, func_create_testdir): Rewrite file names:
56517         top/filename -> filename.
56518
56519 2008-03-23  Bruno Haible  <bruno@clisp.org>
56520
56521         Tweak "gnulib --version" output.
56522         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56523
56524 2008-03-23  Bruno Haible  <bruno@clisp.org>
56525
56526         Tweak "gnulib --version" output.
56527         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56528         rather than contents of ChangeLog, when possible.
56529
56530 2008-03-21  Eric Blake  <ebb9@byu.net>
56531
56532         More --version tweaks.
56533         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56534         date of last ChangeLog entry.
56535
56536 2008-03-21  Jim Meyering  <meyering@redhat.com>
56537
56538         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56539
56540 2008-03-20  Eric Blake  <ebb9@byu.net>
56541
56542         VPATH fix.
56543         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56544
56545 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56546
56547         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56548         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56549
56550 2008-03-20  Eric Blake  <ebb9@byu.net>
56551
56552         Sync GNUmakefile with coreutils.
56553         * build-aux/GNUmakefile (have-Makefile): Rename...
56554         (_have-Makefile): ...to this, for namespace consideration.
56555         (GNUmakefile.cfg): Include, if present.
56556         (_autoreconf): Define a default.
56557         (_is-dist-target): New rule for rebuilds to pick up intra-release
56558         version.
56559         (maint-cfg.mk): Rename...
56560         (cfg.mk): ...to this.
56561
56562 2008-03-18  Jim Meyering  <meyering@redhat.com>
56563
56564         New script and module: mktempd
56565         * MODULES.html.sh (maint+release support): Add mktempd.
56566         * build-aux/mktempd: New file.
56567         * modules/mktempd: New file.
56568
56569 2008-03-15  Jim Meyering  <meyering@redhat.com>
56570
56571         Undo last change.
56572         * lib/sha1.c, lib/md5.c: 63 != ~63.
56573         Reported by Andreas Schwab.
56574
56575         sha1.c, md5.c: Hoist a redundant expression.
56576         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56577         "ctx->buflen" only once, before calling *_process_block.
56578         * lib/md5.c (md5_process_bytes): Likewise.
56579
56580 2008-03-14  Eric Blake  <ebb9@byu.net>
56581
56582         Bump copyright year in files generated by gnulib-tool.
56583         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56584         gnulib-tool, rather than hard-coding it.
56585
56586         Fix 'gnulib-tool --version' output to work with git.
56587         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56588         (startup): ...here.
56589         (func_version): Use it to invoke git-version-gen, rather than
56590         relying on CVS keyword expansion.  Modernize wording.
56591         (cvsdatestamp, last_checkin_date, version): Kill unused
56592         variables.
56593
56594 2008-03-12  Jim Meyering  <meyering@redhat.com>
56595
56596         Recognize optional cast of the argument to free.
56597         * build-aux/useless-if-before-free: Update regexps.
56598
56599         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56600
56601 2008-03-11  Bruno Haible  <bruno@clisp.org>
56602
56603         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56604         by a single package.
56605         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56606         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56607         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56608         Reported by Sam Steingold <sds@gnu.org>.
56609
56610 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56611
56612         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56613         repositories.
56614
56615 2008-03-11  Bruno Haible  <bruno@clisp.org>
56616
56617         Avoid conflicts between local macro definitions.
56618         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56619         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56620
56621 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56622             Bruno Haible  <bruno@clisp.org>
56623
56624         Make va_copy work with some version of xlc on AIX 5.1.
56625         * lib/stdarg.in.h: New file.
56626         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56627         On AIX, use a <stdarg.h> file substitute.
56628         * modules/stdarg (Files): Add lib/stdarg.in.h.
56629         (Depends-on): Add include_next.
56630         (Makefile.am): Build a stdarg.h substitute if requested.
56631         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56632
56633 2008-03-10  Bruno Haible  <bruno@clisp.org>
56634
56635         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56636         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56637         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56638
56639 2008-03-10  Bruno Haible  <bruno@clisp.org>
56640
56641         * modules/stdlib (Depends-on): Add include_next, remove
56642         absolute-header.
56643
56644 2008-03-09  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/freadahead.h (freadahead): Document more precisely.
56647         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56648         the sum of both buffer sizes.
56649         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56650         * NEWS: Document the change.
56651
56652 2008-03-09  Bruno Haible  <bruno@clisp.org>
56653
56654         Extend freadptr to return also the buffer size.
56655         * lib/freadptr.h (freadptr): Add sizep argument.
56656         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56657         (freadptr): Add sizep argument. Determine buffer size like freadahead
56658         does.
56659         * tests/test-freadptr.c: Don't include freadahead.h.
56660         (main): Adapt for new calling convention of freadptr.
56661         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56662         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56663         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56664         tests/test-freadptr2.sh.
56665         (Depends): Remove freadahead.
56666         (TESTS): Add test-freadptr2.sh.
56667         (check_PROGRAMS): Add test-freadptr2.
56668
56669 2008-03-09  Bruno Haible  <bruno@clisp.org>
56670
56671         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56672         Report and solution by Simon Josefsson.
56673
56674 2008-03-06  Bruno Haible  <bruno@clisp.org>
56675
56676         Make fflush after ungetc work on BSD platforms.
56677         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56678         * tests/test-fflush2.c: New file.
56679         * tests/test-fflush2.sh: New file.
56680         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56681         tests/test-fflush2.c.
56682         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56683         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56684
56685 2008-03-06  Eric Blake  <ebb9@byu.net>
56686
56687         Likewise for ftello.
56688         * modules/ftello (Dependencies): Add extensions.
56689         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56690
56691 2008-03-06  Bruno Haible  <bruno@clisp.org>
56692
56693         * modules/fseeko (Dependencies): Add extensions.
56694         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56695         Needed on glibc systems.
56696
56697 2008-03-06  Bruno Haible  <bruno@clisp.org>
56698
56699         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56700         email address.
56701         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56702
56703 2008-03-06  Bruno Haible  <bruno@clisp.org>
56704
56705         * users.txt: Add libgnupdf.
56706
56707 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56708
56709         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56710         (Header File Substitutes, Function Substitutes,
56711         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56712         (Build robot for gnulib): Fix typo.
56713
56714 2008-03-06  Bruno Haible  <bruno@clisp.org>
56715
56716         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56717         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56718
56719 2008-03-06  Bruno Haible  <bruno@clisp.org>
56720
56721         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56722         * doc/gnulib.texi: Include it.
56723
56724 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56725
56726         * modules/func (License): Change license to unlimited; there was
56727         no LGPL parts in the module anyway.
56728
56729 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56730
56731         * modules/__func__: Renamed to modules/func.
56732         * modules/__func__-tests: Renamed to modules/func-tests.
56733         * tests/test-__func__.c: Renamed to tests/test-func.c.
56734         * m4/__func__.m4: Renamed to m4/func.m4.
56735         * doc/gnulib.texi (__func__): Section renamed to func.
56736         Suggested by Eric Blake <ebb9@byu.net>.
56737
56738 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56739
56740         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56741         about __func__.  Make example self-contained.  Suggested by Eric
56742         Blake <ebb9@byu.net>.
56743
56744         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56745         Suggested by Eric Blake <ebb9@byu.net>.
56746
56747 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56748
56749         * modules/__func__: New file.
56750         * modules/__func__-tests: New file.
56751         * tests/test-__func__.c: New file.
56752         * m4/__func__.m4: New file.
56753         * doc/gnulib.texi (__func__): Document __func__ module.
56754
56755 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56756
56757         * modules/byteswap (License): Re-license as LGPLv2+.
56758
56759 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56760
56761         * doc/Makefile: Add pdf target.
56762
56763 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56764
56765         * modules/inline (License): Use 'unlimited', since there are only
56766         *.m4 files in this module.
56767
56768 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56769             Bruno Haible  <bruno@clisp.org>
56770
56771         Add support for HP C 7.1 on OpenVMS 8.3.
56772         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56773
56774 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56775
56776         Update VMS specifics.
56777         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56778
56779 2008-03-02  Jim Meyering  <meyering@redhat.com>
56780
56781         Remove the last dependency on the "free" module.
56782         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56783         Reported by Bob Proulx.
56784
56785         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56786
56787         Remove useless "if" tests before free.  Deprecate "free" module.
56788         * doc/posix-functions/free.texi: Mention that this
56789         module is no longer useful.
56790         * modules/free (Notice): Say this module is obsolete.
56791         * modules/readutmp (Depends-on): Remove free.
56792         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56793         * lib/putenv.c (putenv): Likewise.
56794         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56795         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56796         * tests/test-c-strcasestr.c (main): Likewise.
56797         * tests/test-c-strstr.c (main): Likewise.
56798         * tests/test-mbscasestr1.c (main): Likewise.
56799         * tests/test-mbscasestr2.c (main): Likewise.
56800         * tests/test-mbsstr1.c (main): Likewise.
56801         * tests/test-mbsstr2.c (main): Likewise.
56802         * tests/test-memmem.c (main): Likewise.
56803         * tests/test-strcasestr.c (main): Likewise.
56804         * tests/test-striconv.c (main): Likewise.
56805         * tests/test-striconveh.c (main): Likewise.
56806         * tests/test-striconveha.c (main): Likewise.
56807         * tests/test-strstr.c (main): Likewise.
56808
56809         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56810
56811         bootstrap: sync from coreutils again
56812         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56813
56814 2008-03-01  Jim Meyering  <meyering@redhat.com>
56815
56816         bootstrap: sync from coreutils
56817         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56818         also when the target doesn't exist.
56819
56820 2008-03-01  Eric Blake  <ebb9@byu.net>
56821
56822         Fix bugs in last patch.
56823         * lib/memchr2.c (memchr2): Fix typo.
56824         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56825         extension.
56826         Reported by Bruce Korb.
56827
56828         New module 'memchr2'.
56829         * modules/memchr2: New file.
56830         * modules/memchr2-tests: Likewise.
56831         * lib/memchr2.h: Likewise.
56832         * lib/memchr2.c: Likewise, based on memchr.c.
56833         * tests/test-memchr2.c: New test.
56834         * MODULES.html.sh (String handling): Add memchr2.
56835
56836 2008-02-29  Bruno Haible  <bruno@clisp.org>
56837
56838         * modules/freadseek-tests: New file.
56839         * tests/test-freadseek.sh: New file.
56840         * tests/test-freadseek.c: New file.
56841
56842         New module 'freadseek'.
56843         * modules/freadseek: New file.
56844         * lib/freadseek.h: New file.
56845         * lib/freadseek.c: New file.
56846         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56847
56848 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56849
56850         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56851         wydawca.
56852
56853         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56854         program_invocation_name and program_invocation_short_name are
56855         present.
56856
56857 2008-02-28  Bruno Haible  <bruno@clisp.org>
56858
56859         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56860         * tests/test-freadptr.sh: Also test non-seekable stdin.
56861
56862 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56863
56864         * build-aux/bootstrap (source_base, m4_base)
56865         (doc_base, tests_base): New variables.
56866         (gnulib_tool_options): Do not hardcode base directories, use
56867         the above variables instead.
56868
56869 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56870
56871         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56872
56873 2008-02-28  Bruno Haible  <bruno@clisp.org>
56874
56875         * modules/freadptr-tests: New file.
56876         * tests/test-freadptr.sh: New file.
56877         * tests/test-freadptr.c: New file.
56878
56879         New module 'freadptr'.
56880         * modules/freadptr: New file.
56881         * lib/freadptr.h: New file.
56882         * lib/freadptr.c: New file.
56883         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56884
56885 2008-02-26  Karl Berry  <karl@freefriends.org>
56886
56887         Sync from Libtool:
56888         * libltdl/argz.c (argz_add, argz_count): New functions.
56889         * libltdl/argz.in.h: Declare them.
56890         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56891
56892 2008-02-22  Bruno Haible  <bruno@clisp.org>
56893
56894         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56895         is a pointer type.  Needed for HP-UX 10.
56896         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56897         * doc/posix-functions/gmtime_r.texi: Likewise.
56898         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56899
56900 2008-02-24  Bruno Haible  <bruno@clisp.org>
56901
56902         * modules/environ-tests: New file.
56903         * tests/test-environ.c: New file.
56904
56905         New module 'environ'.
56906         * modules/environ: New file.
56907         * lib/unistd.in.h (environ): New declaration.
56908         * m4/environ.m4: New file.
56909         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56910         after use.
56911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56912         HAVE_DECL_ENVIRON.
56913         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56914         HAVE_DECL_ENVIRON.
56915         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56916         wrong claim that 'environ' is missing on some systems.
56917         * modules/execute (Depends-on): Add environ.
56918         * lib/execute.c (environ): Remove fallback declaration.
56919         * modules/pipe (Depends-on): Add environ.
56920         * lib/pipe.c (environ): Remove fallback declaration.
56921         * modules/setenv (Depends-on): Add environ.
56922         * lib/setenv.c (environ): Remove fallback declaration.
56923         * modules/unsetenv (Depends-on): Add environ.
56924         * lib/unsetenv.c (environ): Remove fallback declaration.
56925         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56926         m4/environ.m4.
56927         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56928         (gl_PREREQ_UNSETENV): Likewise.
56929
56930 2008-02-24  Bruno Haible  <bruno@clisp.org>
56931
56932         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56933
56934 2008-02-20  Bob Proulx  <bob@proulx.com>
56935
56936         Enable use of older two part flavor 'git describe'.
56937         * build-aux/git-version-gen: If using the older two part flavor of
56938         git version then recreate the third part now present in the
56939         newer three part flavor of git describe.
56940
56941 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56942
56943         * lib/fts.c (fts_build): Typo correction to comment.
56944
56945 2008-02-17  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56948         generating no-op conflicts.
56949
56950 2008-02-17  Bruno Haible  <bruno@clisp.org>
56951
56952         Speed up by 10%.
56953         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56954         result_entries, rather than an index-based loop.
56955
56956 2008-02-17  Bruno Haible  <bruno@clisp.org>
56957
56958         Speed up by 25%.
56959         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56960         'hashcode_cached'.
56961         (entry_create): New function.
56962         (entry_hashcode): Use the cached hashcode if possible.
56963         (read_changelog_file, try_split_merged_entry): Use entry_create.
56964
56965 2008-02-17  Bruno Haible  <bruno@clisp.org>
56966
56967         Speed up from O(n^2) to O(n) for long ChangeLog files.
56968         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56969         (read_changelog_file): Change implementation of entries_reversed list
56970         to rbtreehash.
56971         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56972
56973 2008-02-17  Bruno Haible  <bruno@clisp.org>
56974
56975         New option --split-merged-entry.
56976         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56977         (find_paragraph_end, try_split_merged_entry): New functions.
56978         (long_options): Add option --split-merged-entry.
56979         (usage): Document option --split-merged-entry.
56980         (main): Implement option --split-merged-entry.
56981         Reported by Eric Blake.
56982
56983 2008-02-17  Bruno Haible  <bruno@clisp.org>
56984
56985         * lib/git-merge-changelog.c: Include c-strstr.h.
56986         (main): Support the "git pull --rebase" situation.
56987         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56988         Reported by Eric Blake.
56989
56990 2008-02-16  Eric Blake  <ebb9@byu.net>
56991
56992         Avoid doubling \ in common case of "c-maybe" quoting style.
56993         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56994         eliding outer quotes.
56995         * lib/quotearg.h: Document this.
56996         * tests/test-quotearg.c (result_strings, inputs, results_g)
56997         (flag_results, locale_results): Test it by adding a new string to
56998         each test group.
56999         (compare_strings): Test new string.
57000
57001 2008-02-13  Eric Blake  <ebb9@byu.net>
57002
57003         Avoid trigraph quoting in default output.
57004         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57005         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57006         unless explicitly requested.
57007         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57008
57009 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57010
57011         Don't rely on signed integer overflowing to negative value.
57012         * lib/getugroups.c (getugroups): Include <limits.h>.
57013         Instead, compare against INT_MAX, and increment only if the test passes.
57014
57015 2008-02-13  Jim Meyering  <meyering@redhat.com>
57016         and Eric Blake  <ebb9@byu.net>
57017
57018         Avoid shadowing warning and compile errors on Linux.
57019         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57020         forwarding macros on Linux.
57021         (dcgettext): Define a stub, for Linux.
57022         (results_g, main): Avoid warnings.
57023
57024 2008-02-12  Eric Blake  <ebb9@byu.net>
57025
57026         Silence warning in last patch.
57027         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57028
57029         Quotearg part 4: add tests, fix c-maybe colon quoting.
57030         * lib/quotearg.h: Improve documentation.
57031         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57032         escapes when adding outer quotes.  When quoting trigraphs, use
57033         valid C notation.  When quoting NUL, omit extra characters if next
57034         character is not digit.  Alter prototype.
57035         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57036         callers.
57037         * modules/quotearg-tests: New module.
57038         * tests/test-quotearg.c: New test.
57039
57040 2008-02-07  Eric Blake  <ebb9@byu.net>
57041
57042         Quotearg part 3: add flag to control outer quote elision.
57043         * lib/quotearg.h (c_maybe_quoting_style): New style.
57044         (enum quoting_flags): Better documentation of flags.
57045         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57046         c-maybe style.
57047         (quotearg_buffer_restyled): Handle new flag to elide outer
57048         quotes.
57049
57050         Quotearg part 2: add flag that can control NUL elision.
57051         * lib/quotearg.h (set_quoting_flags): New prototype.
57052         * lib/quotearg.c (struct quoting_options): Add flag field.
57053         (set_quoting_flags): New function.
57054         (quotearg_buffer_restyled): Add flags parameter.
57055         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57056         (quotearg_n_options): Set the flag, since length cannot be
57057         returned.
57058         (quoting_options_from_style): Default flags correctly.
57059
57060         Quotearg part 1: more wrappers, restore quotearg_char state.
57061         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57062         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57063         (quotearg_colon_mem): New wrappers.
57064         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57065         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57066         functions.
57067         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57068         (quotearg_colon_mem): New functions.
57069
57070 2008-02-11  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57073         library in the current directory: it does not work with parallel make.
57074         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57075
57076 2008-02-11  Bruno Haible  <bruno@clisp.org>
57077
57078         * .gitattributes: New file.
57079
57080 2008-02-11  Jim Meyering  <meyering@redhat.com>
57081
57082         useless-if-before-free: Fix reversed exit values.
57083         * build-aux/useless-if-before-free: Use correct values
57084         for EXIT_MATCH and EXIT_NO_MATCH.
57085
57086         * build-aux/useless-if-before-free: Close stdout carefully.
57087
57088 2008-02-10  Bruno Haible  <bruno@clisp.org>
57089
57090         New module 'git-merge-changelog'.
57091         * modules/git-merge-changelog: New file.
57092         * lib/git-merge-changelog.c: New file.
57093
57094 2008-02-10  Jim Meyering  <meyering@redhat.com>
57095
57096         useless-if-before-free: New option: --list (-l).
57097
57098         useless-if-before-free: Don't exit immediately upon open failure.
57099         * build-aux/useless-if-before-free: Exit 2 for errors.
57100         Upon failure to open a file, don't exit immediately.
57101         Rather, just warn and continue with any remaining files.
57102
57103 2008-02-10  Bruno Haible  <bruno@clisp.org>
57104
57105         New abstract list operation 'node_set_value'.
57106         * lib/gl_list.h (gl_list_node_set_value): New function.
57107         (struct gl_list_implementation): New field node_set_value.
57108         * lib/gl_list.c (gl_list_node_set_value): New function.
57109         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57110         (gl_array_list_implementation): Update.
57111         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57112         (gl_carray_list_implementation): Update.
57113         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57114         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57115         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57116         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57117         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57118         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57119         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57120         Update.
57121         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57122         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57123         (gl_sublist_list_implementation): Update.
57124
57125 2008-02-10  Bruno Haible  <bruno@clisp.org>
57126
57127         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57128         Needed when ELEMENT is #defined to 'some_type *'.
57129
57130 2008-02-10  Jim Meyering  <meyering@redhat.com>
57131
57132         New script and module: useless-if-before-free
57133         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57134         * build-aux/useless-if-before-free: New file.
57135         * modules/useless-if-before-free: New file.
57136
57137         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57138
57139         xstrtol_error: Fix typo.
57140         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57141         s/exit_failure/exit_status/.
57142
57143 2008-02-09  Jim Meyering  <meyering@redhat.com>
57144
57145         New script and module: gitlog-to-changelog
57146         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57147         * modules/gitlog-to-changelog: New file.
57148         * build-aux/gitlog-to-changelog: New file.
57149
57150 2008-02-08  Jim Meyering  <meyering@redhat.com>
57151
57152         Avoid two "parameter unused" warnings.
57153         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57154         Mark "st" as used.
57155
57156         Use "git COMMAND", not "git-COMMAND".
57157         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57158         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57159         * build-aux/git-version-gen: Use "git status", not "git-status".
57160
57161 2008-02-07  Bruno Haible  <bruno@clisp.org>
57162
57163         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57164         Avoids a crash on Windows Vista.
57165         Reported by Adam Strzelecki <ono@java.pl> via
57166         Simon Josefsson <simon@josefsson.org>.
57167
57168 2008-02-06  Bruno Haible  <bruno@clisp.org>
57169
57170         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57171         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57172         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57174         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57176         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57177         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57185         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57186         left-adjust flag.
57187         * tests/test-snprintf-posix.h (test_function): Likewise.
57188         * tests/test-sprintf-posix.h (test_function): Likewise.
57189         * tests/test-vasprintf-posix.c (test_function): Likewise.
57190         * doc/posix-functions/fprintf.texi: Update.
57191         * doc/posix-functions/printf.texi: Update.
57192         * doc/posix-functions/snprintf.texi: Update.
57193         * doc/posix-functions/sprintf.texi: Update.
57194         * doc/posix-functions/vfprintf.texi: Update.
57195         * doc/posix-functions/vprintf.texi: Update.
57196         * doc/posix-functions/vsnprintf.texi: Update.
57197         * doc/posix-functions/vsprintf.texi: Update.
57198         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57199
57200 2008-02-06  Bruno Haible  <bruno@clisp.org>
57201
57202         Fix bug introduced on 2008-01-26.
57203         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57204
57205 2008-02-06  Bruno Haible  <bruno@clisp.org>
57206
57207         Fix bug introduced on 2007-06-10.
57208         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57209         !NEED_PRINTF_FLAG_ZERO.
57210
57211 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57212
57213         getloadavg: use libperfstat on AIX5
57214         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57215
57216 2008-02-03  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/diffseq.h: Add comments about required #includes.
57219         Reported by Michael Biggs <gnulib@doubleplum.net>.
57220
57221 2008-02-01  Bruno Haible  <bruno@clisp.org>
57222
57223         * users.txt: Add gnuit.
57224
57225 2008-01-31  Bruno Haible  <bruno@clisp.org>
57226
57227         * lib/md4.c (set_uint32): Mark as inline.
57228         * lib/md5.c (set_uint32): Likewise.
57229         * lib/sha1.c (set_uint32): Likewise.
57230         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57231         * m4/md5.m4 (gl_MD5): Likewise.
57232         * m4/sha1.m4 (gl_SHA1): Likewise.
57233
57234 2008-01-31  Jim Meyering  <meyering@redhat.com>
57235
57236         Use "sizeof VAR", rather than a literal "4".
57237         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57238         * lib/md4.c (md4_read_ctx): Likewise.
57239         * lib/sha1.c (sha1_read_ctx): Likewise.
57240
57241 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57242
57243         * tests/test-sha1.c: New file, based on test-md5.c.
57244
57245         * modules/crypto/sha1-tests: New file.
57246
57247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57248
57249         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57250
57251 2008-01-31  Jim Meyering  <meyering@redhat.com>
57252
57253         Prefer "sizeof v" over the equivalent "4".
57254         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57255         * lib/md5.c (set_uint32): Likewise.
57256         * lib/sha1.c (set_uint32): Likewise.
57257
57258 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57259
57260         * lib/sha1.c (set_uint32): Mark function as static.
57261
57262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57263
57264         md2: clarify comments to say that alignment is not required.
57265         * lib/md2.h: Remove warning about alignment in comment.
57266         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57267         never been required.
57268
57269 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57270
57271         md4: adapt alignment constraint fix from sha1.
57272         * lib/md4.c (set_uint32): New function, from sha1.c
57273         (md4_read_ctx): Use it.
57274         (md4_finish_ctx): Doc fix.
57275         * lib/md4.h: Doc fix.
57276
57277 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57278
57279         md5: adapt alignment constraint fix from sha1.
57280         * lib/md5.c (set_uint32): New function, from sha1.c
57281         (md5_read_ctx): Use it.
57282         (md5_finish_ctx): Doc fix.
57283         * lib/md5.h: Doc fix.
57284
57285 2008-01-30  Peter Palfrader  <weasel@debian.org>
57286
57287         sha1: remove the result buffer alignment constraint
57288         * lib/sha1.c (set_uint32): New function.
57289         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57290         constraint.
57291         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57292         * lib/sha1.h: Likewise.
57293
57294 2008-01-30  Andreas Schwab  <schwab@suse.de>
57295             Bruno Haible  <bruno@clisp.org>
57296
57297         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57298         correct definition of LDBL_MIN_EXP.
57299
57300 2008-01-30  Karl Berry  <karl@gnu.org>
57301
57302         * config/srclist-update: try to preserve x bit on updates.
57303         * config/srclistvars.sh: update for karl.
57304
57305 2008-01-29  Jim Meyering  <meyering@redhat.com>
57306
57307         vasnprintf.c: Avoid warning about unused label
57308         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57309         "overflow" label definition and associated code with the
57310         same cpp condition that guards the sole use of that label.
57311
57312 2008-01-26  Bruno Haible  <bruno@clisp.org>
57313
57314         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57315         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57316         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57317         * lib/isnanl-nolibm.h (isnanl): Likewise.
57318         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57319
57320 2008-01-26  Bruno Haible  <bruno@clisp.org>
57321
57322         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57323         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57324
57325 2008-01-26  Bruno Haible  <bruno@clisp.org>
57326
57327         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57328         GCC >= 4.0 built-in.
57329         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57330
57331 2008-01-26  Bruno Haible  <bruno@clisp.org>
57332
57333         Rename isnan, applicable to 'double' only, to isnand.
57334         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57335         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57336         (configure.ac): Update.
57337         (Include): Replace "isnan.h" with "isnand.h".
57338         * m4/isnand.m4: Renamed from m4/isnan.m4.
57339         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57340         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57341         instead of isnan.c.
57342         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57343         instead of HAVE_ISNAN_IN_LIBC.
57344         (isnand): Renamed from isnan.
57345         * lib/isnand.c: New file.
57346         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57347         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57348         (Makefile.am): Update.
57349         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57350         Include isnand.h instead of isnan.h.
57351         (main): Test isnand instead of isnan.
57352         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57353         isnan-nolibm.
57354         * modules/frexp (Depends-on): Likewise.
57355         * modules/frexp-tests (Depends-on): Likewise.
57356         * modules/frexp-nolibm (Depends-on): Likewise.
57357         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57358         * modules/isfinite (Depends-on): Likewise.
57359         * modules/round-tests (Depends-on): Likewise.
57360         * modules/signbit (Depends-on): Likewise.
57361         * modules/signbit-tests (Depends-on): Likewise.
57362         * modules/snprintf-posix (Depends-on): Likewise.
57363         * modules/sprintf-posix (Depends-on): Likewise.
57364         * modules/trunc-tests (Depends-on): Likewise.
57365         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57366         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57367         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57368         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57369         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57370         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57371         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57372         * modules/vasnprintf-posix (Depends-on): Likewise.
57373         * modules/vasprintf-posix (Depends-on): Likewise.
57374         * modules/vfprintf-posix (Depends-on): Likewise.
57375         * modules/vsnprintf-posix (Depends-on): Likewise.
57376         * modules/vsprintf-posix (Depends-on): Likewise.
57377         * lib/frexp.c: Include isnand.h instead of isnan.h.
57378         (ISNAN): Set to isnand instead of isnan.
57379         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57380         (gl_isfinited): Use isnand instead of isnan.
57381         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57382         (gl_signbitd): Use isnand instead of isnan.
57383         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57384         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57385         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57386         (main): Use isnand instead of isnan.
57387         * tests/test-round1.c: Include isnand.h.
57388         (main): Use isnand instead of isnan.
57389         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57390         (ISNAN): Set to isnand instead of isnan.
57391         * tests/test-trunc1.c: Include isnand.h.
57392         (main): Use isnand instead of isnan.
57393         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57394         (equal): Use isnand instead of isnan.
57395         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57396         isnand-nolibm.
57397         * NEWS: Mention the change.
57398
57399 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57400             Bruno Haible  <bruno@clisp.org>
57401
57402         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57403         the GCC builtins for signbits are present and set
57404         REPLACE_SIGNBIT_USING_GCC if so.
57405         * lib/math.in.h (signbit): Define using GCC builtins if
57406         REPLACE_SIGNBIT_USING_GCC is set.
57407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57408         REPLACE_SIGNBIT_USING_GCC.
57409         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57410
57411 2008-01-25  Jim Meyering  <meyering@redhat.com>
57412
57413         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57414         * lib/poll.c: Include <config.h>, not "config.h".
57415         * tests/test-getaddrinfo.c: Likewise.
57416
57417 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57418
57419         * modules/sockets-tests: New file.
57420
57421 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57422
57423         * modules/sockets: New module, can be used to call WSA_Startup and
57424         WSA_Cleanup when needed.
57425
57426         * lib/sockets.h, lib/sockets.c: New files.
57427
57428         * m4/sockets.m4: New file.
57429
57430         * tests/test-sockets.c: New file.
57431
57432 2008-01-19  Bruno Haible  <bruno@clisp.org>
57433
57434         * doc/posix-headers: Renamed from doc/headers.
57435         * doc/posix-functions: Renamed from doc/functions.
57436         * doc/gnulib.texi: Update.
57437
57438 2008-01-19  Bruno Haible  <bruno@clisp.org>
57439
57440         * doc/glibc-functions/strcasestr.texi: Include contents of
57441         doc/functions/strcasestr.texi, fixing the list of platforms.
57442         * doc/functions/strcasestr.texi: Remove file.
57443
57444 2008-01-19  Bruno Haible  <bruno@clisp.org>
57445
57446         * doc/glibc-functions/memmem.texi: Include contents of
57447         doc/functions/memmem.texi.
57448         * doc/functions/memmem.texi: Remove file.
57449
57450 2008-01-18  Bruno Haible  <bruno@clisp.org>
57451
57452         * doc/glibc-functions/*.texi: New files.
57453         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57454         to use the new files.
57455
57456 2008-01-17  Bruno Haible  <bruno@clisp.org>
57457
57458         * tests/test-gethostname.c (main): Fix printf statement.
57459
57460 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57461
57462         * modules/gethostname-tests: New file.
57463
57464         * tests/test-gethostname.c: New file.
57465
57466 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57467
57468         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57469         used by the UNAME case.  Reported by Bruno Haible
57470         <bruno@clisp.org>.
57471
57472 2008-01-17  Eric Blake  <ebb9@byu.net>
57473
57474         Convert c-strcasestr to be more efficient.
57475         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57476         (Depends-on): Add c-strcase, remove malloca, strnlen.
57477         * tests/test-c-strcasestr.c (main): Enhance test.
57478         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57479
57480 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57481
57482         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57483         Use it in creating po/Makevars.
57484
57485 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57486
57487         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57488         Applications that requires it should initialize libgcrypt
57489         manually.
57490
57491 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57492
57493         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57494
57495 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57496
57497         Fix problem with getdate on mingw32 reported by Simon Josefsson
57498         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57499         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57500         tzname", when deciding whether to declare tzname.
57501         * lib/strftime.c (tzname): Likewise.
57502
57503 2008-01-15  Bruno Haible  <bruno@clisp.org>
57504
57505         Work around a MacOS X 10.5 bug in frexpl().
57506         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57507         * doc/functions/frexpl.texi: Document the bug.
57508         Reported by Elias Pipping <pipping@gentoo.org>.
57509
57510 2008-01-14  Eric Blake  <ebb9@byu.net>
57511
57512         Touch up previous patch.
57513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57514         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57515
57516         Convert strcasestr module to use Two-Way algorithm.
57517         * modules/strcasestr-simple: New module, based on the old
57518         strcasestr, but with Two-Way rather than KMP.
57519         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57520         * lib/string.in.h (rpl_strcasestr): Declare.
57521         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57522         performance.
57523         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57524         * modules/string (Makefile.am): Support strcasestr.
57525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57526         * modules/strcasestr-tests (Depends-on): Check for alarm.
57527         * tests/test-strcasestr.c: Augment test.
57528         * lib/str-two-way.h: Clean up stray macro.
57529         * NEWS: Document new module.
57530         * MODULES.html.sh (string handling): Likewise.
57531         * doc/functions/strcasestr.texi: New file.
57532         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57533         here, since it is not a POSIX function.
57534
57535 2008-01-14  Colin Watson  <cjwatson@debian.org>
57536             Bruno Haible  <bruno@clisp.org>
57537
57538         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57539         works fine; if not, set REPLACE_STRSIGNAL.
57540         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57542         REPLACE_STRSIGNAL.
57543         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57544         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57545         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57546
57547 2008-01-14  Bruno Haible  <bruno@clisp.org>
57548
57549         * modules/strsignal (Include): Change to <string.h>.
57550
57551 2008-01-14  Colin Watson  <cjwatson@debian.org>
57552
57553         * modules/argp (Notice): Add a notice recommending to change
57554         XGETTEXT_OPTIONS.
57555         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57556
57557 2008-01-13  Colin Watson  <cjwatson@debian.org>
57558
57559         * modules/strsignal-tests: New file.
57560         * tests/test-strsignal.c: New file.
57561
57562         * lib/strsignal.c: New file, from glibc with modifications.
57563         * lib/siglist.h: New file, from glibc with modifications.
57564         * lib/string.in.h (strsignal): New declaration.
57565         * m4/strsignal.m4: New file.
57566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57567         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57568         * modules/strsignal: New file.
57569         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57570         HAVE_DECL_STRSIGNAL.
57571
57572 2008-01-13  Bruno Haible  <bruno@clisp.org>
57573
57574         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57575         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57576         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57577         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57578
57579 2008-01-13  Bruno Haible  <bruno@clisp.org>
57580
57581         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57582         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57583         * lib/argp.h (__attribute__): Likewise.
57584         * lib/c-stack.c (__attribute__): Likewise.
57585         * lib/error.h (__attribute__): Likewise.
57586         * lib/fts.c (__attribute__): Likewise.
57587         * lib/openat.h (__attribute__): Likewise.
57588         * lib/stdio.in.h (__attribute__): Likewise.
57589         * lib/string.in.h (__attribute__): Likewise.
57590         * lib/utimens.c (__attribute__): Likewise.
57591         * lib/vasnprintf.h (__attribute__): Likewise.
57592         * lib/xalloc.h (__attribute__): Likewise.
57593         * lib/xprintf.h (__attribute__): Likewise.
57594         * lib/xstrtol.h (__attribute__): Likewise.
57595         * lib/xvasprintf.h (__attribute__): Likewise.
57596
57597 2008-01-12  Bruno Haible  <bruno@clisp.org>
57598
57599         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57600         * doc/glibc-headers/a.out.texi: New file.
57601         * doc/glibc-headers/aliases.texi: New file.
57602         * doc/glibc-headers/alloca.texi: New file.
57603         * doc/glibc-headers/ar.texi: New file.
57604         * doc/glibc-headers/argp.texi: New file.
57605         * doc/glibc-headers/argz.texi: New file.
57606         * doc/glibc-headers/byteswap.texi: New file.
57607         * doc/glibc-headers/crypt.texi: New file.
57608         * doc/glibc-headers/endian.texi: New file.
57609         * doc/glibc-headers/envz.texi: New file.
57610         * doc/glibc-headers/err.texi: New file.
57611         * doc/glibc-headers/error.texi: New file.
57612         * doc/glibc-headers/execinfo.texi: New file.
57613         * doc/glibc-headers/fpu_control.texi: New file.
57614         * doc/glibc-headers/fstab.texi: New file.
57615         * doc/glibc-headers/fts.texi: New file.
57616         * doc/glibc-headers/getopt.texi: New file.
57617         * doc/glibc-headers/ieee754.texi: New file.
57618         * doc/glibc-headers/ifaddrs.texi: New file.
57619         * doc/glibc-headers/libintl.texi: New file.
57620         * doc/glibc-headers/mcheck.texi: New file.
57621         * doc/glibc-headers/mntent.texi: New file.
57622         * doc/glibc-headers/obstack.texi: New file.
57623         * doc/glibc-headers/paths.texi: New file.
57624         * doc/glibc-headers/printf.texi: New file.
57625         * doc/glibc-headers/pty.texi: New file.
57626         * doc/glibc-headers/resolv.texi: New file.
57627         * doc/glibc-headers/shadow.texi: New file.
57628         * doc/glibc-headers/sysexits.texi: New file.
57629         * doc/glibc-headers/ttyent.texi: New file.
57630
57631 2008-01-12  Jim Meyering  <meyering@redhat.com>
57632
57633         announce-gen: emit Gnulib's git-based version string.
57634         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57635         New option --gnulib-version=V, where V is expected to be
57636         the output of running git describe in the gnulib directory.
57637         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57638         not useful, and plan to stop publishing an xdelta file with each
57639         coreutils release.
57640
57641         * build-aux/announce-gen: Also check for lzma-compressed files.
57642
57643 2008-01-11  Bruno Haible  <bruno@clisp.org>
57644
57645         * tests/test-memmem.c (main): Increase maximum allowed time.
57646         * tests/test-strstr.c (main): Likewise.
57647
57648 2008-01-11  Bruno Haible  <bruno@clisp.org>
57649
57650         * doc/functions/memmem.texi: Add more precisions about platforms.
57651         * doc/functions/strstr.texi: Likewise.
57652
57653 2008-01-10  Eric Blake  <ebb9@byu.net>
57654
57655         * m4/strstr.m4: Delete cruft from copy-n-paste.
57656         Reported by Bruno Haible.
57657
57658 2008-01-10  Bruno Haible  <bruno@clisp.org>
57659
57660         Make c-strstr rely on strstr.
57661         * lib/c-strstr.c: Don't include str-kmp.h.
57662         (c_strstr): Define in terms of strstr.
57663         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57664         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57665
57666 2008-01-10  Bruno Haible  <bruno@clisp.org>
57667
57668         * doc/gnulib.texi (String Functions in C Locale): New section.
57669         * doc/c-ctype.texi: New file.
57670         * doc/c-strcase.texi: New file.
57671         * doc/c-strcaseeq.texi: New file.
57672         * doc/c-strcasestr.texi: New file.
57673         * doc/c-strstr.texi: New file.
57674         * doc/c-strtod.texi: New file.
57675         * doc/c-strtold.texi: New file.
57676
57677 2008-01-10  Eric Blake  <ebb9@byu.net>
57678
57679         * lib/relocatable.h: Fix a comment.
57680
57681 2008-01-10  Eric Blake  <ebb9@byu.net>
57682
57683         Share two-way algorithm.
57684         * lib/str-two-way.h: New file, merged from...
57685         * lib/memmem.c: ...here...
57686         * lib/strstr.c: ...and here.
57687         * modules/memmem (Files): Use it.
57688         * modules/strstr (Files): Likewise.
57689
57690         Avoid quadratic strstr implementations.
57691         * lib/strstr.c: New file.
57692         * m4/strstr.m4: Likewise.
57693         * modules/strstr: Likewise.
57694         * modules/strstr-tests: Likewise.
57695         * tests/test-strstr.c: Likewise.
57696         * lib/string.in.h (rpl_strstr): Declare.
57697         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57699         * modules/string (Makefile.am): Likewise.
57700         * MODULES.html.sh (string handling): Mention new module.
57701         * doc/functions/strstr.texi (strstr): Document the bug.
57702
57703 2008-01-10  Bruno Haible  <bruno@clisp.org>
57704
57705         * lib/relocatable.h (relocate): State whether result is freshly
57706         allocated or not.
57707         * lib/relocatable.c (relocate): Return a freshly allocated string
57708         instead of a pointer to a privately held string.
57709         Reported by Sylvain Beucler <beuc@gnu.org>.
57710
57711 2008-01-10  Colin Watson  <cjwatson@debian.org>
57712
57713         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57714         s/S_ISNLK/S_ISLNK/.
57715
57716 2008-01-09  Bruno Haible  <bruno@clisp.org>
57717
57718         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57719         and other files.
57720         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57721         if it's only a guess.
57722         * modules/memmem: Simplify by depending on memmem-simple.
57723
57724 2008-01-09  Bruno Haible  <bruno@clisp.org>
57725
57726         Work around OpenBSD 4.0 tdelete() bug.
57727         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57728         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57729         macros and don't redefine the enum values.
57730         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57731         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57732         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57733
57734 2008-01-09  Bruno Haible  <bruno@clisp.org>
57735
57736         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57737         (main): Don't perform the tests if setlocale did not install a UTF-8
57738         locale. Needed on OpenBSD 4.0.
57739         * modules/wcwidth-tests (Depends-on): Add localcharset.
57740
57741 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57742
57743         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57744         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57745         * NEWS: announce this.
57746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57747
57748 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57749         and Eric Blake  <ebb9@byu.net>
57750
57751         Add memmem-simple module.
57752         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57753         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57754         * modules/memmem-simple: New file.
57755         * modules/memmem (Description): Tweak.
57756         * MODULES.html.sh (string handling): Mention new module.
57757         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57758         addressed by memmem-simple.
57759         * NEWS: Document the difference.
57760
57761 2008-01-09  Eric Blake  <ebb9@byu.net>
57762
57763         Give gcc some memmem optimization hints.
57764         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57765         (strcasestr): Declare as pure.
57766         * modules/memmem (Maintainer): Claim my implementation.
57767
57768 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57769
57770         Support AIX 6.1 and higher.
57771         * build-aux/config.libpath: Likewise.
57772         * build-aux/config.rpath: Likewise.
57773
57774 2008-01-08  Jim Meyering  <meyering@redhat.com>
57775             Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57778         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57779         Reported by Peter Fales in
57780         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57781
57782 2008-01-08  Bruno Haible  <bruno@clisp.org>
57783
57784         * modules/unictype/category-of (Depends-on): Add
57785         unictype/category-none.
57786         * modules/unictype/category-and-tests (Depends-on): Add
57787         unictype/category-{L,N,Lu,Nd}.
57788         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57789         * modules/unictype/category-or-tests (Depends-on): Add
57790         unictype/category-{L,N}.
57791         * modules/unictype/category-name-tests (Depends-on): Add
57792         unictype/category-{Z,Nl}.
57793         Reported by Simon Josefsson.
57794
57795 2008-01-08  Bruno Haible  <bruno@clisp.org>
57796
57797         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57798         convention better.
57799         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57800         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57801         Reported by Peter Miller <millerp@canb.auug.org.au>.
57802
57803 2008-01-08  Eric Blake  <ebb9@byu.net>
57804
57805         Rewrite memmem to guarantee linear complexity without malloc.
57806         * lib/memmem.c (memmem): Use Two-Way rather than
57807         Knuth-Morris-Pratt, to allow O(1) space usage.
57808         (critical_factorization, two_way_short_needle)
57809         (two_way_long_needle): New functions.
57810         (knuth_morris_pratt): Delete.
57811         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57812         Add stdint.
57813         * tests/test-memmem.c (main): Add tests for periodic needle and
57814         sublinear performance.
57815         * doc/functions/memmem.texi (memmem): Document other deficiencies
57816         in cygwin and older glibc.
57817
57818 2008-01-08  Bruno Haible  <bruno@clisp.org>
57819
57820         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57821         augmentation.
57822
57823 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57824
57825         Add a configure time option: --disable-acl.
57826         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57827         AC_ARG_ENABLE(acl).
57828
57829 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57830
57831         * tests/test-localename.c: Don't include obsolete "setenv.h".
57832
57833         * modules/localename-tests (Depends-on): Need unsetenv.
57834
57835 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57836
57837         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57838
57839 2008-01-06  Colin Watson  <cjwatson@debian.org>
57840
57841         * users.txt: Add man-db.
57842
57843 2008-01-07  Bruno Haible  <bruno@clisp.org>
57844
57845         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57846         previous section name.
57847
57848 2008-01-07  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/progname.c (set_program_name): Don't strip off a leading
57851         "lt-" prefix outside a .libs directory.
57852         Suggested by Paul Eggert.
57853
57854 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57855             Bruno Haible  <bruno@clisp.org>
57856
57857         Improve memory cleanup in 'relocatable' module.
57858         * lib/relocatable.h (compute_curr_prefix): Change return type to
57859         'char *'.
57860         * lib/relocatable.c (compute_curr_prefix): Change return type to
57861         'char *'. Free curr_installdir after use.
57862         (relocate): Free curr_prefix_better after use.
57863         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57864
57865 2008-01-01  Bruno Haible  <bruno@clisp.org>
57866
57867         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57868         failure on older glibc systems.
57869         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57870
57871 2008-01-05  Eric Blake  <ebb9@byu.net>
57872
57873         Avoid quadratic system memmem.
57874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57875         Reported by Ralf Wildenhues.
57876
57877         Fix memmem test for mingw.
57878         * modules/memmem-tests (configure.ac): Check for alarm.
57879         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57880         it.
57881         * doc/functions/memmem.texi: New file.
57882         * doc/gnulib.texi (Function Substitutes): Add memmem.
57883         Reported by Bruno Haible.
57884
57885 2008-01-04  Bruno Haible  <bruno@clisp.org>
57886
57887         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57888         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57889         gl_HEADER_STRING_H_DEFAULTS.
57890
57891 2008-01-04  Eric Blake  <ebb9@byu.net>
57892
57893         Shorten duration of memmem test.
57894         * tests/test-memmem.c (main): Use alarm to declare failure if test
57895         is taking too long.
57896         Reported by Ralf Wildenhues.
57897
57898 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57899
57900         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57901         string, needed by strerror.
57902
57903 2008-01-03  Colin Watson  <cjwatson@debian.org>
57904             Bruno Haible  <bruno@clisp.org>
57905
57906         * doc/gnulib-tool.texi (Localization): New section.
57907
57908 2008-01-02  Bruno Haible  <bruno@clisp.org>
57909
57910         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57911         variables to 'unsigned char *' type.
57912         Reported by Paul Eggert.
57913
57914 2008-01-02  Jim Meyering  <jim@meyering.net>
57915
57916         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57917
57918 2007-12-31  Jim Meyering  <jim@meyering.net>
57919
57920         Avoid use of private FTS type name.
57921         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57922
57923 2007-12-30  Karl Berry  <karl@gnu.org>
57924
57925         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57926         work around defect in Texinfo and/or the standalone Info browser.
57927
57928 2007-12-30  Bruno Haible  <bruno@clisp.org>
57929
57930         Unify 5 copies of the KMP code.
57931         * lib/str-kmp.h: New file.
57932         * lib/c-strcasestr.c: Include str-kmp.h.
57933         (knuth_morris_pratt): Remove function.
57934         (c_strcasestr): Update.
57935         * lib/c-strstr.c: Include str-kmp.h.
57936         (knuth_morris_pratt): Remove function.
57937         (c_strcasestr): Update.
57938         * lib/mbscasestr.c: Include str-kmp.h.
57939         (knuth_morris_pratt_unibyte): Remove function.
57940         * lib/mbsstr.c: Include str-kmp.h.
57941         (knuth_morris_pratt_unibyte): Remove function.
57942         * lib/strcasestr.c: Include str-kmp.h.
57943         (knuth_morris_pratt): Remove function.
57944         (strcasestr): Update.
57945         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57946         * modules/c-strstr (Files): Likewise.
57947         * modules/mbscasestr (Files): Likewise.
57948         * modules/mbsstr (Files): Likewise.
57949         * modules/strcasestr (Files): Likewise.
57950         Suggested by Paul Eggert.
57951
57952 2007-12-30  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57955         defined.
57956
57957 2007-12-30  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/xmalloca.h: Include xalloc.h.
57960         (xnmalloca): New macro.
57961
57962 2007-12-30  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/malloca.h (nmalloca): New macro.
57965         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57966         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57967         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57968         knuth_morris_pratt_multibyte): Likewise.
57969         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57970         knuth_morris_pratt_multibyte): Likewise.
57971         * lib/memmem.c (knuth_morris_pratt): Likewise.
57972         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57973
57974 2007-12-25  Bruno Haible  <bruno@clisp.org>
57975
57976         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57977         * lib/glob.c: Don't include openat.h.
57978         (link_exists2_p): Add back the code that deals with the
57979         !GLOB_ALTDIRFUNC case.
57980         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57981         let it do the filename concatenation.
57982         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57983         * modules/glob (Depends-on): Remove openat.
57984
57985 2007-12-31  Bruno Haible  <bruno@clisp.org>
57986
57987         * modules/dirfd (License): Change to LGPLv2+.
57988         Approved by Jim Meyering.
57989
57990 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57991
57992         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57993         when multiplying M by sizeof (size_t).
57994
57995 2007-12-10  Martin Lambers  <marlam@marlam.de>
57996
57997         Override getpagesize on mingw.
57998         * lib/getpagesize.c: New file.
57999         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58000         * modules/getpagesize (Files): Add lib/getpagesize.c.
58001         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58003         REPLACE_GETPAGESIZE.
58004         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58005
58006 2007-12-25  Bruno Haible  <bruno@clisp.org>
58007
58008         * modules/localcharset (Notice): New field.
58009         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58010         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58011
58012 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58013             Bruno Haible  <bruno@clisp.org>
58014
58015         Avoid using the syntax symbol() in formatted documentation.
58016         * MODULES.html.sh (func_module): When replacing symbol() with a
58017         hyperlink, remove the parentheses. Show an error if some remain.
58018         Recognize and render the '...' syntax.
58019         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58020         Rework. Add paragraph about GCC's inlining.
58021         * doc/alloca.texi: Likewise.
58022         * doc/error.texi: Remove parentheses from symbol reference.
58023         * doc/gnulib-intro.texi: Likewise.
58024         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58025         * modules/fnmatch (Description): Reword to say "the ... function".
58026         * modules/full-read (Description): Likewise.
58027         * modules/full-write (Description): Likewise.
58028         * modules/safe-read (Description): Likewise.
58029         * modules/safe-write (Description): Likewise.
58030         * modules/strchrnul (Description): Likewise.
58031         * modules/trim (Description): Likewise.
58032         * modules/error (Description): Remove parentheses from symbol
58033         references.
58034         * modules/verror (Description): Likewise.
58035         Reported by Karl Berry.
58036
58037 2007-12-25  Bruno Haible  <bruno@clisp.org>
58038
58039         Fixup after 2007-10-16 commit.
58040         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58041
58042 2007-12-24  Bruno Haible  <bruno@clisp.org>
58043
58044         Make --enable-relocatable work with DESTDIR.
58045         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58046         to compute installdir from destprog.
58047         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58048         also set the RELOC_DESTDIR variable.
58049         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58050
58051 2007-12-24  Bruno Haible  <bruno@clisp.org>
58052
58053         Fix link error due to xalloc_die().
58054         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58055         of xreadlink.
58056         * lib/relocwrapper.c: Update comments.
58057         * build-aux/install-reloc: Remove xreadlink.c from file list.
58058         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58059         xreadlink.c.
58060         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58061
58062 2007-12-24  Bruno Haible  <bruno@clisp.org>
58063
58064         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58065         * lib/setenv.h: Remove file.
58066         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58067         lib/setenv.h.
58068         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58069         (Depends-on): Add stdlib.
58070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58071         gl_FUNC_UNSETENV.
58072         (Include): Replace setenv.h with <stdlib.h>.
58073         * modules/unsetenv: New file.
58074         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58075         * lib/unsetenv.c: Include <stdlib.h> first.
58076         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58077         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58078         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58079         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58080         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58081         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58083         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58084         * doc/functions/unsetenv.texi: Update.
58085         * modules/xsetenv (Depends-on): Add unsetenv.
58086         * modules/getdate (Depends-on): Likewise.
58087         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58088         * lib/xsetenv.c: Don't include setenv.h.
58089         * lib/getdate.y: Likewise.
58090         * lib/relocwrapper.c: Likewise.
58091         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58092         (Depends-on): Add stdlib.
58093         * NEWS: Mention the changes.
58094         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58095
58096 2007-12-23  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58099         indentation.
58100
58101 2007-12-23  Bruno Haible  <bruno@clisp.org>
58102
58103         * lib/c-strcasestr.c: Add more comments.
58104         * lib/c-strstr.c: Likewise.
58105         * lib/mbscasestr.c: Likewise.
58106         * lib/mbsstr.c: Likewise.
58107         * lib/strcasestr.c: Likewise.
58108         * lib/memmem.c: Likewise.
58109
58110 2007-12-23  Bruno Haible  <bruno@clisp.org>
58111
58112         * tests/test-memmem.c: Include <string.h> first.
58113
58114 2007-12-22  Bruno Haible  <bruno@clisp.org>
58115
58116         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58117         the contents of $testsbase.
58118         Reported by Ralf Wildenhues.
58119
58120 2007-12-22  Bruno Haible  <bruno@clisp.org>
58121
58122         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58123         two variables local_ldadd_before, local_ldadd_last.
58124
58125 2007-12-20  Eric Blake  <ebb9@byu.net>
58126
58127         Work around circular library issue when cross-compiling.
58128         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58129         that progname.o does not need to pull in rpl_memcmp.
58130
58131 2007-12-19  Eric Blake  <ebb9@byu.net>
58132
58133         Fix memmem to avoid O(n^2) worst-case complexity.
58134         * lib/memmem.c (knuth_morris_pratt): New function.
58135         (memmem): Use it if first few naive iterations fail.
58136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58137         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58138         * modules/memchr (License): Likewise.
58139         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58140         malloca.
58141         * tests/test-memmem.c: Rewrite, borrowing ideas from
58142         test-mbsstr1.c; the old version wouldn't even compile!
58143         * modules/memmem-tests: New file.
58144         * lib/string.in.h (rpl_memmem): Add declaration.
58145         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58147         REPLACE_MEMMEM.
58148
58149 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58152         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58153         before any system include files, and undef after them all.  This
58154         should fix a problem on VMS reported by John E. Malmberg in
58155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58156
58157 2007-12-17  Eric Blake  <ebb9@byu.net>
58158
58159         Revert addition of verify, for BSD/OS.
58160         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58161         can't handle large files, for the sake of obsolete platforms.
58162         * modules/fseeko (Depends-on): Remove verify.
58163         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58164         * doc/functions/ftello.texi (ftello): Likewise.
58165         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58166         Reported by Larry Jones.
58167
58168 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58169
58170         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58171         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58172
58173 2007-12-17  Jim Meyering  <meyering@redhat.com>
58174
58175         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58176         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58177         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58178         * modules/getcwd (Depends-on): Add openat.
58179         Reported by Petr Salinger.
58180
58181 2007-12-17  Bruno Haible  <bruno@clisp.org>
58182
58183         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58184         avoid a segmentation fault of the configure test on x86_64 systems.
58185
58186 2007-12-15  Jim Meyering  <meyering@redhat.com>
58187
58188         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58189
58190 2007-12-13  Eric Blake  <ebb9@byu.net>
58191
58192         Another fseek test.
58193         * tests/test-fseek.c (main): Also test ungetc handling.
58194         * tests/test-fseeko.c (main): Likewise.
58195         * modules/fseeko (Depends-on): Add verify.
58196         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58197         large.
58198         Reported by Larry Jones.
58199
58200         Fix fseeko on mingw.
58201         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58202         seek.
58203
58204         Beef up fseek tests.
58205         * tests/test-fseek.c (main): Also test eof handling.
58206         * tests/test-fseeko.c (main): Likewise.
58207         Reported by Larry Jones.
58208
58209 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58210
58211         Fix fseeko on BSD-based platforms.
58212         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58213         successful seek.
58214
58215 2007-12-12  Eric Blake  <ebb9@byu.net>
58216
58217         Allow circular dependency of separate libtests.a
58218         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58219         when use_libtests.
58220
58221 2007-12-11  Eric Blake  <ebb9@byu.net>
58222
58223         Fix bug with -0.0L in previous patch.
58224         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58225         * tests/test-isnan.c (main): Also test on zeroes.
58226         * tests/test-isnanf.c (main): Likewise.
58227         * tests/test-isnanl.h (main): Likewise.
58228
58229         Detect pseudo-denormals on x86 even when cross-compiling.
58230         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58231         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58232         invalid bit patterns that happen to satisfy ==.
58233
58234         Avoid link failures with separate libtests.a.
58235         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58236         last, to satisfy circular dependencies.
58237
58238 2007-12-11  Eric Blake  <ebb9@byu.net>
58239         and Bruno Haible  <bruno@clisp.org>
58240
58241         Fix OpenBSD 4.0 <float.h> handling of long double.
58242         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58243         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58244         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58245
58246 2007-12-11  Jim Meyering  <meyering@redhat.com>
58247
58248         * users.txt: Add libvirt.
58249
58250         Support versions of autoconf prior to 2.59c.
58251         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58252         if it is not already defined.
58253
58254 2007-12-09  Bruno Haible  <bruno@clisp.org>
58255
58256         Let 'gnulib-tool --import' collect sources needed for the tests in
58257         tests/ rather than in lib/.
58258         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58259         argument. If true, add rules to generate libtests.a, and put libtests.a
58260         into $(LDADD). Consider source files in subdirectories and set
58261         uses_subdirs.
58262         (func_emit_initmacro_start, func_emit_initmacro_end,
58263         func_emit_initmacro_done): Pass all arguments explicitly.
58264         (func_import): Determine two module lists main_modules,
58265         testsrelated_modules. Determine use_libtests. Determine two variables
58266         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58267         instead of just sed_transform_lib_file. Determine two variables
58268         main_files and testsrelated_files. Compute 'files' as the union of
58269         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58270         func_add_or_update. In the generated gnulib-comp.m4, collect the
58271         object files for tests/ in different variables than those for lib/.
58272         Substitute LIBTESTS_LIBDEPS.
58273         (func_create_testdir): Combine the uses_subdirs results from
58274         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58275
58276 2007-12-09  Bruno Haible  <bruno@clisp.org>
58277
58278         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58279         the build-aux directory.
58280
58281 2007-12-09  Bruno Haible  <bruno@clisp.org>
58282
58283         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58284         introduced on 2006-09-09.
58285
58286 2007-12-07  Jim Meyering  <meyering@redhat.com>
58287
58288         Let these macros work also with autoconf-2.59.
58289         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58290         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58292
58293 2007-12-06  Jim Meyering  <meyering@redhat.com>
58294
58295         Avoid a configure-time syntax error in gl_FUNC_ACL.
58296         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58297         function in each branch, before testing the cache variable.
58298
58299 2007-12-04  Eric Blake  <ebb9@byu.net>
58300
58301         Make scripts executable.
58302         * build-aux/config.guess: Add execute permissions.
58303         * build-aux/config.sub: Likewise.
58304         * build-aux/gendocs.sh: Likewise.
58305
58306         Fix frexp on mingw.
58307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58308         cross-compiling.
58309         * doc/functions/frexp.texi (frexp): Document the bug.
58310
58311         Make cygwin fseeko check more reliable.
58312         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58313         version numbers, rather than unrelated feature check.
58314         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58315         * doc/functions/ftello.texi (ftello): Likewise.
58316         Reported by Bruno Haible.
58317
58318         * m4/strerror.m4: Bump version number.
58319
58320 2007-12-03  Bruno Haible  <bruno@clisp.org>
58321
58322         * doc/functions/mprotect.texi: Mention the mingw problem.
58323
58324 2007-12-03  Eric Blake  <ebb9@byu.net>
58325
58326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58327         REPLACE_STRERROR is initialized before this macro.
58328
58329 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58332         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58333         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58334         put -lsec in even for programs other than 'ls'.  This fixes a problem
58335         for gettext reported by Bruno Haible in
58336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58337         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58338         Add support for Solaris 10.  This isn't efficient, but should get the
58339         job done for now.
58340
58341 2007-12-03  James Youngman  <jay@gnu.org>
58342
58343         * doc/regexprops-generic.texi: change "an close-group" to "a
58344         close-group" and "illegal" to "not allowed".
58345
58346 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58347
58348         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58349         pr_byname.h. Needed for the rare case when the maintainer has done
58350         "make maintainer-clean" in the source directory and then attempts a
58351         build outside the source directory.
58352         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58353         scripts_byname.h.
58354
58355 2007-12-02  Martin Lambers <marlam@marlam.de>
58356             Bruno Haible  <bruno@clisp.org>
58357
58358         * lib/getpagesize.h: Remove file.
58359         * lib/unistd.in.h: Include declaration of getpagesize here.
58360         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58361         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58362         HAVE_SYS_PARAM_H.
58363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58364         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58365         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58366         (Depends-on): Add unistd.
58367         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58368         (Include): Use <unistd.h> instead of getpagesize.h.
58369         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58370         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58371         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58372         gl_GETPAGESIZE invocation, already handled by module dependency.
58373         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58374
58375 2007-12-02  Bruno Haible  <bruno@clisp.org>
58376
58377         * modules/strings-tests: New file.
58378         * tests/test-strings.c: New file.
58379
58380         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58381         * lib/strings.in.h: New file.
58382         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58383         * m4/strings_h.m4: New file.
58384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58385         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58386         * modules/strings: New file.
58387         * modules/string (Makefile.am): Update.
58388         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58389         Reported by Karl Berry.
58390
58391 2007-12-01  Eric Blake  <ebb9@byu.net>
58392
58393         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58394         accomodate fix in cygwin 1.5.25.
58395
58396 2007-12-01  Jim Meyering  <meyering@redhat.com>
58397
58398         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58399         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58400         that would inhibit utf8-optimization of a regexp containing line-
58401         or buffer-anchors, e.g., `^', `$'.
58402
58403 2007-11-30  Bruno Haible  <bruno@clisp.org>
58404
58405         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58406         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58407         glthread_recursive_lock_init.
58408         * lib/lock.c (glthread_recursive_lock_init)
58409         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58410         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58411
58412 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         New function qset_acl, like set_acl but with syscall semantics.
58415         * lib/acl.h (qset_acl): New decl.
58416         * lib/acl.c (qset_acl): New function.
58417         (set_acl): Use new function.  Use more-consistent diagnostics.
58418
58419 2007-11-28  Jim Meyering  <meyering@redhat.com>
58420
58421         * modules/physmem (License): Change from GPL to LGPLv2+.
58422
58423 2007-11-26  Bruno Haible  <bruno@clisp.org>
58424
58425         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58426         'long double' type has excess precision.
58427         Reported by Jim Meyering in
58428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58429
58430 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58431
58432         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58433         Sync from <http://gnu.org/licenses>.
58434         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58435         with license text from same location.
58436         * doc/maintain.texi, doc/standards.texi:  Sync from
58437         <http://savannah.gnu.org/projects/gnustandards>.
58438
58439 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58440         and Jim Meyering  <meyering@redhat.com>
58441
58442         Adjust getdate' grammar to accept a slightly more regular language.
58443         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58444         Before, the former was rejected.
58445         * lib/getdate.y (digits_to_date_time): New function, factored
58446         out of ...
58447         (number): ...here.  Just call digits_to_date_time.
58448         (hybrid): New non-terminal to handle an <unsigned number,
58449         signed relative offset> sequence consistently.
58450
58451 2007-11-18  Jim Meyering  <meyering@redhat.com>
58452
58453         Pull my changes from coreutils:
58454         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58455         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58456         use of $gnulib_tool_option_extras, so that it's separated from the
58457         preceding argument.
58458
58459         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58460         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58461         parent destination directories before copying a file into place.
58462
58463 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58464
58465         bootstrap: work also with 4-argument variant of AC_INIT
58466         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58467
58468 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58469
58470         Port test-getaddrinfo to Solaris.
58471         Problem reported by Bruno Haible in
58472         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58473         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58474         explanation of setting 'hints'.
58475         Don't reject an implementation merely because it returns EAI_SERVICE.
58476         (EAI_SERVICE): Define to 0 if not defined.
58477
58478 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         The license of gnu-make and posix-shell is now "GPLed build tool".
58481         * modules/gnu-make (License): Likewise.
58482         * modules/posix-shell (License): Likewise.
58483
58484         New module posix-shell, for determining a POSIX shell
58485         or perhaps something that is close enough to a POSIX shell.
58486         * m4/posix-shell.m4: New file.
58487         * modules/posix-shell: New file.
58488
58489         * MODULES.html.sh: Mention new module.
58490
58491         New module gnu-make, for determining whether we're using GNU Make.
58492         * m4/gnu-make.m4: New file.
58493         * modules/gnu-make: New file.
58494         * MODULES.html.sh: Mention new module.
58495
58496 2007-11-14  Jim Meyering  <meyering@redhat.com>
58497
58498         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58499         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58500         use this macro to create a function _definition_.
58501         Remove useless "#undef ARGMATCH_DIE".
58502
58503 2007-11-14  Bruno Haible  <bruno@clisp.org>
58504
58505         * lib/config.charset: Update for OpenBSD 4.1.
58506         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58507
58508 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         Document 64-bit #if problems in stdint.texi.
58511         * doc/headers/stdint.texi (stdint.h): Mention problems with
58512         64-bit-#if, and how to work around them.
58513
58514         Don't insist on 'long long int' support in the preprocessor.  It
58515         breaks too many things.  For example, PRIdMAX still uses a 'long
58516         long int' format with the latest Sun compiler, even though
58517         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58518         preprocessor problem.  This causes the latest coreutils to dump
58519         core on Solaris 10 sparc with the Sun C compiler.
58520         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58521         the troublesome expressions at configure-time, not at #if-time.
58522         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58523         preprocessor.
58524         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58525         compile-time C checks, done at 'configure'-time.
58526         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58527         * modules/inttypes (Makefile): Substitute the new symbols that
58528         gl_INTTYPES_H now generates.
58529         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58530
58531 2007-11-12  Bruno Haible  <bruno@clisp.org>
58532
58533         Tests for Unicode character classification functions.
58534
58535         * modules/unictype/bidicategory-byname-tests: New file.
58536         * modules/unictype/bidicategory-name-tests: New file.
58537         * modules/unictype/bidicategory-of-tests: New file.
58538         * modules/unictype/bidicategory-test-tests: New file.
58539         * modules/unictype/block-list-tests: New file.
58540         * modules/unictype/block-of-tests: New file.
58541         * modules/unictype/block-test-tests: New file.
58542         * modules/unictype/category-C-tests: New file.
58543         * modules/unictype/category-Cc-tests: New file.
58544         * modules/unictype/category-Cf-tests: New file.
58545         * modules/unictype/category-Cn-tests: New file.
58546         * modules/unictype/category-Co-tests: New file.
58547         * modules/unictype/category-Cs-tests: New file.
58548         * modules/unictype/category-L-tests: New file.
58549         * modules/unictype/category-Ll-tests: New file.
58550         * modules/unictype/category-Lm-tests: New file.
58551         * modules/unictype/category-Lo-tests: New file.
58552         * modules/unictype/category-Lt-tests: New file.
58553         * modules/unictype/category-Lu-tests: New file.
58554         * modules/unictype/category-M-tests: New file.
58555         * modules/unictype/category-Mc-tests: New file.
58556         * modules/unictype/category-Me-tests: New file.
58557         * modules/unictype/category-Mn-tests: New file.
58558         * modules/unictype/category-N-tests: New file.
58559         * modules/unictype/category-Nd-tests: New file.
58560         * modules/unictype/category-Nl-tests: New file.
58561         * modules/unictype/category-No-tests: New file.
58562         * modules/unictype/category-P-tests: New file.
58563         * modules/unictype/category-Pc-tests: New file.
58564         * modules/unictype/category-Pd-tests: New file.
58565         * modules/unictype/category-Pe-tests: New file.
58566         * modules/unictype/category-Pf-tests: New file.
58567         * modules/unictype/category-Pi-tests: New file.
58568         * modules/unictype/category-Po-tests: New file.
58569         * modules/unictype/category-Ps-tests: New file.
58570         * modules/unictype/category-S-tests: New file.
58571         * modules/unictype/category-Sc-tests: New file.
58572         * modules/unictype/category-Sk-tests: New file.
58573         * modules/unictype/category-Sm-tests: New file.
58574         * modules/unictype/category-So-tests: New file.
58575         * modules/unictype/category-Z-tests: New file.
58576         * modules/unictype/category-Zl-tests: New file.
58577         * modules/unictype/category-Zp-tests: New file.
58578         * modules/unictype/category-Zs-tests: New file.
58579         * modules/unictype/category-and-not-tests: New file.
58580         * modules/unictype/category-and-tests: New file.
58581         * modules/unictype/category-byname-tests: New file.
58582         * modules/unictype/category-name-tests: New file.
58583         * modules/unictype/category-none-tests: New file.
58584         * modules/unictype/category-of-tests: New file.
58585         * modules/unictype/category-or-tests: New file.
58586         * modules/unictype/category-test-withtable-tests: New file.
58587         * modules/unictype/combining-class-tests: New file.
58588         * modules/unictype/ctype-alnum-tests: New file.
58589         * modules/unictype/ctype-alpha-tests: New file.
58590         * modules/unictype/ctype-blank-tests: New file.
58591         * modules/unictype/ctype-cntrl-tests: New file.
58592         * modules/unictype/ctype-digit-tests: New file.
58593         * modules/unictype/ctype-graph-tests: New file.
58594         * modules/unictype/ctype-lower-tests: New file.
58595         * modules/unictype/ctype-print-tests: New file.
58596         * modules/unictype/ctype-punct-tests: New file.
58597         * modules/unictype/ctype-space-tests: New file.
58598         * modules/unictype/ctype-upper-tests: New file.
58599         * modules/unictype/ctype-xdigit-tests: New file.
58600         * modules/unictype/decimal-digit-tests: New file.
58601         * modules/unictype/digit-tests: New file.
58602         * modules/unictype/mirror-tests: New file.
58603         * modules/unictype/numeric-tests: New file.
58604         * modules/unictype/property-alphabetic-tests: New file.
58605         * modules/unictype/property-ascii-hex-digit-tests: New file.
58606         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58607         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58608         * modules/unictype/property-bidi-block-separator-tests: New file.
58609         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58610         * modules/unictype/property-bidi-common-separator-tests: New file.
58611         * modules/unictype/property-bidi-control-tests: New file.
58612         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58613         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58614         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58615         * modules/unictype/property-bidi-european-digit-tests: New file.
58616         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58617         * modules/unictype/property-bidi-left-to-right-tests: New file.
58618         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58619         * modules/unictype/property-bidi-other-neutral-tests: New file.
58620         * modules/unictype/property-bidi-pdf-tests: New file.
58621         * modules/unictype/property-bidi-segment-separator-tests: New file.
58622         * modules/unictype/property-bidi-whitespace-tests: New file.
58623         * modules/unictype/property-byname-tests: New file.
58624         * modules/unictype/property-combining-tests: New file.
58625         * modules/unictype/property-composite-tests: New file.
58626         * modules/unictype/property-currency-symbol-tests: New file.
58627         * modules/unictype/property-dash-tests: New file.
58628         * modules/unictype/property-decimal-digit-tests: New file.
58629         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58630         * modules/unictype/property-deprecated-tests: New file.
58631         * modules/unictype/property-diacritic-tests: New file.
58632         * modules/unictype/property-extender-tests: New file.
58633         * modules/unictype/property-format-control-tests: New file.
58634         * modules/unictype/property-grapheme-base-tests: New file.
58635         * modules/unictype/property-grapheme-extend-tests: New file.
58636         * modules/unictype/property-grapheme-link-tests: New file.
58637         * modules/unictype/property-hex-digit-tests: New file.
58638         * modules/unictype/property-hyphen-tests: New file.
58639         * modules/unictype/property-id-continue-tests: New file.
58640         * modules/unictype/property-id-start-tests: New file.
58641         * modules/unictype/property-ideographic-tests: New file.
58642         * modules/unictype/property-ids-binary-operator-tests: New file.
58643         * modules/unictype/property-ids-trinary-operator-tests: New file.
58644         * modules/unictype/property-ignorable-control-tests: New file.
58645         * modules/unictype/property-iso-control-tests: New file.
58646         * modules/unictype/property-join-control-tests: New file.
58647         * modules/unictype/property-left-of-pair-tests: New file.
58648         * modules/unictype/property-line-separator-tests: New file.
58649         * modules/unictype/property-logical-order-exception-tests: New file.
58650         * modules/unictype/property-lowercase-tests: New file.
58651         * modules/unictype/property-math-tests: New file.
58652         * modules/unictype/property-non-break-tests: New file.
58653         * modules/unictype/property-not-a-character-tests: New file.
58654         * modules/unictype/property-numeric-tests: New file.
58655         * modules/unictype/property-other-alphabetic-tests: New file.
58656         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58657         * modules/unictype/property-other-grapheme-extend-tests: New file.
58658         * modules/unictype/property-other-id-continue-tests: New file.
58659         * modules/unictype/property-other-id-start-tests: New file.
58660         * modules/unictype/property-other-lowercase-tests: New file.
58661         * modules/unictype/property-other-math-tests: New file.
58662         * modules/unictype/property-other-uppercase-tests: New file.
58663         * modules/unictype/property-paired-punctuation-tests: New file.
58664         * modules/unictype/property-paragraph-separator-tests: New file.
58665         * modules/unictype/property-pattern-syntax-tests: New file.
58666         * modules/unictype/property-pattern-white-space-tests: New file.
58667         * modules/unictype/property-private-use-tests: New file.
58668         * modules/unictype/property-punctuation-tests: New file.
58669         * modules/unictype/property-quotation-mark-tests: New file.
58670         * modules/unictype/property-radical-tests: New file.
58671         * modules/unictype/property-sentence-terminal-tests: New file.
58672         * modules/unictype/property-soft-dotted-tests: New file.
58673         * modules/unictype/property-space-tests: New file.
58674         * modules/unictype/property-terminal-punctuation-tests: New file.
58675         * modules/unictype/property-test-tests: New file.
58676         * modules/unictype/property-titlecase-tests: New file.
58677         * modules/unictype/property-unassigned-code-value-tests: New file.
58678         * modules/unictype/property-unified-ideograph-tests: New file.
58679         * modules/unictype/property-uppercase-tests: New file.
58680         * modules/unictype/property-variation-selector-tests: New file.
58681         * modules/unictype/property-white-space-tests: New file.
58682         * modules/unictype/property-xid-continue-tests: New file.
58683         * modules/unictype/property-xid-start-tests: New file.
58684         * modules/unictype/property-zero-width-tests: New file.
58685         * modules/unictype/scripts-tests: New file.
58686         * modules/unictype/syntax-c-ident-tests: New file.
58687         * modules/unictype/syntax-c-whitespace-tests: New file.
58688         * modules/unictype/syntax-java-ident-tests: New file.
58689         * modules/unictype/syntax-java-whitespace-tests: New file.
58690         * tests/unictype/test-bidi_byname.c: New file.
58691         * tests/unictype/test-bidi_name.c: New file.
58692         * tests/unictype/test-bidi_of.c: New file.
58693         * tests/unictype/test-bidi_test.c: New file.
58694         * tests/unictype/test-block_list.c: New file.
58695         * tests/unictype/test-block_of.c: New file.
58696         * tests/unictype/test-block_test.c: New file.
58697         * tests/unictype/test-categ_and.c: New file.
58698         * tests/unictype/test-categ_and_not.c: New file.
58699         * tests/unictype/test-categ_byname.c: New file.
58700         * tests/unictype/test-categ_name.c: New file.
58701         * tests/unictype/test-categ_none.c: New file.
58702         * tests/unictype/test-categ_of.c: New file.
58703         * tests/unictype/test-categ_or.c: New file.
58704         * tests/unictype/test-categ_test_withtable.c: New file.
58705         * tests/unictype/test-combining.c: New file.
58706         * tests/unictype/test-decdigit.c: New file.
58707         * tests/unictype/test-digit.c: New file.
58708         * tests/unictype/test-mirror.c: New file.
58709         * tests/unictype/test-numeric.c: New file.
58710         * tests/unictype/test-pr_byname.c: New file.
58711         * tests/unictype/test-pr_test.c: New file.
58712         * tests/unictype/test-predicate-part1.h: New file.
58713         * tests/unictype/test-predicate-part2.h: New file.
58714         * tests/unictype/test-scripts.c: New file.
58715         * tests/unictype/test-sy_c_ident.c: New file.
58716         * tests/unictype/test-sy_java_ident.c: New file.
58717
58718         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58719         for Unicode 5.0.0.
58720         * tests/unictype/test-categ_Cc.c: Likewise.
58721         * tests/unictype/test-categ_Cf.c: Likewise.
58722         * tests/unictype/test-categ_Cn.c: Likewise.
58723         * tests/unictype/test-categ_Co.c: Likewise.
58724         * tests/unictype/test-categ_Cs.c: Likewise.
58725         * tests/unictype/test-categ_L.c: Likewise.
58726         * tests/unictype/test-categ_Ll.c: Likewise.
58727         * tests/unictype/test-categ_Lm.c: Likewise.
58728         * tests/unictype/test-categ_Lo.c: Likewise.
58729         * tests/unictype/test-categ_Lt.c: Likewise.
58730         * tests/unictype/test-categ_Lu.c: Likewise.
58731         * tests/unictype/test-categ_M.c: Likewise.
58732         * tests/unictype/test-categ_Mc.c: Likewise.
58733         * tests/unictype/test-categ_Me.c: Likewise.
58734         * tests/unictype/test-categ_Mn.c: Likewise.
58735         * tests/unictype/test-categ_N.c: Likewise.
58736         * tests/unictype/test-categ_Nd.c: Likewise.
58737         * tests/unictype/test-categ_Nl.c: Likewise.
58738         * tests/unictype/test-categ_No.c: Likewise.
58739         * tests/unictype/test-categ_P.c: Likewise.
58740         * tests/unictype/test-categ_Pc.c: Likewise.
58741         * tests/unictype/test-categ_Pd.c: Likewise.
58742         * tests/unictype/test-categ_Pe.c: Likewise.
58743         * tests/unictype/test-categ_Pf.c: Likewise.
58744         * tests/unictype/test-categ_Pi.c: Likewise.
58745         * tests/unictype/test-categ_Po.c: Likewise.
58746         * tests/unictype/test-categ_Ps.c: Likewise.
58747         * tests/unictype/test-categ_S.c: Likewise.
58748         * tests/unictype/test-categ_Sc.c: Likewise.
58749         * tests/unictype/test-categ_Sk.c: Likewise.
58750         * tests/unictype/test-categ_Sm.c: Likewise.
58751         * tests/unictype/test-categ_So.c: Likewise.
58752         * tests/unictype/test-categ_Z.c: Likewise.
58753         * tests/unictype/test-categ_Zl.c: Likewise.
58754         * tests/unictype/test-categ_Zp.c: Likewise.
58755         * tests/unictype/test-categ_Zs.c: Likewise.
58756         * tests/unictype/test-ctype_alnum.c: Likewise.
58757         * tests/unictype/test-ctype_alpha.c: Likewise.
58758         * tests/unictype/test-ctype_blank.c: Likewise.
58759         * tests/unictype/test-ctype_cntrl.c: Likewise.
58760         * tests/unictype/test-ctype_digit.c: Likewise.
58761         * tests/unictype/test-ctype_graph.c: Likewise.
58762         * tests/unictype/test-ctype_lower.c: Likewise.
58763         * tests/unictype/test-ctype_print.c: Likewise.
58764         * tests/unictype/test-ctype_punct.c: Likewise.
58765         * tests/unictype/test-ctype_space.c: Likewise.
58766         * tests/unictype/test-ctype_upper.c: Likewise.
58767         * tests/unictype/test-ctype_xdigit.c: Likewise.
58768         * tests/unictype/test-decdigit.h: Likewise.
58769         * tests/unictype/test-digit.h: Likewise.
58770         * tests/unictype/test-numeric.h: Likewise.
58771         * tests/unictype/test-pr_alphabetic.c: Likewise.
58772         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58773         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58774         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58775         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58776         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58777         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58778         * tests/unictype/test-pr_bidi_control.c: Likewise.
58779         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58780         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58781         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58782         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58783         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58784         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58785         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58786         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58787         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58788         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58789         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58790         * tests/unictype/test-pr_combining.c: Likewise.
58791         * tests/unictype/test-pr_composite.c: Likewise.
58792         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58793         * tests/unictype/test-pr_dash.c: Likewise.
58794         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58795         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58796         * tests/unictype/test-pr_deprecated.c: Likewise.
58797         * tests/unictype/test-pr_diacritic.c: Likewise.
58798         * tests/unictype/test-pr_extender.c: Likewise.
58799         * tests/unictype/test-pr_format_control.c: Likewise.
58800         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58801         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58802         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58803         * tests/unictype/test-pr_hex_digit.c: Likewise.
58804         * tests/unictype/test-pr_hyphen.c: Likewise.
58805         * tests/unictype/test-pr_id_continue.c: Likewise.
58806         * tests/unictype/test-pr_id_start.c: Likewise.
58807         * tests/unictype/test-pr_ideographic.c: Likewise.
58808         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58809         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58810         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58811         * tests/unictype/test-pr_iso_control.c: Likewise.
58812         * tests/unictype/test-pr_join_control.c: Likewise.
58813         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58814         * tests/unictype/test-pr_line_separator.c: Likewise.
58815         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58816         * tests/unictype/test-pr_lowercase.c: Likewise.
58817         * tests/unictype/test-pr_math.c: Likewise.
58818         * tests/unictype/test-pr_non_break.c: Likewise.
58819         * tests/unictype/test-pr_not_a_character.c: Likewise.
58820         * tests/unictype/test-pr_numeric.c: Likewise.
58821         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58822         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58823         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58824         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58825         * tests/unictype/test-pr_other_id_start.c: Likewise.
58826         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58827         * tests/unictype/test-pr_other_math.c: Likewise.
58828         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58829         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58830         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58831         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58832         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58833         * tests/unictype/test-pr_private_use.c: Likewise.
58834         * tests/unictype/test-pr_punctuation.c: Likewise.
58835         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58836         * tests/unictype/test-pr_radical.c: Likewise.
58837         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58838         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58839         * tests/unictype/test-pr_space.c: Likewise.
58840         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58841         * tests/unictype/test-pr_titlecase.c: Likewise.
58842         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58843         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58844         * tests/unictype/test-pr_uppercase.c: Likewise.
58845         * tests/unictype/test-pr_variation_selector.c: Likewise.
58846         * tests/unictype/test-pr_white_space.c: Likewise.
58847         * tests/unictype/test-pr_xid_continue.c: Likewise.
58848         * tests/unictype/test-pr_xid_start.c: Likewise.
58849         * tests/unictype/test-pr_zero_width.c: Likewise.
58850         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58851         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58852
58853 2007-11-12  Bruno Haible  <bruno@clisp.org>
58854
58855         Unicode character classification functions.
58856         * lib/unictype.h: New file.
58857         * modules/unictype/base: New file.
58858         * modules/unictype/category-L: New file.
58859         * modules/unictype/category-Lu: New file.
58860         * modules/unictype/category-Ll: New file.
58861         * modules/unictype/category-Lt: New file.
58862         * modules/unictype/category-Lm: New file.
58863         * modules/unictype/category-Lo: New file.
58864         * modules/unictype/category-M: New file.
58865         * modules/unictype/category-Mn: New file.
58866         * modules/unictype/category-Mc: New file.
58867         * modules/unictype/category-Me: New file.
58868         * modules/unictype/category-N: New file.
58869         * modules/unictype/category-Nd: New file.
58870         * modules/unictype/category-Nl: New file.
58871         * modules/unictype/category-No: New file.
58872         * modules/unictype/category-P: New file.
58873         * modules/unictype/category-Pc: New file.
58874         * modules/unictype/category-Pd: New file.
58875         * modules/unictype/category-Ps: New file.
58876         * modules/unictype/category-Pe: New file.
58877         * modules/unictype/category-Pi: New file.
58878         * modules/unictype/category-Pf: New file.
58879         * modules/unictype/category-Po: New file.
58880         * modules/unictype/category-S: New file.
58881         * modules/unictype/category-Sm: New file.
58882         * modules/unictype/category-Sc: New file.
58883         * modules/unictype/category-Sk: New file.
58884         * modules/unictype/category-So: New file.
58885         * modules/unictype/category-Z: New file.
58886         * modules/unictype/category-Zs: New file.
58887         * modules/unictype/category-Zl: New file.
58888         * modules/unictype/category-Zp: New file.
58889         * modules/unictype/category-C: New file.
58890         * modules/unictype/category-Cc: New file.
58891         * modules/unictype/category-Cf: New file.
58892         * modules/unictype/category-Cs: New file.
58893         * modules/unictype/category-Co: New file.
58894         * modules/unictype/category-Cn: New file.
58895         * modules/unictype/category-or: New file.
58896         * modules/unictype/category-of: New file.
58897         * modules/unictype/category-test: New file.
58898         * modules/unictype/category-test-withtable: New file.
58899         * modules/unictype/category-byname: New file.
58900         * modules/unictype/category-none: New file.
58901         * modules/unictype/category-and: New file.
58902         * modules/unictype/category-and-not: New file.
58903         * modules/unictype/category-name: New file.
58904         * modules/unictype/combining-class: New file.
58905         * modules/unictype/category-all: New file.
58906         * modules/unictype/bidicategory-all: New file.
58907         * modules/unictype/bidicategory-byname: New file.
58908         * modules/unictype/bidicategory-name: New file.
58909         * modules/unictype/bidicategory-of: New file.
58910         * modules/unictype/bidicategory-test: New file.
58911         * modules/unictype/decimal-digit: New file.
58912         * modules/unictype/digit: New file.
58913         * modules/unictype/numeric: New file.
58914         * modules/unictype/mirror: New file.
58915         * modules/unictype/property-white-space: New file.
58916         * modules/unictype/property-alphabetic: New file.
58917         * modules/unictype/property-other-alphabetic: New file.
58918         * modules/unictype/property-not-a-character: New file.
58919         * modules/unictype/property-default-ignorable-code-point: New file.
58920         * modules/unictype/property-other-default-ignorable-code-point: New
58921         file.
58922         * modules/unictype/property-deprecated: New file.
58923         * modules/unictype/property-logical-order-exception: New file.
58924         * modules/unictype/property-variation-selector: New file.
58925         * modules/unictype/property-private-use: New file.
58926         * modules/unictype/property-unassigned-code-value: New file.
58927         * modules/unictype/property-uppercase: New file.
58928         * modules/unictype/property-other-uppercase: New file.
58929         * modules/unictype/property-lowercase: New file.
58930         * modules/unictype/property-other-lowercase: New file.
58931         * modules/unictype/property-titlecase: New file.
58932         * modules/unictype/property-soft-dotted: New file.
58933         * modules/unictype/property-id-start: New file.
58934         * modules/unictype/property-other-id-start: New file.
58935         * modules/unictype/property-id-continue: New file.
58936         * modules/unictype/property-other-id-continue: New file.
58937         * modules/unictype/property-xid-start: New file.
58938         * modules/unictype/property-xid-continue: New file.
58939         * modules/unictype/property-pattern-white-space: New file.
58940         * modules/unictype/property-pattern-syntax: New file.
58941         * modules/unictype/property-join-control: New file.
58942         * modules/unictype/property-grapheme-base: New file.
58943         * modules/unictype/property-grapheme-extend: New file.
58944         * modules/unictype/property-other-grapheme-extend: New file.
58945         * modules/unictype/property-grapheme-link: New file.
58946         * modules/unictype/property-bidi-control: New file.
58947         * modules/unictype/property-bidi-left-to-right: New file.
58948         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58949         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58950         * modules/unictype/property-bidi-european-digit: New file.
58951         * modules/unictype/property-bidi-eur-num-separator: New file.
58952         * modules/unictype/property-bidi-eur-num-terminator: New file.
58953         * modules/unictype/property-bidi-arabic-digit: New file.
58954         * modules/unictype/property-bidi-common-separator: New file.
58955         * modules/unictype/property-bidi-block-separator: New file.
58956         * modules/unictype/property-bidi-segment-separator: New file.
58957         * modules/unictype/property-bidi-whitespace: New file.
58958         * modules/unictype/property-bidi-non-spacing-mark: New file.
58959         * modules/unictype/property-bidi-boundary-neutral: New file.
58960         * modules/unictype/property-bidi-pdf: New file.
58961         * modules/unictype/property-bidi-embedding-or-override: New file.
58962         * modules/unictype/property-bidi-other-neutral: New file.
58963         * modules/unictype/property-hex-digit: New file.
58964         * modules/unictype/property-ascii-hex-digit: New file.
58965         * modules/unictype/property-ideographic: New file.
58966         * modules/unictype/property-unified-ideograph: New file.
58967         * modules/unictype/property-radical: New file.
58968         * modules/unictype/property-ids-binary-operator: New file.
58969         * modules/unictype/property-ids-trinary-operator: New file.
58970         * modules/unictype/property-zero-width: New file.
58971         * modules/unictype/property-space: New file.
58972         * modules/unictype/property-non-break: New file.
58973         * modules/unictype/property-iso-control: New file.
58974         * modules/unictype/property-format-control: New file.
58975         * modules/unictype/property-dash: New file.
58976         * modules/unictype/property-hyphen: New file.
58977         * modules/unictype/property-punctuation: New file.
58978         * modules/unictype/property-line-separator: New file.
58979         * modules/unictype/property-paragraph-separator: New file.
58980         * modules/unictype/property-quotation-mark: New file.
58981         * modules/unictype/property-sentence-terminal: New file.
58982         * modules/unictype/property-terminal-punctuation: New file.
58983         * modules/unictype/property-currency-symbol: New file.
58984         * modules/unictype/property-math: New file.
58985         * modules/unictype/property-other-math: New file.
58986         * modules/unictype/property-paired-punctuation: New file.
58987         * modules/unictype/property-left-of-pair: New file.
58988         * modules/unictype/property-combining: New file.
58989         * modules/unictype/property-composite: New file.
58990         * modules/unictype/property-decimal-digit: New file.
58991         * modules/unictype/property-numeric: New file.
58992         * modules/unictype/property-diacritic: New file.
58993         * modules/unictype/property-extender: New file.
58994         * modules/unictype/property-ignorable-control: New file.
58995         * modules/unictype/property-test: New file.
58996         * modules/unictype/property-byname: New file.
58997         * modules/unictype/property-all: New file.
58998         * modules/unictype/scripts: New file.
58999         * modules/unictype/scripts-all: New file.
59000         * modules/unictype/block-of: New file.
59001         * modules/unictype/block-test: New file.
59002         * modules/unictype/block-list: New file.
59003         * modules/unictype/block-all: New file.
59004         * modules/unictype/syntax-c-whitespace: New file.
59005         * modules/unictype/syntax-java-whitespace: New file.
59006         * modules/unictype/syntax-c-ident: New file.
59007         * modules/unictype/syntax-java-ident: New file.
59008         * modules/unictype/ctype-alnum: New file.
59009         * modules/unictype/ctype-alpha: New file.
59010         * modules/unictype/ctype-cntrl: New file.
59011         * modules/unictype/ctype-digit: New file.
59012         * modules/unictype/ctype-graph: New file.
59013         * modules/unictype/ctype-lower: New file.
59014         * modules/unictype/ctype-print: New file.
59015         * modules/unictype/ctype-punct: New file.
59016         * modules/unictype/ctype-space: New file.
59017         * modules/unictype/ctype-upper: New file.
59018         * modules/unictype/ctype-xdigit: New file.
59019         * modules/unictype/ctype-blank: New file.
59020         * lib/unictype/bidi_byname.c: New file.
59021         * lib/unictype/bidi_name.c: New file.
59022         * lib/unictype/bidi_of.c: New file.
59023         * lib/unictype/bidi_test.c: New file.
59024         * lib/unictype/bitmap.h: New file.
59025         * lib/unictype/block_test.c: New file.
59026         * lib/unictype/blocks.c: New file.
59027         * lib/unictype/categ_C.c: New file.
59028         * lib/unictype/categ_Cc.c: New file.
59029         * lib/unictype/categ_Cf.c: New file.
59030         * lib/unictype/categ_Cn.c: New file.
59031         * lib/unictype/categ_Co.c: New file.
59032         * lib/unictype/categ_Cs.c: New file.
59033         * lib/unictype/categ_L.c: New file.
59034         * lib/unictype/categ_Ll.c: New file.
59035         * lib/unictype/categ_Lm.c: New file.
59036         * lib/unictype/categ_Lo.c: New file.
59037         * lib/unictype/categ_Lt.c: New file.
59038         * lib/unictype/categ_Lu.c: New file.
59039         * lib/unictype/categ_M.c: New file.
59040         * lib/unictype/categ_Mc.c: New file.
59041         * lib/unictype/categ_Me.c: New file.
59042         * lib/unictype/categ_Mn.c: New file.
59043         * lib/unictype/categ_N.c: New file.
59044         * lib/unictype/categ_Nd.c: New file.
59045         * lib/unictype/categ_Nl.c: New file.
59046         * lib/unictype/categ_No.c: New file.
59047         * lib/unictype/categ_P.c: New file.
59048         * lib/unictype/categ_Pc.c: New file.
59049         * lib/unictype/categ_Pd.c: New file.
59050         * lib/unictype/categ_Pe.c: New file.
59051         * lib/unictype/categ_Pf.c: New file.
59052         * lib/unictype/categ_Pi.c: New file.
59053         * lib/unictype/categ_Po.c: New file.
59054         * lib/unictype/categ_Ps.c: New file.
59055         * lib/unictype/categ_S.c: New file.
59056         * lib/unictype/categ_Sc.c: New file.
59057         * lib/unictype/categ_Sk.c: New file.
59058         * lib/unictype/categ_Sm.c: New file.
59059         * lib/unictype/categ_So.c: New file.
59060         * lib/unictype/categ_Z.c: New file.
59061         * lib/unictype/categ_Zl.c: New file.
59062         * lib/unictype/categ_Zp.c: New file.
59063         * lib/unictype/categ_Zs.c: New file.
59064         * lib/unictype/categ_and.c: New file.
59065         * lib/unictype/categ_and_not.c: New file.
59066         * lib/unictype/categ_byname.c: New file.
59067         * lib/unictype/categ_name.c: New file.
59068         * lib/unictype/categ_none.c: New file.
59069         * lib/unictype/categ_of.c: New file.
59070         * lib/unictype/categ_or.c: New file.
59071         * lib/unictype/categ_test.c: New file.
59072         * lib/unictype/combining.c: New file.
59073         * lib/unictype/ctype_alnum.c: New file.
59074         * lib/unictype/ctype_alpha.c: New file.
59075         * lib/unictype/ctype_blank.c: New file.
59076         * lib/unictype/ctype_cntrl.c: New file.
59077         * lib/unictype/ctype_digit.c: New file.
59078         * lib/unictype/ctype_graph.c: New file.
59079         * lib/unictype/ctype_lower.c: New file.
59080         * lib/unictype/ctype_print.c: New file.
59081         * lib/unictype/ctype_punct.c: New file.
59082         * lib/unictype/ctype_space.c: New file.
59083         * lib/unictype/ctype_upper.c: New file.
59084         * lib/unictype/ctype_xdigit.c: New file.
59085         * lib/unictype/decdigit.c: New file.
59086         * lib/unictype/digit.c: New file.
59087         * lib/unictype/identsyntaxmap.h: New file.
59088         * lib/unictype/mirror.c: New file.
59089         * lib/unictype/numeric.c: New file.
59090         * lib/unictype/pr_alphabetic.c: New file.
59091         * lib/unictype/pr_ascii_hex_digit.c: New file.
59092         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59093         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59094         * lib/unictype/pr_bidi_block_separator.c: New file.
59095         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59096         * lib/unictype/pr_bidi_common_separator.c: New file.
59097         * lib/unictype/pr_bidi_control.c: New file.
59098         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59099         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59100         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59101         * lib/unictype/pr_bidi_european_digit.c: New file.
59102         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59103         * lib/unictype/pr_bidi_left_to_right.c: New file.
59104         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59105         * lib/unictype/pr_bidi_other_neutral.c: New file.
59106         * lib/unictype/pr_bidi_pdf.c: New file.
59107         * lib/unictype/pr_bidi_segment_separator.c: New file.
59108         * lib/unictype/pr_bidi_whitespace.c: New file.
59109         * lib/unictype/pr_byname.c: New file.
59110         * lib/unictype/pr_byname.gperf: New file.
59111         * lib/unictype/pr_combining.c: New file.
59112         * lib/unictype/pr_composite.c: New file.
59113         * lib/unictype/pr_currency_symbol.c: New file.
59114         * lib/unictype/pr_dash.c: New file.
59115         * lib/unictype/pr_decimal_digit.c: New file.
59116         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59117         * lib/unictype/pr_deprecated.c: New file.
59118         * lib/unictype/pr_diacritic.c: New file.
59119         * lib/unictype/pr_extender.c: New file.
59120         * lib/unictype/pr_format_control.c: New file.
59121         * lib/unictype/pr_grapheme_base.c: New file.
59122         * lib/unictype/pr_grapheme_extend.c: New file.
59123         * lib/unictype/pr_grapheme_link.c: New file.
59124         * lib/unictype/pr_hex_digit.c: New file.
59125         * lib/unictype/pr_hyphen.c: New file.
59126         * lib/unictype/pr_id_continue.c: New file.
59127         * lib/unictype/pr_id_start.c: New file.
59128         * lib/unictype/pr_ideographic.c: New file.
59129         * lib/unictype/pr_ids_binary_operator.c: New file.
59130         * lib/unictype/pr_ids_trinary_operator.c: New file.
59131         * lib/unictype/pr_ignorable_control.c: New file.
59132         * lib/unictype/pr_iso_control.c: New file.
59133         * lib/unictype/pr_join_control.c: New file.
59134         * lib/unictype/pr_left_of_pair.c: New file.
59135         * lib/unictype/pr_line_separator.c: New file.
59136         * lib/unictype/pr_logical_order_exception.c: New file.
59137         * lib/unictype/pr_lowercase.c: New file.
59138         * lib/unictype/pr_math.c: New file.
59139         * lib/unictype/pr_non_break.c: New file.
59140         * lib/unictype/pr_not_a_character.c: New file.
59141         * lib/unictype/pr_numeric.c: New file.
59142         * lib/unictype/pr_other_alphabetic.c: New file.
59143         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59144         * lib/unictype/pr_other_grapheme_extend.c: New file.
59145         * lib/unictype/pr_other_id_continue.c: New file.
59146         * lib/unictype/pr_other_id_start.c: New file.
59147         * lib/unictype/pr_other_lowercase.c: New file.
59148         * lib/unictype/pr_other_math.c: New file.
59149         * lib/unictype/pr_other_uppercase.c: New file.
59150         * lib/unictype/pr_paired_punctuation.c: New file.
59151         * lib/unictype/pr_paragraph_separator.c: New file.
59152         * lib/unictype/pr_pattern_syntax.c: New file.
59153         * lib/unictype/pr_pattern_white_space.c: New file.
59154         * lib/unictype/pr_private_use.c: New file.
59155         * lib/unictype/pr_punctuation.c: New file.
59156         * lib/unictype/pr_quotation_mark.c: New file.
59157         * lib/unictype/pr_radical.c: New file.
59158         * lib/unictype/pr_sentence_terminal.c: New file.
59159         * lib/unictype/pr_soft_dotted.c: New file.
59160         * lib/unictype/pr_space.c: New file.
59161         * lib/unictype/pr_terminal_punctuation.c: New file.
59162         * lib/unictype/pr_test.c: New file.
59163         * lib/unictype/pr_titlecase.c: New file.
59164         * lib/unictype/pr_unassigned_code_value.c: New file.
59165         * lib/unictype/pr_unified_ideograph.c: New file.
59166         * lib/unictype/pr_uppercase.c: New file.
59167         * lib/unictype/pr_variation_selector.c: New file.
59168         * lib/unictype/pr_white_space.c: New file.
59169         * lib/unictype/pr_xid_continue.c: New file.
59170         * lib/unictype/pr_xid_start.c: New file.
59171         * lib/unictype/pr_zero_width.c: New file.
59172         * lib/unictype/scripts.c: New file.
59173         * lib/unictype/sy_c_ident.c: New file.
59174         * lib/unictype/sy_c_whitespace.c: New file.
59175         * lib/unictype/sy_java_ident.c: New file.
59176         * lib/unictype/sy_java_whitespace.c: New file.
59177
59178         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59179         Unicode 5.0.0.
59180         * lib/unictype/blocks.h: Likewise.
59181         * lib/unictype/categ_C.h: Likewise.
59182         * lib/unictype/categ_Cc.h: Likewise.
59183         * lib/unictype/categ_Cf.h: Likewise.
59184         * lib/unictype/categ_Cn.h: Likewise.
59185         * lib/unictype/categ_Co.h: Likewise.
59186         * lib/unictype/categ_Cs.h: Likewise.
59187         * lib/unictype/categ_L.h: Likewise.
59188         * lib/unictype/categ_Ll.h: Likewise.
59189         * lib/unictype/categ_Lm.h: Likewise.
59190         * lib/unictype/categ_Lo.h: Likewise.
59191         * lib/unictype/categ_Lt.h: Likewise.
59192         * lib/unictype/categ_Lu.h: Likewise.
59193         * lib/unictype/categ_M.h: Likewise.
59194         * lib/unictype/categ_Mc.h: Likewise.
59195         * lib/unictype/categ_Me.h: Likewise.
59196         * lib/unictype/categ_Mn.h: Likewise.
59197         * lib/unictype/categ_N.h: Likewise.
59198         * lib/unictype/categ_Nd.h: Likewise.
59199         * lib/unictype/categ_Nl.h: Likewise.
59200         * lib/unictype/categ_No.h: Likewise.
59201         * lib/unictype/categ_P.h: Likewise.
59202         * lib/unictype/categ_Pc.h: Likewise.
59203         * lib/unictype/categ_Pd.h: Likewise.
59204         * lib/unictype/categ_Pe.h: Likewise.
59205         * lib/unictype/categ_Pf.h: Likewise.
59206         * lib/unictype/categ_Pi.h: Likewise.
59207         * lib/unictype/categ_Po.h: Likewise.
59208         * lib/unictype/categ_Ps.h: Likewise.
59209         * lib/unictype/categ_S.h: Likewise.
59210         * lib/unictype/categ_Sc.h: Likewise.
59211         * lib/unictype/categ_Sk.h: Likewise.
59212         * lib/unictype/categ_Sm.h: Likewise.
59213         * lib/unictype/categ_So.h: Likewise.
59214         * lib/unictype/categ_Z.h: Likewise.
59215         * lib/unictype/categ_Zl.h: Likewise.
59216         * lib/unictype/categ_Zp.h: Likewise.
59217         * lib/unictype/categ_Zs.h: Likewise.
59218         * lib/unictype/categ_of.h: Likewise.
59219         * lib/unictype/combining.h: Likewise.
59220         * lib/unictype/ctype_alnum.h: Likewise.
59221         * lib/unictype/ctype_alpha.h: Likewise.
59222         * lib/unictype/ctype_blank.h: Likewise.
59223         * lib/unictype/ctype_cntrl.h: Likewise.
59224         * lib/unictype/ctype_digit.h: Likewise.
59225         * lib/unictype/ctype_graph.h: Likewise.
59226         * lib/unictype/ctype_lower.h: Likewise.
59227         * lib/unictype/ctype_print.h: Likewise.
59228         * lib/unictype/ctype_punct.h: Likewise.
59229         * lib/unictype/ctype_space.h: Likewise.
59230         * lib/unictype/ctype_upper.h: Likewise.
59231         * lib/unictype/ctype_xdigit.h: Likewise.
59232         * lib/unictype/decdigit.h: Likewise.
59233         * lib/unictype/digit.h: Likewise.
59234         * lib/unictype/mirror.h: Likewise.
59235         * lib/unictype/numeric.h: Likewise.
59236         * lib/unictype/pr_alphabetic.h: Likewise.
59237         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59238         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59239         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59240         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59241         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59242         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59243         * lib/unictype/pr_bidi_control.h: Likewise.
59244         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59245         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59246         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59247         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59248         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59249         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59250         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59251         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59252         * lib/unictype/pr_bidi_pdf.h: Likewise.
59253         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59254         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59255         * lib/unictype/pr_combining.h: Likewise.
59256         * lib/unictype/pr_composite.h: Likewise.
59257         * lib/unictype/pr_currency_symbol.h: Likewise.
59258         * lib/unictype/pr_dash.h: Likewise.
59259         * lib/unictype/pr_decimal_digit.h: Likewise.
59260         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59261         * lib/unictype/pr_deprecated.h: Likewise.
59262         * lib/unictype/pr_diacritic.h: Likewise.
59263         * lib/unictype/pr_extender.h: Likewise.
59264         * lib/unictype/pr_format_control.h: Likewise.
59265         * lib/unictype/pr_grapheme_base.h: Likewise.
59266         * lib/unictype/pr_grapheme_extend.h: Likewise.
59267         * lib/unictype/pr_grapheme_link.h: Likewise.
59268         * lib/unictype/pr_hex_digit.h: Likewise.
59269         * lib/unictype/pr_hyphen.h: Likewise.
59270         * lib/unictype/pr_id_continue.h: Likewise.
59271         * lib/unictype/pr_id_start.h: Likewise.
59272         * lib/unictype/pr_ideographic.h: Likewise.
59273         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59274         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59275         * lib/unictype/pr_ignorable_control.h: Likewise.
59276         * lib/unictype/pr_iso_control.h: Likewise.
59277         * lib/unictype/pr_join_control.h: Likewise.
59278         * lib/unictype/pr_left_of_pair.h: Likewise.
59279         * lib/unictype/pr_line_separator.h: Likewise.
59280         * lib/unictype/pr_logical_order_exception.h: Likewise.
59281         * lib/unictype/pr_lowercase.h: Likewise.
59282         * lib/unictype/pr_math.h: Likewise.
59283         * lib/unictype/pr_non_break.h: Likewise.
59284         * lib/unictype/pr_not_a_character.h: Likewise.
59285         * lib/unictype/pr_numeric.h: Likewise.
59286         * lib/unictype/pr_other_alphabetic.h: Likewise.
59287         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59288         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59289         * lib/unictype/pr_other_id_continue.h: Likewise.
59290         * lib/unictype/pr_other_id_start.h: Likewise.
59291         * lib/unictype/pr_other_lowercase.h: Likewise.
59292         * lib/unictype/pr_other_math.h: Likewise.
59293         * lib/unictype/pr_other_uppercase.h: Likewise.
59294         * lib/unictype/pr_paired_punctuation.h: Likewise.
59295         * lib/unictype/pr_paragraph_separator.h: Likewise.
59296         * lib/unictype/pr_pattern_syntax.h: Likewise.
59297         * lib/unictype/pr_pattern_white_space.h: Likewise.
59298         * lib/unictype/pr_private_use.h: Likewise.
59299         * lib/unictype/pr_punctuation.h: Likewise.
59300         * lib/unictype/pr_quotation_mark.h: Likewise.
59301         * lib/unictype/pr_radical.h: Likewise.
59302         * lib/unictype/pr_sentence_terminal.h: Likewise.
59303         * lib/unictype/pr_soft_dotted.h: Likewise.
59304         * lib/unictype/pr_space.h: Likewise.
59305         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59306         * lib/unictype/pr_titlecase.h: Likewise.
59307         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59308         * lib/unictype/pr_unified_ideograph.h: Likewise.
59309         * lib/unictype/pr_uppercase.h: Likewise.
59310         * lib/unictype/pr_variation_selector.h: Likewise.
59311         * lib/unictype/pr_white_space.h: Likewise.
59312         * lib/unictype/pr_xid_continue.h: Likewise.
59313         * lib/unictype/pr_xid_start.h: Likewise.
59314         * lib/unictype/pr_zero_width.h: Likewise.
59315         * lib/unictype/scripts.h: Likewise.
59316         * lib/unictype/scripts_byname.gperf: Likewise.
59317         * lib/unictype/sy_c_ident.h: Likewise.
59318         * lib/unictype/sy_c_whitespace.h: Likewise.
59319         * lib/unictype/sy_java_ident.h: Likewise.
59320         * lib/unictype/sy_java_whitespace.h: Likewise.
59321
59322         * lib/unictype/Makefile: New file.
59323         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59324         glibc.
59325         * lib/unictype/3level.h: New file, copied from glibc.
59326         * lib/unictype/3levelbit.h: New file.
59327
59328 2007-11-11  Bruno Haible  <bruno@clisp.org>
59329
59330         * modules/gperf: New file.
59331         * modules/iconv_open (Depends-on): Add it.
59332         (Makefile.am): Remove the GPERF definition.
59333
59334 2007-11-11  Bruno Haible  <bruno@clisp.org>
59335
59336         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59337         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59338
59339 2007-11-11  Bruno Haible  <bruno@clisp.org>
59340
59341         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59342         (usage): Remove function.
59343
59344 2007-11-11  Bruno Haible  <bruno@clisp.org>
59345
59346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59347         gl_FUNC_CEILF_LIBS.
59348         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59349         gl_FUNC_CEIL_LIBS.
59350         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59351         gl_FUNC_CEILL_LIBS.
59352         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59353         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59354         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59355
59356 2007-11-11  Bruno Haible  <bruno@clisp.org>
59357
59358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59359         roundf were declared but do not exist on functions.
59360         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59361         roundl were declared but do not exist on functions.
59362         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59363         HAVE_FLOORL_AND_CEILL, respectively.
59364         Needed for Sun C on Solaris 10.
59365
59366 2007-11-11  Bruno Haible  <bruno@clisp.org>
59367
59368         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59369         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59370         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59371         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59372         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59373         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59374         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59375         HAVE_DECL_ROUNDF.
59376         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59377         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59379         of HAVE_DECL_ROUND*.
59380         * modules/math (Makefile.am): Update.
59381
59382 2007-11-10  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59385         ptrdiff_t as m4/intl.m4.
59386
59387 2007-11-10  Jim Meyering  <meyering@redhat.com>
59388
59389         Avoid link failure for the argmatch test.
59390         * tests/test-argmatch.c (usage): Define function to avoid a link
59391         failure: argmatch_die requires a usage function.
59392
59393 2007-11-09  Bruno Haible  <bruno@clisp.org>
59394
59395         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59396         * doc/functions/vsnprintf.texi: Likewise.
59397         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59398         with a size argument < 2.
59399
59400 2007-11-09  Bruno Haible  <bruno@clisp.org>
59401
59402         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59403         buffer. Fixes an inefficiency introduced on 2007-11-03.
59404
59405 2007-11-09  Bruno Haible  <bruno@clisp.org>
59406
59407         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59408         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59409
59410 2007-11-08  Jim Meyering  <meyering@redhat.com>
59411
59412         Change cache variable name prefix "jm_" to "gl_" everywhere.
59413         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59414         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59415         * m4/uptime.m4: s/gl_/jm_/
59416
59417 2007-11-07  Bruno Haible  <bruno@clisp.org>
59418
59419         Update to GNU gettext 0.17.
59420         * m4/intl.m4: Update to GNU gettext 0.17.
59421         * m4/po.m4: Likewise.
59422         * modules/gettext (Files): Remove m4/ulonglong.m4.
59423         (configure.ac): Require gettext infrastructure from version 0.17.
59424
59425 2007-11-06  Bruno Haible  <bruno@clisp.org>
59426
59427         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59428         symbolic values are not defined in a public header.
59429         * lib/freadable.c (freadable) [QNX]: Likewise.
59430         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59431         * lib/freading.c (freading) [QNX]: Likewise.
59432         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59433         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59434         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59435         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59436         Reported by Alain Magloire.
59437
59438         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59439
59440 2007-11-05  Bruno Haible  <bruno@clisp.org>
59441
59442         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59443         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59444         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59445         Reported by Eric Blake.
59446
59447 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59448             Bruno Haible  <bruno@clisp.org>
59449
59450         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59451         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59452         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59453         (malloc): Undefine also before including <stdlib.h>.
59454         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59455         Needed on OSF/1 4.0.
59456
59457 2007-11-05  Jim Meyering  <meyering@redhat.com>
59458
59459         git-version-gen: sync from coreutils.
59460         * build-aux/git-version-gen: Add comments.
59461         Change the first '-' to '.' in the snapshot version string,
59462         e.g., 6.9-377-08144 -> 6.9.377-08144
59463         Remove first parameter.
59464         Don't declare a version "-dirty" merely because a time
59465         stamp has changed.
59466
59467 2007-11-04  Bruno Haible  <bruno@clisp.org>
59468
59469         * lib/lock.h: Protect all macro definitions containing an 'if'
59470         statement through a "do { ... } while (0)".
59471         * lib/tls.h: Likewise.
59472
59473 2007-11-04  Bruno Haible  <bruno@clisp.org>
59474
59475         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59476
59477 2007-11-04  Bruno Haible  <bruno@clisp.org>
59478
59479         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59480         * modules/fprintf-posix (Depends-on): Add nocrash.
59481         * modules/snprintf-posix (Depends-on): Likewise.
59482         * modules/sprintf-posix (Depends-on): Likewise.
59483         * modules/vasnprintf-posix (Depends-on): Likewise.
59484         * modules/vasprintf-posix (Depends-on): Likewise.
59485         * modules/vfprintf-posix (Depends-on): Likewise.
59486         * modules/vsnprintf-posix (Depends-on): Likewise.
59487         * modules/vsprintf-posix (Depends-on): Likewise.
59488         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59489         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59490         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59491         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59492         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59493         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59494         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59495
59496 2007-11-04  Bruno Haible  <bruno@clisp.org>
59497
59498         * modules/nocrash: New file.
59499         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59500         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59501
59502 2007-11-04  Bruno Haible  <bruno@clisp.org>
59503
59504         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59505         precision handling.
59506         * tests/test-vasprintf-posix.c (test_function): Likewise.
59507         * tests/test-snprintf-posix.h (test_function): Likewise.
59508         * tests/test-sprintf-posix.h (test_function): Likewise.
59509
59510         Fix *printf behaviour for large precisions on mingw and BeOS.
59511         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59512         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59514         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59515         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59516         gl_PRINTF_PRECISION and test its result. Invoke
59517         gl_PREREQ_VASNPRINTF_PRECISION.
59518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59525         * doc/functions/fprintf.texi: Update.
59526         * doc/functions/printf.texi: Update.
59527         * doc/functions/snprintf.texi: Update.
59528         * doc/functions/sprintf.texi: Update.
59529         * doc/functions/vfprintf.texi: Update.
59530         * doc/functions/vprintf.texi: Update.
59531         * doc/functions/vsnprintf.texi: Update.
59532         * doc/functions/vsprintf.texi: Update.
59533
59534 2007-11-04  Bruno Haible  <bruno@clisp.org>
59535
59536         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59537
59538 2007-11-04  Bruno Haible  <bruno@clisp.org>
59539
59540         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59541         Reported by Sylvain Beucler <beuc@gnu.org>.
59542
59543 2007-11-03  Bruno Haible  <bruno@clisp.org>
59544
59545         * tests/test-fprintf-posix2.sh: New file.
59546         * tests/test-fprintf-posix2.c: New file.
59547         * modules/fprintf-posix-tests (Files): Add them.
59548         (TESTS): Add test-fprintf-posix2.sh.
59549         (configure.ac): Check for getrlimit and setrlimit.
59550         (check_PROGRAMS): Add test-fprintf-posix2.
59551
59552         * tests/test-printf-posix2.sh: New file.
59553         * tests/test-printf-posix2.c: New file.
59554         * modules/printf-posix-tests (Files): Add them.
59555         (TESTS): Add test-printf-posix2.sh.
59556         (configure.ac): Check for getrlimit and setrlimit.
59557         (check_PROGRAMS): Add test-printf-posix2.
59558
59559         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59560         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59561         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59562         (decode_double): New function, copied from decode_long_double.
59563         (scale10_round_decimal_decoded): New function, extracted from
59564         scale10_round_decimal_long_double.
59565         (scale10_round_decimal_long_double): Use it.
59566         (scale10_round_decimal_double): New function.
59567         (floorlog10): New function.
59568         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59570         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59572         gl_PRINTF_ENOMEM and test its result. Invoke
59573         gl_PREREQ_VASNPRINTF_ENOMEM.
59574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59578         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59579         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59580         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59581         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59582         * modules/snprintf-posix (Depends-on): Likewise.
59583         * modules/sprintf-posix (Depends-on): Likewise.
59584         * modules/vasnprintf-posix (Depends-on): Likewise.
59585         * modules/vasprintf-posix (Depends-on): Likewise.
59586         * modules/vfprintf-posix (Depends-on): Likewise.
59587         * modules/vsnprintf-posix (Depends-on): Likewise.
59588         * modules/vsprintf-posix (Depends-on): Likewise.
59589         * doc/functions/fprintf.texi: Update.
59590         * doc/functions/printf.texi: Update.
59591         * doc/functions/snprintf.texi: Update.
59592         * doc/functions/sprintf.texi: Update.
59593         * doc/functions/vfprintf.texi: Update.
59594         * doc/functions/vprintf.texi: Update.
59595         * doc/functions/vsnprintf.texi: Update.
59596         * doc/functions/vsprintf.texi: Update.
59597
59598 2007-11-03  Bruno Haible  <bruno@clisp.org>
59599
59600         * modules/frexp-nolibm-tests: New file.
59601
59602         * modules/frexp-nolibm: New file.
59603         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59604
59605 2007-11-03  Bruno Haible  <bruno@clisp.org>
59606
59607         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59608         value is C99 compliant.
59609         Needed for OSF/1 5.1.
59610
59611 2007-11-03  Bruno Haible  <bruno@clisp.org>
59612
59613         Fix out-of-memory handling of vasnprintf.
59614         * lib/printf-parse.c: Include <errno.h>.
59615         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59616         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59617         is already set.
59618
59619 2007-11-02  Eric Blake  <ebb9@byu.net>
59620
59621         Fix tests on cygwin.
59622         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59623
59624 2007-11-01  Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59627         warning.
59628         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59629         needed for POSIX compatibility.
59630
59631 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59632
59633         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59634         for compatibility with GNU.
59635
59636 2007-11-01  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59639         (putenv): Renamed from rpl_putenv. Change argument type from
59640         'const char *' to 'char *'.
59641         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59642         of defining putenv in config.h, just set REPLACE_PUTENV.
59643         * modules/putenv (Depends-on): Add stdlib.
59644         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59645         (Include): Use <stdlib.h>.
59646         * lib/stdlib.in.h (putenv): New declaration.
59647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59648         REPLACE_PUTENV.
59649         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59650         REPLACE_PUTENV.
59651         Needed for MacOS X 10.5.0.
59652         Reported by Peter O'Gorman <peter@pogma.com>.
59653
59654 2007-11-01  Jim Meyering  <meyering@redhat.com>
59655
59656         Treat an empty date string exactly like "0".
59657         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59658         if the remaining date string (to be parsed) is empty, use "0".
59659         Reported by Mischa Molhoek and discussed in this thread:
59660         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59661
59662 2007-10-31  Bruno Haible  <bruno@clisp.org>
59663
59664         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59665         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59666         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59667         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59668         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59669         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59670
59671 2007-10-31  Bruno Haible  <bruno@clisp.org>
59672
59673         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59674         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59675         (AC_TYPE_LONG_LONG_INT): Use it.
59676         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59677         it as well.
59678         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59679         to m4/longlong.m4.
59680         * modules/stdint (Files): Remove m4/ulonglong.m4.
59681         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59682         m4/ulonglong.m4.
59683         * modules/strtoumax (Files): Likewise.
59684
59685 2007-10-30  Bruno Haible  <bruno@clisp.org>
59686
59687         * modules/xvasprintf-posix: New file.
59688         Suggested by Eric Blake.
59689
59690 2007-10-30  Bruno Haible  <bruno@clisp.org>
59691
59692         * modules/xprintf-posix-tests: New file.
59693         * tests/test-xprintf-posix.sh: New file.
59694         * tests/test-xprintf-posix.c: New file.
59695         * tests/test-xfprintf-posix.c: New file.
59696
59697         * modules/xprintf-posix: New file.
59698
59699 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59700
59701         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59702         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59703         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59704
59705 2007-10-29  Bruno Haible  <bruno@clisp.org>
59706
59707         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59708         contain the special marker '_cv_'.
59709         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59710         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59711         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59712         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59713         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59714         Reported by Ralf Wildenhues.
59715
59716 2007-10-29  Bruno Haible  <bruno@clisp.org>
59717
59718         * gnulib-tool (func_import): When --lgpl is not specified, set
59719         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59720         GPLv3.
59721         Reported by Simon Josefsson.
59722
59723 2007-10-28  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59726         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59727         HAVE_DECL_ISFINITE.
59728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59729         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59730         HAVE_DECL_ISFINITE.
59731
59732 2007-10-28  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59735         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59736
59737 2007-10-28  Bruno Haible  <bruno@clisp.org>
59738
59739         Fix link errors with Sun C 5.0 on Solaris 10.
59740         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59741         function is declared but not present in the compiler's libm.
59742         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59743         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59744         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59745         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59746         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59747         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59748         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59750         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59751         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59752         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59753         HAVE_DECL_FLOORL.
59754
59755 2007-10-28  Bruno Haible  <bruno@clisp.org>
59756
59757         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59758         gl_FUNC_FLOORL. Cache the result.
59759         (gl_FUNC_FLOORL): Use it.
59760         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59761         gl_FUNC_CEILL. Cache the result.
59762         (gl_FUNC_CEILL): Use it.
59763
59764         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59765         gl_FUNC_FLOOR. Cache the result.
59766         (gl_FUNC_FLOOR): Use it.
59767         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59768         gl_FUNC_CEIL. Cache the result.
59769         (gl_FUNC_CEIL): Use it.
59770
59771         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59772         gl_FUNC_FLOORF. Cache the result.
59773         (gl_FUNC_FLOORF): Use it.
59774         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59775         gl_FUNC_CEILF. Cache the result.
59776         (gl_FUNC_CEILF): Use it.
59777
59778 2007-10-28  Bruno Haible  <bruno@clisp.org>
59779
59780         * gnulib-tool: Allow specifying the LGPL version number through
59781         --lgpl=2 or --lgpl=3.
59782         (func_usage): Document --lgpl with argument.
59783         Handle --lgpl=... arguments.
59784         (func_import): Recognize also gl_LGPL calls with an argument. When
59785         --lgpl=2 is used and the module's license is just LGPL, report an
59786         error. Set sed_transform_lib_file according to the lgpl variable. In
59787         the generated files, use --lgpl or gl_LGPL invocations with argument,
59788         if necessary.
59789         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59790         an LGPv2+ license.
59791         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59792         gl_LGPL macro.
59793
59794 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59795             Bruno Haible  <bruno@clisp.org>
59796
59797         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59798         (u16_uctomb_aux): Likewise.
59799         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59800         !HAVE_INLINE.
59801         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59802
59803 2007-10-28  Bruno Haible  <bruno@clisp.org>
59804
59805         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59806         Invoke AM_GETTEXT_OPTION if it exists.
59807         * modules/vasprintf: Likewise.
59808         * modules/verror: Likewise.
59809         * modules/xprintf: Likewise.
59810         * modules/xvasprintf: Likewise.
59811
59812 2007-10-27  Ben Pfaff  <blp@gnu.org>
59813
59814         * lib/math.in.h: Define isfinite macro and prototypes for
59815         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59816         implementations.
59817         * m4/math_h.m4: New substitutions for isfinite module.
59818         * lib/isfinite.c: New file.
59819         * m4/isfinite.m4: New file.
59820         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59821         * modules/isfinite: New file.
59822         * modules/isfinite-tests: New file.
59823         * tests/tests-isfinite.c: New file.
59824         * doc/functions/isfinite.texi: Mention isfinite module.
59825         * MODULES.html.sh: Mention new module.
59826
59827 2007-10-27  Ben Pfaff  <blp@gnu.org>
59828
59829         Ralf Wildenhues reported that Tru64 4.0D declares the round
59830         functions but does not have definitions.
59831         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59832         cannot be found in any library, set the output variable to
59833         "missing" instead of "".
59834         * m4/round.m4: Also use our substitute if we cannot find round in
59835         any library, even if it is declared.
59836         * m4/roundf.m4: Likewise for roundf.
59837         * m4/roundl.m4: Likewise for roundl.
59838         * lib/math.in.h: Undefine roundf, round, roundl before defining
59839         their replacements, to allow for hypothetical systems where these
59840         may be defined as macros but not available in libraries.
59841
59842 2007-10-27  Bruno Haible  <bruno@clisp.org>
59843
59844         * doc/gnulib.texi: Invoke @firstparagraphindent.
59845         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59846         changes in gnulib.
59847         (Source changes): New section.
59848
59849 2007-10-26  Bruno Haible  <bruno@clisp.org>
59850
59851         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59852         borrowed from autoconf.
59853
59854 2007-10-26  Bruno Haible  <bruno@clisp.org>
59855
59856         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59857         strerror returned the empty string. Needed on HP-UX 11.00.
59858
59859 2007-10-24  Micah Cowan  <micah@cowan.name>
59860
59861         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59862         * build-aux/bootstrap: Remove support for now-unnecessary option,
59863         --cvs-user, and envvars CVS_USER, CVS_RSH.
59864
59865 2007-10-24  Jim Meyering  <meyering@redhat.com>
59866
59867         Avoid diagnostics from sha1sum when there is no cached checksum.
59868         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59869         if the po.s1 file hasn't been created yet.
59870
59871         * build-aux/bootstrap: Sync from coreutils:
59872         2007-10-24  Jim Meyering  <meyering@redhat.com>
59873         Get gnulib from the git repository, not from an obsolete cvs one.
59874         * build-aux/bootstrap: Suggestion from Micah Cowan.
59875         2007-10-04  Jim Meyering  <jim@meyering.net>
59876         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59877         (update_po_files): Work also when there are no .po files in po/.
59878
59879 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59880
59881         * README: Append ".git" to git and cg examples.
59882         Problem reported by Benoit Sigoure.
59883
59884 2007-10-23  Micah Cowan  <micah@cowan.name>
59885
59886         * users.txt: Add wget.
59887
59888 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59889
59890         Fix linking of some unistdio tests on FreeBSD.
59891         * modules/unistdio/u16-vsnprintf-tests
59892         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59893         * modules/unistdio/u16-vsprintf-tests
59894         (test_u16_vsnprintf1_LDADD): Likewise.
59895         * modules/unistdio/u32-vsnprintf-tests
59896         (test_u32_vsnprintf1_LDADD): Likewise.
59897         * modules/unistdio/u32-vsprintf-tests
59898         (test_u32_vsprintf1_LDADD): Likewise.
59899         * modules/unistdio/u8-vsnprintf-tests
59900         (test_u8_vsnprintf1_LDADD): Likewise.
59901         * modules/unistdio/u8-vsprintf-tests
59902         (test_u8_vsprintf1_LDADD): Likewise.
59903         * modules/unistdio/ulc-vsnprintf-tests
59904         (test_ulc_vsnprintf1_LDADD): Likewise.
59905         * modules/unistdio/ulc-vsprintf-tests
59906         (test_ulc_vsprintf1_LDADD): Likewise.
59907
59908         Fix linking of some uniconv tests on FreeBSD.
59909         * modules/uniconv/u16-conv-from-enc-tests
59910         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59911         * modules/uniconv/u16-conv-to-enc-tests
59912         (test_u16_conv_to_enc_LDADD): Likewise.
59913         * modules/uniconv/u16-strconv-from-enc-tests
59914         (test_u16_strconv_from_enc_LDADD): Likewise.
59915         * modules/uniconv/u16-strconv-to-enc-tests
59916         (test_u16_strconv_to_enc_LDADD): Likewise.
59917         * modules/uniconv/u32-conv-from-enc-tests
59918         (test_u32_conv_from_enc_LDADD): Likewise.
59919         * modules/uniconv/u32-conv-to-enc-tests
59920         (test_u32_conv_to_enc_LDADD): Likewise.
59921         * modules/uniconv/u32-strconv-from-enc-tests
59922         (test_u32_strconv_from_enc_LDADD): Likewise.
59923         * modules/uniconv/u32-strconv-to-enc-tests
59924         (test_u32_strconv_to_enc_LDADD): Likewise.
59925         * modules/uniconv/u8-conv-from-enc-tests
59926         (test_u8_conv_from_enc_LDADD): Likewise.
59927         * modules/uniconv/u8-conv-to-enc-tests
59928         (test_u8_conv_to_enc_LDADD): Likewise.
59929         * modules/uniconv/u8-strconv-from-enc-tests
59930         (test_u8_strconv_from_enc_LDADD): Likewise.
59931         * modules/uniconv/u8-strconv-to-enc-tests
59932         (test_u8_strconv_to_enc_LDADD): Likewise.
59933
59934 2007-10-22  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59937         size.
59938
59939 2007-10-22  Eric Blake  <ebb9@byu.net>
59940
59941         Tweak x*printf documentation.
59942         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59943         variable name and comments.
59944         Suggested by Bruno Haible.
59945
59946 2007-10-22  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/acl.c (copy_acl): Fix file name in comment.
59949
59950 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         Fix Tru64 problem with stdbool.h.
59953         * lib/stdbool.in.h (false, true):
59954         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59955         Don't declare as an enum in this situation; it runs afoul of Tru64.
59956         Problem reported by Steven M. Schweda in
59957         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59958
59959 2007-10-22  Eric Blake  <ebb9@byu.net>
59960
59961         Also wrap vf?printf.
59962         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59963         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59964         (xvprintf, xvfprintf): New functions.
59965
59966 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59967
59968         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59969         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59970
59971         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59972         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59973
59974 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59975
59976         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59977         by Bruno Haible.
59978
59979 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59980
59981         * lib/getloadavg.c
59982         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59983         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59984
59985         * tests/test-i-ring.c: Work for C89.
59986
59987 2007-10-22  Bruno Haible  <bruno@clisp.org>
59988
59989         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59990         -1u, in preprocessor expression, so that we don't test for the bug
59991         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59992         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59993
59994 2007-10-22  Eric Blake  <ebb9@byu.net>
59995
59996         * tests/test-yesno.sh: Silence stderr during test.
59997
59998 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59999
60000         * modules/crypto/gc-camellia: New file.
60001
60002         * m4/gc-camellia.m4: New file.
60003
60004         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60005
60006         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60007
60008 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60009
60010         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60011         --help to stdout.  Reported by sms@antinode.org (Steven
60012         M. Schweda).
60013
60014 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60015
60016         * users.txt: Fix link to libksba.
60017
60018 2007-10-21  Ben Pfaff  <blp@gnu.org>
60019
60020         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60021         round.c roundf implementation that depends on floorf and ceilf to
60022         be tested unconditionally.
60023
60024 2007-10-21  Ben Pfaff  <blp@gnu.org>
60025
60026         * m4/check-libm-func.m4: Removed.
60027         * m4/check-math-lib.m4: New file.
60028         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60029         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60030         definition and lack of AC_LIBOBJ([roundf]).
60031         * m4/roundl.m4: Ditto, and similarly for roundl.
60032         * modules/round: Reference new m4 file.
60033         * modules/roundf: Ditto.
60034         * modules/roundl: Ditto.
60035         * tests/test-round2.c (main): Use ROUND instead of round.
60036         Bug report from Bruno Haible.
60037
60038 2007-10-21  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60041         context.
60042
60043 2007-10-21  Bruno Haible  <bruno@clisp.org>
60044
60045         * tests/test-wcwidth.c (main): Allow negative result for some control
60046         characters.
60047
60048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60049         Needed on OSF/1 5.1.
60050
60051 2007-10-21  Bruno Haible  <bruno@clisp.org>
60052
60053         * tests/test-floorf1.c: Include isnanf.h.
60054         (main): Use isnanf() instead of isnan().
60055         * tests/test-ceilf1.c: Include isnanf.h.
60056         (main): Use isnanf() instead of isnan().
60057         * tests/test-truncf1.c: Include isnanf.h.
60058         (main): Use isnanf() instead of isnan().
60059         * tests/test-roundf1.c: Include isnanf.h.
60060         (main): Use isnanf() instead of isnan().
60061
60062 2007-10-21  Eric Blake  <ebb9@byu.net>
60063
60064         * users.txt: Update URL for m4.
60065
60066 2007-10-21  Bruno Haible  <bruno@clisp.org>
60067
60068         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60069
60070 2007-10-21  Bruno Haible  <bruno@clisp.org>
60071
60072         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60073         Git's management files if the CVS files are not present.
60074
60075 2007-10-20  Bruno Haible  <bruno@clisp.org>
60076
60077         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60078         gcc-3.4.x.
60079
60080 2007-10-20  Ben Pfaff  <blp@gnu.org>
60081
60082         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60083         implementations.
60084         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60085         * lib/round.c: New file.
60086         * lib/roundf.c: New file.
60087         * lib/roundl.c: New file.
60088         * m4/round.m4: New file.
60089         * m4/roundf.m4: New file.
60090         * m4/roundl.m4: New file.
60091         * m4/check-libm-func-m4: New file.
60092         * modules/math: Replace round, roundf, roundl related @VARS@ in
60093         math.in.h.
60094         * modules/round: New file.
60095         * modules/round-tests: New file.
60096         * modules/roundf: New file.
60097         * modules/roundf-tests: New file.
60098         * modules/roundl: New file.
60099         * modules/roundl-tests: New file.
60100         * tests/test-round1.c: New file.
60101         * tests/test-round2.c: New file.
60102         * tests/test-roundf1.c: New file.
60103         * tests/test-roundf2.c: New file.
60104         * tests/test-roundl.c: New file.
60105         * doc/functions/round.texi: Mention round module.
60106         * doc/functions/roundf.texi: Mention roundf module.
60107         * doc/functions/roundl.texi: Mention roundl module.
60108         * MODULES.html.sh: Mention new modules.
60109         Thanks to Bruno Haible for suggestions.
60110
60111 2007-10-20  Jim Meyering  <meyering@redhat.com>
60112
60113         * lib/xprintf.c: Include <config.h> unconditionally.
60114
60115         Change xprintf's license to GPL.
60116         * modules/xprintf (License): s/LGPL/GPL/, since this module
60117         depends on modules (exit and exitfail) which are GPL.
60118         Suggestion from Bruno Haible.
60119
60120         xprintf fixes.
60121         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60122         Use a clearer diagnostic.
60123         Patch from Bruno Haible.
60124
60125 2007-10-20  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60128         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60130
60131 2007-10-20  Bruno Haible  <bruno@clisp.org>
60132
60133         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60134         precision in the comparison result > x - 1 or similar.
60135         * tests/test-ceilf2.c (correct_result_p): Likewise.
60136         * tests/test-truncf2.c (correct_result_p): Likewise.
60137         * tests/test-trunc2.c (correct_result_p): Likewise.
60138         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60139
60140 2007-10-20  Bruno Haible  <bruno@clisp.org>
60141
60142         * modules/ceil: New file.
60143         * m4/ceil.m4: New file.
60144         * doc/functions/ceil.texi: Mention the 'ceil' module.
60145
60146 2007-10-20  Bruno Haible  <bruno@clisp.org>
60147
60148         * modules/floor: New file.
60149         * m4/floor.m4: New file.
60150         * doc/functions/floor.texi: Mention the 'floor' module.
60151
60152 2007-10-20  Bruno Haible  <bruno@clisp.org>
60153
60154         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60155         of %a.
60156         * modules/floorf-tests (Depends-on): Likewise.
60157         * modules/truncf-tests (Depends-on): Likewise.
60158         * modules/trunc-tests (Depends-on): Likewise.
60159         Reported by Ben Pfaff.
60160
60161 2007-10-19  Jim Meyering  <meyering@redhat.com>
60162
60163         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60164         Don't bother testing specific errno values.  Just test ferror.
60165
60166         New module: xprintf
60167         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60168
60169 2007-10-19  Bruno Haible  <bruno@clisp.org>
60170
60171         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60172         syntax.
60173         * modules/javaexec (Makefile.am): Likewise.
60174         * modules/relocatable-prog (Makefile.am): Likewise.
60175         Suggested by Jim Meyering.
60176
60177 2007-10-18  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60180         Reported by Jim Meyering.
60181
60182 2007-10-18  Eric Blake  <ebb9@byu.net>
60183
60184         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60185
60186 2007-10-18  Bruno Haible  <bruno@clisp.org>
60187
60188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60189         the format string into writable memory. Needed in Fortify conditions.
60190
60191 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60192             Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60195         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60196         * modules/trim (Depends-on): Add mbchar.
60197         (configure.ac): Add gl_FUNC_MBRTOWC.
60198         (Makefile.am): Augment lib_SOURCES.
60199
60200 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60201
60202         Modify glob.c to use fstatat and dirfd, to simplify it.
60203         Suggested by Eric Blake.
60204         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60205         Don't include <stdbool.h>; not used.
60206         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60207         (link_exists_p): Simplify implementation, since we can now assume
60208         dirfd and fstatat.
60209         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60210
60211 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60212
60213         * gnulib-tool (func_get_dependencies): Fix sed script to
60214         match only tests.
60215
60216 2007-10-17  Bruno Haible  <bruno@clisp.org>
60217
60218         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60219         allow locale names without encoding suffix.
60220         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60221         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60222
60223 2007-10-16  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60226         * lib/getgroups.c (getgroups): Likewise.
60227         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60228
60229 2007-10-16  Bruno Haible  <bruno@clisp.org>
60230
60231         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60232         * modules/malloc-posix (License): Likewise.
60233         * modules/realloc-posix (License): Likewise.
60234         * modules/calloc-posix (License): Likewise.
60235         * modules/intprops (License): Change from GPL to LGPL, with
60236         Paul Eggert's approval.
60237
60238 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         Merge glibc changes into lib/glob.c.
60241
60242         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60243         2007-10-15 04:59:03 UTC.  Here are the changes:
60244
60245         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60246
60247         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60248
60249         * lib/glob.c: Add some branch prediction throughout.
60250
60251         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60252
60253         [BZ #5103]
60254         * lib/glob.c (glob): Recognize patterns starting \/.
60255
60256         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60257
60258         [BZ #3996]
60259         * lib/glob.c (attribute_hidden): Define if not defined.
60260         (glob): Unescape dirname, filename or username when needed and not
60261         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60262         is NULL.  Handle unescaped [ in pattern without closing ].
60263         Don't pass GLOB_CHECK down to recursive glob for directories.
60264         (__glob_pattern_type): New function.
60265         (__glob_pattern_p): Implement using __glob_pattern_type.
60266         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60267         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60268         Remove unreachable code.
60269
60270         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60271
60272         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60273         explain why there are no leaks.
60274
60275         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60276
60277         [BZ #3253]
60278         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60279         time, rather allocate increasingly bigger arrays of pointers, if
60280         possible with alloca, if too large with malloc.
60281
60282 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60283
60284         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60285         Problem reported by H.Merijn Brand in
60286         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60287         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60288         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60289
60290 2007-10-15  Bruno Haible  <bruno@clisp.org>
60291
60292         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60293         with explicit rpl_ prefix.
60294         * lib/fopen.c (fopen): Likewise.
60295         * lib/freopen.c (freopen): Likewise.
60296         * lib/iconv.c (iconv): Likewise.
60297         * lib/iconv_close.c (iconv_close): Likewise.
60298
60299 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60300
60301         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60302
60303 2007-10-15  Bruno Haible  <bruno@clisp.org>
60304
60305         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60306         <stddef.h> instead of <stdlib.h> since we only need NULL.
60307         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60308
60309 2007-10-15  Bruno Haible  <bruno@clisp.org>
60310
60311         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60312         Replace paragraph talking about LIBOBJS.
60313         Reported by Colin Watson <cjwatson@debian.org>.
60314
60315 2007-10-15  Bruno Haible  <bruno@clisp.org>
60316
60317         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60318         <stdlib.h> before using NULL.
60319
60320 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60321
60322         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60323         Reported by Albert Chin <china@thewrittenword.com>.
60324
60325 2007-10-14  Bruno Haible  <bruno@clisp.org>
60326
60327         * modules/iconv_open-utf-tests: New file.
60328         * tests/test-iconv-utf.c: New file.
60329
60330         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60331         * modules/iconv_open-utf: New file.
60332         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60333         (iconv, iconv_close): New declarations.
60334         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60335         be defined.
60336         (iconv_open): Add special handling of conversion between UTF-8 and
60337         UTF-{16,32}{BE,LE}.
60338         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60339         * lib/iconv_close.c: New file.
60340         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60341         gl_FUNC_ICONV_OPEN.
60342         (gl_FUNC_ICONV_OPEN): Use it.
60343         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60344         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60345         and REPLACE_ICONV_UTF.
60346         * modules/iconv_open (Depends-on): Add c-strcase.
60347         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60348         ICONV_CONST.
60349         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60350
60351 2007-10-13  Albert Chin  <china@thewrittenword.com>
60352             Bruno Haible  <bruno@clisp.org>
60353
60354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60355         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60356
60357 2007-10-13  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60360         defined, use the ISO C99 inline semantics.
60361         * lib/argp.h (ARGP_EI): Likewise.
60362
60363 2007-10-13  Bruno Haible  <bruno@clisp.org>
60364
60365         Handle 'inline' change in gcc 4.3.0.
60366         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60367         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60368         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60369         argp_fmtstream_point): Disable 'extern' declaration if the function
60370         definition is going to be provided inline.
60371         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60372         semantics, not the ISO C99 inline semantics.
60373         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60374         'extern' declaration if the function definition is going to be provided
60375         inline.
60376         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60377         the GNU C inline semantics, not the ISO C99 inline semantics. With
60378         GCC 4.2, avoid a warning.
60379
60380 2007-10-13  Bruno Haible  <bruno@clisp.org>
60381
60382         * lib/freading.h (freading): Enable the use of __freading for
60383         glibc >= 2.7.
60384         * lib/freading.c (freading): Likewise.
60385
60386 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60387
60388         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60389         "warning: C99 inline functions are not supported; using GNU89".
60390
60391 2007-10-12  Bruno Haible  <bruno@clisp.org>
60392
60393         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60394         of 2.
60395         * tests/test-ceilf2.c: New file.
60396         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60397
60398         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60399         * modules/ceilf-tests: Update.
60400
60401 2007-10-12  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60404         of 2.
60405         * tests/test-floorf2.c: New file.
60406         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60407
60408         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60409         * modules/floorf-tests: Update.
60410
60411 2007-10-12  Bruno Haible  <bruno@clisp.org>
60412
60413         * tests/test-trunc2.c: New file.
60414         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60415
60416         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60417         * modules/trunc-tests: Update.
60418
60419 2007-10-12  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60422         of 2.
60423         * tests/test-truncf2.c: New file.
60424         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60425
60426         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60427         * modules/truncf-tests: Update.
60428
60429 2007-10-11  Eric Blake  <ebb9@byu.net>
60430
60431         Don't claim strerror is broken on Interix.
60432         * doc/functions/strerror.texi (strerror): Known broken systems are
60433         now Solaris 8, and not Interix.
60434         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60435         Interix on cross-compile.
60436         Reported by Martin Koeppe in
60437         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60438
60439 2007-10-11  Bruno Haible  <bruno@clisp.org>
60440
60441         * modules/i-ring-tests: New file.
60442         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60443         instead of assert.
60444
60445 2007-10-11  Bruno Haible  <bruno@clisp.org>
60446
60447         * modules/filenamecat-tests: New file.
60448         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60449         * lib/filenamecat.c: Remove test code.
60450
60451 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60452
60453         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60454
60455         * lib/strerror.c: Include <string.h> always, to test interface,
60456         and to remove the need for the dummy.
60457         Include intprops.h to compute width instead of doing it ourselves
60458         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60459         (strerror): Define it to return NULL if there's no system strerror.
60460         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60461         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60462         ancient pre-strerror Unix systems well any more.  Saying "unknown
60463         system error" is enough.
60464         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60465         simpler strerror.c implementation.
60466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60467         Simplify the tests to reflect the simpler strerror implementation.
60468         * modules/strerror (Depends-on): Add intprops.
60469
60470 2007-10-09  Eric Blake  <ebb9@byu.net>
60471
60472         Silence test-fpending.
60473         * modules/fpending-tests (Files): Add wrapper script.
60474         * tests/test-fpending.sh: New file.
60475
60476 2007-10-09  Bruno Haible  <bruno@clisp.org>
60477
60478         * MODULES.html.sh (func_module): Don't create a hyperlink for
60479         function names like 'printf_frexp'.
60480         (Misc): Add crc, memxor.
60481         (Characteristics of floating types): New section.
60482         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60483         isnanf-nolibm, signbit, trunc, truncf, truncl.
60484         (Enhancements for ISO C 99 functions): New subsection Input/output.
60485         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60486         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60487         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60488         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60489         (Enhancements for POSIX:2001 functions): Add chdir-long.
60490         (File system functions): Add areadlink, chdir-safer, read-file.
60491         Remove cycle-check.
60492         (File system as inode set): New section.
60493         (Date and time): Add gethrxtime.
60494         (Multithreading): Add openmp.
60495         (Internationalization functions): Add localename.
60496         (Unicode string functions): Add unistr/u*-mbsnlen.
60497         (Support for maintaining and releasing projects): Add git-version-gen.
60498         (Lone files): Remove directories.
60499
60500 2007-10-08  Ben Pfaff  <blp@gnu.org>
60501
60502         * lib/xmalloca.h: Fix typo in comment.
60503
60504 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60505
60506         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60507         when avoiding problems with integer overflow.  Use a portable test
60508         instead.
60509
60510 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60511
60512         * modules/dummy (License): Change to LGPLv2+.
60513         * modules/float (License): Likewise
60514         * modules/realloc (License): Likewise
60515         * modules/stdlib (License): Likewise
60516
60517 2007-10-07  Bruno Haible  <bruno@clisp.org>
60518
60519         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60520         * floor.c (TWO_MANT_DIG): Likewise.
60521         * ceil.c (TWO_MANT_DIG): Likewise.
60522         Reported by Ben Pfaff.
60523
60524 2007-10-07  Bruno Haible  <bruno@clisp.org>
60525
60526         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60527         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60528         * lib/frexp.c (FUNC): Likewise.
60529         * lib/printf-frexp.h (printf_frexp): Likewise.
60530         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60531         * lib/printf-frexp.c (FUNC): Likewise.
60532         Suggested by Jim Meyering.
60533
60534 2007-10-07  Jim Meyering  <meyering@redhat.com>
60535
60536         Make xnanosleep's integer overflow test more robust.
60537         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60538         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60539
60540 2007-10-07  Bruno Haible  <bruno@clisp.org>
60541
60542         * NEWS: Mention the license change.
60543
60544         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60545         abbreviations in the modules files.
60546
60547         Change copyright notice from GPLv2+ to GPLv3+.
60548         * README: Change copyright notice.
60549         * MODULES.html.sh: Likewise.
60550         * build-aux/bootstrap.conf: Likewise.
60551         * build-aux/config.libpath: Likewise.
60552         * build-aux/csharpcomp.sh.in: Likewise.
60553         * build-aux/csharpexec.sh.in: Likewise.
60554         * build-aux/install-reloc: Likewise.
60555         * build-aux/javacomp.sh.in: Likewise.
60556         * build-aux/javaexec.sh.in: Likewise.
60557         * build-aux/ldd.sh.in: Likewise.
60558         * build-aux/reloc-ldflags: Likewise.
60559         * build-aux/relocatable.sh.in: Likewise.
60560         * build-aux/x-to-1.in: Likewise.
60561         * check-module: Likewise.
60562         * config/srclistvars.sh: Likewise.
60563         * gnulib-tool: Likewise.
60564         * lib/acl-internal.h: Likewise.
60565         * lib/acl.c: Likewise.
60566         * lib/acl.h: Likewise.
60567         * lib/acl_entries.c: Likewise.
60568         * lib/areadlink-with-size.c: Likewise.
60569         * lib/areadlink.c: Likewise.
60570         * lib/areadlink.h: Likewise.
60571         * lib/argmatch.c: Likewise.
60572         * lib/argmatch.h: Likewise.
60573         * lib/argp-ba.c: Likewise.
60574         * lib/argp-eexst.c: Likewise.
60575         * lib/argp-fmtstream.c: Likewise.
60576         * lib/argp-fmtstream.h: Likewise.
60577         * lib/argp-fs-xinl.c: Likewise.
60578         * lib/argp-help.c: Likewise.
60579         * lib/argp-namefrob.h: Likewise.
60580         * lib/argp-parse.c: Likewise.
60581         * lib/argp-pin.c: Likewise.
60582         * lib/argp-pv.c: Likewise.
60583         * lib/argp-pvh.c: Likewise.
60584         * lib/argp-xinl.c: Likewise.
60585         * lib/argp.h: Likewise.
60586         * lib/at-func.c: Likewise.
60587         * lib/atanl.c: Likewise.
60588         * lib/backupfile.c: Likewise.
60589         * lib/backupfile.h: Likewise.
60590         * lib/basename.c: Likewise.
60591         * lib/binary-io.h: Likewise.
60592         * lib/byteswap.in.h: Likewise.
60593         * lib/c-stack.c: Likewise.
60594         * lib/c-stack.h: Likewise.
60595         * lib/c-strcasestr.c: Likewise.
60596         * lib/c-strcasestr.h: Likewise.
60597         * lib/c-strstr.c: Likewise.
60598         * lib/c-strstr.h: Likewise.
60599         * lib/c-strtod.c: Likewise.
60600         * lib/calloc.c: Likewise.
60601         * lib/canon-host.c: Likewise.
60602         * lib/canon-host.h: Likewise.
60603         * lib/canonicalize-lgpl.c: Likewise.
60604         * lib/canonicalize.c: Likewise.
60605         * lib/canonicalize.h: Likewise.
60606         * lib/ceil.c: Likewise.
60607         * lib/ceilf.c: Likewise.
60608         * lib/ceill.c: Likewise.
60609         * lib/chdir-long.c: Likewise.
60610         * lib/chdir-long.h: Likewise.
60611         * lib/chdir-safer.c: Likewise.
60612         * lib/chdir-safer.h: Likewise.
60613         * lib/chown.c: Likewise.
60614         * lib/classpath.c: Likewise.
60615         * lib/classpath.h: Likewise.
60616         * lib/clean-temp.c: Likewise.
60617         * lib/clean-temp.h: Likewise.
60618         * lib/cloexec.c: Likewise.
60619         * lib/close-stream.c: Likewise.
60620         * lib/closein.c: Likewise.
60621         * lib/closein.h: Likewise.
60622         * lib/closeout.c: Likewise.
60623         * lib/closeout.h: Likewise.
60624         * lib/concat-filename.c: Likewise.
60625         * lib/copy-file.c: Likewise.
60626         * lib/copy-file.h: Likewise.
60627         * lib/count-one-bits.h: Likewise.
60628         * lib/crc.c: Likewise.
60629         * lib/crc.h: Likewise.
60630         * lib/creat-safer.c: Likewise.
60631         * lib/csharpcomp.c: Likewise.
60632         * lib/csharpcomp.h: Likewise.
60633         * lib/csharpexec.c: Likewise.
60634         * lib/csharpexec.h: Likewise.
60635         * lib/cycle-check.c: Likewise.
60636         * lib/cycle-check.h: Likewise.
60637         * lib/diacrit.c: Likewise.
60638         * lib/diacrit.h: Likewise.
60639         * lib/diffseq.h: Likewise.
60640         * lib/dirchownmod.c: Likewise.
60641         * lib/dirent.in.h: Likewise.
60642         * lib/dirfd.c: Likewise.
60643         * lib/dirfd.h: Likewise.
60644         * lib/dirname.c: Likewise.
60645         * lib/dirname.h: Likewise.
60646         * lib/dummy.c: Likewise.
60647         * lib/dup-safer.c: Likewise.
60648         * lib/dup2.c: Likewise.
60649         * lib/eealloc.h: Likewise.
60650         * lib/error.c: Likewise.
60651         * lib/error.h: Likewise.
60652         * lib/euidaccess.c: Likewise.
60653         * lib/exclude.c: Likewise.
60654         * lib/exclude.h: Likewise.
60655         * lib/execute.c: Likewise.
60656         * lib/execute.h: Likewise.
60657         * lib/exitfail.c: Likewise.
60658         * lib/exitfail.h: Likewise.
60659         * lib/expl.c: Likewise.
60660         * lib/fatal-signal.c: Likewise.
60661         * lib/fatal-signal.h: Likewise.
60662         * lib/fbufmode.c: Likewise.
60663         * lib/fbufmode.h: Likewise.
60664         * lib/fchdir.c: Likewise.
60665         * lib/fchmodat.c: Likewise.
60666         * lib/fchownat.c: Likewise.
60667         * lib/fcntl--.h: Likewise.
60668         * lib/fcntl-safer.h: Likewise.
60669         * lib/fcntl.in.h: Likewise.
60670         * lib/fd-safer.c: Likewise.
60671         * lib/fflush.c: Likewise.
60672         * lib/file-has-acl.c: Likewise.
60673         * lib/file-set.c: Likewise.
60674         * lib/file-type.c: Likewise.
60675         * lib/file-type.h: Likewise.
60676         * lib/fileblocks.c: Likewise.
60677         * lib/filemode.c: Likewise.
60678         * lib/filemode.h: Likewise.
60679         * lib/filename.h: Likewise.
60680         * lib/filenamecat.c: Likewise.
60681         * lib/filenamecat.h: Likewise.
60682         * lib/findprog.c: Likewise.
60683         * lib/findprog.h: Likewise.
60684         * lib/float.in.h: Likewise.
60685         * lib/floor.c: Likewise.
60686         * lib/floorf.c: Likewise.
60687         * lib/floorl.c: Likewise.
60688         * lib/fopen-safer.c: Likewise.
60689         * lib/fopen.c: Likewise.
60690         * lib/fpending.c: Likewise.
60691         * lib/fpending.h: Likewise.
60692         * lib/fprintf.c: Likewise.
60693         * lib/fprintftime.h: Likewise.
60694         * lib/fpucw.h: Likewise.
60695         * lib/fpurge.c: Likewise.
60696         * lib/fpurge.h: Likewise.
60697         * lib/freadable.c: Likewise.
60698         * lib/freadable.h: Likewise.
60699         * lib/freadahead.c: Likewise.
60700         * lib/freadahead.h: Likewise.
60701         * lib/freading.c: Likewise.
60702         * lib/freading.h: Likewise.
60703         * lib/free.c: Likewise.
60704         * lib/freopen.c: Likewise.
60705         * lib/frexp.c: Likewise.
60706         * lib/frexpl.c: Likewise.
60707         * lib/fseek.c: Likewise.
60708         * lib/fseterr.c: Likewise.
60709         * lib/fseterr.h: Likewise.
60710         * lib/fstatat.c: Likewise.
60711         * lib/fstrcmp.c: Likewise.
60712         * lib/fstrcmp.h: Likewise.
60713         * lib/fsusage.c: Likewise.
60714         * lib/fsusage.h: Likewise.
60715         * lib/ftell.c: Likewise.
60716         * lib/ftello.c: Likewise.
60717         * lib/fts-cycle.c: Likewise.
60718         * lib/fts.c: Likewise.
60719         * lib/fts_.h: Likewise.
60720         * lib/full-read.c: Likewise.
60721         * lib/full-read.h: Likewise.
60722         * lib/full-write.c: Likewise.
60723         * lib/full-write.h: Likewise.
60724         * lib/fwritable.c: Likewise.
60725         * lib/fwritable.h: Likewise.
60726         * lib/fwriteerror.c: Likewise.
60727         * lib/fwriteerror.h: Likewise.
60728         * lib/fwriting.c: Likewise.
60729         * lib/fwriting.h: Likewise.
60730         * lib/gcd.c: Likewise.
60731         * lib/gcd.h: Likewise.
60732         * lib/getcwd.c: Likewise.
60733         * lib/getdate.h: Likewise.
60734         * lib/getdate.y: Likewise.
60735         * lib/getdomainname.c: Likewise.
60736         * lib/getdomainname.h: Likewise.
60737         * lib/getgroups.c: Likewise.
60738         * lib/gethostname.c: Likewise.
60739         * lib/gethrxtime.c: Likewise.
60740         * lib/gethrxtime.h: Likewise.
60741         * lib/getloadavg.c: Likewise.
60742         * lib/getndelim2.c: Likewise.
60743         * lib/getndelim2.h: Likewise.
60744         * lib/getnline.c: Likewise.
60745         * lib/getnline.h: Likewise.
60746         * lib/getopt.c: Likewise.
60747         * lib/getopt.in.h: Likewise.
60748         * lib/getopt1.c: Likewise.
60749         * lib/getopt_int.h: Likewise.
60750         * lib/getpagesize.h: Likewise.
60751         * lib/getsubopt.c: Likewise.
60752         * lib/gettime.c: Likewise.
60753         * lib/getugroups.c: Likewise.
60754         * lib/getugroups.h: Likewise.
60755         * lib/getusershell.c: Likewise.
60756         * lib/gl_anyavltree_list1.h: Likewise.
60757         * lib/gl_anyavltree_list2.h: Likewise.
60758         * lib/gl_anyhash_list1.h: Likewise.
60759         * lib/gl_anyhash_list2.h: Likewise.
60760         * lib/gl_anylinked_list1.h: Likewise.
60761         * lib/gl_anylinked_list2.h: Likewise.
60762         * lib/gl_anyrbtree_list1.h: Likewise.
60763         * lib/gl_anyrbtree_list2.h: Likewise.
60764         * lib/gl_anytree_list1.h: Likewise.
60765         * lib/gl_anytree_list2.h: Likewise.
60766         * lib/gl_anytree_oset.h: Likewise.
60767         * lib/gl_anytreehash_list1.h: Likewise.
60768         * lib/gl_anytreehash_list2.h: Likewise.
60769         * lib/gl_array_list.c: Likewise.
60770         * lib/gl_array_list.h: Likewise.
60771         * lib/gl_array_oset.c: Likewise.
60772         * lib/gl_array_oset.h: Likewise.
60773         * lib/gl_avltree_list.c: Likewise.
60774         * lib/gl_avltree_list.h: Likewise.
60775         * lib/gl_avltree_oset.c: Likewise.
60776         * lib/gl_avltree_oset.h: Likewise.
60777         * lib/gl_avltreehash_list.c: Likewise.
60778         * lib/gl_avltreehash_list.h: Likewise.
60779         * lib/gl_carray_list.c: Likewise.
60780         * lib/gl_carray_list.h: Likewise.
60781         * lib/gl_linked_list.c: Likewise.
60782         * lib/gl_linked_list.h: Likewise.
60783         * lib/gl_linkedhash_list.c: Likewise.
60784         * lib/gl_linkedhash_list.h: Likewise.
60785         * lib/gl_list.c: Likewise.
60786         * lib/gl_list.h: Likewise.
60787         * lib/gl_oset.c: Likewise.
60788         * lib/gl_oset.h: Likewise.
60789         * lib/gl_rbtree_list.c: Likewise.
60790         * lib/gl_rbtree_list.h: Likewise.
60791         * lib/gl_rbtree_oset.c: Likewise.
60792         * lib/gl_rbtree_oset.h: Likewise.
60793         * lib/gl_rbtreehash_list.c: Likewise.
60794         * lib/gl_rbtreehash_list.h: Likewise.
60795         * lib/gl_sublist.c: Likewise.
60796         * lib/gl_sublist.h: Likewise.
60797         * lib/group-member.c: Likewise.
60798         * lib/group-member.h: Likewise.
60799         * lib/hard-locale.c: Likewise.
60800         * lib/hard-locale.h: Likewise.
60801         * lib/hash-pjw.c: Likewise.
60802         * lib/hash-pjw.h: Likewise.
60803         * lib/hash-triple.c: Likewise.
60804         * lib/hash.c: Likewise.
60805         * lib/hash.h: Likewise.
60806         * lib/human.c: Likewise.
60807         * lib/human.h: Likewise.
60808         * lib/i-ring.c: Likewise.
60809         * lib/i-ring.h: Likewise.
60810         * lib/idcache.c: Likewise.
60811         * lib/imaxabs.c: Likewise.
60812         * lib/imaxdiv.c: Likewise.
60813         * lib/inet_pton.c: Likewise.
60814         * lib/inet_pton.h: Likewise.
60815         * lib/intprops.h: Likewise.
60816         * lib/inttostr.c: Likewise.
60817         * lib/inttostr.h: Likewise.
60818         * lib/inttypes.in.h: Likewise.
60819         * lib/isapipe.c: Likewise.
60820         * lib/isdir.c: Likewise.
60821         * lib/isnan.c: Likewise.
60822         * lib/isnan.h: Likewise.
60823         * lib/isnanf.c: Likewise.
60824         * lib/isnanf.h: Likewise.
60825         * lib/isnanl-nolibm.h: Likewise.
60826         * lib/isnanl.c: Likewise.
60827         * lib/isnanl.h: Likewise.
60828         * lib/javacomp.c: Likewise.
60829         * lib/javacomp.h: Likewise.
60830         * lib/javaexec.c: Likewise.
60831         * lib/javaexec.h: Likewise.
60832         * lib/javaversion.c: Likewise.
60833         * lib/javaversion.h: Likewise.
60834         * lib/javaversion.java: Likewise.
60835         * lib/lbrkprop.h: Likewise.
60836         * lib/lchmod.h: Likewise.
60837         * lib/lchown.c: Likewise.
60838         * lib/ldexpl.c: Likewise.
60839         * lib/linebreak.c: Likewise.
60840         * lib/linebreak.h: Likewise.
60841         * lib/linebuffer.c: Likewise.
60842         * lib/linebuffer.h: Likewise.
60843         * lib/locale.in.h: Likewise.
60844         * lib/logl.c: Likewise.
60845         * lib/long-options.c: Likewise.
60846         * lib/long-options.h: Likewise.
60847         * lib/lstat.c: Likewise.
60848         * lib/lstat.h: Likewise.
60849         * lib/math.in.h: Likewise.
60850         * lib/mbchar.c: Likewise.
60851         * lib/mbchar.h: Likewise.
60852         * lib/mbfile.h: Likewise.
60853         * lib/mbiter.h: Likewise.
60854         * lib/mbscasecmp.c: Likewise.
60855         * lib/mbscasestr.c: Likewise.
60856         * lib/mbschr.c: Likewise.
60857         * lib/mbscspn.c: Likewise.
60858         * lib/mbslen.c: Likewise.
60859         * lib/mbsncasecmp.c: Likewise.
60860         * lib/mbsnlen.c: Likewise.
60861         * lib/mbspbrk.c: Likewise.
60862         * lib/mbspcasecmp.c: Likewise.
60863         * lib/mbsrchr.c: Likewise.
60864         * lib/mbssep.c: Likewise.
60865         * lib/mbsspn.c: Likewise.
60866         * lib/mbsstr.c: Likewise.
60867         * lib/mbstok_r.c: Likewise.
60868         * lib/mbswidth.c: Likewise.
60869         * lib/mbswidth.h: Likewise.
60870         * lib/mbuiter.h: Likewise.
60871         * lib/memcasecmp.c: Likewise.
60872         * lib/memcasecmp.h: Likewise.
60873         * lib/memchr.c: Likewise.
60874         * lib/memcmp.c: Likewise.
60875         * lib/memcoll.c: Likewise.
60876         * lib/memcoll.h: Likewise.
60877         * lib/memcpy.c: Likewise.
60878         * lib/memrchr.c: Likewise.
60879         * lib/mkancesdirs.c: Likewise.
60880         * lib/mkdir-p.c: Likewise.
60881         * lib/mkdir-p.h: Likewise.
60882         * lib/mkdir.c: Likewise.
60883         * lib/mkdirat.c: Likewise.
60884         * lib/mkdtemp.c: Likewise.
60885         * lib/mkstemp-safer.c: Likewise.
60886         * lib/mkstemp.c: Likewise.
60887         * lib/modechange.c: Likewise.
60888         * lib/modechange.h: Likewise.
60889         * lib/mountlist.c: Likewise.
60890         * lib/mountlist.h: Likewise.
60891         * lib/mpsort.c: Likewise.
60892         * lib/nanosleep.c: Likewise.
60893         * lib/obstack.c: Likewise.
60894         * lib/obstack.h: Likewise.
60895         * lib/open-safer.c: Likewise.
60896         * lib/open.c: Likewise.
60897         * lib/openat-die.c: Likewise.
60898         * lib/openat-priv.h: Likewise.
60899         * lib/openat-proc.c: Likewise.
60900         * lib/openat.c: Likewise.
60901         * lib/openat.h: Likewise.
60902         * lib/pagealign_alloc.c: Likewise.
60903         * lib/pagealign_alloc.h: Likewise.
60904         * lib/physmem.c: Likewise.
60905         * lib/physmem.h: Likewise.
60906         * lib/pipe-safer.c: Likewise.
60907         * lib/pipe.c: Likewise.
60908         * lib/pipe.h: Likewise.
60909         * lib/posixtm.c: Likewise.
60910         * lib/posixtm.h: Likewise.
60911         * lib/posixver.c: Likewise.
60912         * lib/printf-frexp.c: Likewise.
60913         * lib/printf-frexp.h: Likewise.
60914         * lib/printf-frexpl.c: Likewise.
60915         * lib/printf-frexpl.h: Likewise.
60916         * lib/printf.c: Likewise.
60917         * lib/progname.c: Likewise.
60918         * lib/progname.h: Likewise.
60919         * lib/progreloc.c: Likewise.
60920         * lib/putenv.c: Likewise.
60921         * lib/quote.c: Likewise.
60922         * lib/quote.h: Likewise.
60923         * lib/quotearg.c: Likewise.
60924         * lib/quotearg.h: Likewise.
60925         * lib/raise.c: Likewise.
60926         * lib/readline.c: Likewise.
60927         * lib/readline.h: Likewise.
60928         * lib/readlink.c: Likewise.
60929         * lib/readtokens.c: Likewise.
60930         * lib/readtokens.h: Likewise.
60931         * lib/readtokens0.c: Likewise.
60932         * lib/readtokens0.h: Likewise.
60933         * lib/readutmp.c: Likewise.
60934         * lib/readutmp.h: Likewise.
60935         * lib/realloc.c: Likewise.
60936         * lib/relocwrapper.c: Likewise.
60937         * lib/rename-dest-slash.c: Likewise.
60938         * lib/rename.c: Likewise.
60939         * lib/rmdir.c: Likewise.
60940         * lib/rpmatch.c: Likewise.
60941         * lib/safe-read.c: Likewise.
60942         * lib/safe-read.h: Likewise.
60943         * lib/safe-write.c: Likewise.
60944         * lib/safe-write.h: Likewise.
60945         * lib/same-inode.h: Likewise.
60946         * lib/same.c: Likewise.
60947         * lib/same.h: Likewise.
60948         * lib/save-cwd.c: Likewise.
60949         * lib/save-cwd.h: Likewise.
60950         * lib/savedir.c: Likewise.
60951         * lib/savedir.h: Likewise.
60952         * lib/savewd.c: Likewise.
60953         * lib/savewd.h: Likewise.
60954         * lib/search.in.h: Likewise.
60955         * lib/setenv.c: Likewise.
60956         * lib/setenv.h: Likewise.
60957         * lib/settime.c: Likewise.
60958         * lib/sh-quote.c: Likewise.
60959         * lib/sh-quote.h: Likewise.
60960         * lib/sig2str.c: Likewise.
60961         * lib/sig2str.h: Likewise.
60962         * lib/signal.in.h: Likewise.
60963         * lib/signbitd.c: Likewise.
60964         * lib/signbitf.c: Likewise.
60965         * lib/signbitl.c: Likewise.
60966         * lib/sigprocmask.c: Likewise.
60967         * lib/sincosl.c: Likewise.
60968         * lib/sleep.c: Likewise.
60969         * lib/sprintf.c: Likewise.
60970         * lib/sqrtl.c: Likewise.
60971         * lib/stat-time.h: Likewise.
60972         * lib/stdio--.h: Likewise.
60973         * lib/stdio-safer.h: Likewise.
60974         * lib/stdlib--.h: Likewise.
60975         * lib/stdlib-safer.h: Likewise.
60976         * lib/stdlib.in.h: Likewise.
60977         * lib/stpcpy.c: Likewise.
60978         * lib/stpncpy.c: Likewise.
60979         * lib/strchrnul.c: Likewise.
60980         * lib/strcspn.c: Likewise.
60981         * lib/strerror.c: Likewise.
60982         * lib/strftime.c: Likewise.
60983         * lib/strftime.h: Likewise.
60984         * lib/striconveh.c: Likewise.
60985         * lib/striconveh.h: Likewise.
60986         * lib/striconveha.c: Likewise.
60987         * lib/striconveha.h: Likewise.
60988         * lib/stripslash.c: Likewise.
60989         * lib/strnlen1.c: Likewise.
60990         * lib/strnlen1.h: Likewise.
60991         * lib/strtod.c: Likewise.
60992         * lib/strtoimax.c: Likewise.
60993         * lib/strtok_r.c: Likewise.
60994         * lib/strtol.c: Likewise.
60995         * lib/strtoll.c: Likewise.
60996         * lib/strtoul.c: Likewise.
60997         * lib/strtoull.c: Likewise.
60998         * lib/sysexits.in.h: Likewise.
60999         * lib/tempname.c: Likewise.
61000         * lib/tempname.h: Likewise.
61001         * lib/timespec.h: Likewise.
61002         * lib/tls.c: Likewise.
61003         * lib/tls.h: Likewise.
61004         * lib/tmpdir.c: Likewise.
61005         * lib/tmpdir.h: Likewise.
61006         * lib/tmpfile-safer.c: Likewise.
61007         * lib/tmpfile.c: Likewise.
61008         * lib/trigl.c: Likewise.
61009         * lib/trigl.h: Likewise.
61010         * lib/trim.c: Likewise.
61011         * lib/trim.h: Likewise.
61012         * lib/trunc.c: Likewise.
61013         * lib/truncf.c: Likewise.
61014         * lib/truncl.c: Likewise.
61015         * lib/tsearch.c: Likewise.
61016         * lib/unicodeio.c: Likewise.
61017         * lib/unicodeio.h: Likewise.
61018         * lib/unistd--.h: Likewise.
61019         * lib/unistd-safer.h: Likewise.
61020         * lib/unistdio/ulc-fprintf.c: Likewise.
61021         * lib/unistdio/ulc-vfprintf.c: Likewise.
61022         * lib/unlinkdir.c: Likewise.
61023         * lib/unlinkdir.h: Likewise.
61024         * lib/unlocked-io.h: Likewise.
61025         * lib/unsetenv.c: Likewise.
61026         * lib/userspec.c: Likewise.
61027         * lib/utime.c: Likewise.
61028         * lib/utimecmp.c: Likewise.
61029         * lib/utimecmp.h: Likewise.
61030         * lib/utimens.c: Likewise.
61031         * lib/verify.h: Likewise.
61032         * lib/verror.c: Likewise.
61033         * lib/verror.h: Likewise.
61034         * lib/version-etc-fsf.c: Likewise.
61035         * lib/version-etc.c: Likewise.
61036         * lib/version-etc.h: Likewise.
61037         * lib/vfprintf.c: Likewise.
61038         * lib/vprintf.c: Likewise.
61039         * lib/vsprintf.c: Likewise.
61040         * lib/w32spawn.h: Likewise.
61041         * lib/wait-process.c: Likewise.
61042         * lib/wait-process.h: Likewise.
61043         * lib/wcwidth.c: Likewise.
61044         * lib/write-any-file.c: Likewise.
61045         * lib/xalloc-die.c: Likewise.
61046         * lib/xalloc.h: Likewise.
61047         * lib/xasprintf.c: Likewise.
61048         * lib/xgetcwd.c: Likewise.
61049         * lib/xgetcwd.h: Likewise.
61050         * lib/xgetdomainname.c: Likewise.
61051         * lib/xgetdomainname.h: Likewise.
61052         * lib/xgethostname.c: Likewise.
61053         * lib/xmalloc.c: Likewise.
61054         * lib/xmalloca.c: Likewise.
61055         * lib/xmalloca.h: Likewise.
61056         * lib/xmemcoll.c: Likewise.
61057         * lib/xnanosleep.c: Likewise.
61058         * lib/xreadlink.c: Likewise.
61059         * lib/xreadlink.h: Likewise.
61060         * lib/xsetenv.c: Likewise.
61061         * lib/xsetenv.h: Likewise.
61062         * lib/xstriconv.c: Likewise.
61063         * lib/xstriconv.h: Likewise.
61064         * lib/xstrndup.c: Likewise.
61065         * lib/xstrndup.h: Likewise.
61066         * lib/xstrtod.c: Likewise.
61067         * lib/xstrtod.h: Likewise.
61068         * lib/xstrtol-error.c: Likewise.
61069         * lib/xstrtol.c: Likewise.
61070         * lib/xstrtol.h: Likewise.
61071         * lib/xtime.h: Likewise.
61072         * lib/xvasprintf.c: Likewise.
61073         * lib/xvasprintf.h: Likewise.
61074         * lib/yesno.c: Likewise.
61075         * lib/yesno.h: Likewise.
61076         * posix-modules: Likewise.
61077         * tests/test-alloca-opt.c: Likewise.
61078         * tests/test-arcfour.c: Likewise.
61079         * tests/test-arctwo.c: Likewise.
61080         * tests/test-argmatch.c: Likewise.
61081         * tests/test-argp-2.sh: Likewise.
61082         * tests/test-argp.c: Likewise.
61083         * tests/test-arpa_inet.c: Likewise.
61084         * tests/test-array_list.c: Likewise.
61085         * tests/test-array_oset.c: Likewise.
61086         * tests/test-atexit.c: Likewise.
61087         * tests/test-avltree_list.c: Likewise.
61088         * tests/test-avltree_oset.c: Likewise.
61089         * tests/test-avltreehash_list.c: Likewise.
61090         * tests/test-base64.c: Likewise.
61091         * tests/test-binary-io.c: Likewise.
61092         * tests/test-byteswap.c: Likewise.
61093         * tests/test-c-ctype.c: Likewise.
61094         * tests/test-c-strcasecmp.c: Likewise.
61095         * tests/test-c-strcasestr.c: Likewise.
61096         * tests/test-c-strncasecmp.c: Likewise.
61097         * tests/test-c-strstr.c: Likewise.
61098         * tests/test-canonicalize-lgpl.c: Likewise.
61099         * tests/test-canonicalize.c: Likewise.
61100         * tests/test-carray_list.c: Likewise.
61101         * tests/test-ceilf.c: Likewise.
61102         * tests/test-ceill.c: Likewise.
61103         * tests/test-count-one-bits.c: Likewise.
61104         * tests/test-crc.c: Likewise.
61105         * tests/test-dirname.c: Likewise.
61106         * tests/test-fbufmode.c: Likewise.
61107         * tests/test-fcntl.c: Likewise.
61108         * tests/test-fflush.c: Likewise.
61109         * tests/test-floorf.c: Likewise.
61110         * tests/test-floorl.c: Likewise.
61111         * tests/test-fopen.c: Likewise.
61112         * tests/test-fprintf-posix.c: Likewise.
61113         * tests/test-fprintf-posix.h: Likewise.
61114         * tests/test-fpurge.c: Likewise.
61115         * tests/test-freadable.c: Likewise.
61116         * tests/test-freadahead.c: Likewise.
61117         * tests/test-freading.c: Likewise.
61118         * tests/test-freopen.c: Likewise.
61119         * tests/test-frexp.c: Likewise.
61120         * tests/test-frexpl.c: Likewise.
61121         * tests/test-fseek.c: Likewise.
61122         * tests/test-fseeko.c: Likewise.
61123         * tests/test-fseterr.c: Likewise.
61124         * tests/test-fstrcmp.c: Likewise.
61125         * tests/test-ftell.c: Likewise.
61126         * tests/test-ftello.c: Likewise.
61127         * tests/test-fwritable.c: Likewise.
61128         * tests/test-fwriting.c: Likewise.
61129         * tests/test-getaddrinfo.c: Likewise.
61130         * tests/test-getpass.c: Likewise.
61131         * tests/test-gettimeofday.c: Likewise.
61132         * tests/test-hmac-md5.c: Likewise.
61133         * tests/test-hmac-sha1.c: Likewise.
61134         * tests/test-iconv.c: Likewise.
61135         * tests/test-iconvme.c: Likewise.
61136         * tests/test-inttypes.c: Likewise.
61137         * tests/test-isnan.c: Likewise.
61138         * tests/test-isnanf.c: Likewise.
61139         * tests/test-isnanl-nolibm.c: Likewise.
61140         * tests/test-isnanl.c: Likewise.
61141         * tests/test-isnanl.h: Likewise.
61142         * tests/test-ldexpl.c: Likewise.
61143         * tests/test-linked_list.c: Likewise.
61144         * tests/test-linkedhash_list.c: Likewise.
61145         * tests/test-locale.c: Likewise.
61146         * tests/test-localename.c: Likewise.
61147         * tests/test-lock.c: Likewise.
61148         * tests/test-lseek.c: Likewise.
61149         * tests/test-malloca.c: Likewise.
61150         * tests/test-math.c: Likewise.
61151         * tests/test-mbscasecmp.c: Likewise.
61152         * tests/test-mbscasestr1.c: Likewise.
61153         * tests/test-mbscasestr2.c: Likewise.
61154         * tests/test-mbscasestr3.c: Likewise.
61155         * tests/test-mbscasestr4.c: Likewise.
61156         * tests/test-mbschr.c: Likewise.
61157         * tests/test-mbscspn.c: Likewise.
61158         * tests/test-mbsncasecmp.c: Likewise.
61159         * tests/test-mbspbrk.c: Likewise.
61160         * tests/test-mbspcasecmp.c: Likewise.
61161         * tests/test-mbsrchr.c: Likewise.
61162         * tests/test-mbsspn.c: Likewise.
61163         * tests/test-mbsstr1.c: Likewise.
61164         * tests/test-mbsstr2.c: Likewise.
61165         * tests/test-mbsstr3.c: Likewise.
61166         * tests/test-md5.c: Likewise.
61167         * tests/test-memmem.c: Likewise.
61168         * tests/test-netinet_in.c: Likewise.
61169         * tests/test-open.c: Likewise.
61170         * tests/test-printf-frexp.c: Likewise.
61171         * tests/test-printf-frexpl.c: Likewise.
61172         * tests/test-printf-posix.c: Likewise.
61173         * tests/test-printf-posix.h: Likewise.
61174         * tests/test-rbtree_list.c: Likewise.
61175         * tests/test-rbtree_oset.c: Likewise.
61176         * tests/test-rbtreehash_list.c: Likewise.
61177         * tests/test-read-file.c: Likewise.
61178         * tests/test-rijndael.c: Likewise.
61179         * tests/test-search.c: Likewise.
61180         * tests/test-signbit.c: Likewise.
61181         * tests/test-sleep.c: Likewise.
61182         * tests/test-snprintf-posix.c: Likewise.
61183         * tests/test-snprintf-posix.h: Likewise.
61184         * tests/test-snprintf.c: Likewise.
61185         * tests/test-sprintf-posix.c: Likewise.
61186         * tests/test-sprintf-posix.h: Likewise.
61187         * tests/test-stat-time.c: Likewise.
61188         * tests/test-stdbool.c: Likewise.
61189         * tests/test-stdint.c: Likewise.
61190         * tests/test-stdio.c: Likewise.
61191         * tests/test-stdlib.c: Likewise.
61192         * tests/test-stpncpy.c: Likewise.
61193         * tests/test-strcasestr.c: Likewise.
61194         * tests/test-striconv.c: Likewise.
61195         * tests/test-striconveh.c: Likewise.
61196         * tests/test-striconveha.c: Likewise.
61197         * tests/test-string.c: Likewise.
61198         * tests/test-sys_select.c: Likewise.
61199         * tests/test-sys_socket.c: Likewise.
61200         * tests/test-sys_stat.c: Likewise.
61201         * tests/test-sys_time.c: Likewise.
61202         * tests/test-sysexits.c: Likewise.
61203         * tests/test-time.c: Likewise.
61204         * tests/test-tls.c: Likewise.
61205         * tests/test-trunc.c: Likewise.
61206         * tests/test-truncf.c: Likewise.
61207         * tests/test-truncl.c: Likewise.
61208         * tests/test-unistd.c: Likewise.
61209         * tests/test-vasnprintf-posix.c: Likewise.
61210         * tests/test-vasnprintf-posix2.c: Likewise.
61211         * tests/test-vasnprintf.c: Likewise.
61212         * tests/test-vasprintf-posix.c: Likewise.
61213         * tests/test-vasprintf.c: Likewise.
61214         * tests/test-verify.c: Likewise.
61215         * tests/test-vfprintf-posix.c: Likewise.
61216         * tests/test-vprintf-posix.c: Likewise.
61217         * tests/test-vsnprintf-posix.c: Likewise.
61218         * tests/test-vsnprintf.c: Likewise.
61219         * tests/test-vsprintf-posix.c: Likewise.
61220         * tests/test-wchar.c: Likewise.
61221         * tests/test-wctype.c: Likewise.
61222         * tests/test-wcwidth.c: Likewise.
61223         * tests/test-xstrtol.c: Likewise.
61224         * tests/test-xvasprintf.c: Likewise.
61225         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61226         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61227         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61228         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61229         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61230         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61231         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61232         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61233         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61234         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61235         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61236         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61237         * tests/uniname/test-uninames.c: Likewise.
61238         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61239         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61240         * tests/unistdio/test-u16-printf1.h: Likewise.
61241         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61242         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61243         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61244         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61245         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61246         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61247         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61248         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61249         * tests/unistdio/test-u32-printf1.h: Likewise.
61250         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61251         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61252         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61253         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61254         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61255         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61256         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61257         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61258         * tests/unistdio/test-u8-printf1.h: Likewise.
61259         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61260         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61261         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61262         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61263         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61264         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61265         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61266         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61267         * tests/unistdio/test-ulc-printf1.h: Likewise.
61268         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61269         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61270         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61271         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61272         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61273         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61274         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61275         * tests/uniwidth/test-u16-width.c: Likewise.
61276         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61277         * tests/uniwidth/test-u32-width.c: Likewise.
61278         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61279         * tests/uniwidth/test-u8-width.c: Likewise.
61280         * tests/uniwidth/test-uc_width.c: Likewise.
61281         * config/srclist-update: Likewise.
61282         (fixlicense): Update to GPLv3+.
61283
61284         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61285         * tests/test-tsearch.c: Change copyright notice.
61286
61287         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61288         * lib/c-strcaseeq.h: Change copyright notice.
61289         * lib/streq.h: Likewise.
61290         * lib/uniconv.h: Likewise.
61291         * lib/uniconv/u-conv-from-enc.h: Likewise.
61292         * lib/uniconv/u-conv-to-enc.h: Likewise.
61293         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61294         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61295         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61296         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61297         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61298         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61299         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61300         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61301         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61302         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61303         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61304         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61305         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61306         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61307         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61308         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61309         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61310         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61311         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61312         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61313         * lib/uniname.h: Likewise.
61314         * lib/uniname/uniname.c: Likewise.
61315         * lib/unistdio.h: Likewise.
61316         * lib/unistdio/u-asnprintf.h: Likewise.
61317         * lib/unistdio/u-asprintf.h: Likewise.
61318         * lib/unistdio/u-printf-args.c: Likewise.
61319         * lib/unistdio/u-printf-args.h: Likewise.
61320         * lib/unistdio/u-printf-parse.h: Likewise.
61321         * lib/unistdio/u-snprintf.h: Likewise.
61322         * lib/unistdio/u-sprintf.h: Likewise.
61323         * lib/unistdio/u-vasprintf.h: Likewise.
61324         * lib/unistdio/u-vsnprintf.h: Likewise.
61325         * lib/unistdio/u-vsprintf.h: Likewise.
61326         * lib/unistdio/u16-asnprintf.c: Likewise.
61327         * lib/unistdio/u16-asprintf.c: Likewise.
61328         * lib/unistdio/u16-printf-parse.c: Likewise.
61329         * lib/unistdio/u16-snprintf.c: Likewise.
61330         * lib/unistdio/u16-sprintf.c: Likewise.
61331         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61332         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61333         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61334         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61335         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61336         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61337         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61338         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61339         * lib/unistdio/u16-vasnprintf.c: Likewise.
61340         * lib/unistdio/u16-vasprintf.c: Likewise.
61341         * lib/unistdio/u16-vsnprintf.c: Likewise.
61342         * lib/unistdio/u16-vsprintf.c: Likewise.
61343         * lib/unistdio/u32-asnprintf.c: Likewise.
61344         * lib/unistdio/u32-asprintf.c: Likewise.
61345         * lib/unistdio/u32-printf-parse.c: Likewise.
61346         * lib/unistdio/u32-snprintf.c: Likewise.
61347         * lib/unistdio/u32-sprintf.c: Likewise.
61348         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61349         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61350         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61351         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61352         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61353         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61354         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61355         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61356         * lib/unistdio/u32-vasnprintf.c: Likewise.
61357         * lib/unistdio/u32-vasprintf.c: Likewise.
61358         * lib/unistdio/u32-vsnprintf.c: Likewise.
61359         * lib/unistdio/u32-vsprintf.c: Likewise.
61360         * lib/unistdio/u8-asnprintf.c: Likewise.
61361         * lib/unistdio/u8-asprintf.c: Likewise.
61362         * lib/unistdio/u8-printf-parse.c: Likewise.
61363         * lib/unistdio/u8-snprintf.c: Likewise.
61364         * lib/unistdio/u8-sprintf.c: Likewise.
61365         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61366         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61367         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61368         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61369         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61370         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61371         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61372         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61373         * lib/unistdio/u8-vasnprintf.c: Likewise.
61374         * lib/unistdio/u8-vasprintf.c: Likewise.
61375         * lib/unistdio/u8-vsnprintf.c: Likewise.
61376         * lib/unistdio/u8-vsprintf.c: Likewise.
61377         * lib/unistdio/ulc-asnprintf.c: Likewise.
61378         * lib/unistdio/ulc-asprintf.c: Likewise.
61379         * lib/unistdio/ulc-printf-parse.c: Likewise.
61380         * lib/unistdio/ulc-snprintf.c: Likewise.
61381         * lib/unistdio/ulc-sprintf.c: Likewise.
61382         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61383         * lib/unistdio/ulc-vasprintf.c: Likewise.
61384         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61385         * lib/unistdio/ulc-vsprintf.c: Likewise.
61386         * lib/unistr.h: Likewise.
61387         * lib/unistr/u-cpy-alloc.h: Likewise.
61388         * lib/unistr/u-cpy.h: Likewise.
61389         * lib/unistr/u-endswith.h: Likewise.
61390         * lib/unistr/u-move.h: Likewise.
61391         * lib/unistr/u-set.h: Likewise.
61392         * lib/unistr/u-startswith.h: Likewise.
61393         * lib/unistr/u-stpcpy.h: Likewise.
61394         * lib/unistr/u-stpncpy.h: Likewise.
61395         * lib/unistr/u-strcat.h: Likewise.
61396         * lib/unistr/u-strcpy.h: Likewise.
61397         * lib/unistr/u-strcspn.h: Likewise.
61398         * lib/unistr/u-strdup.h: Likewise.
61399         * lib/unistr/u-strlen.h: Likewise.
61400         * lib/unistr/u-strncat.h: Likewise.
61401         * lib/unistr/u-strncpy.h: Likewise.
61402         * lib/unistr/u-strnlen.h: Likewise.
61403         * lib/unistr/u-strpbrk.h: Likewise.
61404         * lib/unistr/u-strspn.h: Likewise.
61405         * lib/unistr/u-strstr.h: Likewise.
61406         * lib/unistr/u-strtok.h: Likewise.
61407         * lib/unistr/u16-check.c: Likewise.
61408         * lib/unistr/u16-chr.c: Likewise.
61409         * lib/unistr/u16-cmp.c: Likewise.
61410         * lib/unistr/u16-cpy-alloc.c: Likewise.
61411         * lib/unistr/u16-cpy.c: Likewise.
61412         * lib/unistr/u16-endswith.c: Likewise.
61413         * lib/unistr/u16-mblen.c: Likewise.
61414         * lib/unistr/u16-mbsnlen.c: Likewise.
61415         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61416         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61417         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61418         * lib/unistr/u16-mbtouc.c: Likewise.
61419         * lib/unistr/u16-mbtoucr.c: Likewise.
61420         * lib/unistr/u16-move.c: Likewise.
61421         * lib/unistr/u16-next.c: Likewise.
61422         * lib/unistr/u16-prev.c: Likewise.
61423         * lib/unistr/u16-set.c: Likewise.
61424         * lib/unistr/u16-startswith.c: Likewise.
61425         * lib/unistr/u16-stpcpy.c: Likewise.
61426         * lib/unistr/u16-stpncpy.c: Likewise.
61427         * lib/unistr/u16-strcat.c: Likewise.
61428         * lib/unistr/u16-strchr.c: Likewise.
61429         * lib/unistr/u16-strcmp.c: Likewise.
61430         * lib/unistr/u16-strcpy.c: Likewise.
61431         * lib/unistr/u16-strcspn.c: Likewise.
61432         * lib/unistr/u16-strdup.c: Likewise.
61433         * lib/unistr/u16-strlen.c: Likewise.
61434         * lib/unistr/u16-strmblen.c: Likewise.
61435         * lib/unistr/u16-strmbtouc.c: Likewise.
61436         * lib/unistr/u16-strncat.c: Likewise.
61437         * lib/unistr/u16-strncmp.c: Likewise.
61438         * lib/unistr/u16-strncpy.c: Likewise.
61439         * lib/unistr/u16-strnlen.c: Likewise.
61440         * lib/unistr/u16-strpbrk.c: Likewise.
61441         * lib/unistr/u16-strrchr.c: Likewise.
61442         * lib/unistr/u16-strspn.c: Likewise.
61443         * lib/unistr/u16-strstr.c: Likewise.
61444         * lib/unistr/u16-strtok.c: Likewise.
61445         * lib/unistr/u16-to-u32.c: Likewise.
61446         * lib/unistr/u16-to-u8.c: Likewise.
61447         * lib/unistr/u16-uctomb-aux.c: Likewise.
61448         * lib/unistr/u16-uctomb.c: Likewise.
61449         * lib/unistr/u32-check.c: Likewise.
61450         * lib/unistr/u32-chr.c: Likewise.
61451         * lib/unistr/u32-cmp.c: Likewise.
61452         * lib/unistr/u32-cpy-alloc.c: Likewise.
61453         * lib/unistr/u32-cpy.c: Likewise.
61454         * lib/unistr/u32-endswith.c: Likewise.
61455         * lib/unistr/u32-mblen.c: Likewise.
61456         * lib/unistr/u32-mbsnlen.c: Likewise.
61457         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61458         * lib/unistr/u32-mbtouc.c: Likewise.
61459         * lib/unistr/u32-mbtoucr.c: Likewise.
61460         * lib/unistr/u32-move.c: Likewise.
61461         * lib/unistr/u32-next.c: Likewise.
61462         * lib/unistr/u32-prev.c: Likewise.
61463         * lib/unistr/u32-set.c: Likewise.
61464         * lib/unistr/u32-startswith.c: Likewise.
61465         * lib/unistr/u32-stpcpy.c: Likewise.
61466         * lib/unistr/u32-stpncpy.c: Likewise.
61467         * lib/unistr/u32-strcat.c: Likewise.
61468         * lib/unistr/u32-strchr.c: Likewise.
61469         * lib/unistr/u32-strcmp.c: Likewise.
61470         * lib/unistr/u32-strcpy.c: Likewise.
61471         * lib/unistr/u32-strcspn.c: Likewise.
61472         * lib/unistr/u32-strdup.c: Likewise.
61473         * lib/unistr/u32-strlen.c: Likewise.
61474         * lib/unistr/u32-strmblen.c: Likewise.
61475         * lib/unistr/u32-strmbtouc.c: Likewise.
61476         * lib/unistr/u32-strncat.c: Likewise.
61477         * lib/unistr/u32-strncmp.c: Likewise.
61478         * lib/unistr/u32-strncpy.c: Likewise.
61479         * lib/unistr/u32-strnlen.c: Likewise.
61480         * lib/unistr/u32-strpbrk.c: Likewise.
61481         * lib/unistr/u32-strrchr.c: Likewise.
61482         * lib/unistr/u32-strspn.c: Likewise.
61483         * lib/unistr/u32-strstr.c: Likewise.
61484         * lib/unistr/u32-strtok.c: Likewise.
61485         * lib/unistr/u32-to-u16.c: Likewise.
61486         * lib/unistr/u32-to-u8.c: Likewise.
61487         * lib/unistr/u32-uctomb.c: Likewise.
61488         * lib/unistr/u8-check.c: Likewise.
61489         * lib/unistr/u8-chr.c: Likewise.
61490         * lib/unistr/u8-cmp.c: Likewise.
61491         * lib/unistr/u8-cpy-alloc.c: Likewise.
61492         * lib/unistr/u8-cpy.c: Likewise.
61493         * lib/unistr/u8-endswith.c: Likewise.
61494         * lib/unistr/u8-mblen.c: Likewise.
61495         * lib/unistr/u8-mbsnlen.c: Likewise.
61496         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61497         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61498         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61499         * lib/unistr/u8-mbtouc.c: Likewise.
61500         * lib/unistr/u8-mbtoucr.c: Likewise.
61501         * lib/unistr/u8-move.c: Likewise.
61502         * lib/unistr/u8-next.c: Likewise.
61503         * lib/unistr/u8-prev.c: Likewise.
61504         * lib/unistr/u8-set.c: Likewise.
61505         * lib/unistr/u8-startswith.c: Likewise.
61506         * lib/unistr/u8-stpcpy.c: Likewise.
61507         * lib/unistr/u8-stpncpy.c: Likewise.
61508         * lib/unistr/u8-strcat.c: Likewise.
61509         * lib/unistr/u8-strchr.c: Likewise.
61510         * lib/unistr/u8-strcmp.c: Likewise.
61511         * lib/unistr/u8-strcpy.c: Likewise.
61512         * lib/unistr/u8-strcspn.c: Likewise.
61513         * lib/unistr/u8-strdup.c: Likewise.
61514         * lib/unistr/u8-strlen.c: Likewise.
61515         * lib/unistr/u8-strmblen.c: Likewise.
61516         * lib/unistr/u8-strmbtouc.c: Likewise.
61517         * lib/unistr/u8-strncat.c: Likewise.
61518         * lib/unistr/u8-strncmp.c: Likewise.
61519         * lib/unistr/u8-strncpy.c: Likewise.
61520         * lib/unistr/u8-strnlen.c: Likewise.
61521         * lib/unistr/u8-strpbrk.c: Likewise.
61522         * lib/unistr/u8-strrchr.c: Likewise.
61523         * lib/unistr/u8-strspn.c: Likewise.
61524         * lib/unistr/u8-strstr.c: Likewise.
61525         * lib/unistr/u8-strtok.c: Likewise.
61526         * lib/unistr/u8-to-u16.c: Likewise.
61527         * lib/unistr/u8-to-u32.c: Likewise.
61528         * lib/unistr/u8-uctomb-aux.c: Likewise.
61529         * lib/unistr/u8-uctomb.c: Likewise.
61530         * lib/unitypes.h: Likewise.
61531         * lib/uniwidth.h: Likewise.
61532         * lib/uniwidth/cjk.h: Likewise.
61533         * lib/uniwidth/u16-strwidth.c: Likewise.
61534         * lib/uniwidth/u16-width.c: Likewise.
61535         * lib/uniwidth/u32-strwidth.c: Likewise.
61536         * lib/uniwidth/u32-width.c: Likewise.
61537         * lib/uniwidth/u8-strwidth.c: Likewise.
61538         * lib/uniwidth/u8-width.c: Likewise.
61539         * lib/uniwidth/width.c: Likewise.
61540
61541 2007-10-07  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61544         The file is still under LGPL (see modules/inttypes).
61545
61546 2007-10-06  Bruno Haible  <bruno@clisp.org>
61547
61548         * modules/trunc (Dependencies): Add 'extensions'.
61549         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61550         Reported by Ben Pfaff <blp@gnu.org>.
61551
61552 2007-10-06  Bruno Haible  <bruno@clisp.org>
61553
61554         * modules/freopen-tests: New file.
61555         * tests/test-freopen.c: New file.
61556
61557         * modules/fopen-tests: New file.
61558         * tests/test-fopen.c: New file.
61559
61560         * modules/fopen: New file.
61561         * lib/fopen.c: New file.
61562         * m4/fopen.m4: New file.
61563         * modules/freopen: New file.
61564         * lib/freopen.c: New file.
61565         * m4/freopen.m4: New file.
61566         * lib/stdio.in.h (fopen, freopen): New declarations.
61567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61568         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61569         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61570         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61571         * doc/functions/fopen.texi: Mention the 'fopen' module.
61572         * doc/functions/freopen.texi: Mention the 'freopen' module.
61573
61574 2007-10-06  Bruno Haible  <bruno@clisp.org>
61575
61576         * modules/open-tests: New file.
61577         * tests/test-open.c: New file.
61578
61579         * modules/open: New file.
61580         * lib/open.c: New file.
61581         * m4/open.m4: New file.
61582         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61583         lib/open.c does.
61584         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61585         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61586         macros.
61587         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61588         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61589         REPLACE_OPEN.
61590         * doc/functions/open.texi: Mention the 'open' module.
61591
61592 2007-10-04  Bruno Haible  <bruno@clisp.org>
61593
61594         * modules/ceill-tests: New file.
61595         * tests/test-ceill.c: New file.
61596
61597         * modules/ceill: New file.
61598         * lib/ceill.c: Replace entire file.
61599         * m4/ceill.m4: New file.
61600         * lib/math.in.h (ceill): Replace declaration.
61601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61602         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61603         * doc/functions/ceill.texi: Mention the 'ceill' module.
61604         * modules/mathl (Files): Remove lib/ceill.c.
61605         (Depends-on): Add ceill.
61606
61607 2007-10-04  Bruno Haible  <bruno@clisp.org>
61608
61609         * modules/ceilf-tests: New file.
61610         * tests/test-ceilf.c: New file.
61611
61612         * modules/ceilf: New file.
61613         * lib/ceil.c: New file.
61614         * lib/ceilf.c: New file.
61615         * m4/ceilf.m4: New file.
61616         * lib/math.in.h (ceilf): New declaration.
61617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61618         HAVE_DECL_CEILF.
61619         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61620         HAVE_DECL_CEILF.
61621         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61622
61623 2007-10-04  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/floorl-tests: New file.
61626         * tests/test-floorl.c: New file.
61627
61628         * modules/floorl: New file.
61629         * lib/floorl.c: Replace entire file.
61630         * m4/floorl.m4: New file.
61631         * lib/math.in.h (floorl): Replace declaration.
61632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61633         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61634         * doc/functions/floorl.texi: Mention the 'floorl' module.
61635         * modules/mathl (Files): Remove lib/floorl.c.
61636         (Depends-on): Add floorl.
61637
61638 2007-10-04  Bruno Haible  <bruno@clisp.org>
61639
61640         * modules/floorf-tests: New file.
61641         * tests/test-floorf.c: New file.
61642
61643         * modules/floorf: New file.
61644         * lib/floor.c: New file.
61645         * lib/floorf.c: New file.
61646         * m4/floorf.m4: New file.
61647         * lib/math.in.h (floorf): New declaration.
61648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61649         HAVE_DECL_FLOORF.
61650         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61651         HAVE_DECL_FLOORF.
61652         * doc/functions/floorf.texi: Mention the 'floorf' module.
61653
61654 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61655             Bruno Haible  <bruno@clisp.org>
61656
61657         Advertise for the Git server instead of the CVS server.
61658         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61659         repository instead of the CVS one.
61660         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61661         about all VCS systems generically.
61662         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61663
61664 2007-10-04  Bruno Haible  <bruno@clisp.org>
61665
61666         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61667         means.
61668         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61669
61670 2007-10-04  Bruno Haible  <bruno@clisp.org>
61671
61672         * modules/truncl-tests: New file.
61673         * tests/test-truncl.c: New file.
61674
61675         * modules/truncl: New file.
61676         * lib/truncl.c: New file.
61677         * m4/truncl.m4: New file.
61678         * lib/math.in.h (truncl): New declaration.
61679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61680         HAVE_DECL_TRUNCL.
61681         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61682         HAVE_DECL_TRUNCL.
61683         * doc/functions/truncl.texi: Mention the 'truncl' module.
61684
61685 2007-10-04  Bruno Haible  <bruno@clisp.org>
61686
61687         * modules/truncf-tests: New file.
61688         * tests/test-truncf.c: New file.
61689
61690         * modules/truncf: New file.
61691         * lib/trunc.c: Make paramerizable through USE_* macros.
61692         * lib/truncf.c: New file.
61693         * m4/truncf.m4: New file.
61694         * lib/math.in.h (truncf): New declaration.
61695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61696         HAVE_DECL_TRUNCF.
61697         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61698         HAVE_DECL_TRUNCF.
61699         * doc/functions/truncf.texi: Mention the 'truncf' module.
61700
61701 2007-10-03  Bruno Haible  <bruno@clisp.org>
61702
61703         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61704         augmentation also for tests modules.
61705         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61706         * modules/atexit-tests (Makefile.am): Likewise.
61707         * modules/binary-io-tests (Makefile.am): Likewise.
61708         * modules/c-strcase-tests (Makefile.am): Likewise.
61709         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61710         * modules/canonicalize-tests (Makefile.am): Likewise.
61711         * modules/closein-tests (Makefile.am): Likewise.
61712         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61713         * modules/freadahead-tests (Makefile.am): Likewise.
61714         * modules/fseek-tests (Makefile.am): Likewise.
61715         * modules/fseeko-tests (Makefile.am): Likewise.
61716         * modules/ftell-tests (Makefile.am): Likewise.
61717         * modules/ftello-tests (Makefile.am): Likewise.
61718         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61719         * modules/isnanl-tests (Makefile.am): Likewise.
61720         * modules/lseek-tests (Makefile.am): Likewise.
61721         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61722         * modules/mbscasestr-tests (Makefile.am): Likewise.
61723         * modules/mbschr-tests (Makefile.am): Likewise.
61724         * modules/mbscspn-tests (Makefile.am): Likewise.
61725         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61726         * modules/mbspbrk-tests (Makefile.am): Likewise.
61727         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61728         * modules/mbsrchr-tests (Makefile.am): Likewise.
61729         * modules/mbsspn-tests (Makefile.am): Likewise.
61730         * modules/mbsstr-tests (Makefile.am): Likewise.
61731         * modules/printf-posix-tests (Makefile.am): Likewise.
61732         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61733         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61734         * modules/tsearch-tests (Makefile.am): Likewise.
61735         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61736         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61737         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61738         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61739         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61740         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61741         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61742         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61743         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61744         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61745         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61746         * modules/xstrtol-tests (Makefile.am): Likewise.
61747         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61748         * modules/yesno-tests (Makefile.am): Likewise.
61749
61750 2007-10-03  Bruno Haible  <bruno@clisp.org>
61751
61752         * modules/trunc-tests: New file.
61753         * tests/test-trunc.c: New file.
61754
61755         * modules/trunc: New file.
61756         * lib/trunc.c: New file.
61757         * m4/trunc.m4: New file.
61758         * lib/math.in.h (trunc): New declaration.
61759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61760         HAVE_DECL_TRUNC.
61761         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61762         HAVE_DECL_TRUNC.
61763         * doc/functions/trunc.texi: Mention the 'trunc' module.
61764
61765 2007-10-03  Bruno Haible  <bruno@clisp.org>
61766
61767         * tests/test-fpending.c: New file, mostly copied
61768         from coreutils/lib/t-fpending.c.
61769         * modules/fpending-tests: New file.
61770
61771 2007-10-03  Bruno Haible  <bruno@clisp.org>
61772
61773         Port the stdio extensions to QNX (untested).
61774         * lib/fseterr.c (fseterr): Add support for QNX.
61775         * lib/fbufmode.c (fbufmode): Likewise.
61776         * lib/freadable.c (freadable): Likewise.
61777         * lib/fwritable.c (fwritable): Likewise.
61778         * lib/freading.c (freading): Likewise.
61779         * lib/fwriting.c (fwriting): Likewise.
61780         * lib/freadahead.c (freadahed): Likewise.
61781         * lib/fpurge.c (fpurge): Likewise.
61782         * lib/fseeko.c (rpl_fseeko): Likewise.
61783
61784 2007-10-03  Bruno Haible  <bruno@clisp.org>
61785             Jim Meyering  <jim@meyering.net>
61786             Eric Blake  <ebb9@byu.net>
61787
61788         * doc/relocatable.texi: Use @command instead of @program.
61789
61790 2007-10-02  Jim Meyering  <jim@meyering.net>
61791
61792         Perform one more "_.h" -> ".in.h" substitution.
61793         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61794         instead of unistd_.h here, too.
61795
61796 2007-10-01  Bruno Haible  <bruno@clisp.org>
61797
61798         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61799         Needed for the alloca-opt module.
61800
61801 2007-09-30  Bruno Haible  <bruno@clisp.org>
61802
61803         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61804         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61805         alloca_.h.
61806         * lib/argz.in.h: Renamed from lib/argz_.h.
61807         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61808         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61809         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61810         byteswap_.h.
61811         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61812         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61813         dirent_.h.
61814         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61815         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61816         fcntl_.h.
61817         * lib/float.in.h: Renamed from lib/float_.h.
61818         * modules/float (Files, Makefile.am): Use float.in.h instead of
61819         float_.h.
61820         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61821         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61822         fnmatch_.h.
61823         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61824         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61825         getopt_.h.
61826         * lib/glob.in.h: Renamed from lib/glob_.h.
61827         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61828         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61829         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61830         iconv_.h.
61831         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61832         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61833         inttypes_.h.
61834         * lib/locale.in.h: Renamed from lib/locale_.h.
61835         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61836         locale_.h.
61837         * lib/math.in.h: Renamed from lib/math_.h.
61838         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61839         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61840         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61841         of netinet_in_.h. Add dependency.
61842         * lib/poll.in.h: Renamed from lib/poll_.h.
61843         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61844         * lib/search.in.h: Renamed from lib/search_.h.
61845         * modules/search (Files, Makefile.am): Use search.in.h instead of
61846         search_.h.
61847         * lib/signal.in.h: Renamed from lib/signal_.h.
61848         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61849         _signal.h.
61850         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61851         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61852         stdbool_.h.
61853         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61854         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61855         stdint_.h.
61856         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61857         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61858         stdio_.h.
61859         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61860         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61861         stdlib_.h.
61862         * lib/string.in.h: Renamed from lib/string_.h.
61863         * modules/string (Files, Makefile.am): Use string.in.h instead of
61864         string_.h.
61865         * doc/gnulib-tool.texi (Initial import): Update.
61866         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61867         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61868         of sys_select_.h. Add dependency.
61869         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61870         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61871         of sys_socket_.h.
61872         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61873         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61874         sys_stat_.h.
61875         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61876         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61877         sys_time_.h.
61878         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61879         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61880         sysexits_.h.
61881         * lib/time.in.h: Renamed from lib/time_.h.
61882         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61883         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61884         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61885         unistd_.h.
61886         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61887         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61888         wchar_.h.
61889         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61890         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61891         wctype_.h.
61892         * build-aux/bootstrap (slurp): Update.
61893         * lib/.cppi-disable: Update.
61894
61895 2007-09-30  Bruno Haible  <bruno@clisp.org>
61896
61897         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61898         Needed on BeOS.
61899
61900 2007-09-30  Bruno Haible  <bruno@clisp.org>
61901
61902         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61903
61904 2007-09-29  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61907
61908 2007-09-29  Bruno Haible  <bruno@clisp.org>
61909
61910         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61911         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61912         * build-aux/install-reloc: Compile also areadlink.c.
61913         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61914
61915 2007-09-29  Bruno Haible  <bruno@clisp.org>
61916
61917         * gnulib-tool (func_emit_initmacro_done): Indentation.
61918
61919 2007-09-29  Bruno Haible  <bruno@clisp.org>
61920
61921         * README: Add CVS checkout update instructions.
61922         Info from Bob Proulx <bob@proulx.com>.
61923
61924 2007-09-28  Eric Blake  <ebb9@byu.net>
61925
61926         Provide move-if-change.
61927         * build-aux/move-if-change: New file, based on best practice
61928         rather than any canonical upstream location.
61929
61930 2007-09-28  Jim Meyering  <jim@meyering.net>
61931
61932         Fix canonicalize loop-detection corner case.
61933         Do not attempt to stat the symlink values stored via seen_triple.
61934         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61935         on linux-2.6.18, (but not 2.6.22).
61936         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61937         triple_compare.  The former compares dev,ino,filename, while the latter
61938         would actually stat dirname(filename) when dev and ino were equal.
61939         * lib/hash-triple.c: Install <string.h>.
61940         (STREQ): Define.
61941         (triple_compare_ino_str): New function.
61942         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61943
61944 2007-09-28  Eric Blake  <ebb9@byu.net>
61945
61946         Enforce that AC_REPLACE_FUNCS files exist.
61947         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61948         override check for typos.
61949
61950         Fix test-closein on Solaris 10.
61951         * tests/test-closein.c (main): Don't assume stdin can be inherited
61952         closed on all systems.
61953         * tests/test-closein.sh: Likewise.
61954         Reported by Piotr Tarnowski.
61955
61956 2007-09-28  Jim Meyering  <jim@meyering.net>
61957
61958         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61959
61960 2007-09-27  Jim Meyering  <jim@meyering.net>
61961
61962         canonicalize: Avoid a false-positive cycle failure.
61963         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61964         Sort.  Remove cycle-check.
61965         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61966         not cycle-check.h.
61967         (seen_triple): New function.
61968         (canonicalize_filename_mode): Use it instead of cycle-check.
61969         * tests/test-canonicalize.c: Add a test for this bug.
61970         * tests/test-canonicalize.sh: Set up and run the test.
61971
61972         New module, file-set, from coreutils.
61973         * modules/file-set: Define it.
61974         * lib/file-set.c, lib/file-set.h: Implement.
61975
61976         New module, hash-triple, from coreutils.
61977         * modules/hash-triple: Define it.
61978         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61979
61980 2007-09-25  Eric Blake  <ebb9@byu.net>
61981
61982         Fix strerror on Interix.
61983         * lib/string_.h (strerror): Declare replacement.
61984         * doc/functions/strerror.texi (strerror): Document the Interix
61985         shortcoming.
61986         * modules/string (Makefile.am): Support new hooks.
61987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61988         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61989         gl_FUNC_STRERROR_SEPARATE.
61990         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61991         * lib/strerror.c (rpl_strerror): Provide replacement.
61992         * modules/strerror (Depends-on): Add string.
61993         (configure.ac): Detect use of module.
61994         * tests/test-strerror.c: New file.
61995         * modules/strerror-tests: New test module.
61996         * modules/argp (Depends-on): Add strerror.
61997         * modules/error (Depends-on): Likewise.
61998         Reported by Martin Koeppe.
61999
62000 2007-09-24  Bruno Haible  <bruno@clisp.org>
62001
62002         * README: Update git instructions.
62003
62004 2007-09-24  Eric Blake  <ebb9@byu.net>
62005
62006         Revert fpending breakage from 2007-09-08.
62007         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62008         __fpending.c.
62009
62010 2007-09-24  Jim Meyering  <jim@meyering.net>
62011
62012         filenamecat.c: Add a test.
62013         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62014         showing how the function works when DIR is the empty string.
62015
62016 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62017
62018         * tests/test-canonicalize.sh: Turn on executable bit.
62019
62020 2007-09-19  Eric Blake  <ebb9@byu.net>
62021
62022         * README: Update CVS instructions.
62023
62024 2007-09-18  Bruno Haible  <bruno@clisp.org>
62025
62026         * modules/areadlink: New file.
62027         * lib/areadlink.h (areadlink): New declaration.
62028         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62029
62030 2007-09-17  Jim Meyering  <jim@meyering.net>
62031
62032         * lib/savewd.c (ESTALE) [!defined]: Define.
62033         Reported to be required on Interix by Martin Koeppe.
62034
62035 2007-09-17  Bruno Haible  <bruno@clisp.org>
62036
62037         * gnulib-tool (func_version): Use $version.
62038
62039 2007-09-16  Bruno Haible  <bruno@clisp.org>
62040
62041         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62042         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62043         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62044         Reported by Greg Schafer <gschafer@zip.com.au>.
62045
62046 2007-09-15  Bruno Haible  <bruno@clisp.org>
62047
62048         * gnulib-tool (sed): Try a little harder to make bash understand the
62049         alias.
62050         Reported by Bruce Korb <bruce.korb@gmail.com>.
62051
62052 2007-09-13  Eric Blake  <ebb9@byu.net>
62053
62054         * ChangeLog: Remove conflict markers.
62055
62056 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62057
62058         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62059         Reported by Bruno Haible <bruno@clisp.org>.
62060
62061 2007-09-12  Bruno Haible  <bruno@clisp.org>
62062
62063         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62064         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62065         is not defined.
62066
62067 2007-09-12  Eric Blake  <ebb9@byu.net>
62068
62069         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62070         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62071         Autoconf definition.
62072         * modules/euidaccess (Depends-on): Add extensions, for
62073         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62074         * modules/fnmatch (Depends-on): Likewise.
62075         * modules/getaddrinfo (Depends-on): Likewise.
62076         * modules/getdelim (Depends-on): Likewise.
62077         * modules/getline (Depends-on): Likewise.
62078         * modules/getsubopt (Depends-on): Likewise.
62079         * modules/gettext (Depends-on): Likewise.
62080         * modules/group-member (Depends-on): Likewise.
62081         * modules/mbchar (Depends-on): Likewise.
62082         * modules/memmem (Depends-on): Likewise.
62083         * modules/mempcpy (Depends-on): Likewise.
62084         * modules/memrchr (Depends-on): Likewise.
62085         * modules/pagealign_alloc (Depends-on): Likewise.
62086         * modules/readutmp (Depends-on): Likewise.
62087         * modules/stpcpy (Depends-on): Likewise.
62088         * modules/stpncpy (Depends-on): Likewise.
62089         * modules/strchrnul (Depends-on): Likewise.
62090         * modules/strndup (Depends-on): Likewise.
62091         * modules/strsep (Depends-on): Likewise.
62092         * modules/strverscmp (Depends-on): Likewise.
62093         * modules/vasprintf (Depends-on): Likewise.
62094         * modules/wcwidth (Depends-on): Likewise.
62095         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62096         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62097         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62098         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62099         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62100         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62101         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62102         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62103         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62104         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62105         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62106         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62107         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62108         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62109         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62110         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62111         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62112         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62113         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62114         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62115         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62116         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62117         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62118         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62119         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62121         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62122         so that lock.m4 can be used in gettext without extensions module.
62123
62124 2007-09-11  Bruno Haible  <bruno@clisp.org>
62125
62126         * m4/isc-posix.m4: Remove file.
62127         Suggested by Eric Blake.
62128
62129 2007-09-11  Eric Blake  <ebb9@byu.net>
62130
62131         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62132
62133 2007-09-10  Bruno Haible  <bruno@clisp.org>
62134
62135         * posix-modules: Fix typo in error message.
62136         Reported by Matt <mkraai@beckman.com>.
62137
62138 2007-09-09  Bruno Haible  <bruno@clisp.org>
62139
62140         * doc/functions/getdelim.texi: Update list of platforms lacking the
62141         function.
62142         * doc/functions/getline.texi: Likewise.
62143
62144 2007-09-09  Jim Meyering  <jim@meyering.net>
62145
62146         * lib/hash.c (hash_initialize): Detect calloc failure.
62147         Reported by Bruno Haible.
62148
62149 2007-09-09  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62152         malloc or realloc fails.
62153
62154 2007-09-09  Bruno Haible  <bruno@clisp.org>
62155
62156         * modules/getcwd (Depends-on): Add malloc-posix.
62157         * modules/glob (Depends-on): Likewise.
62158         * modules/putenv (Depends-on): Likewise.
62159         * modules/strdup (Depends-on): Likewise.
62160         * modules/getdelim (Depends-on): Add realloc-posix.
62161         * modules/read-file (Depends-on): Likewise.
62162
62163 2007-09-09  Bruno Haible  <bruno@clisp.org>
62164
62165         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62166         (gl_FUNC_MALLOC_POSIX): Require it.
62167         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62168         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62169         * modules/realloc (Files): Add m4/malloc.m4.
62170         * modules/calloc (Files): Likewise.
62171
62172 2007-09-09  Bruno Haible  <bruno@clisp.org>
62173
62174         * modules/malloc-posix: New file.
62175         * modules/malloc (Depends-on): Add malloc-posix.
62176         * lib/malloc.c: Include errno.h.
62177         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62178         and a POSIX-compatible malloc into a single function. Set ENOMEM
62179         when returning NULL.
62180         * m4/malloc.m4: New file.
62181         * doc/functions/malloc.texi: Mention the malloc-posix module.
62182         * lib/stdlib_.h (malloc): New declaration.
62183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62184         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62185         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62186         and HAVE_MALLOC_POSIX.
62187
62188 2007-09-09  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/realloc-posix: New file.
62191         * modules/realloc (Depends-on): Add realloc-posix.
62192         * lib/realloc.c: Include errno.h.
62193         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62194         and a POSIX-compatible realloc into a single function. Set ENOMEM
62195         when returning NULL.
62196         * m4/realloc.m4: New file.
62197         * doc/functions/realloc.texi: Mention the realloc-posix module.
62198         * lib/stdlib_.h (realloc): New declaration.
62199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62200         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62201         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62202         and HAVE_REALLOC_POSIX.
62203
62204 2007-09-09  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/calloc-posix: New file.
62207         * modules/calloc (Depends-on): Add calloc-posix.
62208         * lib/calloc.c: Include errno.h.
62209         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62210         and a POSIX-compatible calloc into a single function. Set ENOMEM
62211         when returning NULL.
62212         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62213         * doc/functions/calloc.texi: Mention the calloc-posix module.
62214         * lib/stdlib_.h (calloc): New declaration.
62215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62216         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62217         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62218         and HAVE_CALLOC_POSIX.
62219
62220 2007-09-09  Bruno Haible  <bruno@clisp.org>
62221
62222         Allow for modules to show an arbitrary notice.
62223         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62224         * gnulib-tool: New option --extract-notice.
62225         (func_usage): Document it.
62226         (sed_extract_prog): Update.
62227         (func_get_notice): New function.
62228         (func_modules_notice): New function.
62229         (func_import, func_create_testdir): Invoke it.
62230         Suggested by Jim Meyering.
62231
62232 2007-09-09  Bruno Haible  <bruno@clisp.org>
62233
62234         * gnulib-tool: New options --verbose, --quiet.
62235         (func_usage): Document them.
62236         (verbose): New variable.
62237         (func_execute_command): New function.
62238         (func_import): Don't show the module list and the file list if
62239         $verbose < 0.
62240         (func_create_testdir): Likewise. Use func_execute_command.
62241         (func_create_megatestdir): Use func_execute_command.
62242
62243 2007-09-08  Bruno Haible  <bruno@clisp.org>
62244
62245         * gnulib-tool (func_import): Prefer rsync over wget when available,
62246         for fetching the PO files.
62247
62248 2007-09-08  Bruno Haible  <bruno@clisp.org>
62249
62250         * posix-modules: New file. Portions copied from gnulib-tool.
62251         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62252
62253 2007-09-08  Jim Meyering  <jim@meyering.net>
62254
62255         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62256         * lib/fpending.h: Rename from __fpending.h.
62257         * lib/fpending.c: Rename from __fpending.c.
62258         Include "fpending.h", not "__fpending.h".
62259         * lib/__fpending.h, lib/__fpending.c: Remove files.
62260         * modules/fpending (Files): Reflect new file names.
62261         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62262
62263 2007-09-08  Bruno Haible  <bruno@clisp.org>
62264
62265         * m4/inttypes-h.m4: Remove stub file.
62266
62267 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62268
62269         * doc/headers/stdint.texi: Discuss #include_next issue.
62270
62271 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62272
62273         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62274
62275 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62276
62277         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62278         in variable name.
62279
62280 2007-09-03  Jim Meyering  <jim@meyering.net>
62281
62282         New module: git-version-gen.
62283         * modules/git-version-gen: New file.
62284
62285         Import changes from coreutils for bootstrap script.
62286
62287         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62288
62289         bootstrap: uses rsync to download the .po files
62290         * build-aux/bootstrap (po_download_command_format): New global.
62291         (download_po_files): Use rsync.
62292         (update_po_files): Don't remove .po files after download,
62293         so future rsync runs can take advantage of the copies.
62294
62295         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62296
62297         Solve the unnecessary-.po-file-regeneration problem once and for all.
62298         * build-aux/bootstrap (download_po_files): New function, renamed from
62299         get_translations.  Now, downloads, but doesn't update LINGUAS.
62300         (update_po_files): New function.
62301
62302         bootstrap: Ignore more.
62303         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62304         uniwidth to e.g., lib/.gitignore.
62305         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62306
62307         * build-aux/bootstrap: New setting: vc_ignore.
62308         (insert_sorted_if_absent): Create $file if absent.
62309         Adapt to new, possibly empty, list: $vc_ignore.
62310
62311         bootstrap: generate more ignorable names
62312         * build-aux/bootstrap (slurp): When generating ignorable names,
62313         also map .sin to .sed, .gperf to .c, and .y to .c.
62314
62315 2007-09-03  Jim Meyering  <jim@meyering.net>
62316
62317         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62318         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62319
62320 2007-09-02  Bruno Haible  <bruno@clisp.org>
62321
62322         Fix mis-recognition of 'mcs' on QNX 6.
62323         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62324         output contains the string "Mono".
62325         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62326         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62327
62328 2007-09-01  Bruno Haible  <bruno@clisp.org>
62329
62330         Fix collision between uniwidth/* and linebreak modules.
62331         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62332         u32_width): Remove declarations.
62333         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62334         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62335         streq3, streq2, streq1, streq0): Remove functions.
62336         (STREQ): Remove macro.
62337         (is_cjk_encoding): Remove function.
62338         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62339         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62340         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62341         * NEWS: Document the change.
62342
62343 2007-09-01  Bruno Haible  <bruno@clisp.org>
62344
62345         * lib/streq.h: Add double-inclusion guard.
62346
62347 2007-09-01  Karl Berry  <karl@gnu.org>
62348
62349         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62350
62351 2007-08-28  Jim Meyering  <jim@meyering.net>
62352
62353         Rename mreadlink_with_size to areadlink_with_size.
62354         * NEWS: Document the change.
62355         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62356         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62357         * lib/mreadlink.h: Rename this to...
62358         * lib/areadlink.h: ...this.
62359         * modules/mreadlink-with-size: Rename this to...
62360         * modules/areadlink-with-size: ...this.
62361         * lib/canonicalize.c: Reflect the renaming.
62362         * modules/canonicalize: Likewise.
62363
62364 2007-08-26  Bruno Haible  <bruno@clisp.org>
62365
62366         * gnulib-tool (func_import): When deciding which files to remove,
62367         consider also dangling symbolic links.
62368         Reported by Eric Blake.
62369
62370 2007-08-26  Bruno Haible  <bruno@clisp.org>
62371
62372         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62373
62374 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62375
62376         * lib/readline.c: Don't include getline.h, the prototype is now
62377         found in stdio.h.
62378
62379 2007-08-23  Jim Meyering  <jim@meyering.net>
62380
62381         Getdelim touchup.
62382         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62383         around the funlockfile call, since funlockfile never sets errno.
62384         Don't set errno upon failed realloc.
62385
62386 2007-08-22  Eric Blake  <ebb9@byu.net>
62387
62388         Getline touchups.
62389         * lib/getdelim.c (getdelim): Revert regression that required *n to
62390         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62391         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62392         getdelim, rather than whether implementation is missing.
62393         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62394         * lib/stdio_.h (getline): Also declare if replacement is
62395         required.
62396         * doc/functions/getdelim.texi: New file.
62397         * doc/functions/getline.texi: Likewise.
62398         * doc/gnulib.texi (Function Substitutes): Add new files.
62399         Reported by Bruno Haible.
62400
62401 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62402
62403         * users.txt: Add Guile.
62404
62405 2007-08-22  Eric Blake  <ebb9@byu.net>
62406
62407         * tests/test-getdelim.c (main): Use remove, not unlink.
62408         * tests/test-getline.c (main): Likewise.
62409
62410         Move getline and getdelim into stdio.h, per POSIX 200x.
62411         * modules/getline (Files): Remove getline.h.
62412         (Depends-on): Add stdio.
62413         (configure.ac): Add module indicator.
62414         * modules/getdelim (Files): Remove getdelim.h.
62415         (Depends-on): Add stdio.
62416         (configure.ac): Add module indicator.
62417         * modules/stdio (Makefile.am): Work with new indicators.
62418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62419         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62420         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62421         * lib/getdelim.h: Delete.
62422         * lib/getline.h: Delete.
62423         * lib/stdio_.h (getdelim, getline): Declare.
62424         * modules/getdelim-tests: New module.
62425         * modules/getline-tests: Likewise.
62426         * tests/test-getdelim.c: New file.
62427         * tests/test-getline.c: Likewise.
62428         * NEWS: Document the change.
62429         * lib/getline.c: Update choice of header.
62430         * lib/csharpcomp.c: Likewise.
62431         * lib/getpass.c: Likewise.
62432         * lib/javacomp.c: Likewise.
62433         * lib/javaversion.c: Likewise.
62434         * lib/yesno.c: Likewise.
62435         * lib/getdelim.c: Likewise.
62436         (getdelim): Set errno on failure, and avoid memory leak.
62437
62438 2007-08-19  Bruno Haible  <bruno@clisp.org>
62439
62440         * modules/closein (Depends-on): Add freadahead.
62441         * lib/closein.c: Include freadahead.h.
62442         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62443         is zero.
62444
62445 2007-08-19  Bruno Haible  <bruno@clisp.org>
62446
62447         * modules/freadahead-tests: New file.
62448         * tests/test-freadahead.sh: New file.
62449         * tests/test-freadahead.c: New file.
62450
62451         * modules/freadahead: New file.
62452         * lib/freadahead.h: New file.
62453         * lib/freadahead.c: New file.
62454         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62455         fbufmode, fpurge, freadable, fwritable.
62456
62457 2007-08-19  Eric Blake  <ebb9@byu.net>
62458
62459         Test yesno in combination with closein.
62460         * lib/yesno.c (yesno): Document use of stdin.
62461         * modules/yesno-tests (Files): New module.
62462         * tests/test-yesno.c (main): New file.
62463         * tests/test-yesno.sh: Likewise.
62464
62465 2007-08-19  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62468         * lib/fseeko.c (rpl_fseeko): Likewise.
62469         * lib/fseterr.c (fseterr): Likewise.
62470
62471 2007-08-19  Bruno Haible  <bruno@clisp.org>
62472
62473         * tests/test-lseek.c (main): Disable a test for BeOS.
62474         * doc/functions/lseek.texi: Document the BeOS bug.
62475
62476 2007-08-19  Bruno Haible  <bruno@clisp.org>
62477             Eric Blake  <ebb9@byu.net>
62478
62479         * lib/lseek.c: Include <sys/stat.h>.
62480         (rpl_lseek): Add workaround code also for Unix platforms.
62481         Needed for BeOS.
62482         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62483         * doc/functions/lseek.texi: Document BeOS definiency.
62484
62485 2007-08-18  Bruno Haible  <bruno@clisp.org>
62486
62487         * modules/fstrcmp-tests: New file.
62488         * tests/test-fstrcmp.c: New file.
62489
62490 2007-08-18  Bruno Haible  <bruno@clisp.org>
62491
62492         * modules/fstrcmp: New file, from GNU gettext with modifications.
62493         * lib/fstrcmp.h: New file, from GNU gettext.
62494         * lib/fstrcmp.c: New file, from GNU gettext.
62495         * MODULES.html.sh (String handling): Add fstrcmp.
62496
62497 2007-08-18  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62500         'bool'.
62501         (diag, compareseq): Remove const from the ctxt argument.
62502         (USE_HEURISTIC): Undefine at the end.
62503
62504 2007-08-18  Jim Meyering  <jim@meyering.net>
62505
62506         New file: lib/idcache.h
62507         * NEWS: Mention the addition.
62508         * modules/idcache (Files): Add lib/idcache.h
62509         * lib/idcache.c: Include "idcache.h".
62510         Don't include <sys/types.h>.
62511         Add a FIXME comment.
62512         Move file-scoped "static" declarations to the top.
62513         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62514
62515 2007-08-17  Bruno Haible  <bruno@clisp.org>
62516         and Paul Eggert  <eggert@cs.ucla.edu>
62517
62518         * MODULES.html.sh: Add diffseq.
62519         * modules/diffseq: New file.
62520         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62521         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62522
62523 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62524
62525         Import changes from coreutils for bootstrap script.
62526
62527         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * build-aux/bootstrap (slurp): Work even in environments where
62530         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62531         current code does not slurp files whose names start with ".", and
62532         this looks like it might be a troublesome area.
62533
62534         2007-07-11  Jim Meyering  <jim@meyering.net>
62535
62536         If there's a GPL vN copyright comment, require that N == 3.
62537
62538         2007-07-08  Jim Meyering  <jim@meyering.net>
62539
62540         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62541         * build-aux/bootstrap (mam_template): Move definition out of loop.
62542
62543         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62544
62545         * build-aux/bootstrap (symlink_to_dir): Rename function from
62546         symlink_to_gnulib.  Add a directory parameter.  Update all
62547         callers.
62548         (cp_mark_as_generated): Also check for -- and link to -- files in
62549         gl/.
62550
62551         2007-07-08  Jim Meyering  <jim@meyering.net>
62552
62553         Adapt to deeper hierarchy in gnulib.
62554         * build-aux/bootstrap (symlink_to_dir): If the destination
62555         directory doesn't exist, create it. This is required at least for
62556         "lib/uniwidth/cjk.h".
62557
62558         2007-05-15  Jim Meyering  <jim@meyering.net>
62559
62560         * build-aux/bootstrap: Now that generated Makefile.am files
62561         are no longer under version control, they must be created at
62562         bootstrap time.
62563
62564 2007-08-14  Ben Pfaff  <blp@gnu.org>
62565
62566         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62567
62568 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62569
62570         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62571         given the changes below.
62572         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62573         even on hosts that have padding bits beyond the supported 64.
62574
62575 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62576
62577         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62578         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62579         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62580         depends on it.
62581         (xstrtol_error): Remove.
62582         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62583         but with a different signature.
62584         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62585         * lib/xstrtol-error.c: Include exitfail.h.
62586         (xstrtol_fatal): New function, with a different signature from the
62587         old xstrtol_error, so that the caller need not worry about passing
62588         in an exit status, or about storage management of the option argument.
62589         (xstrtol_error): Now a static function.  Redo signature to
62590         implement xstrtol_fatal.  Output the correct number of hyphens in
62591         front of the option so that the caller need not worry about
62592         storage management.
62593         (N_): New macro.
62594         (_): Remove; not used now.
62595         * modules/xstrtol: Depend on getopt.
62596         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62597         of old STRTOL_FATAL_ERROR macro.
62598         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62599         of test program.
62600         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62601         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62602
62603 2007-08-08  Eric Blake  <ebb9@byu.net>
62604
62605         * lib/xstrtol-error.c: Add missing include.
62606
62607         Move xstrtol messages into gnulib domain, when --pobase is used.
62608         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62609         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62610         * modules/xstrtol (Files): Distribute new file.
62611         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62612         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62613         * tests/test-xstrtol.c: ...into new file.
62614         * tests/test-xstrtoul.c: Also test xstrtoul.
62615         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62616         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62617         * tests/test-xstrtol.sh: Drive the tests.
62618         * tests/test-xstrtoimax.sh: Likewise.
62619         * tests/test-xstrtoumax.sh: Likewise.
62620         * modules/xstrtol-tests: New module.
62621         * modules/xstrtoimax-tests: Likewise.
62622         * modules/xstrtoumax-tests: Likewise.
62623
62624 2007-08-08  Jim Meyering  <jim@meyering.net>
62625
62626         New function: mfile_name_concat.
62627         * lib/filenamecat.c (mfile_name_concat): New function, just like
62628         file_name_concat, but return NULL upon failure rather than exiting
62629         with a diagnostic.
62630         * lib/filenamecat.h: Declare it.
62631
62632 2007-08-07  Bruno Haible  <bruno@clisp.org>
62633
62634         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62635         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62636         warning from gcc.
62637         Reported by Eric Blake.
62638
62639 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62640
62641         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62642         * modules/crypto/arcfour (License): Likewise.
62643         * modules/crypto/des-tests (License): Likewise.
62644         * modules/crypto/gc-arctwo-tests (License): Likewise.
62645         * modules/crypto/gc-des-tests (License): Likewise.
62646         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62647         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62648         * modules/crypto/gc-md2-tests (License): Likewise.
62649         * modules/crypto/gc-md4-tests (License): Likewise.
62650         * modules/crypto/gc-md5-tests (License): Likewise.
62651         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62652         * modules/crypto/gc-rijndael-tests (License): Likewise.
62653         * modules/crypto/gc-sha1-tests (License): Likewise.
62654         * modules/crypto/gc-tests (License): Likewise.
62655         * modules/crypto/hmac-md5 (License): Likewise.
62656         * modules/crypto/hmac-sha1 (License): Likewise.
62657         * modules/crypto/md2-tests (License): Likewise.
62658         * modules/crypto/md4-tests (License): Likewise.
62659         * modules/crypto/md5 (License): Likewise.
62660         * modules/crypto/rijndael (License): Likewise.
62661         * modules/crypto/sha1 (License): Likewise.
62662         * modules/memxor (License): Likewise.
62663
62664 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62665         and Bruno Haible  <bruno@clisp.org>
62666
62667         * NEWS: Describe interface changes to human, xstrtol.
62668         * lib/human.h: Include <xstrtol.h>.
62669         (human_options): Return enum strtol_error, not int.  Remove
62670         bool arg; take int * instead.
62671         * lib/human.c: Don't include "gettext.h".
62672         (_): Remove; no longer used.
62673         Don't include <xstrtol.h>, since human.h does it.
62674         (human_options): Adjust to abovementioned interface changes.
62675         Do not report error to stderr; that's now the caller's
62676         responsibility.
62677         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62678         interface change.
62679         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62680         Str, Argument_type_string.  All uses changed.  Put " argument"
62681         in diagnostics to make them clearer.  Change wording of suffix
62682         message for clarity.
62683         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62684         Argument_type_string.
62685         (STRTOL_FATAL_WARN): Remove; no longer used.
62686         * modules/human (Depends-on): Remove gettext-h.
62687
62688 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62689
62690         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62691
62692 2007-07-31  Bruno Haible  <bruno@clisp.org>
62693
62694         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62695         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62696         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62697
62698 2007-07-31  Bruno Haible  <bruno@clisp.org>
62699
62700         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62701         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62702
62703 2007-07-30  Bruno Haible  <bruno@clisp.org>
62704
62705         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62706         * modules/c-ctype (License): Likewise.
62707         * modules/c-strcase (License): Likewise.
62708         * modules/check-version (License): Likewise.
62709         * modules/iconv (License): Likewise.
62710         * modules/iconv_open (License): Likewise.
62711         * modules/read-file (License): Likewise.
62712         * modules/striconv (License): Likewise.
62713         * modules/strverscmp (License): Likewise.
62714         * modules/vasprintf (License): Likewise.
62715         * modules/crypto/des (License): Likewise.
62716         * modules/crypto/gc (License): Likewise.
62717         * modules/crypto/gc-arcfour (License): Likewise.
62718         * modules/crypto/gc-arctwo (License): Likewise.
62719         * modules/crypto/gc-des (License): Likewise.
62720         * modules/crypto/gc-hmac-md5 (License): Likewise.
62721         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62722         * modules/crypto/gc-md2 (License): Likewise.
62723         * modules/crypto/gc-md4 (License): Likewise.
62724         * modules/crypto/gc-md5 (License): Likewise.
62725         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62726         * modules/crypto/gc-random (License): Likewise.
62727         * modules/crypto/gc-rijndael (License): Likewise.
62728         * modules/crypto/gc-sha1 (License): Likewise.
62729         * modules/crypto/md2 (License): Likewise.
62730         * modules/crypto/md4 (License): Likewise.
62731
62732 2007-07-30  Jim Meyering  <jim@meyering.net>
62733
62734         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62735         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62736         it has valid stat data.  This bug would cause du not to count the
62737         sizes of inaccessible directories.
62738         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62739         in <http://bugzilla.redhat.com/250077>.
62740
62741 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62742             Bruno Haible  <bruno@clisp.org>
62743
62744         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62745         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62746         #include_next, gives a diagnostic about it, but reports no error in
62747         the exit code.
62748         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62749
62750 2007-07-24  Ben Pfaff  <blp@gnu.org>
62751
62752         Improve name: "count-one-bits" is better than "popcount".
62753         * MODULES.html.sh: Update name.
62754         * lib/popcount.h: Renamed lib/count-one-bits.h.
62755         (popcount): Renamed count_one_bits.
62756         (popcountl): Renamed count_one_bits_l.
62757         (popcountll): Renamed count_one_bits_ll.
62758         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62759         * modules/popcount: Renamed module/count-one-bits.
62760         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62761         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62762
62763 2007-07-23  Ben Pfaff  <blp@gnu.org>
62764
62765         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62766         better code generation, and add U to large constants to avoid
62767         warnings, in non-GCC case.
62768         Suggested by Bruno Haible.
62769
62770 2007-07-23  Ben Pfaff  <blp@gnu.org>
62771
62772         * lib/popcount.h: Use verify_true instead of if...abort.
62773         * modules/popcount: Depend on verify module.
62774         Suggested by Jim Meyering.
62775
62776 2007-07-23  Bruno Haible  <bruno@clisp.org>
62777
62778         * gnulib-tool (func_import): Create a .cvsignore file also when the
62779         directory is not yet in CVS but the toplevel directory is. When
62780         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62781         Reported by Karl Berry.
62782
62783 2007-07-22  Ben Pfaff  <blp@gnu.org>
62784
62785         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62786         case.
62787         Suggested by Eric Blake.
62788
62789 2007-07-22  Ben Pfaff  <blp@gnu.org>
62790
62791         New module: popcount.
62792         * MODULES.html.sh: Add popcount.
62793         * modules/popcount: New file.
62794         * modules/popcount-tests: New file.
62795         * tests/test-popcount.c: New file.
62796         * lib/popcount.h: New file.
62797         * m4/popcount.m4: New file.
62798
62799 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62800
62801         * build-aux/announce-gen: Update to GPLv3.
62802
62803         * build-aux/config.guess: Update from config.
62804
62805 2007-07-21  Bruno Haible  <bruno@clisp.org>
62806
62807         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62808         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62809
62810 2007-07-20  Jim Meyering  <jim@meyering.net>
62811
62812         * check-module: Diagnose a self-dependency.
62813
62814 2007-07-19  Bruno Haible  <bruno@clisp.org>
62815
62816         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62817         empty.
62818         Reported by Eric Blake.
62819
62820 2007-07-18  Bruno Haible  <bruno@clisp.org>
62821
62822         * gnulib-tool: New options --po-base, --po-domain.
62823         (func_usage): Document them.
62824         (pobase, po_domain): New variables.
62825         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62826         DEFAULT_TEXT_DOMAIN.
62827         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62828         (func_import): Consider pobase and po_domain. Create a po/ directory.
62829         (func_create_testdir): Set pobase and po_domain to empty.
62830         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62831         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62832
62833 2007-07-18  Bruno Haible  <bruno@clisp.org>
62834
62835         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62836         EXTRA_DIST augmentation for files in build-aux/.
62837
62838 2007-07-16  Bruno Haible  <bruno@clisp.org>
62839
62840         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62841         * modules/getdelim (License): Likewise.
62842
62843 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62844
62845         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62846         * modules/d-type (License): Likewise.
62847         * modules/extensions (License): Likewise.
62848         * modules/fnmatch (License): Likewise.
62849         * modules/fseeko (License): Likewise.
62850         * modules/getaddrinfo (License): Likewise.
62851         * modules/getline (License): Likewise.
62852         * modules/getlogin_r (License): Likewise.
62853         * modules/getpass (License): Likewise.
62854         * modules/gettimeofday (License): Likewise.
62855         * modules/glob (License): Likewise.
62856         * modules/inet_ntop (License): Likewise.
62857         * modules/malloc (License): Likewise.
62858         * modules/malloca (License): Likewise.
62859         * modules/memmem (License): Likewise.
62860         * modules/mempcpy (License): Likewise.
62861         * modules/memset (License): Likewise.
62862         * modules/minmax (License): Likewise.
62863         * modules/mktime (License): Likewise.
62864         * modules/netinet_in (License): Likewise.
62865         * modules/pathmax (License): Likewise.
62866         * modules/poll (License): Likewise.
62867         * modules/regex (License): Likewise.
62868         * modules/snprintf (License): Likewise.
62869         * modules/stdbool (License): Likewise.
62870         * modules/stdint (License): Likewise.
62871         * modules/stdio (License): Likewise.
62872         * modules/strcase (License): Likewise.
62873         * modules/strcasestr (License): Likewise.
62874         * modules/strdup (License): Likewise.
62875         * modules/string (License): Likewise.
62876         * modules/strndup (License): Likewise.
62877         * modules/strnlen (License): Likewise.
62878         * modules/strpbrk (License): Likewise.
62879         * modules/strptime (License): Likewise.
62880         * modules/strsep (License): Likewise.
62881         * modules/sys_select (License): Likewise.
62882         * modules/sys_socket (License): Likewise.
62883         * modules/sys_stat (License): Likewise.
62884         * modules/sys_time (License): Likewise.
62885         * modules/time (License): Likewise.
62886         * modules/time_r (License): Likewise.
62887         * modules/timegm (License): Likewise.
62888         * modules/unistd (License): Likewise.
62889         * modules/vsnprintf (License): Likewise.
62890         * modules/wctype (License): Likewise.
62891
62892 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62893
62894         * modules/argz (License): LGPLv2+.
62895
62896 2007-07-15  Karl Berry  <karl@gnu.org>
62897
62898         * doc/gnulib.texi: revise node structure per new fdl.texi.
62899
62900 2007-07-14  Bruno Haible  <bruno@clisp.org>
62901
62902         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62903         the output file.
62904         * lib/uniname/uninames.h: Regenerated.
62905
62906 2007-07-14  Karl Berry  <karl@gnu.org>
62907
62908         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62909         omitting sectioning and index commands.
62910
62911 2007-07-13  Bruno Haible  <bruno@clisp.org>
62912
62913         New gnulib-tool option --more-symlinks.
62914         * gnulib-tool (func_usage): Document --more-symlinks.
62915         (do_copyrights): New variable.
62916         Recognize option --more-symlinks.
62917         (func_import): Don't add a copyright notice transform to
62918         sed_transform_lib_file if do_copyrights is empty.
62919
62920 2007-07-13  Bruno Haible  <bruno@clisp.org>
62921
62922         * lib/vasnprintf.c (decimal_point_char): Define also if
62923         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62924         && !NEED_PRINTF_DIRECTIVE_A.
62925         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62926         Gary V. Vaughan <gary@gnu.org>.
62927
62928 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62929
62930         * lib/inttypes_.h: Undo previous change, since it was fixed
62931         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62932
62933 2007-07-13  Bruno Haible  <bruno@clisp.org>
62934
62935         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62936         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62937
62938 2007-07-13  Jim Meyering  <jim@meyering.net>
62939
62940         df: Don't fail for Tru64's "file-on-file mount".
62941         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62942         so we fall through and use statfs instead.  Details here:
62943         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62944         Reported by Albert Chin.
62945
62946 2007-07-13  Bruno Haible  <bruno@clisp.org>
62947
62948         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62949         * modules/configmake (License): Likewise.
62950         * modules/gettext (License): Likewise.
62951         * modules/gettext-h (License): Likewise.
62952         * modules/include_next (License): Likewise.
62953         * modules/link-warning (License): Likewise.
62954         * modules/localcharset (License): Likewise.
62955         * modules/localename (License): Likewise.
62956         * modules/lock (License): Likewise.
62957         * modules/relocatable-lib-lgpl (License): Likewise.
62958         * modules/size_max (License): Likewise.
62959         * modules/vasnprintf (License): Likewise.
62960         * modules/wchar (License): Likewise.
62961         * modules/xsize (License): Likewise.
62962
62963 2007-07-13  Bruno Haible  <bruno@clisp.org>
62964
62965         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62966         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62967
62968 2007-07-12  Bruno Haible  <bruno@clisp.org>
62969
62970         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62971         in the modules files.
62972
62973 2007-07-11  Karl Berry  <karl@gnu.org>
62974
62975         * MODULES.html.sh (func_module): use
62976          sed -e '\|^'"${includefile}"'$|d'
62977          instead of /.../d, to avoid errors on $includefile's containing /.
62978
62979 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62980
62981         * gnulib-tool (func_import): Avoid duplication of --avoid
62982         statements
62983         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62984         names to `_' in variable names.
62985
62986 2007-07-10  Eric Blake  <ebb9@byu.net>
62987
62988         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62989         * NEWS: Document this change.
62990
62991 2007-07-08  Bruno Haible  <bruno@clisp.org>
62992
62993         Update to Unicode 5.0.
62994         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62995         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62996         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62997         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62998         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62999         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63000         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63001         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63002         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63003         U+10A3F, U+1D242..U+1D244.
63004         (nonspacing_table_ind): Update.
63005         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63006         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63007
63008 2007-07-08  Bruno Haible  <bruno@clisp.org>
63009
63010         Update to Unicode 5.0.
63011         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63012         code transform. Extend the name index field of unicode_name_to_code and
63013         unicode_code_to_name from 16 to 24 bits.
63014         * lib/uniname/uniname.c (unicode_character_name,
63015         unicode_name_character): Add the range 0x12xxx to the code transform.
63016         * lib/uniname/uninames.h: Regenerated.
63017         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63018
63019 2007-07-07  Bruno Haible  <bruno@clisp.org>
63020
63021         * modules/wcwidth-tests: New file.
63022         * tests/test-wcwidth.c: New file.
63023
63024         Work around MacOS X wcwidth() bug.
63025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63026         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63027         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63028         original wcwidth in non-UTF-8 locales.
63029         * modules/wcwidth (Depends-on): Add localcharset, streq,
63030         uniwidth/width.
63031         * doc/functions/wcwidth.texi: Update.
63032
63033 2007-07-07  Bruno Haible  <bruno@clisp.org>
63034
63035         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63036         (wcwidth): New declaration.
63037         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63038         macros.
63039         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63040         here. Prepare for creating <wchar.h> unconditionally.
63041         * modules/wchar (Depends-on): Add link-warning.
63042         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63043         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63044         * lib/wcwidth.h: Remove file.
63045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63046         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63047         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63048         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63049         (Include): Replace wcwidth.h with <wchar.h>.
63050         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63051         * lib/mbchar.h: Don't include wcwidth.h.
63052         * lib/mbswidth.c: Likewise.
63053         * NEWS: Mention the change.
63054
63055 2007-07-07  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63058         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63059         definition with an external declaration.
63060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63061         defined as a function. Remove AC_C_INLINE requirement.
63062         * modules/wcwidth (Files): Add lib/wcwidth.c.
63063         (Makefile.am): Remove redundant statement.
63064
63065 2007-07-07  Bruno Haible  <bruno@clisp.org>
63066
63067         * MODULES.html.sh (Unicode string functions): Add the new modules.
63068
63069         * tests/uniwidth/test-u32-strwidth.c: New file.
63070         * modules/uniwidth/u32-strwidth-tests: New file.
63071
63072         * lib/uniwidth/u32-strwidth.c: New file.
63073         * modules/uniwidth/u32-strwidth: New file.
63074
63075         * tests/uniwidth/test-u16-strwidth.c: New file.
63076         * modules/uniwidth/u16-strwidth-tests: New file.
63077
63078         * lib/uniwidth/u16-strwidth.c: New file.
63079         * modules/uniwidth/u16-strwidth: New file.
63080
63081         * tests/uniwidth/test-u8-strwidth.c: New file.
63082         * modules/uniwidth/u8-strwidth-tests: New file.
63083
63084         * lib/uniwidth/u8-strwidth.c: New file.
63085         * modules/uniwidth/u8-strwidth: New file.
63086
63087         * tests/uniwidth/test-u32-width.c: New file.
63088         * modules/uniwidth/u32-width-tests: New file.
63089
63090         * lib/uniwidth/u32-width.c: New file.
63091         * modules/uniwidth/u32-width: New file.
63092
63093         * tests/uniwidth/test-u16-width.c: New file.
63094         * modules/uniwidth/u16-width-tests: New file.
63095
63096         * lib/uniwidth/u16-width.c: New file.
63097         * modules/uniwidth/u16-width: New file.
63098
63099         * tests/uniwidth/test-u8-width.c: New file.
63100         * modules/uniwidth/u8-width-tests: New file.
63101
63102         * lib/uniwidth/u8-width.c: New file.
63103         * modules/uniwidth/u8-width: New file.
63104
63105         * tests/uniwidth/test-uc_width.c: New file.
63106         * modules/uniwidth/width-tests: New file.
63107
63108         * lib/uniwidth/width.c: New file, from GNU libiconv.
63109         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63110         * modules/uniwidth/width: New file.
63111
63112         * lib/uniwidth.h: New file, from GNU libiconv.
63113         * modules/uniwidth/base: New file.
63114
63115 2007-07-07  Bruno Haible  <bruno@clisp.org>
63116
63117         * lib/uniname.h: New file, from GNU gettext.
63118         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63119         * lib/uniname/uninames.h: New file, from GNU gettext.
63120         * lib/uniname/uniname.c: New file, from GNU gettext.
63121         * tests/uniname/test-uninames.sh: New file.
63122         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63123         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63124         * modules/uniname/base: New file.
63125         * modules/uniname/uniname: New file.
63126         * modules/uniname/uniname-tests: New file.
63127         * MODULES.html.sh (Unicode string functions): Add the new modules.
63128
63129 2007-07-06  Bruno Haible  <bruno@clisp.org>
63130
63131         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63132
63133 2007-07-06  Bruno Haible  <bruno@clisp.org>
63134
63135         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63136         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63137         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63138         include <sys/time.h>.
63139         Reported by Eric Blake.
63140
63141 2007-07-06  Eric Blake  <ebb9@byu.net>
63142
63143         Fix testing canonicalize on cygwin.
63144         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63145         Revert patch from 2007-06-19.
63146         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63147         canonicalize module is also in use.
63148         * tests/test-canonicalize.c: New file.
63149         * tests/test-canonicalize.sh: Likewise.
63150         * modules/canonicalize-tests: Likewise.
63151
63152 2007-07-06  Jim Meyering  <jim@meyering.net>
63153
63154         * lib/getugroups.c (getugroups): Detect getgrent failure.
63155         Adjust comment to reflect reality: this function may return -1.
63156
63157 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63158
63159         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63160         the new TP address.
63161         (usage): Fix typo
63162         (gnulib_mk): New variable.
63163
63164 2007-07-05  Jim Meyering  <jim@meyering.net>
63165
63166         Don't let endgrent clobber errno, no matter how improbable.
63167         * lib/getugroups.c (getugroups): Save and restore errno around
63168         endgrent call.
63169
63170         Close the group DB even when failing with 2^31 or more members.
63171         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63172
63173 2007-07-04  Jim Meyering  <jim@meyering.net>
63174
63175         * lib/getugroups.h: New file.
63176         * lib/getugroups.c: Include "getugroups.h".
63177         Remove uses of "register" keyword.
63178         Move local variable, "cp", down into scope where used.
63179         Give "username" parameter the "const" attribute.
63180         * modules/getugroups (Files): Add lib/getugroups.h
63181
63182 2007-07-04  Karl Berry  <karl@gnu.org>
63183
63184         * MODULES.html.sh (func_all_modules): Complete rename of
63185         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63186
63187 2007-07-02  Bruno Haible  <bruno@clisp.org>
63188
63189         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63190         mode, when inttypes.h comes from gnulib.
63191         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63192
63193 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63194
63195         * NEWS: Mention lgpl module name change.
63196
63197         * modules/lgpl-2.1: Renamed from lgpl.
63198
63199         * NEWS: Mention gpl module name change.
63200
63201         * modules/gpl-3.0: New file, based on gpl-2.0.
63202
63203         * modules/gpl-2.0: Renamed from gpl.
63204
63205         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63206         doc/gpl-2.0.texi.
63207
63208 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63209
63210         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63211         #define __STDC_LIMIT_MACROS temporarily while including
63212         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63213         Problem reported by Joel E. Denny in
63214         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63215
63216 2007-07-01  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/unistdio.h: New file.
63219         * lib/unistdio/u-asnprintf.h: New file.
63220         * lib/unistdio/u-asprintf.h: New file.
63221         * lib/unistdio/u-printf-args.c: New file.
63222         * lib/unistdio/u-printf-args.h: New file.
63223         * lib/unistdio/u-printf-parse.h: New file.
63224         * lib/unistdio/u-snprintf.h: New file.
63225         * lib/unistdio/u-sprintf.h: New file.
63226         * lib/unistdio/u-vasprintf.h: New file.
63227         * lib/unistdio/u-vsnprintf.h: New file.
63228         * lib/unistdio/u-vsprintf.h: New file.
63229         * lib/unistdio/ulc-asnprintf.c: New file.
63230         * lib/unistdio/ulc-asprintf.c: New file.
63231         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63232         * lib/unistdio/ulc-printf-parse.c: New file.
63233         * lib/unistdio/ulc-snprintf.c: New file.
63234         * lib/unistdio/ulc-sprintf.c: New file.
63235         * lib/unistdio/ulc-vasnprintf.c: New file.
63236         * lib/unistdio/ulc-vasprintf.c: New file.
63237         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63238         * lib/unistdio/ulc-vsnprintf.c: New file.
63239         * lib/unistdio/ulc-vsprintf.c: New file.
63240         * lib/unistdio/u8-asnprintf.c: New file.
63241         * lib/unistdio/u8-asprintf.c: New file.
63242         * lib/unistdio/u8-printf-parse.c: New file.
63243         * lib/unistdio/u8-snprintf.c: New file.
63244         * lib/unistdio/u8-sprintf.c: New file.
63245         * lib/unistdio/u8-vasnprintf.c: New file.
63246         * lib/unistdio/u8-vasprintf.c: New file.
63247         * lib/unistdio/u8-vsnprintf.c: New file.
63248         * lib/unistdio/u8-vsprintf.c: New file.
63249         * lib/unistdio/u8-u8-asnprintf.c: New file.
63250         * lib/unistdio/u8-u8-asprintf.c: New file.
63251         * lib/unistdio/u8-u8-snprintf.c: New file.
63252         * lib/unistdio/u8-u8-sprintf.c: New file.
63253         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63254         * lib/unistdio/u8-u8-vasprintf.c: New file.
63255         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63256         * lib/unistdio/u8-u8-vsprintf.c: New file.
63257         * lib/unistdio/u16-asnprintf.c: New file.
63258         * lib/unistdio/u16-asprintf.c: New file.
63259         * lib/unistdio/u16-printf-parse.c: New file.
63260         * lib/unistdio/u16-snprintf.c: New file.
63261         * lib/unistdio/u16-sprintf.c: New file.
63262         * lib/unistdio/u16-vasnprintf.c: New file.
63263         * lib/unistdio/u16-vasprintf.c: New file.
63264         * lib/unistdio/u16-vsnprintf.c: New file.
63265         * lib/unistdio/u16-vsprintf.c: New file.
63266         * lib/unistdio/u16-u16-asnprintf.c: New file.
63267         * lib/unistdio/u16-u16-asprintf.c: New file.
63268         * lib/unistdio/u16-u16-snprintf.c: New file.
63269         * lib/unistdio/u16-u16-sprintf.c: New file.
63270         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63271         * lib/unistdio/u16-u16-vasprintf.c: New file.
63272         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63273         * lib/unistdio/u16-u16-vsprintf.c: New file.
63274         * lib/unistdio/u32-asnprintf.c: New file.
63275         * lib/unistdio/u32-asprintf.c: New file.
63276         * lib/unistdio/u32-printf-parse.c: New file.
63277         * lib/unistdio/u32-snprintf.c: New file.
63278         * lib/unistdio/u32-sprintf.c: New file.
63279         * lib/unistdio/u32-vasnprintf.c: New file.
63280         * lib/unistdio/u32-vasprintf.c: New file.
63281         * lib/unistdio/u32-vsnprintf.c: New file.
63282         * lib/unistdio/u32-vsprintf.c: New file.
63283         * lib/unistdio/u32-u32-asnprintf.c: New file.
63284         * lib/unistdio/u32-u32-asprintf.c: New file.
63285         * lib/unistdio/u32-u32-snprintf.c: New file.
63286         * lib/unistdio/u32-u32-sprintf.c: New file.
63287         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63288         * lib/unistdio/u32-u32-vasprintf.c: New file.
63289         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63290         * lib/unistdio/u32-u32-vsprintf.c: New file.
63291         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63292         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63293         * tests/unistdio/test-ulc-printf1.h: New file.
63294         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63295         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63296         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63297         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63298         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63299         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63300         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63301         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63302         * tests/unistdio/test-u8-asnprintf1.c: New file.
63303         * tests/unistdio/test-u8-asnprintf1.h: New file.
63304         * tests/unistdio/test-u8-printf1.h: New file.
63305         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63306         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63307         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63308         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63309         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63310         * tests/unistdio/test-u8-vasprintf1.c: New file.
63311         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63312         * tests/unistdio/test-u8-vsprintf1.c: New file.
63313         * tests/unistdio/test-u16-asnprintf1.c: New file.
63314         * tests/unistdio/test-u16-asnprintf1.h: New file.
63315         * tests/unistdio/test-u16-printf1.h: New file.
63316         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63317         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63318         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63319         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63320         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63321         * tests/unistdio/test-u16-vasprintf1.c: New file.
63322         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63323         * tests/unistdio/test-u16-vsprintf1.c: New file.
63324         * tests/unistdio/test-u32-asnprintf1.c: New file.
63325         * tests/unistdio/test-u32-asnprintf1.h: New file.
63326         * tests/unistdio/test-u32-printf1.h: New file.
63327         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63328         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63329         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63330         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63331         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63332         * tests/unistdio/test-u32-vasprintf1.c: New file.
63333         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63334         * tests/unistdio/test-u32-vsprintf1.c: New file.
63335         * modules/unistdio/base: New file.
63336         * modules/unistdio/u-printf-args: New file.
63337         * modules/unistdio/ulc-asnprintf: New file.
63338         * modules/unistdio/ulc-asprintf: New file.
63339         * modules/unistdio/ulc-fprintf: New file.
63340         * modules/unistdio/ulc-printf-parse: New file.
63341         * modules/unistdio/ulc-snprintf: New file.
63342         * modules/unistdio/ulc-sprintf: New file.
63343         * modules/unistdio/ulc-vasnprintf: New file.
63344         * modules/unistdio/ulc-vasprintf: New file.
63345         * modules/unistdio/ulc-vfprintf: New file.
63346         * modules/unistdio/ulc-vsnprintf: New file.
63347         * modules/unistdio/ulc-vsprintf: New file.
63348         * modules/unistdio/u8-asnprintf: New file.
63349         * modules/unistdio/u8-asprintf: New file.
63350         * modules/unistdio/u8-printf-parse: New file.
63351         * modules/unistdio/u8-snprintf: New file.
63352         * modules/unistdio/u8-sprintf: New file.
63353         * modules/unistdio/u8-vasnprintf: New file.
63354         * modules/unistdio/u8-vasprintf: New file.
63355         * modules/unistdio/u8-vsnprintf: New file.
63356         * modules/unistdio/u8-vsprintf: New file.
63357         * modules/unistdio/u8-u8-asnprintf: New file.
63358         * modules/unistdio/u8-u8-asprintf: New file.
63359         * modules/unistdio/u8-u8-snprintf: New file.
63360         * modules/unistdio/u8-u8-sprintf: New file.
63361         * modules/unistdio/u8-u8-vasnprintf: New file.
63362         * modules/unistdio/u8-u8-vasprintf: New file.
63363         * modules/unistdio/u8-u8-vsnprintf: New file.
63364         * modules/unistdio/u8-u8-vsprintf: New file.
63365         * modules/unistdio/u16-asnprintf: New file.
63366         * modules/unistdio/u16-asprintf: New file.
63367         * modules/unistdio/u16-printf-parse: New file.
63368         * modules/unistdio/u16-snprintf: New file.
63369         * modules/unistdio/u16-sprintf: New file.
63370         * modules/unistdio/u16-vasnprintf: New file.
63371         * modules/unistdio/u16-vasprintf: New file.
63372         * modules/unistdio/u16-vsnprintf: New file.
63373         * modules/unistdio/u16-vsprintf: New file.
63374         * modules/unistdio/u16-u16-asnprintf: New file.
63375         * modules/unistdio/u16-u16-asprintf: New file.
63376         * modules/unistdio/u16-u16-snprintf: New file.
63377         * modules/unistdio/u16-u16-sprintf: New file.
63378         * modules/unistdio/u16-u16-vasnprintf: New file.
63379         * modules/unistdio/u16-u16-vasprintf: New file.
63380         * modules/unistdio/u16-u16-vsnprintf: New file.
63381         * modules/unistdio/u16-u16-vsprintf: New file.
63382         * modules/unistdio/u32-asnprintf: New file.
63383         * modules/unistdio/u32-asprintf: New file.
63384         * modules/unistdio/u32-printf-parse: New file.
63385         * modules/unistdio/u32-snprintf: New file.
63386         * modules/unistdio/u32-sprintf: New file.
63387         * modules/unistdio/u32-vasnprintf: New file.
63388         * modules/unistdio/u32-vasprintf: New file.
63389         * modules/unistdio/u32-vsnprintf: New file.
63390         * modules/unistdio/u32-vsprintf: New file.
63391         * modules/unistdio/u32-u32-asnprintf: New file.
63392         * modules/unistdio/u32-u32-asprintf: New file.
63393         * modules/unistdio/u32-u32-snprintf: New file.
63394         * modules/unistdio/u32-u32-sprintf: New file.
63395         * modules/unistdio/u32-u32-vasnprintf: New file.
63396         * modules/unistdio/u32-u32-vasprintf: New file.
63397         * modules/unistdio/u32-u32-vsnprintf: New file.
63398         * modules/unistdio/u32-u32-vsprintf: New file.
63399         * modules/unistdio/ulc-asnprintf-tests: New file.
63400         * modules/unistdio/ulc-vasnprintf-tests: New file.
63401         * modules/unistdio/ulc-vasprintf-tests: New file.
63402         * modules/unistdio/ulc-vsnprintf-tests: New file.
63403         * modules/unistdio/ulc-vsprintf-tests: New file.
63404         * modules/unistdio/u8-asnprintf-tests: New file.
63405         * modules/unistdio/u8-vasnprintf-tests: New file.
63406         * modules/unistdio/u8-vasprintf-tests: New file.
63407         * modules/unistdio/u8-vsnprintf-tests: New file.
63408         * modules/unistdio/u8-vsprintf-tests: New file.
63409         * modules/unistdio/u16-asnprintf-tests: New file.
63410         * modules/unistdio/u16-vasnprintf-tests: New file.
63411         * modules/unistdio/u16-vasprintf-tests: New file.
63412         * modules/unistdio/u16-vsnprintf-tests: New file.
63413         * modules/unistdio/u16-vsprintf-tests: New file.
63414         * modules/unistdio/u32-asnprintf-tests: New file.
63415         * modules/unistdio/u32-vasnprintf-tests: New file.
63416         * modules/unistdio/u32-vasprintf-tests: New file.
63417         * modules/unistdio/u32-vsnprintf-tests: New file.
63418         * modules/unistdio/u32-vsprintf-tests: New file.
63419         * MODULES.html.sh (Unicode string functions): Add the new modules.
63420
63421 2007-07-01  Bruno Haible  <bruno@clisp.org>
63422
63423         * lib/sprintf.c (sprintf): Limit the available length estimation,
63424         to avoid address wraparound.
63425         * lib/vsprintf.c (vsprintf): Likewise.
63426         * modules/sprintf-posix (Dependencies): Add stdint.
63427         * modules/vsprintf-posix (Dependencies): Likewise.
63428
63429 2007-07-01  Bruno Haible  <bruno@clisp.org>
63430
63431         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63432         Windows PATH as well. Conservative double-quoting. Comments.
63433
63434 2007-07-01  Bruno Haible  <bruno@clisp.org>
63435             Eric Blake  <ebb9@byu.net>
63436             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63437
63438         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63439         empty components in $PATH, denoting '.'.
63440
63441 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63442
63443         * gnulib-tool: Fix indentation.
63444         (func_create_megatestdir): Likewise.
63445         Report by Bruno Haible.
63446
63447 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63448
63449         Sync from Automake.
63450         * build-aux/gnupload: Fix shell portability issues with for loops.
63451         Report by Karl Berry.
63452
63453 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63454
63455         * build-aux/maint.mk (POURL): Use translationproject.org.
63456
63457 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63458             Bruno Haible  <bruno@clisp.org>
63459
63460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63461         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63462         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63463         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63464         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63465
63466 2007-06-27  Bruno Haible  <bruno@clisp.org>
63467
63468         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63469         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63470
63471 2007-06-26  Karl Berry  <karl@gnu.org>
63472
63473         * MODULES.html.sh: remove xreadlink-with-size.
63474
63475 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63478         method that I hope also handles the double-include problem noted
63479         by Bruno Haible in
63480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63481
63482 2007-06-23  Bruno Haible  <bruno@clisp.org>
63483
63484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63485         Don't let the 'mostlyclean' target fail if the last subdirectory could
63486         not be removed.
63487         Reported by Karl Berry.
63488
63489 2007-06-23  Bruno Haible  <bruno@clisp.org>
63490
63491         * gnulib-tool (echo): Add a speedier workaround for ksh.
63492         * tests/test-echo.sh: Likewise.
63493
63494 2007-06-23  Bruno Haible  <bruno@clisp.org>
63495
63496         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63497         * tests/test-echo.sh: Likewise.
63498
63499 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63500
63501         * gnulib-tool (IFS): Initialize early, so we don't set it to
63502         empty later.
63503         (self_abspathname): Rewrite algorithm to set it, reindent.
63504         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63505         (func_create_megatestdir): Merge some sed scripts.
63506
63507 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63510         exposed by Sun Studio 11 cc on Solaris 8.
63511
63512 2007-06-22  Bruno Haible  <bruno@clisp.org>
63513
63514         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63515         backslashes.
63516         * tests/test-echo.sh: New file.
63517
63518 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63519
63520         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63521         simplify `sed_replace_build_aux' scripts, they are portable but
63522         echoing them with `echo' is not.
63523         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63524
63525 2007-06-21  Karl Berry  <karl@gnu.org>
63526
63527         * config/srclist.txt: guess we can't handle the licenses via
63528         srclist at the moment.
63529
63530 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63531
63532         * MODULES.html.sh: Add include_next.
63533         * modules/include_next: New file.
63534
63535 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63536
63537         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63538         INCLUDE_NEXT.
63539         (gl_CHECK_NEXT_HEADERS): New macro.
63540         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63541         the obsolescent gl_ABSOLUTE_HEADER.
63542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63543         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63544         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63545         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63546         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63547         * m4/math_h.m4 (gl_MATH_H): Likewise.
63548         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63549         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63550         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63551         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63552         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63553         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63554         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63558         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63559         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63560         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63562         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63563         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63564         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63565         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63566         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63567         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63568         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63569         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63570         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63571         * lib/float_.h: Likewise.
63572         * lib/inttypes_.h: Likewise.
63573         * lib/math_.h: Likewise.
63574         * lib/search_.h: Likewise.
63575         * lib/signal_.h: Likewise.
63576         * lib/stdint_.h: Likewise.
63577         * lib/stdio_.h: Likewise.
63578         * lib/stdlib_.h: Likewise.
63579         * lib/string_.h: Likewise.
63580         * lib/sys_stat_.h: Likewise.
63581         * lib/sys_time_.h: Likewise.
63582         * lib/time_.h: Likewise.
63583         * lib/unistd_.h: Likewise.
63584         * lib/wchar_.h: Likewise.
63585         * lib/wctype_.h: Likewise.
63586         * lib/dirent_.h: Likewise.
63587         * lib/iconv_.h: Likewise.
63588         * lib/locale_.h: Likewise.
63589         * lib/netinet_in_.h: Likewise.
63590         * lib/sys_select_.h: Likewise.
63591         * lib/sys_socket_.h: Likewise.
63592         * lib/sysexits_.h: Likewise.
63593         * modules/fcntl (Depends-on): Depend on include_next, not
63594         absolute_header.
63595         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63596         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63597         * modules/fchdir: Likewise.
63598         * modules/float: Likewise.
63599         * modules/iconv_open: Likewise.
63600         * modules/inttypes: Likewise.
63601         * modules/locale: Likewise.
63602         * modules/math: Likewise.
63603         * modules/netinet_in: Likewise.
63604         * modules/search: Likewise.
63605         * modules/signal: Likewise.
63606         * modules/stdint: Likewise.
63607         * modules/stdio: Likewise.
63608         * modules/stdlib: Likewise.
63609         * modules/string: Likewise.
63610         * modules/sys_select: Likewise.
63611         * modules/sys_socket: Likewise.
63612         * modules/sys_stat: Likewise.
63613         * modules/sys_time: Likewise.
63614         * modules/sysexits: Likewise.
63615         * modules/time: Likewise.
63616         * modules/unistd: Likewise.
63617         * modules/wchar: Likewise.
63618         * modules/wctype: Likewise.
63619         * modules/sys_stat: Change maintainer to "all".
63620         * modules/unistd: Likewise.
63621
63622 2007-06-20  Karl Berry  <karl@gnu.org>
63623
63624         * config/srclist.txt: track www changes in license files.
63625
63626 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63627
63628         * build-aux/bootstrap: Remove stray dot.
63629         Make sure build_aux settings are honored when linking
63630         gnulib_extra_files.
63631
63632 2007-06-19  Eric Blake  <ebb9@byu.net>
63633
63634         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63635         Allow compilation on cygwin.
63636
63637 2007-06-19  Jim Meyering  <jim@meyering.net>
63638
63639         xreadlink-with-size: Remove module.  No longer used.
63640         Ex-callers now use xreadlink or mreadlink-with-size.
63641         * modules/xreadlink-with-size: Remove module.
63642         * lib/xreadlink-with-size.c: Remove file.
63643         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63644         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63645         just before the function definition *is* accurate.
63646
63647         Eliminate one way canonicalize_filename_mode could exit.
63648         * lib/canonicalize.c (canonicalize_filename_mode):
63649         Use mreadlink_with_size, not xreadlink_with_size.
63650
63651 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63652
63653         Detect porting problems to FreeBSD/arm, which has time_t wider than
63654         long int.  Original problem reported for GNU diff by Xin Li in
63655         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63656         * modules/getdate (Depends-on): Add intprops, verify.
63657         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63658         is an integer type no wider than long int.
63659
63660 2007-06-18  Jim Meyering  <jim@meyering.net>
63661
63662         New module: mreadlink-with-size.
63663         * MODULES.html.sh: Add mreadlink-with-size.
63664         * modules/mreadlink-with-size: New module
63665         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63666         not xreadlink-with-size.
63667         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63668
63669 2007-06-16  Bruno Haible  <bruno@clisp.org>
63670
63671         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63672         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63673         Reported by Gary V. Vaughan <gary@gnu.org>.
63674
63675 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         Revamp lchown so that it lives in unistd.h where it belongs.
63678         * lib/lchown.h: Remove.
63679         * lib/dirchownmod.c: Don't include lib/lchown.h.
63680         * lib/fchownat.c: Likewise.
63681         * lib/openat.c: Likewise.
63682         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63683         does not follow symlinks.
63684         (EOPNOTSUPP): Define if not defined.
63685         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63686         is defined to 0.
63687         (lchown): New decl.
63688         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63689         Do not check for lchown decl.
63690         Set REPLACE_LCHOWN.
63691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63692         REPLACE_LCHOWN.
63693         * modules/chown: Make it clear it follows symlinks.
63694         * modules/lchown: Make it clear it doesn't follow symlinks.
63695         (Files): Remove lib/lchown.h
63696         (Depends-on): Add unistd.
63697         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63698         (Include): Include <unistd.h>, not "lchown.h".
63699         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63700         REPLACE_LCHOWN.
63701
63702 2007-06-15  Jim Meyering  <jim@meyering.net>
63703
63704         Change license (GPL to LGPL) of fsusage and dependents.
63705         * modules/fsusage (License): Change to LGPL.
63706         * modules/full-read (License): Likewise.
63707         * modules/full-write (License): Likewise.
63708         * modules/safe-read (License): Likewise.
63709         * modules/safe-write (License): Likewise.
63710
63711 2007-06-14  Ben Pfaff  <blp@gnu.org>
63712
63713         Missing part of allocsa -> malloca transition.
63714         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63715         gl_MALLOCA.
63716
63717 2007-06-12  Bruno Haible  <bruno@clisp.org>
63718
63719         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63720         to ia64, x86_64, i386.
63721         Reported by Eric Blake.
63722
63723 2007-06-12  Bruno Haible  <bruno@clisp.org>
63724
63725         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63726         cross-compiling to x86_64.
63727
63728 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63731         glitch reported by Ralf Wildenhues in
63732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63733
63734         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63735         Vin Shelton.
63736
63737 2007-06-11  Bruno Haible  <bruno@clisp.org>
63738
63739         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63740         replacement string.
63741         Reported by Eric Blake.
63742
63743 2007-06-10  Bruno Haible  <bruno@clisp.org>
63744
63745         Prepare vasnprintf code for use with Unicode strings.
63746         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63747         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63748         TYPE_U32_STRING.
63749         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63750         a_u32_string variants.
63751         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63752         * lib/printf-args.c: Don't include config.h and the specification
63753         header if PRINTF_FETCHARGS is already defined.
63754         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63755         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63756         TYPE_U16_STRING, TYPE_U32_STRING.
63757         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63758         u16_directive, u16_directives, u32_directive, u32_directives): New
63759         types.
63760         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63761         New declarations.
63762         * lib/printf-parse.c: Don't include config.h and the specification
63763         header if PRINTF_PARSE is already defined. Eliminate the set of
63764         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63765         them now. Include c-ctype.h.
63766         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63767         directive and CHAR_T_ONLY_ASCII.
63768         * lib/vasnprintf.c: Don't include config.h and the specification header
63769         if VASNPRINTF is already defined.
63770         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63771         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63772         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63773         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63774         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63775         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63776         code accordingly.
63777         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63778         pad_ourselves also in this case, with the 'c' and 's' directives, and
63779         with a different notion of "width".
63780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63781
63782 2007-06-10  Bruno Haible  <bruno@clisp.org>
63783
63784         * modules/unistr/u32-mbsnlen: New file.
63785         * lib/unistr/u32-mbsnlen.c: New file.
63786
63787         * modules/unistr/u16-mbsnlen: New file.
63788         * lib/unistr/u16-mbsnlen.c: New file.
63789
63790         * modules/unistr/u8-mbsnlen: New file.
63791         * lib/unistr/u8-mbsnlen.c: New file.
63792
63793         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63794         declarations.
63795
63796 2007-06-10  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/string_.h (mbsnlen): New declaration.
63799         * lib/mbsnlen.c: New file.
63800         * m4/mbsnlen.m4: New file.
63801         * modules/mbsnlen: New file.
63802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63803         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63804         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63805
63806 2007-06-10  Bruno Haible  <bruno@clisp.org>
63807
63808         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63809
63810 2007-06-10  Bruno Haible  <bruno@clisp.org>
63811
63812         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63813         * lib/mbuiter.h: Likewise.
63814
63815 2007-06-10  Bruno Haible  <bruno@clisp.org>
63816
63817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63818         declaration.
63819
63820 2007-06-10  Karl Berry  <karl@gnu.org>
63821
63822         * config/srclist.txt: remove gettext entries, Bruno prefers
63823         to update individually.
63824
63825 2007-06-10  Bruno Haible  <bruno@clisp.org>
63826
63827         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63828         'maxlen'. Ensure only length + width bytes are allocated, not
63829         length + 1 + width.
63830
63831 2007-06-09  Bruno Haible  <bruno@clisp.org>
63832
63833         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63834         (CHAR_T): Remove macro.
63835         (VASNPRINTF): Update.
63836
63837 2007-06-09  Bruno Haible  <bruno@clisp.org>
63838
63839         * MODULES.html.sh (Unicode string functions): Add the new modules.
63840
63841         * modules/uniconv/u32-conv-to-enc: New file.
63842         * lib/uniconv/u32-conv-to-enc.c: New file.
63843         * modules/uniconv/u32-conv-to-enc-tests: New file.
63844         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63845
63846         * modules/uniconv/u16-conv-to-enc: New file.
63847         * lib/uniconv/u16-conv-to-enc.c: New file.
63848         * lib/uniconv/u-conv-to-enc.h: New file.
63849         * modules/uniconv/u16-conv-to-enc-tests: New file.
63850         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63851
63852         * modules/uniconv/u8-conv-to-enc: New file.
63853         * lib/uniconv/u8-conv-to-enc.c: New file.
63854         * modules/uniconv/u8-conv-to-enc-tests: New file.
63855         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63856
63857         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63858         u32_conv_to_encoding): New declarations.
63859
63860 2007-06-09  Bruno Haible  <bruno@clisp.org>
63861
63862         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63863
63864 2007-06-09  Bruno Haible  <bruno@clisp.org>
63865
63866         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63867         * modules/malloca: Renamed from modules/allocsa, updated.
63868         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63869         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63870         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63871         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63872         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63873         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63874         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63875         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63876         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63877         * modules/c-strcasestr (Depends-on): Update.
63878         * lib/c-strcasestr.c: Update.
63879         * modules/c-strstr (Depends-on): Update.
63880         * lib/c-strstr.c: Update.
63881         * modules/canonicalize-lgpl (Depends-on): Update.
63882         * lib/canonicalize-lgpl.c: Update.
63883         * modules/clean-temp (Depends-on): Update.
63884         * lib/clean-temp.c: Update.
63885         * modules/csharpcomp (Depends-on): Update.
63886         * lib/csharpcomp.c: Update.
63887         * modules/csharpexec (Depends-on): Update.
63888         * lib/csharpexec.c: Update.
63889         * modules/javacomp (Depends-on): Update.
63890         * lib/javacomp.c: Update.
63891         * modules/javaexec (Depends-on): Update.
63892         * lib/javaexec.c: Update.
63893         * modules/mbscasestr (Depends-on): Update.
63894         * lib/mbscasestr.c: Update.
63895         * modules/mbsstr (Depends-on): Update.
63896         * lib/mbsstr.c: Update.
63897         * modules/setenv (Depends-on): Update.
63898         * lib/setenv.c: Update.
63899         * modules/strcasestr (Depends-on): Update.
63900         * lib/strcasestr.c: Update.
63901         * modules/striconveha (Depends-on): Update.
63902         * lib/striconveha.c: Update.
63903         * modules/relocatable-prog-wrapper (Files): Update.
63904         * lib/relocwrapper.c: Update.
63905         * build-aux/install-reloc: Update.
63906         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63907
63908 2007-06-08  Bruno Haible  <bruno@clisp.org>
63909
63910         Port to uClibc.
63911         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63912         * lib/fpurge.c (fpurge): Likewise.
63913         * lib/freading.c (freading): Likewise.
63914         * lib/fseeko.c (rpl_fseeko): Likewise.
63915         * lib/fseterr.c (fseterr): Likewise.
63916         * lib/fwriting.c (fwriting): Likewise.
63917         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63918
63919 2007-06-08  Bruno Haible  <bruno@clisp.org>
63920
63921         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63922         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63923         * modules/gettext (Files): Add m4/intlmacosx.m4.
63924
63925 2007-06-07  Bruno Haible  <bruno@clisp.org>
63926
63927         * modules/localename-tests: New file.
63928         * tests/test-localename.c: New file.
63929
63930         New module 'localename'.
63931         * lib/localename.h: New file.
63932         * lib/localename.c: New file, from GNU gettext.
63933         * m4/localename.m4: New file.
63934         * modules/localename: New file.
63935
63936 2007-06-07  Bruno Haible  <bruno@clisp.org>
63937
63938         Work around the lack of <wchar.h> on some builds of uClibc.
63939         * doc/headers/wchar.texi: Update.
63940         * lib/wchar_.h: Include <wchar.h> only if it exists.
63941         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63942         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63943         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63944         doesn't exist.
63945         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63946         * modules/mbfile (Depends-on): Add wchar.
63947         * modules/mbiter (Depends-on): Likewise.
63948         * modules/mbuiter (Depends-on): Likewise.
63949         Reported by Simon Josefsson.
63950
63951 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63952
63953         Work around problem reported by Steven M. Schweda in
63954         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63955         Tru64 5.1B with the Compaq compiler environment installed declares
63956         an 'isblank' function but does not define it in the C library.
63957         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63958         * lib/regex_internal.h (isblank): Likewise.
63959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63960         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63961
63962 2007-06-05  Bruno Haible  <bruno@clisp.org>
63963
63964         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63965         ia64.
63966         * modules/printf-safe: New file.
63967         * modules/fprintf-posix (Depends-on): Add printf-safe.
63968         * modules/printf-posix (Depends-on): Likewise.
63969         * modules/snprintf-posix (Depends-on): Likewise.
63970         * modules/sprintf-posix (Depends-on): Likewise.
63971         * modules/vasnprintf-posix (Depends-on): Likewise.
63972         * modules/vasprintf-posix (Depends-on): Likewise.
63973         * modules/vfprintf-posix (Depends-on): Likewise.
63974         * modules/vprintf-posix (Depends-on): Likewise.
63975         * modules/vsnprintf-posix (Depends-on): Likewise.
63976         * modules/vsprintf-posix (Depends-on): Likewise.
63977         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63978         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63979         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63980         "no" on i386, x86_64, ia64.
63981         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63982         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63983         on i386, x86_64, ia64.
63984         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63985         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63986         on i386, x86_64, ia64.
63987         * tests/test-vasnprintf-posix.c: Include float.h.
63988         (LDBL80_WORDS): New macro.
63989         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63990         on i386, x86_64, ia64.
63991         * tests/test-vasprintf-posix.c: Include float.h.
63992         (LDBL80_WORDS): New macro.
63993         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63994         on i386, x86_64, ia64.
63995         * tests/test-snprintf-posix.c: Include float.h.
63996         * tests/test-sprintf-posix.c: Likewise.
63997         * tests/test-vsnprintf-posix.c: Likewise.
63998         * tests/test-vsprintf-posix.c: Likewise.
63999
64000 2007-06-05  Bruno Haible  <bruno@clisp.org>
64001
64002         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64003         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64004         non-IEEE numbers on i386, x86_64, ia64.
64005         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64006         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64007         * tests/test-isnanl.h: Include float.h.
64008         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64009
64010 2007-06-05  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64013         also the %a / %A. Handle the %a / %A code before this extra handling.
64014
64015 2007-06-05  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64018         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64019
64020 2007-06-05  Bruno Haible  <bruno@clisp.org>
64021
64022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64023         typo in variable name.
64024
64025 2007-06-05  Eric Blake  <ebb9@byu.net>
64026
64027         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64028         Reported by Simon Josefsson.
64029
64030 2007-06-04  Bruno Haible  <bruno@clisp.org>
64031
64032         Avoid test failures on some PowerPC platforms.
64033         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64034         Define differently for PowerPC.
64035         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64036         Reported by Gary V. Vaughan <gary@gnu.org>.
64037
64038 2007-06-02  Bruno Haible  <bruno@clisp.org>
64039
64040         Fix test-stdint failure on FreeBSD/ia64.
64041         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64042         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64043         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64044         * doc/headers/stdint.texi: Update.
64045
64046 2007-06-01  Bruno Haible  <bruno@clisp.org>
64047
64048         * tests/test-binary-io.c (main): Pass a third argument to open().
64049         Reported by Gary V. Vaughan <gary@gnu.org>.
64050
64051 2007-06-01  Bruno Haible  <bruno@clisp.org>
64052
64053         * doc/functions/frexpl.texi: Update for mingw.
64054
64055 2007-06-01  Bruno Haible  <bruno@clisp.org>
64056
64057         * tests/test-lseek.c (main): Disable test of errno for invalid third
64058         argument.
64059         * doc/functions/lseek.texi: Update.
64060         Reported by Gary V. Vaughan <gary@gnu.org>.
64061
64062 2007-05-28  Bruno Haible  <bruno@clisp.org>
64063
64064         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64065
64066 2007-05-31  Eric Blake  <ebb9@byu.net>
64067
64068         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64069         cross compiling.
64070
64071 2007-05-30  Eric Blake  <ebb9@byu.net>
64072         and Bruno Haible  <bruno@clisp.org>
64073
64074         Work around mingw test failures exposed by m4-1.4.9b.
64075         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64076         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64077         moment.
64078
64079 2007-05-30  Bruno Haible  <bruno@clisp.org>
64080
64081         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64082         assuming that they are closed. Needed on HP-UX 11.
64083
64084 2007-05-29  Bruno Haible  <bruno@clisp.org>
64085
64086         Fix a problem with #include_next.
64087         * lib/dirent_.h: Split the double-inclusion guard.
64088         * lib/fcntl_.h: Likewise.
64089         * lib/float_.h: Likewise.
64090         * lib/iconv_.h: Likewise.
64091         * lib/inttypes_.h: Likewise.
64092         * lib/locale_.h: Likewise.
64093         * lib/math_.h: Likewise.
64094         * lib/netinet_in_.h: Likewise.
64095         * lib/search_.h: Likewise.
64096         * lib/signal_.h: Likewise.
64097         * lib/stdint_.h: Likewise.
64098         * lib/stdio_.h: Likewise.
64099         * lib/stdlib_.h: Likewise.
64100         * lib/string_.h: Likewise.
64101         * lib/sys_select_.h: Likewise.
64102         * lib/sys_socket_.h: Likewise.
64103         * lib/sys_stat_.h: Likewise.
64104         * lib/sys_time_.h: Likewise.
64105         * lib/sysexits_.h: Likewise.
64106         * lib/time_.h: Likewise.
64107         * lib/unistd_.h: Likewise.
64108         * lib/wchar_.h: Likewise.
64109         * lib/wctype_.h: Likewise.
64110
64111 2007-05-29  Bruno Haible  <bruno@clisp.org>
64112
64113         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64114         for the moment.
64115
64116 2007-05-29  Bruno Haible  <bruno@clisp.org>
64117
64118         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64119         invocation.
64120         Reported by Eric Blake.
64121
64122 2007-05-29  Bruno Haible  <bruno@clisp.org>
64123
64124         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64125         compiling case.
64126
64127 2007-05-29  Eric Blake  <ebb9@byu.net>
64128             Bruno Haible  <bruno@clisp.org>
64129
64130         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64131         cross compiles.
64132
64133 2007-05-28  Eric Blake  <ebb9@byu.net>
64134
64135         * modules/closein-tests (test_closein_LDADD): Support test on
64136         cygwin with libtool.
64137
64138 2007-05-28  Bruno Haible  <bruno@clisp.org>
64139
64140         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64141         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64142         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64143         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64144         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64145         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64146         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64147         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64148         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64149
64150 2007-05-28  Eric Blake  <ebb9@byu.net>
64151
64152         Unconditionally include <config.h> in unit tests.
64153         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64154         * tests/test-allocsa.c, tests/test-arcfour.c,
64155         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64156         tests/test-array_list.c, tests/test-array_oset.c,
64157         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64158         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64159         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64160         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64161         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64162         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64163         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64164         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64165         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64166         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64167         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64168         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64169         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64170         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64171         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64172         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64173         test-md5.c, test-memmem.c, test-printf-posix.c,
64174         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64175         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64176         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64177         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64178         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64179         test-vasnprintf-posix2.c, test-vasnprintf.c,
64180         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64181         test-vfprintf-posix.c, test-vprintf-posix.c,
64182         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64183         test-xvasprintf.c: Likewise.
64184
64185 2007-05-28  Bruno Haible  <bruno@clisp.org>
64186
64187         * gnulib-tool (func_import): Remember the --with-tests command-line
64188         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64189         Reported by Eric Blake.
64190
64191 2007-05-28  Bruno Haible  <bruno@clisp.org>
64192
64193         * modules/ftell-tests: New file.
64194         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64195         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64196
64197         * lib/ftell.c: New file.
64198         * modules/ftell: New file.
64199         * m4/ftell.m4: New file.
64200         * doc/functions/ftell.texi: Update.
64201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64202         REPLACE_FTELL.
64203         * lib/stdio_.h (rpl_ftell): New declaration.
64204         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64205         REPLACE_FTELL.
64206
64207 2007-05-28  Eric Blake  <ebb9@byu.net>
64208
64209         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64210
64211 2007-05-28  Bruno Haible  <bruno@clisp.org>
64212
64213         * modules/fseek-tests: New file.
64214         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64215         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64216
64217         * lib/fseek.c: New file.
64218         * modules/fseek: New file.
64219         * m4/fseek.m4: New file.
64220         * doc/functions/fseek.texi: Update.
64221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64222         REPLACE_FSEEK.
64223         * lib/stdio_.h (rpl_fseek): New declaration.
64224         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64225         REPLACE_FSEEK.
64226
64227 2007-05-28  Bruno Haible  <bruno@clisp.org>
64228
64229         * lib/stdio_.h (fflush): More comments.
64230
64231 2007-05-28  Bruno Haible  <bruno@clisp.org>
64232
64233         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64234         runtime test.
64235
64236 2007-05-28  Eric Blake  <ebb9@byu.net>
64237
64238         Improve lseek module.
64239         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64240         * lib/unistd_.h (lseek): Scale back link warning message.
64241         * tests/test-lseek.c: Beef up test.
64242         * tests/test-lseek.sh: Exercise more facets of lseek.
64243         Reported by Bruno Haible.
64244
64245 2007-05-28  Bruno Haible  <bruno@clisp.org>
64246
64247         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64248         to define.
64249
64250 2007-05-27  Bruno Haible  <bruno@clisp.org>
64251
64252         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64253
64254 2007-05-27  Bruno Haible  <bruno@clisp.org>
64255
64256         * modules/openmp: New file.
64257         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64258         Noah Misch.
64259
64260 2007-05-26  Bruno Haible  <bruno@clisp.org>
64261
64262         * modules/chdir-long (Depends-on): Add fchdir.
64263         * modules/chdir-safer (Depends-on): Likewise.
64264         * modules/fts (Depends-on): Likewise.
64265         * modules/fts-lgpl (Depends-on): Likewise.
64266         * modules/openat (Depends-on): Likewise.
64267         * modules/savewd (Depends-on): Likewise.
64268
64269 2007-05-24  Eric Blake  <ebb9@byu.net>
64270
64271         Fix lseek on mingw.
64272         * modules/lseek: New module.
64273         * m4/lseek.m4: New file.
64274         * lib/lseek.c: New file.
64275         * modules/lseek-tests: New file.
64276         * tests/test-lseek.c: New file.
64277         * tests/test-lseek.sh: New file.
64278         * MODULES.html.sh: Document lseek module.
64279         * modules/fflush (Depends-on): Add lseek, fseeko.
64280         * modules/fseeko (Depends-on): Likewise.
64281         * modules/ftello (Depends-on): Likewise.
64282         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64283         broken.
64284         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64285         broken.
64286         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64287         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64288         * lib/ftello.c (rpl_ftello): Likewise.
64289         * tests/test-fseeko.c (main): Test this.
64290         * tests/test-fseeko.sh: Likewise.
64291         * tests/test-ftello.c (main): Likewise.
64292         * tests/test-ftello.sh: Likewise.
64293         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64294         implies replacing fseek.
64295         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64296         HAVE_FTELLO.
64297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64298         * modules/unistd (Makefile.am): Likewise.
64299         * lib/unistd_.h (lseek): Declare a replacement.
64300         * doc/functions/lseek.texi (lseek): Document this fix.
64301         * doc/functions/fseek.texi (fseek): Likewise.
64302         * doc/functions/ftell.texi (ftell): Likewise.
64303
64304 2007-05-24  Bruno Haible  <bruno@clisp.org>
64305
64306         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64307         in the printed representation of a NaN.
64308         * tests/test-vasprintf-posix.c (test_function): Likewise.
64309         * tests/test-snprintf-posix.h (test_function): Likewise.
64310         * tests/test-sprintf-posix.h (test_function): Likewise.
64311         Reported by Eric Blake.
64312
64313 2007-05-23  Eric Blake  <ebb9@byu.net>
64314
64315         Fix fseeko/ftello on cygwin 1.5.24.
64316         * doc/functions/fseeko.texi (fseeko): Document the fix.
64317         * doc/functions/ftello.texi (ftello): Document the fix.
64318         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64319         * doc/functions/stdout.text (stdout): New file.
64320         * doc/functions/stderr.text (stderr): New file.
64321         * doc/gnulib.texi (Function Substitutes): Use new files.
64322         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64323         prior to 1.7.0.
64324         * tests/test-ftello.c (main): Likewise for ftello.
64325         * tests/test-fseeko.sh: New file.
64326         * tests/test-ftello.sh: New file.
64327         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64328         with seekable stdin.
64329         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64331         (gl_REPLACE_FSEEKO): New macro.
64332         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64333         * modules/fseeko (Files): Distribute fseeko.c.
64334         * modules/ftello (Files): Distribute ftello.c.
64335         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64336         mode.
64337         * lib/ftello.c (rpl_ftello): New file.
64338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64339         fseeko, ftello.
64340         (gl_STDIN_LARGE_OFFSET): New macro.
64341         * modules/stdio (Makefile.am): Perform the replacement.
64342         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64343
64344 2007-05-23  Bruno Haible  <bruno@clisp.org>
64345
64346         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64347         GNULIB_POSIXCHECK is defined.
64348
64349 2007-05-21  Bruno Haible  <bruno@clisp.org>
64350
64351         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64352         Check also the output for NaN arguments. When cross-compiling, guess
64353         no on IRIX.
64354         * lib/vasnprintf.c: Update comments.
64355         * tests/test-vasnprintf-posix.c (strisnan): New function.
64356         (test_function): Use it.
64357         * tests/test-vasprintf-posix.c (strisnan): New function.
64358         (test_function): Use it.
64359         * tests/test-snprintf-posix.h (strisnan): New function.
64360         (test_function): Use it.
64361         * tests/test-sprintf-posix.h (strisnan): New function.
64362         (test_function): Use it.
64363         Reported by Eric Blake.
64364
64365 2007-05-20  Bruno Haible  <bruno@clisp.org>
64366
64367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64368         numbers that fails on BeOS.
64369         * doc/functions/frexpl.texi: Update.
64370
64371 2007-05-20  Jim Meyering  <jim@meyering.net>
64372
64373         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64374         forced upon us by glibc-2.6.
64375
64376 2007-05-20  Bruno Haible  <bruno@clisp.org>
64377
64378         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64379         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64380         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64381         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64382         NEED_PRINTF_INFINITE.
64383         (is_infinitel): New function.
64384         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64386         gl_PREREQ_VASNPRINTF_INFINITE.
64387         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64389         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64390         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64391         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64392         gl_PREREQ_VASNPRINTF_INFINITE.
64393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64396         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64397         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64399         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64400         * doc/functions/fprintf.texi: Update.
64401         * doc/functions/printf.texi: Update.
64402         * doc/functions/snprintf.texi: Update.
64403         * doc/functions/sprintf.texi: Update.
64404         * doc/functions/vfprintf.texi: Update.
64405         * doc/functions/vprintf.texi: Update.
64406         * doc/functions/vsnprintf.texi: Update.
64407         * doc/functions/vsprintf.texi: Update.
64408
64409 2007-05-20  Bruno Haible  <bruno@clisp.org>
64410
64411         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64412         was not found in libc.
64413         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64414
64415 2007-05-20  Bruno Haible  <bruno@clisp.org>
64416
64417         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64418         printed as "-nan" instead of "nan".
64419         * tests/test-vasprintf-posix.c (test_function): Likewise.
64420         * tests/test-snprintf-posix.h (test_function): Likewise.
64421         * tests/test-sprintf-posix.h (test_function): Likewise.
64422         Needed for HP-UX 11.
64423
64424 2007-05-20  Jim Meyering  <jim@meyering.net>
64425
64426         Fix buggy test for the fchownat-deref bug.
64427         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64428         symlink required for the run-test.  Without it, this test would
64429         always declare that fchownat doesn't work, and client code would
64430         unnecessarily use the replacement function with fixed libc.
64431         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64432         Reported by Greg Schafer.
64433
64434 2007-05-19  Bruno Haible  <bruno@clisp.org>
64435
64436         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64437         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64438         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64439         Needed for IRIX 6.5 and Solaris 2.5.1.
64440
64441 2007-05-19  Bruno Haible  <bruno@clisp.org>
64442
64443         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64444         (test_function): Skip tests involving -0.0 on platforms where
64445         -0.0 = 0.0.
64446         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64447         (test_function): Skip tests involving -0.0 on platforms where
64448         -0.0 = 0.0.
64449         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64450         (test_function): Skip tests involving -0.0 on platforms where
64451         -0.0 = 0.0.
64452         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64453         (test_function): Skip tests involving -0.0 on platforms where
64454         -0.0 = 0.0.
64455         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64456         tests.
64457         * tests/test-printf-posix.h (test_function): Likewise.
64458         * tests/test-printf-posix.output: Remove all -0.0 related results.
64459         Needed for IRIX 6.5.
64460
64461 2007-05-19  Bruno Haible  <bruno@clisp.org>
64462
64463         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64464         printed as "nan0x7fffffff" instead of "nan".
64465         * tests/test-vasprintf-posix.c (test_function): Likewise.
64466         * tests/test-snprintf-posix.h (test_function): Likewise.
64467         * tests/test-sprintf-posix.h (test_function): Likewise.
64468         * tests/test-fprintf-posix.h (NaN): Remove macro.
64469         (test_function): Remove all NaN related tests.
64470         * tests/test-printf-posix.h (NaN): Remove macro.
64471         (test_function): Remove all NaN related tests.
64472         * tests/test-printf-posix.output: Remove all NaN related results.
64473         Needed for IRIX 6.5.
64474
64475 2007-05-19  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64478         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64479
64480 2007-05-19  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/float_.h: New file.
64483         * m4/float_h.m4: New file.
64484         * modules/float: New file.
64485         * modules/isnanl (Dependencies): Add float.
64486         * modules/isnanl-nolibm (Dependencies): Likewise.
64487         * modules/mathl (Dependencies): Likewise.
64488         * modules/printf-frexpl (Dependencies): Likewise.
64489         * modules/signbit (Dependencies): Likewise.
64490         * modules/vasnprintf (Dependencies): Likewise.
64491         * doc/headers/float.texi: Update.
64492
64493 2007-05-19  Jim Meyering  <jim@meyering.net>
64494
64495         * lib/utimens.c (gl_futimens): Rename from futimens,
64496         now that glibc-2.6 declares futimens.
64497         * lib/utimens.h: Likewise.
64498
64499 2007-05-19  Bruno Haible  <bruno@clisp.org>
64500
64501         Avoid test failures on mingw.
64502         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64503         * tests/test-printf-posix.sh: Likewise.
64504         * tests/test-vfprintf-posix.sh: Likewise.
64505         * tests/test-vprintf-posix.sh: Likewise.
64506
64507 2007-05-19  Bruno Haible  <bruno@clisp.org>
64508
64509         Fix *printf result for NaN, Inf, -0.0 on mingw.
64510         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64511         * lib/vasnprintf.c: Include math.h and isnan.h.
64512         (is_infinite_or_zero): New function.
64513         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64514         values in the %f, %F, %e, %E, %g, %G directives.
64515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64517         gl_PRINTF_INFINITE and test its result. Invoke
64518         gl_PREREQ_VASNPRINTF_INFINITE.
64519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64526         * doc/functions/fprintf.texi: Update.
64527         * doc/functions/printf.texi: Update.
64528         * doc/functions/snprintf.texi: Update.
64529         * doc/functions/sprintf.texi: Update.
64530         * doc/functions/vfprintf.texi: Update.
64531         * doc/functions/vprintf.texi: Update.
64532         * doc/functions/vsnprintf.texi: Update.
64533         * doc/functions/vsprintf.texi: Update.
64534
64535 2007-05-19  Bruno Haible  <bruno@clisp.org>
64536
64537         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64538         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64539         Instead of multiplying with 10^k, set extra_zeroes to k.
64540         (scale10_round_long_double): Remove function.
64541
64542 2007-05-18  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64545         introduced on 2007-05-06.
64546
64547 2007-05-18  Bruno Haible  <bruno@clisp.org>
64548
64549         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64550         %g directives.
64551         * tests/test-vasprintf-posix.c (test_function): Likewise.
64552         * tests/test-snprintf-posix.h (test_function): Likewise.
64553         * tests/test-sprintf-posix.h (test_function): Likewise.
64554
64555 2007-05-18  Bruno Haible  <bruno@clisp.org>
64556
64557         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64558         (strmatch): New function.
64559         (test_function): Test the %f directive on numbers of various exponents.
64560         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64561         (strmatch): New function.
64562         (test_function): Test the %f directive on numbers of various exponents.
64563         * tests/test-snprintf-posix.h (strmatch): New function.
64564         (test_function): Test the %f directive on numbers of various exponents.
64565         * tests/test-sprintf-posix.h (strmatch): New function.
64566         (test_function): Test the %f directive on numbers of various exponents.
64567         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64568         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64569         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64570         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64571
64572 2007-05-18  Bruno Haible  <bruno@clisp.org>
64573
64574         Add support for 'long double' number output.
64575         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64576         * lib/vasnprintf.c: Include math.h and float+.h.
64577         (mp_limb_t): New type.
64578         (GMP_LIMB_BITS): New macro.
64579         (mp_twolimb_t): New type.
64580         (GMP_TWOLIMB_BITS): New macro.
64581         (mpn_t): New type.
64582         (multiply, divide, convert_to_decimal, decode_long_double,
64583         scale10_round_long_double, scale10_round_decimal_long_double,
64584         floorlog10l): New functions.
64585         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64586         for the %f, %F, %e, %E, %g, %G directives.
64587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64589         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64590         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64591         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64597         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64598         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64599         * modules/snprintf-posix (Depends-on): Likewise.
64600         * modules/sprintf-posix (Depends-on): Likewise.
64601         * modules/vasnprintf-posix (Depends-on): Likewise.
64602         * modules/vasprintf-posix (Depends-on): Likewise.
64603         * modules/vfprintf-posix (Depends-on): Likewise.
64604         * modules/vsnprintf-posix (Depends-on): Likewise.
64605         * modules/vsprintf-posix (Depends-on): Likewise.
64606         * modules/vasnprintf (Files): Add lib/float+.h.
64607         * doc/functions/fprintf.texi: Update.
64608         * doc/functions/printf.texi: Update.
64609         * doc/functions/snprintf.texi: Update.
64610         * doc/functions/sprintf.texi: Update.
64611         * doc/functions/vfprintf.texi: Update.
64612         * doc/functions/vprintf.texi: Update.
64613         * doc/functions/vsnprintf.texi: Update.
64614         * doc/functions/vsprintf.texi: Update.
64615
64616 2007-05-18  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64619
64620 2007-05-18  Bruno Haible  <bruno@clisp.org>
64621
64622         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64623         for printing 64-bit integers. Needed for mingw.
64624
64625 2007-05-18  Bruno Haible  <bruno@clisp.org>
64626
64627         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64628         gl_FUNC_FREXPL_WORKS.
64629         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64630
64631 2007-05-18  Bruno Haible  <bruno@clisp.org>
64632
64633         * modules/frexpl-nolibm-tests: New file.
64634
64635         * modules/frexpl-nolibm: New file.
64636         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64637
64638 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64641         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64642         GCC 4.2, which otherwise issues a lot of warnings.
64643         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64644         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64645         Likewise.
64646         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64647         * modules/iconv_open (iconv.h): Likewise.
64648         * modules/locale (locale.h): Likewise.
64649         * modules/netinet_in (netinet/in.h): Likewise.
64650         * modules/sys_select (sys_select.h): Likewise.
64651         * modules/sys_socket (sys/socket.h): Likewise.
64652         * modules/sys_stat (sys/stat.h): Likewise.
64653         * modules/sysexits (sysexits.h): Likewise.
64654         * modules/unistd (unistd.h): Likewise.
64655
64656 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64657
64658         * modules/closein-tests (Makefile.am): Distribute
64659         `test-closein.sh'.
64660
64661 2007-05-17  Bruno Haible  <bruno@clisp.org>
64662
64663         * tests/test-printf-posix.output: Renamed from
64664         tests/test-fprintf-posix.out.
64665         * modules/fprintf-posix-tests: Update.
64666         * modules/printf-posix-tests: Update.
64667         * modules/vfprintf-posix-tests: Update.
64668         * modules/vprintf-posix-tests: Update.
64669         * tests/test-fprintf-posix.sh: Update.
64670         * tests/test-printf-posix.sh: Update.
64671         * tests/test-vfprintf-posix.sh: Update.
64672         * tests/test-vprintf-posix.sh: Update.
64673         Reported by Ralf Wildenhues.
64674
64675 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64676
64677         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64678         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64679         GCC 4.2, which otherwise issues a lot of warnings.
64680         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64681         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64682         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64683         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64684         it should no longer be needed.
64685         * lib/string_.h: Likewise.
64686         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64687         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64688         * modules/inttypes (inttypes.h): Likewise.
64689         * modules/math (math.h): Likewise.
64690         * modules/search (search.h): Likewise.
64691         * modules/signal (signal.h): Likewise.
64692         * modules/stdint (stdint.h): Likewise.
64693         * modules/stdio (stdio.h): Likewise.
64694         * modules/stdlib (stdlib.h): Likewise.
64695         * modules/string (string.h): Likewise.
64696         * modules/sys_time (sys/time.h): Likewise.
64697         * modules/time (time.h): Likewise.
64698         * modules/wchar (wchar.h): Likewise.
64699         * modules/wctype (wtype.h): Likewise.
64700
64701 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64702
64703         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64704
64705 2007-05-13  Bruno Haible  <bruno@clisp.org>
64706
64707         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64708         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64709         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64710         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64711         (gl_PREREQ_STRTOK_R): Don't require it here.
64712
64713 2007-05-13  Bruno Haible  <bruno@clisp.org>
64714
64715         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64716         when used in C++ mode.
64717
64718 2007-05-12  Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/linebuffer.h: Tweak doc.
64721         * lib/linebuffer.c: Likewise.
64722
64723 2007-05-12  James Youngman  <jay@gnu.org>
64724
64725         * lib/linebuffer.c (readlinebuffer_delim): New function,
64726         like readlinebuffer, but use a caller-specified delimiter.
64727         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64728         as the delimiter.
64729         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64730
64731 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64732
64733         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64734         * modules/openat (Files): Remove openat-die.c.
64735         (Depends-on): Add openat-die.
64736         * modules/openat-die: New module.
64737
64738 2007-05-06  Bruno Haible  <bruno@clisp.org>
64739
64740         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64741         Update with info about Cygwin.
64742         * doc/functions/fprintf.texi: Update.
64743         * doc/functions/printf.texi: Update.
64744         * doc/functions/snprintf.texi: Update.
64745         * doc/functions/sprintf.texi: Update.
64746         * doc/functions/vfprintf.texi: Update.
64747         * doc/functions/vprintf.texi: Update.
64748         * doc/functions/vsnprintf.texi: Update.
64749         * doc/functions/vsprintf.texi: Update.
64750         Reported by Eric Blake.
64751
64752 2007-05-06  Bruno Haible  <bruno@clisp.org>
64753
64754         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64755         padding ourselves for the floating-point directives.
64756         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64758         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64759         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64760         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64764         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64765         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64767         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64768         * tests/test-snprintf-posix.h (test_function): Also check the width
64769         and some flags in the %f directive.
64770         * tests/test-sprintf-posix.h (test_function): Likewise.
64771         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64772         * tests/test-vasprintf-posix.c (test_function): Likewise.
64773         * doc/functions/fprintf.texi: Update.
64774         * doc/functions/printf.texi: Update.
64775         * doc/functions/snprintf.texi: Update.
64776         * doc/functions/sprintf.texi: Update.
64777         * doc/functions/vfprintf.texi: Update.
64778         * doc/functions/vprintf.texi: Update.
64779         * doc/functions/vsnprintf.texi: Update.
64780         * doc/functions/vsprintf.texi: Update.
64781
64782 2007-05-06  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64785         pass the ' flag character to sprintf or snprintf.
64786         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64789         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64790         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64798         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64799         flag.
64800         * tests/test-sprintf-posix.h (test_function): Likewise.
64801         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64802         * tests/test-vasprintf-posix.c (test_function): Likewise.
64803         * doc/functions/fprintf.texi: Update.
64804         * doc/functions/printf.texi: Update.
64805         * doc/functions/snprintf.texi: Update.
64806         * doc/functions/sprintf.texi: Update.
64807         * doc/functions/vfprintf.texi: Update.
64808         * doc/functions/vprintf.texi: Update.
64809         * doc/functions/vsnprintf.texi: Update.
64810         * doc/functions/vsprintf.texi: Update.
64811
64812 2007-05-01  Bruno Haible  <bruno@clisp.org>
64813
64814         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64815
64816 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64819         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64820
64821 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64824         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64825         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64826
64827 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64828
64829         * lib/argp-help.c (struct hol_entry): New member `ord'.
64830         (HOL_ENTRY_PTRCMP): Use ord for comparison
64831         (hol_sort): Initialize ord.
64832
64833 2007-05-01  Bruno Haible  <bruno@clisp.org>
64834
64835         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64836         Reported by Eric Blake.
64837         * doc/gnulib.texi (Function Substitutes): Update.
64838
64839 2007-05-01  Bruno Haible  <bruno@clisp.org>
64840
64841         * doc/functions.texi: Remove file, now redundant through
64842         doc/functions/*.texi.
64843
64844 2007-05-01  Bruno Haible  <bruno@clisp.org>
64845
64846         * modules/argp (Depends-on): Add sleep.
64847
64848 2007-05-01  Bruno Haible  <bruno@clisp.org>
64849
64850         * modules/sleep-tests: New file.
64851         * tests/test-sleep.c: New file.
64852
64853         * modules/sleep: New file.
64854         * lib/sleep.c: New file.
64855         * m4/sleep.m4: New file.
64856         * lib/unistd_.h (sleep): New declaration.
64857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64858         HAVE_SLEEP.
64859         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64860         * doc/functions/sleep.texi: Document the sleep module.
64861
64862 2007-05-01  Bruno Haible  <bruno@clisp.org>
64863
64864         * lib/sigprocmask.h: Remove file.
64865         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64866         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64867         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64868         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64869         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64870         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64871         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64872         HAVE_SIGSET_T as a shell variable.
64873         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64874         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64875         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64876         (Depends-on): Add signal. Remove verify.
64877         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64878         (Include): Mention <signal.h> instead of sigprocmask.h.
64879         * NEWS: Mention the change.
64880         * lib/fatal-signal.c: Don't include sigprocmask.h.
64881
64882 2007-05-01  Bruno Haible  <bruno@clisp.org>
64883
64884         * modules/signal: New file.
64885         * lib/signal_.h: New file.
64886         * m4/signal_h.m4: New file.
64887
64888 2007-05-01  Bruno Haible  <bruno@clisp.org>
64889
64890         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64891         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64892         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64893         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64894
64895 2007-05-01  Bruno Haible  <bruno@clisp.org>
64896
64897         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64898         configure time.
64899         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64900         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64901         * modules/sys_stat (Makefile.am): Substitute their values into
64902         sys/stat.h.
64903
64904 2007-05-01  Bruno Haible  <bruno@clisp.org>
64905
64906         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64907         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64908         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64909
64910 2007-05-01  Bruno Haible  <bruno@clisp.org>
64911
64912         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64913         'assert' module here.
64914
64915 2007-05-01  Bruno Haible  <bruno@clisp.org>
64916
64917         * doc/functions/*.texi: New files.
64918         * doc/functions/google-ranking.txt: New file.
64919         * doc/gnulib.texi (Function Substitutes): New chapter.
64920         (ctime, inet_ntoa): Remove sections.
64921         * doc/ctime.texi: Remove file.
64922         * doc/inet_ntoa.texi: Remove file.
64923         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64924         dependencies.
64925         (%.info): New rule, specifying a --reference-limit.
64926
64927 2007-05-01  Bruno Haible  <bruno@clisp.org>
64928
64929         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64930
64931 2007-05-01  Bruno Haible  <bruno@clisp.org>
64932
64933         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64934         the portability of 'mkdir' to mingw systems.
64935
64936 2007-05-01  Bruno Haible  <bruno@clisp.org>
64937
64938         * doc/headers/google-ranking.txt: New file.
64939
64940 2007-04-30  Eric Blake  <ebb9@byu.net>
64941
64942         Prefer fseeko to fseek.
64943         * modules/getpass (Depends-on): Add fseeko.
64944         * lib/getpass.c (getpass): Use fseeko, not fseek.
64945
64946 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64947
64948         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64949         assumes the sorting is stable, while most qsort implementations
64950         are not.  Use argument addresses to ensure they never compare as
64951         equal.
64952
64953         * tests/test-argp-2.sh (usage-indent test): Fix output
64954         (func_compare): Restore diff options
64955         * tests/test-argp.c: Restore #include "progname.h"
64956
64957 2007-04-29  Bruno Haible  <bruno@clisp.org>
64958
64959         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64961         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64962         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64963         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64964         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64965         (TESTS, check_PROGRAMS): Add test-snprintf.
64966         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64967         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64968         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64969         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64970         assertions that fail on HP-UX, OSF/1, or IRIX.
64971         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64972
64973 2007-04-29  Bruno Haible  <bruno@clisp.org>
64974
64975         * MODULES.html.sh (posix_functions): Remove 'contents'.
64976
64977 2007-04-29  Karl Berry  <karl@gnu.org>
64978
64979         * config/srclist.txt (gendocs_template_min): new entry.
64980
64981 2007-04-29  Bruno Haible  <bruno@clisp.org>
64982
64983         Work around fpurge bug on BSD systems.
64984         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64985         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64986         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64987         fpurge to rpl_fpurge if the system already has this function.
64988         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64989         the case where the system already has this function. Correct invariants
64990         on BSD systems.
64991         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64992         BSD systems.
64993
64994 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64995
64996         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64997         proposed by Sven Verdoolaege.
64998
64999         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65000         options.
65001         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65002         (usage and help tests): Update
65003
65004 2007-04-29  Bruno Haible  <bruno@clisp.org>
65005
65006         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65007         Print more information in case of failure. Disable a test on BeOS.
65008
65009 2007-04-29  Bruno Haible  <bruno@clisp.org>
65010
65011         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65012         This helps debugging on systems on which no gdb is available.
65013
65014 2007-04-29  Bruno Haible  <bruno@clisp.org>
65015
65016         * lib/freading.h: Improve comments.
65017         * lib/fwriting.h: Likewise.
65018         * tests/test-freading.c (main): Don't check freading immediately after
65019         repositioning. Needed for glibc.
65020
65021 2007-04-29  Bruno Haible  <bruno@clisp.org>
65022
65023         * lib/freading.c (freading): Trivial simplification.
65024
65025 2007-04-28  Bruno Haible  <bruno@clisp.org>
65026
65027         * tests/test-fwriting.c (main): Also test the interaction between
65028         fflush and fwriting.
65029         * modules/fwriting-tests (Depends-on): Add fflush.
65030
65031         * tests/test-freading.c (main): Also test the interaction between
65032         fflush and freading.
65033         * modules/freading-tests (Depends-on): Add fflush.
65034
65035 2007-04-28  Bruno Haible  <bruno@clisp.org>
65036
65037         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65038         fseeko and ftello.
65039         Suggested by Eric Blake.
65040
65041 2007-04-28  Jim Meyering  <jim@meyering.net>
65042
65043         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65044         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65045         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65046
65047 2007-04-27  Eric Blake  <ebb9@byu.net>
65048
65049         * doc/headers/assert.texi (assert.h): Document assert module use.
65050
65051 2007-04-27  Bruno Haible  <bruno@clisp.org>
65052
65053         * doc/headers/*.texi: New files.
65054         * doc/gnulib.texi (Header File Substitutes): New chapter.
65055         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65056         dependencies.
65057         (standards.info ,standards.html, standards.dvi): Update dependencies.
65058         (mostlyclean, clean): New targets.
65059
65060 2007-04-27  Bruno Haible  <bruno@clisp.org>
65061
65062         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65063         * modules/sysexits (Files, Makefile.am): Update.
65064
65065         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65066         * modules/sys_socket (Files, Makefile.am): Update.
65067
65068         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65069         * modules/sys_stat (Files, Makefile.am): Update.
65070
65071 2007-04-27  Eric Blake  <ebb9@byu.net>
65072
65073         * lib/freading.h: Improve comments.
65074         * lib/fwriting.h: Likewise.
65075         * lib/fflush.c: Likewise.
65076
65077         Fix closein for mingw.
65078         * modules/closein-tests: Add tests for closein.
65079         * tests/test-closein.c: New file.
65080         * tests/test-closein.sh: Likewise.
65081         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65082         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65083
65084 2007-04-27  Bruno Haible  <bruno@clisp.org>
65085
65086         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65087         version is < 6.
65088         * lib/math_.h [__DECC]: Likewise.
65089         * lib/stdio_.h [__DECC]: Likewise.
65090         * lib/stdlib_.h [__DECC]: Likewise.
65091         * lib/string_.h [__DECC]: Likewise.
65092         * lib/time_.h [__DECC]: Likewise.
65093         * lib/wchar_.h [__DECC]: Likewise.
65094         * lib/wctype_.h [__DECC]: Likewise.
65095
65096 2007-04-27  Bruno Haible  <bruno@clisp.org>
65097
65098         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65099
65100 2007-04-27  Bruno Haible  <bruno@clisp.org>
65101
65102         * lib/fflush.c: Add comments.
65103         * modules/fpurge-tests (Depends-on): Add fflush.
65104         * modules/freadable-tests (Depends-on): Likewise.
65105         * modules/fwritable-tests (Depends-on): Likewise.
65106
65107 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65108
65109         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65110         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65111         Report by Bruno Haible <bruno@clisp.org>.
65112
65113 2007-04-26  Eric Blake  <ebb9@byu.net>
65114
65115         Fix fflush on mingw.
65116         * modules/fflush (Depends-on): Add freading.
65117         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65118         but unread data.
65119
65120 2007-04-26  Eric Blake  <ebb9@byu.net>
65121         and Bruno Haible  <bruno@clisp.org>
65122
65123         Implement freading and fwriting.
65124         * lib/freading.c: New file.
65125         * lib/freading.h: Likewise.
65126         * m4/freading.m4: Likewise.
65127         * modules/freading: Likewise.
65128         * modules/freading-tests: Likewise.
65129         * tests/test-freading.c: Likewise.
65130         * lib/fwriting.c: New file.
65131         * lib/fwriting.h: Likewise.
65132         * m4/fwriting.m4: Likewise.
65133         * modules/fwriting: Likewise.
65134         * modules/fwriting-tests: Likewise.
65135         * tests/test-fwriting.c: Likewise.
65136         * MODULES.html.sh (File stream based Input/Output): Mention them.
65137
65138 2007-04-26  Bruno Haible  <bruno@clisp.org>
65139
65140         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65141         'long' when we assume it.
65142         Suggested by Eric Blake.
65143
65144 2007-04-26  Bruno Haible  <bruno@clisp.org>
65145
65146         Ensure fseeko, ftello are declared on glibc systems.
65147         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65148         * modules/fseeko (configure.ac-early): Likewise.
65149         * modules/ftello (configure.ac-early): Likewise.
65150         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65151         AC_FUNC_FSEEKO for this.
65152         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65153         (gl_CHECK_FSEEKO): Remove macro.
65154
65155 2007-04-26  Bruno Haible  <bruno@clisp.org>
65156
65157         * tests/test-fflush.c (main): Also check the ftell result after
65158         fflush and fseek/fseeko.
65159         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65160         file descriptor position cache in the stream.
65161         * lib/fseeko.c (rpl_fseeko): Likewise.
65162
65163 2007-04-26  Bruno Haible  <bruno@clisp.org>
65164
65165         * modules/fflush-tests (Depends-on): Add fseeko.
65166
65167 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65168             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65169
65170         * lib/argz_.h: ensure error_t definition is obtained in same
65171         mechanism system argz.h would have.
65172         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65173         argz facilities are known bad.  Err on the side of caution if
65174         cross-compiling.
65175
65176 2007-04-25  Eric Blake  <ebb9@byu.net>
65177
65178         * lib/fpurge.c (includes): Use stdlib.h for free.
65179         * tests/test-fflush.c (main): Also test fflush-fseeko.
65180
65181 2007-04-25  Bruno Haible  <bruno@clisp.org>
65182
65183         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65184         * lib/fseeko.c: New file.
65185         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65186         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65187         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65188         gl_FUNC_FSEEKO.
65189         (gl_FUNC_FSEEKO): Invoke it.
65190         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65191         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65192         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65193
65194 2007-04-25  Bruno Haible  <bruno@clisp.org>
65195
65196         * modules/fflush (Depends-on): Add ftello.
65197
65198 2007-04-25  Bruno Haible  <bruno@clisp.org>
65199
65200         * modules/ftello-tests: New file.
65201         * tests/test-ftello.c: New file.
65202
65203         * modules/ftello: New file.
65204         * m4/ftello.m4: New file.
65205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65206         HAVE_FTELLO.
65207         * lib/stdio_.h (ftello): New declaration.
65208         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65209         HAVE_FTELLO.
65210
65211 2007-04-25  Bruno Haible  <bruno@clisp.org>
65212
65213         * modules/fseeko-tests: New file.
65214         * tests/test-fseeko.c: New file.
65215
65216         * modules/fseeko: New file.
65217         * m4/fseeko.m4: New file.
65218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65219         HAVE_FSEEKO.
65220         * lib/stdio_.h (fseeko): New declaration.
65221         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65222         HAVE_FSEEKO.
65223
65224 2007-04-25  Bruno Haible  <bruno@clisp.org>
65225
65226         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65227
65228 2007-04-25  Bruno Haible  <bruno@clisp.org>
65229
65230         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65231         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65232         * tests/test-unistd.c: Likewise.
65233         * tests/test-fcntl.c: Likewise.
65234
65235 2007-04-23  Eric Blake  <ebb9@byu.net>
65236
65237         * lib/fflush.c: Fix missing include.
65238         Reported by Bruno Haible.
65239
65240 2007-04-23  Bruno Haible  <bruno@clisp.org>
65241
65242         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65243         Reported by Eric Blake.
65244
65245 2007-04-23  Bruno Haible  <bruno@clisp.org>
65246
65247         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65248
65249 2007-04-23  Bruno Haible  <bruno@clisp.org>
65250
65251         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65252
65253 2007-04-23  Bruno Haible  <bruno@clisp.org>
65254
65255         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65256         Needed on HP-UX 11.
65257
65258 2007-04-16  Eric Blake  <ebb9@byu.net>
65259
65260         Make fflush rely on fpurge.
65261         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65262         open coding all variants.
65263         * modules/fflush (Depends-on): Add fpurge and unistd.
65264         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65265         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65266
65267         Fix --with-tests compilation on cygwin.
65268         * modules/argmatch-tests (Makefile.am): List gnulib library first
65269         in LDADD.
65270         * modules/argp-tests (Makefile.am): Likewise.
65271         * modules/array-list-tests (Makefile.am): Likewise.
65272         * modules/array-oset-tests (Makefile.am): Likewise.
65273         * modules/avltree-list-tests (Makefile.am): Likewise.
65274         * modules/avltree-oset-tests (Makefile.am): Likewise.
65275         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65276         * modules/carray-list-tests (Makefile.am): Likewise.
65277         * modules/dirname-tests (Makefile.am): Likewise.
65278         * modules/frexp-tests (Makefile.am): Likewise.
65279         * modules/isnanl-tests (Makefile.am): Likewise.
65280         * modules/linked-list-tests (Makefile.am): Likewise.
65281         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65282         * modules/lock-tests (Makefile.am): Likewise.
65283         * modules/rbtree-list-tests (Makefile.am): Likewise.
65284         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65285         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65286         * modules/tls-tests (Makefile.am): Likewise.
65287         * modules/tsearch-tests (Makefile.am): Likewise.
65288         * modules/xvasprintf-tests (Makefile.am): Likewise.
65289
65290         Fix fpurge for cygwin.
65291         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65292         value.
65293         * modules/fpurge-tests (Depends-on): Clean up trash.
65294
65295 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65296
65297         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65298
65299         * m4/autobuild.m4: Re-indent.
65300
65301 2007-04-13  Bruno Haible  <bruno@clisp.org>
65302
65303         * modules/fpurge-tests: New file.
65304         * tests/test-fpurge.c: New file.
65305
65306         * modules/fpurge: New file.
65307         * lib/fpurge.h: New file.
65308         * lib/fpurge.c: New file.
65309         * m4/fpurge.m4: New file.
65310
65311 2007-04-13  Bruno Haible  <bruno@clisp.org>
65312
65313         * modules/fbufmode-tests: New file.
65314         * tests/test-fbufmode.c: New file.
65315
65316         * modules/fbufmode: New file.
65317         * lib/fbufmode.h: New file.
65318         * lib/fbufmode.c: New file.
65319         * m4/fbufmode.m4: New file.
65320
65321 2007-04-13  Bruno Haible  <bruno@clisp.org>
65322
65323         * modules/fwritable-tests: New file.
65324         * tests/test-fwritable.c: New file.
65325
65326         * modules/fwritable: New file.
65327         * lib/fwritable.h: New file.
65328         * lib/fwritable.c: New file.
65329         * m4/fwritable.m4: New file.
65330
65331 2007-04-13  Bruno Haible  <bruno@clisp.org>
65332
65333         * modules/freadable-tests: New file.
65334         * tests/test-freadable.c: New file.
65335
65336         * modules/freadable: New file.
65337         * lib/freadable.h: New file.
65338         * lib/freadable.c: New file.
65339         * m4/freadable.m4: New file.
65340
65341 2007-04-13  Bruno Haible  <bruno@clisp.org>
65342
65343         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65344         MOSTLYCLEANFILES.
65345
65346 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65347
65348         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65349         gzip bootstrap.conf to avoid dragging in i18n machinery.
65350         (gnulib_tool_option): Use it.
65351
65352 2007-04-13  Bruno Haible  <bruno@clisp.org>
65353
65354         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65355         %F directives.
65356         * tests/test-vasprintf-posix.c (test_function): Likewise.
65357         * tests/test-snprintf-posix.h (test_function): Likewise.
65358         * tests/test-sprintf-posix.h (test_function): Likewise.
65359         * tests/test-fprintf-posix.h (test_function): Likewise.
65360         * tests/test-printf-posix.h (test_function): Likewise.
65361         * tests/test-fprintf-posix.out: Likewise.
65362
65363 2007-04-13  Bruno Haible  <bruno@clisp.org>
65364
65365         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65366         * modules/tls-tests (configure.ac): Likewise.
65367         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65368
65369 2007-04-13  Bruno Haible  <bruno@clisp.org>
65370
65371         * lib/tls.c (glthread_tls_get): Fix return type.
65372         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65373
65374 2007-04-12  Eric Blake  <ebb9@byu.net>
65375
65376         * modules/gettime (Depends-on): Remove gettime.
65377         Reported by Dmitry V. Levin.
65378
65379 2007-04-12  Bruno Haible  <bruno@clisp.org>
65380
65381         * modules/fflush (Include): Mention <stdio.h>.
65382         * modules/strtoimax (Include): Mention <inttypes.h>.
65383         * modules/strtoumax (Include): Likewise.
65384
65385 2007-04-12  Eric Blake  <ebb9@byu.net>
65386
65387         * .cvsignore: New file.
65388         * .gitignore: Likewise.
65389
65390 2007-04-12  Bruno Haible  <bruno@clisp.org>
65391
65392         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65393         not before, since $(LDADD) often contains libgnu.a.
65394         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65395         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65396         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65397         Needed on Cygwin.
65398
65399 2007-04-12  Eric Blake  <ebb9@byu.net>
65400
65401         Work around glibc's failure to flush stdin on fclose.
65402         * lib/closein.c (close_stdin): Flush stdin before closing.
65403
65404         Work around glibc's failure to reset seekable stdin on exit.
65405         * modules/closein: New module.
65406         * lib/closein.c: New file.
65407         * lib/closein.h: Likewise.
65408         * m4/closein.m4: Likewise.
65409         * MODULES.html.sh (File stream based Input/Output): Document it.
65410
65411 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65412
65413         * gnulib-tool: Rename generated 'autobuild' script to
65414         'do-autobuild' in --create-megatestdir output.
65415
65416         * doc/gnulib.texi (Build robot for gnulib): Fix.
65417
65418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65419
65420         * modules/sysexits (Depends-on): Add absolute-header.
65421
65422 2007-04-12  Eric Blake  <ebb9@byu.net>
65423
65424         No need to preserve errno on success.
65425         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65426         Reported by Bruno Haible.
65427
65428 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65429
65430         * MODULES.html.sh (Support for maintaining and releasing
65431         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65432
65433 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65434
65435         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65436
65437 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65438
65439         * modules/autobuild: New module.
65440
65441         * m4/autobuild.m4: New file.
65442
65443 2007-04-11  Bruno Haible  <bruno@clisp.org>
65444
65445         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65446         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65448         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65449         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65458         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65459         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65460         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65462         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65463         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65465         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65466         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65468         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65469         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65471         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65472         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65473         Reported by Eric Blake.
65474
65475 2007-04-11  Bruno Haible  <bruno@clisp.org>
65476
65477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65478
65479 2007-04-10  Bruno Haible  <bruno@clisp.org>
65480
65481         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65482         for NaN and Infinity. Needed on FreeBSD 6.1.
65483         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65484         regarding results for "%010a" of Infinity and NaN.
65485         * tests/test-vasprintf-posix.c (test_function): Likewise.
65486         * tests/test-snprintf-posix.h (test_function): Likewise.
65487         * tests/test-sprintf-posix.h (test_function): Likewise.
65488         * tests/test-fprintf-posix.h (test_function): Likewise.
65489         * tests/test-printf-posix.h (test_function): Likewise.
65490         * tests/test-fprintf-posix.out: Likewise.
65491
65492 2007-04-10  Bruno Haible  <bruno@clisp.org>
65493
65494         * modules/locale-tests: New file.
65495         * tests/test-locale.c: New file.
65496
65497         * modules/locale: New file.
65498         * lib/locale_.h: New file.
65499         * m4/locale_h.m4: New file.
65500
65501 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65502             Bruno Haible  <bruno@clisp.org>
65503
65504         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65505         be determined, test for availability of the copysignf, copysign,
65506         copysignl functions.
65507         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65508         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65509         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65510
65511 2007-04-09  Eric Blake  <ebb9@byu.net>
65512
65513         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65514         * modules/stdio (Makefile.am): Support fflush.
65515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65516         * modules/fflush: New file.
65517         * lib/fflush.c: Likewise.
65518         * m4/fflush.m4: Likewise.
65519         * modules/fflush-tests: New test.
65520         * tests/test-fflush.c: Likewise.
65521         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65522
65523 2007-04-06  Bruno Haible  <bruno@clisp.org>
65524
65525         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65526         (VASNPRINTF): Use signbit for faster determination whether to print a
65527         minus sign.
65528         * modules/vasnprintf (Files): Remove lib/float+.h.
65529         * modules/fprintf-posix (Depends-on): Add signbit.
65530         * modules/snprintf-posix (Depends-on): Likewise.
65531         * modules/sprintf-posix (Depends-on): Likewise.
65532         * modules/vasnprintf-posix (Depends-on): Likewise.
65533         * modules/vasprintf-posix (Depends-on): Likewise.
65534         * modules/vfprintf-posix (Depends-on): Likewise.
65535         * modules/vsnprintf-posix (Depends-on): Likewise.
65536         * modules/vsprintf-posix (Depends-on): Likewise.
65537
65538 2007-04-06  Bruno Haible  <bruno@clisp.org>
65539
65540         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65541         * tests/test-frexpl.c (main): Likewise.
65542         * tests/test-ldexpl.c (main): Likewise.
65543         * modules/frexp-tests (Depends-on): Add signbit.
65544         * modules/frexpl-tests (Depdends-on): Likewise.
65545         * modules/ldexpl-tests (Depdends-on): Likewise.
65546
65547 2007-04-06  Bruno Haible  <bruno@clisp.org>
65548
65549         * modules/signbit-tests: New file.
65550         * tests/test-signbit.c: New file.
65551
65552         * modules/signbit: New file.
65553         * lib/signbitf.c: New file.
65554         * lib/signbitd.c: New file.
65555         * lib/signbitl.c: New file.
65556         * m4/signbit.m4: New file.
65557         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65558         (signbit): New macro.
65559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65560         REPLACE_SIGNBIT.
65561         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65562         REPLACE_FREXPL into math.h.
65563
65564 2007-04-06  Bruno Haible  <bruno@clisp.org>
65565
65566         * modules/isnanf-nolibm-tests: New file.
65567         * tests/test-isnanf.c: New file.
65568
65569         * modules/isnanf-nolibm: New file.
65570         * lib/isnanf.h: New file.
65571         * lib/isnanf.c: New file.
65572         * lib/isnan.c: Consider the USE_FLOAT macro.
65573         * m4/isnanf.m4: New file.
65574
65575 2007-04-06  Bruno Haible  <bruno@clisp.org>
65576
65577         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65578         (Link): New section.
65579
65580         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65581
65582 2007-04-06  Bruno Haible  <bruno@clisp.org>
65583
65584         Assume the 'long double' type.
65585         * m4/longdouble.m4: Remove file.
65586         * config/srclist.txt: Don't mention longdouble.m4.
65587         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65588         * lib/float+.h: Likewise.
65589         * lib/frexp.c: Likewise.
65590         * lib/printf-args.h: Likewise.
65591         * lib/printf-args.c: Likewise.
65592         * lib/printf-frexp.c: Likewise.
65593         * lib/printf-parse.c: Likewise.
65594         * lib/vasnprintf.c: Likewise.
65595         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65596         * m4/intl.m4: Likewise.
65597         * m4/isnanl.m4: Likewise.
65598         * m4/printf.m4: Likewise.
65599         * m4/printf-frexpl.m4: Likewise.
65600         * m4/vasnprintf.m4: Likewise.
65601         * modules/allocsa (Files): Remove m4/longdouble.m4.
65602         * modules/gettext (Files): Likewise.
65603         * modules/relocatable-prog-wrapper (Files): Likewise.
65604         * modules/vasnprintf (Files): Likewise.
65605         * modules/isnanl (Files): Likewise.
65606         (Include): Simplify.
65607         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65608         (Include): Simplify.
65609         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65610         (Include): Simplify.
65611         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65612         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65613         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65614         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65615         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65616         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65617         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65618         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65619         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65620         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65621         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65622         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65623         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65624         * tests/test-isnanl.c: Likewise.
65625         * tests/test-snprintf-posix.h: Likewise.
65626         * tests/test-sprintf-posix.h: Likewise.
65627         * tests/test-vasnprintf-posix.c: Likewise.
65628         * tests/test-vasnprintf-posix2.c: Likewise.
65629         * tests/test-vasprintf-posix.c: Likewise.
65630
65631 2007-04-06  Bruno Haible  <bruno@clisp.org>
65632
65633         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65634         * lib/math_.h [__DECC]: Include the overridden include file through
65635         #include_next, outside the double-inclusion guard.
65636         * lib/stdio_.h [__DECC]: Likewise.
65637         * lib/stdlib_.h [__DECC]: Likewise.
65638         * lib/string_.h [__DECC]: Likewise.
65639         * lib/time_.h [__DECC]: Likewise.
65640         * lib/wchar_.h [__DECC]: Likewise.
65641         * lib/wctype_.h [__DECC]: Likewise.
65642         * lib/inttypes_.h [__DECC]: Likewise.
65643         Reported by Albert Chin <china@thewrittenword.com> in
65644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65645
65646 2007-04-04  Eric Blake  <ebb9@byu.net>
65647
65648         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65649         1.5.x.
65650
65651 2007-04-04  Bruno Haible  <bruno@clisp.org>
65652
65653         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65654         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65655
65656 2007-04-04  Bruno Haible  <bruno@clisp.org>
65657
65658         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65659         results for "%010a" of Infinity and NaN.
65660         * tests/test-vasprintf-posix.c (test_function): Likewise.
65661         * tests/test-snprintf-posix.h (test_function): Likewise.
65662         * tests/test-sprintf-posix.h (test_function): Likewise.
65663         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65664         * tests/test-printf-posix.h (test_function): Likewise.
65665         * tests/test-fprintf-posix.out: Update.
65666         Needed for FreeBSD 6.1.
65667
65668 2007-04-04  Bruno Haible  <bruno@clisp.org>
65669
65670         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65671         directly used by the gnulib modules nor by gnulib-tool.
65672
65673 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65674
65675         * DEPENDENCIES: Give overall description of version dependency
65676         desirability.  Use more-typical names for apps.
65677         Add shell, coreutils, diffutils, grep, tar, gzip.
65678
65679 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65680
65681         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65682
65683 2007-04-04  Karl Berry  <karl@gnu.org>
65684
65685         * MODULES.html.sh (func_module): missing '.
65686
65687 2007-04-03  Bruno Haible  <bruno@clisp.org>
65688
65689         * modules/argmatch-tests (Makefile.am): New variable
65690         test_argmatch_LDADD.
65691         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65692         * modules/array-list-tests (Makefile.am): New variable
65693         test_array_list_LDADD.
65694         * modules/array-oset-tests (Makefile.am): New variable
65695         test_array_oset_LDADD.
65696         * modules/avltree-list-tests (Makefile.am): New variable
65697         test_avltree_list_LDADD.
65698         * modules/avltree-oset-tests (Makefile.am): New variable
65699         test_avltree_oset_LDADD.
65700         * modules/avltreehash-list-tests (Makefile.am): New variable
65701         test_avltreehash_list_LDADD.
65702         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65703         test_canonicalize_lgpl_LDADD.
65704         * modules/carray-list-tests (Makefile.am): New variable
65705         test_carray_list_LDADD.
65706         * modules/dirname-tests (Makefile.am): New variable
65707         test_dirname_LDADD.
65708         * modules/linked-list-tests (Makefile.am): New variable
65709         test_linked_list_LDADD.
65710         * modules/linkedhash-list-tests (Makefile.am): New variable
65711         test_linkedhash_list_LDADD.
65712         * modules/rbtree-list-tests (Makefile.am): New variable
65713         test_rbtree_list_LDADD.
65714         * modules/rbtree-oset-tests (Makefile.am): New variable
65715         test_rbtree_oset_LDADD.
65716         * modules/rbtreehash-list-tests (Makefile.am): New variable
65717         test_rbtreehash_list_LDADD.
65718         * modules/xvasprintf-tests (Makefile.am): New variable
65719         test_xvasprintf_LDADD.
65720         Reported by Eric Blake.
65721
65722 2007-04-03  Eric Blake  <ebb9@byu.net>
65723
65724         * DEPENDENCIES: Weaken m4 requirements.
65725
65726 2007-04-03  Bruno Haible  <bruno@clisp.org>
65727
65728         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65729         * modules/isnanl-tests (configure.ac): Likewise.
65730
65731 2007-04-03  Ben Pfaff  <blp@gnu.org>
65732
65733         * modules/iconv_open: Add $(srcdir)/ to source directory
65734         references in Makefile fragments that call gperf, to fix VPATH
65735         builds.
65736
65737 2007-04-03  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65740         * lib/ldexpl.c: Undo last change.
65741
65742 2007-04-03  Bruno Haible  <bruno@clisp.org>
65743
65744         * modules/printf-frexpl (Depends-on): Undo last change.
65745         (Files): Add m4/ldexpl.m4.
65746
65747 2007-04-03  Bruno Haible  <bruno@clisp.org>
65748
65749         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65750         * modules/isnanl (Link): New section.
65751
65752         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65753         * modules/frexp (Link): New section.
65754
65755         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65756         * modules/frexpl (Link): New section.
65757
65758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65759         * modules/ldexpl (Link): New section.
65760
65761 2007-04-03  Bruno Haible  <bruno@clisp.org>
65762
65763         * modules/TEMPLATE-EXTENDED: New file.
65764         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65765
65766 2007-04-03  Bruno Haible  <bruno@clisp.org>
65767
65768         * DEPENDENCIES: New file.
65769         Suggested by Simon Josefsson.
65770
65771 2007-04-03  Bruno Haible  <bruno@clisp.org>
65772
65773         * doc/gnulib.texi: Escape @.
65774
65775 2007-04-03  James Youngman  <jay@gnu.org>
65776         and Paul Eggert  <eggert@cs.ucla.edu>
65777
65778         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65779         birthtime on all systems that have birthtime, not just those which
65780         use st_birthtimensec rather than st_birthtim.  Putting zero in
65781         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65782         that the birth time is not available for files on an NFS mount.
65783
65784 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65785
65786         * modules/memxor: Move back from crypto/, suggested by Bruno.
65787         * modules/crypto/hmac-sha1: Fix memxor dependency.
65788
65789         * modules/crypto/gc: Moved from ../.
65790
65791 2007-04-02  Eric Blake  <ebb9@byu.net>
65792
65793         * lib/ldexpl.c (includes): Avoid libm.
65794
65795         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65796
65797 2007-04-02  Bruno Haible  <bruno@clisp.org>
65798
65799         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65800         on IRIX.
65801
65802 2007-04-02  Bruno Haible  <bruno@clisp.org>
65803
65804         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65805         x86 or x86_64 platforms running MacOS X.
65806         Reported by Ryan Schmidt <@ryandesign.com>.
65807
65808 2007-04-02  Bruno Haible  <bruno@clisp.org>
65809
65810         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65811         i386.
65812
65813 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65814
65815         * modules/crypto/arcfour: Moved from ../.
65816         * modules/crypto/arcfour-tests: Moved from ../.
65817         * modules/crypto/arctwo: Moved from ../.
65818         * modules/crypto/arctwo-tests: Moved from ../.
65819         * modules/crypto/des: Moved from ../.
65820         * modules/crypto/des-tests: Moved from ../.
65821         * modules/crypto/gc-arcfour: Moved from ../.
65822         * modules/crypto/gc-arcfour-tests: Moved from ../.
65823         * modules/crypto/gc-arctwo: Moved from ../.
65824         * modules/crypto/gc-arctwo-tests: Moved from ../.
65825         * modules/crypto/gc-des: Moved from ../.
65826         * modules/crypto/gc-des-tests: Moved from ../.
65827         * modules/crypto/gc-hmac-md5: Moved from ../.
65828         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65829         * modules/crypto/gc-hmac-sha1: Moved from ../.
65830         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65831         * modules/crypto/gc-md2: Moved from ../.
65832         * modules/crypto/gc-md2-tests: Moved from ../.
65833         * modules/crypto/gc-md4: Moved from ../.
65834         * modules/crypto/gc-md4-tests: Moved from ../.
65835         * modules/crypto/gc-md5: Moved from ../.
65836         * modules/crypto/gc-md5-tests: Moved from ../.
65837         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65838         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65839         * modules/crypto/gc-random: Moved from ../.
65840         * modules/crypto/gc-rijndael: Moved from ../.
65841         * modules/crypto/gc-rijndael-tests: Moved from ../.
65842         * modules/crypto/gc-sha1: Moved from ../.
65843         * modules/crypto/gc-sha1-tests: Moved from ../.
65844         * modules/crypto/gc-tests: Moved from ../.
65845         * modules/crypto/hmac-md5: Moved from ../.
65846         * modules/crypto/hmac-md5-tests: Moved from ../.
65847         * modules/crypto/hmac-sha1: Moved from ../.
65848         * modules/crypto/hmac-sha1-tests: Moved from ../.
65849         * modules/crypto/md2: Moved from ../.
65850         * modules/crypto/md2-tests: Moved from ../.
65851         * modules/crypto/md4: Moved from ../.
65852         * modules/crypto/md4-tests: Moved from ../.
65853         * modules/crypto/md5: Moved from ../.
65854         * modules/crypto/md5-tests: Moved from ../.
65855         * modules/crypto/memxor: Moved from ../.
65856         * modules/crypto/rijndael: Moved from ../.
65857         * modules/crypto/rijndael-tests: Moved from ../.
65858         * modules/crypto/sha1: Moved from ../.
65859
65860 2007-03-30  James Youngman  <jay@gnu.org>
65861
65862         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65863         rename() to change the ctime of a file (because ctime is unaffected
65864         by rename on jfs2 on AIX 5.1).
65865         (main): Start by doing cleanup, in case a previous run failed leaving
65866         test files behind.
65867
65868 2007-03-31  Bruno Haible  <bruno@clisp.org>
65869
65870         Support old proprietary implementations of iconv.
65871         * modules/iconv_open: New file.
65872         * lib/iconv_.h: New file.
65873         * m4/iconv_h.m4: New file.
65874         * lib/iconv_open.c: New file.
65875         * lib/iconv_open-aix.gperf: New file.
65876         * lib/iconv_open-hpux.gperf: New file.
65877         * lib/iconv_open-irix.gperf: New file.
65878         * lib/iconv_open-osf.gperf: New file.
65879         * m4/iconv_open.m4: New file.
65880         * modules/linebreak (Depends-on): Add iconv_open.
65881         * modules/striconv (Depends-on): Likewise.
65882         * modules/striconveh (Depends-on): Likewise.
65883         * modules/unicodeio (Depends-on): Likewise.
65884         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65885         (iconv_t)(-1).
65886         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65887         conversion if cd is (iconv_t)(-1).
65888         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65889         is not possible.
65890
65891 2007-03-31  Bruno Haible  <bruno@clisp.org>
65892
65893         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65894         work on Solaris either. Protect also second use of "autodetect_jp".
65895
65896 2007-03-31  Bruno Haible  <bruno@clisp.org>
65897
65898         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65899         the function is not present.
65900
65901 2007-03-31  Bruno Haible  <bruno@clisp.org>
65902
65903         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65904         the function is not present.
65905
65906 2007-03-31  Bruno Haible  <bruno@clisp.org>
65907
65908         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65909         a bug in HP-UX iconv_open().
65910
65911 2007-03-31  Bruno Haible  <bruno@clisp.org>
65912
65913         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65914         (Mathematics <math.h>): New section, add fpieee.
65915         (Input/output <stdio.h>): Add fseterr.
65916         (Mathematics <math.h>): New section, add printf-frexp.
65917         (Container data structures): Add sublist.
65918         (Core language properties): Add fpucw, inline.
65919         (Functions for greatest-width integer types <inttypes.h>): Add
65920         imaxabs, imaxdiv, inttypes.
65921         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65922         isnanl-nolibm, ldexp.
65923         (Mathematics <math.h>): New section, add printf-frexpl.
65924         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65925         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65926         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65927         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65928         (Unicode string functions): Add unistr/u*-mbtoucr.
65929         (Java): Add javacomp-script, javaexec-script.
65930         (C#): Add csharpcomp-script, csharpexec-script.
65931         (Support for building libraries and executables): Add havelib,
65932         relocatable-*.
65933         (Support for maintaining and releasing projects): Renamed from
65934         'Support for maintaining and release projects'. Add announce-gen.
65935
65936 2007-03-31  Bruno Haible  <bruno@clisp.org>
65937
65938         * README: Talk primarily about git.
65939         (git and CVS): Renamed from CVS.
65940         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65941         gnulib is available through git.
65942         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65943
65944 2007-03-30  Bruno Haible  <bruno@clisp.org>
65945
65946         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65947         * lib/poll_.h: Likewise.
65948         * lib/stat_.h: Likewise.
65949         * lib/sys_time_.h: Likewise.
65950         * lib/sysexit_.h: Likewise.
65951         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65952         * lib/stdbool_.h: Likewise.
65953         * lib/byteswap_.h: Add double-inclusion guard.
65954
65955 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65956
65957         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65958
65959 2007-03-30  Karl Berry  <karl@gnu.org>
65960
65961         * config/srclist-update: double space after USA in the license
65962         substitution, since that's how it's usually (?) written.
65963
65964 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65965
65966         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65967         reported by Bruno Haible.
65968
65969 2007-03-29  Bruno Haible  <bruno@clisp.org>
65970
65971         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65972         a bug in AIX iconv().
65973
65974 2007-03-29  Bruno Haible  <bruno@clisp.org>
65975
65976         * modules/ldexpl-tests: New file.
65977         * tests/test-ldexpl.c: New file.
65978
65979 2007-03-29  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/ldexpl.c: Include fpucw.h.
65982         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65983         multiplication.
65984         * modules/ldexpl (Depends-on): Add fpucw.
65985
65986 2007-03-29  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/ldexpl: New file.
65989         * m4/ldexpl.m4: New file.
65990         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65991         set.
65992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65993         REPLACE_LDEXPL.
65994         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65995         REPLACE_LDEXPL.
65996         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65997         gl_FUNC_LDEXPL_WORKS.
65998         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65999         * modules/mathl (Files): Remove lib/ldexpl.c.
66000         (Depends-on): Add ldexpl.
66001
66002 2007-03-29  Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66005
66006 2007-03-29  Bruno Haible  <bruno@clisp.org>
66007
66008         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66009         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66010         and possibly also HP-UX.
66011         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66012         work on AIX, IRIX, HP-UX, OSF/1.
66013         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66014         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66015         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66016         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66017         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66018         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66019
66020 2007-03-29  Bruno Haible  <bruno@clisp.org>
66021
66022         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66023
66024 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66025
66026         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66027         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66028
66029 2007-03-29  Eric Blake  <ebb9@byu.net>
66030
66031         * lib/acl-internal.h: Remove redundant include.
66032         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66033         Cygwin when a file is locked.
66034
66035 2007-03-29  Bruno Haible  <bruno@clisp.org>
66036
66037         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66038         file.
66039         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66040
66041 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66044         try to remove a parent directory if the child couldn't be removed
66045         (except for the first rmdir, which could fail because the child
66046         doesn't exist).  Problem reported by Jeff Blaine in
66047         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66048
66049 2007-03-28  Bruno Haible  <bruno@clisp.org>
66050
66051         * lib/striconveh.c (utf8conv_carefully): New function.
66052         (mem_cd_iconveh_internal): Invoke it.
66053
66054 2007-03-28  Bruno Haible  <bruno@clisp.org>
66055
66056         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66057         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66058         input.
66059         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66060         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66061         unistr/u8-uctomb.
66062
66063 2007-03-28  Bruno Haible  <bruno@clisp.org>
66064
66065         * modules/unistr/u8-mbtoucr: New file.
66066         * lib/unistr/u8-mbtoucr.c: New file.
66067         * modules/unistr/u16-mbtoucr: New file.
66068         * lib/unistr/u16-mbtoucr.c: New file.
66069         * modules/unistr/u16-mbtoucr: New file.
66070         * lib/unistr/u16-mbtoucr.c: New file.
66071         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66072
66073 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66074             Bruno Haible  <bruno@clisp.org>
66075
66076         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66077         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66078         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66079
66080         * m4/stdio_h.m4: Add stubs for vasprintf too.
66081
66082         * modules/stdio: Support vasprintf in sed command.
66083
66084         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66085         vasprintf.h.  Add stdio module indicator.
66086
66087         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66088         vasprintf.h.
66089
66090         * lib/vasprintf.h: File removed.
66091
66092         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66093         * lib/vasprintf.c: Ditto.
66094         * lib/xvasprintf.c: Ditto.
66095         * tests/test-vasprintf-posix.c: Ditto.
66096         * tests/test-vasprintf.c: Ditto.
66097
66098 2007-03-27  Bruno Haible  <bruno@clisp.org>
66099
66100         Make vasnprintf multithread-safe.
66101         * lib/vasnprintf.c (decimal_point_char): New function.
66102         (VASNPRINTF): Use it.
66103         Suggested by Simon Josefsson.
66104
66105 2007-03-27  Eric Blake  <ebb9@byu.net>
66106
66107         Support sub-second birthtime on cygwin.
66108         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66109         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66110         (get_stat_birthtime): Also work with st_birthtim.
66111
66112 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66113
66114         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66115         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66116         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66117         (get_stat_birthtime_ns): Simplify compile-time tests.
66118         (get_stat_birthtime): Change the API to look like
66119         get_stat_mtime etc., except return a negative tv_nsec on error.
66120         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66121         Don't check for "spare" fields.
66122         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66123         or for struct stat.st_birthtime, as these tests aren't used.
66124         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66125
66126 2007-03-27  Bruno Haible  <bruno@clisp.org>
66127
66128         * lib/stat-time.h: Include <sys/stat.h>.
66129
66130 2007-03-27  James Youngman  <jay@gnu.org>
66131
66132         * lib/stat-time.h (get_stat_birthtime): New function for
66133           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66134         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66135           and its variants.
66136         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66137         * modules/stat-time-test: New file.
66138         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66139
66140 2007-03-26  Bruno Haible  <bruno@clisp.org>
66141
66142         Better support of signalling NaNs.
66143         * lib/atanl.c: Include isnanl.h.
66144         (atanl): Perform test for NaN at the beginning of the function and
66145         through a call to isnanl.
66146         * lib/cosl.c: Include isnanl.h.
66147         (cosl): Perform test for NaN at the beginning of the function and
66148         through a call to isnanl.
66149         * lib/ldexpl.c: Include isnanl.h.
66150         (ldexpl): Perform test for NaN through a call to isnanl.
66151         * lib/logl.c: Include isnanl.h.
66152         (logl): Perform test for NaN at the beginning of the function and
66153         through a call to isnanl.
66154         * lib/sinl.c: Include isnanl.h.
66155         (sinl): Perform test for NaN at the beginning of the function and
66156         through a call to isnanl.
66157         * lib/sqrtl.c: Include isnanl.h.
66158         (sqrtl): Perform test for NaN at the beginning of the function and
66159         through a call to isnanl.
66160         * lib/tanl.c: Include isnanl.h.
66161         (tanl): Perform test for NaN at the beginning of the function and
66162         through a call to isnanl.
66163         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66164         * modules/mathl (Depends-on): Add isnanl.
66165
66166 2007-03-26  Eric Blake  <ebb9@byu.net>
66167
66168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66169         regression in logic sense of previous patch.
66170
66171 2007-03-26  Bruno Haible  <bruno@clisp.org>
66172
66173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66174         unportable shell command "if ! ...".
66175         Reported by Ralf Wildenhues.
66176
66177 2007-03-25  Bruno Haible  <bruno@clisp.org>
66178
66179         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66180         <sysexits.h> file, and only add EX_CONFIG.
66181         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66182         absolute file name and whether it is sufficient. Substitute also
66183         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66184         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66185         ABSOLUTE_SYSEXITS_H into sysexits.h.
66186
66187 2007-03-25  Bruno Haible  <bruno@clisp.org>
66188
66189         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66190         hints is NULL.
66191
66192 2007-03-25  Bruno Haible  <bruno@clisp.org>
66193
66194         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66195         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66196
66197 2007-03-25  Bruno Haible  <bruno@clisp.org>
66198
66199         * lib/vasnprintf.c: Include langinfo.h.
66200         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66201         multithread-safe.
66202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66204         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66205         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66207         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66208         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66210         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66211         Reported by Simon Josefsson.
66212
66213 2007-03-25  Bruno Haible  <bruno@clisp.org>
66214
66215         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66216         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66217         * modules/vasnprintf (Depends-on): Add stdint.
66218
66219 2007-03-25  Bruno Haible  <bruno@clisp.org>
66220
66221         * modules/fpieee: New file.
66222         * m4/fpieee.m4: New file.
66223         * modules/isnan-nolibm (Depends-on): Add fpieee.
66224         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66225         * modules/isnanl (Depends-on): Add fpieee.
66226
66227 2007-03-25  Bruno Haible  <bruno@clisp.org>
66228
66229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66230
66231 2007-03-25  Bruno Haible  <bruno@clisp.org>
66232
66233         Avoid test failures on IRIX 6.5.
66234         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66235         (main): Use it.
66236         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66237         macros.
66238         (main): Use them.
66239
66240 2007-03-25  Bruno Haible  <bruno@clisp.org>
66241
66242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66243         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66244         exists but doesn't work.
66245         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66246         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66248         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66249         math.h.
66250
66251 2007-03-25  Bruno Haible  <bruno@clisp.org>
66252
66253         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66254         returns inf. Needed on IRIX 6.5.
66255
66256 2007-03-25  Bruno Haible  <bruno@clisp.org>
66257
66258         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66259         (main): Use isnanl instead of x != x idiom.
66260         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66261
66262         * tests/test-frexp.c: Include isnan.h.
66263         (main): Use isnan instead of x != x idiom.
66264         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66265
66266 2007-03-25  Bruno Haible  <bruno@clisp.org>
66267
66268         * tests/test-frexp.c (NaN): New function/macro.
66269         (main): Use it instead of 0.0 / 0.0.
66270         * tests/test-isnan.c (NaN): New function/macro.
66271         (main): Use it instead of 0.0 / 0.0.
66272         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66273         (test_function): Use it instead of 0.0 / 0.0.
66274         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66275         (test_function): Use it instead of 0.0 / 0.0.
66276         * tests/test-snprintf-posix.h (NaN): New function/macro.
66277         (test_function): Use it instead of 0.0 / 0.0.
66278         * tests/test-sprintf-posix.h (NaN): New function/macro.
66279         (test_function): Use it instead of 0.0 / 0.0.
66280         * tests/test-fprintf-posix.h (NaN): New function/macro.
66281         (test_function): Use it instead of 0.0 / 0.0.
66282         * tests/test-printf-posix.h (NaN): New function/macro.
66283         (test_function): Use it instead of 0.0 / 0.0.
66284
66285         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66286
66287 2007-03-25  Bruno Haible  <bruno@clisp.org>
66288
66289         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66290
66291 2007-03-25  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/regexec.c (merge_state_with_log): Make static.
66294
66295 2007-03-25  Bruno Haible  <bruno@clisp.org>
66296
66297         * lib/trigl.c (kernel_rem_pio2): Make static.
66298
66299 2007-03-25  Bruno Haible  <bruno@clisp.org>
66300
66301         * lib/sincosl.c (sincosl_table): Make static.
66302
66303 2007-03-25  Bruno Haible  <bruno@clisp.org>
66304
66305         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66306         if the compiler does not support C99.
66307
66308 2007-03-25  Bruno Haible  <bruno@clisp.org>
66309
66310         * modules/time (Makefile.am): Ensure all rule action lines start with a
66311         tab.
66312
66313 2007-03-24  Bruno Haible  <bruno@clisp.org>
66314
66315         * modules/tsearch-tests: New file.
66316         * tests/test-tsearch.sh: New file.
66317         * tests/test-tsearch.c: New file, mostly copied from glibc.
66318
66319         * modules/search-tests: New file.
66320         * tests/test-search.c: New file.
66321
66322         * modules/search: New file.
66323         * lib/search_.h: New file, incorporating lib/tsearch.h.
66324         * m4/search_h.m4: New file.
66325         * lib/tsearch.h: Remove file.
66326         * lib/tsearch.c: Include search.h instead of tsearch.h.
66327         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66328         HAVE_TSEARCH.
66329         * modules/tsearch (Files): Remove lib/tsearch.h.
66330         (Depends-on): Add search.
66331         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66332         (Include): Change tsearch.h into search.h.
66333
66334 2007-03-24  Bruno Haible  <bruno@clisp.org>
66335
66336         * modules/fpucw: New file.
66337         * lib/fpucw.h: New file.
66338         * lib/frexp.c: Include fpucw.h.
66339         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66340         (FUNC): Use them.
66341         * lib/printf-frexp.c: Include fpucw.h.
66342         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66343         (FUNC): Use them.
66344         * lib/vasnprintf.c: Include fpucw.h.
66345         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66346         'long double' calculations.
66347         * tests/test-frexpl.c: Include fpucw.h.
66348         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66349         * tests/test-printf-frexpl.c: Include fpucw.h.
66350         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66351         * modules/frexpl (Depends-on): Add fpucw.
66352         * modules/printf-frexpl (Depends-on): Likewise.
66353         * modules/fprintf-posix (Depends-on): Likewise.
66354         * modules/snprintf-posix (Depends-on): Likewise.
66355         * modules/sprintf-posix (Depends-on): Likewise.
66356         * modules/vasnprintf-posix (Depends-on): Likewise.
66357         * modules/vasprintf-posix (Depends-on): Likewise.
66358         * modules/vfprintf-posix (Depends-on): Likewise.
66359         * modules/vsnprintf-posix (Depends-on): Likewise.
66360         * modules/vsprintf-posix (Depends-on): Likewise.
66361         * modules/frexpl-tests (Depends-on): Likewise.
66362         * modules/printf-frexpl-tests (Depends-on): Likewise.
66363
66364 2007-03-24  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/float+.h: New file.
66367         * lib/isnan.c: Include float+.h.
66368         (SIZE): New macro.
66369         (FUNC): Compare only SIZE bytes of the value.
66370         * lib/vasnprintf.c: Include float+.h.
66371         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66372         SIZEOF_LDBL or SIZEOF_DBL bytes.
66373         * modules/isnan-nolibm (Files): Add lib/float+.h.
66374         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66375         * modules/isnanl (Files): Add lib/float+.h.
66376         * modules/vasnprintf (Files): Add lib/float+.h.
66377
66378 2007-03-24  Bruno Haible  <bruno@clisp.org>
66379
66380         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66381         include isnanl-nolibm.h.
66382
66383 2007-03-24  Bruno Haible  <bruno@clisp.org>
66384
66385         * tests/test-read-file.c (main): Don't produce spurious output for
66386         expected situations. Make the test fail if it encountered unexpected
66387         results.
66388
66389 2007-03-24  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66392         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66393
66394 2007-03-24  Bruno Haible  <bruno@clisp.org>
66395
66396         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66397
66398 2007-03-24  Bruno Haible  <bruno@clisp.org>
66399
66400         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66401         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66402
66403         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66404         * modules/utf8-ucs4: Turn into a symbolic link to module
66405         unistr/u8-mbtouc.
66406
66407         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66408         utf8-ucs4-unsafe.
66409         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66410         unistr/u8-mbtouc-unsafe.
66411
66412         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66413         * modules/utf16-ucs4: Turn into a symbolic link to module
66414         unistr/u16-mbtouc.
66415
66416         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66417         utf16-ucs4-unsafe.
66418         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66419         unistr/u16-mbtouc-unsafe.
66420
66421         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66422         * modules/ucs4-utf8: Turn into a symbolic link to module
66423         unistr/u8-ubtomb.
66424
66425         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66426         * modules/ucs4-utf16: Turn into a symbolic link to module
66427         unistr/u16-ubtomb.
66428
66429 2007-03-24  Bruno Haible  <bruno@clisp.org>
66430
66431         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66432         Enable the function only if HAVE_INLINE.
66433         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66434         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66435         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66436         Enable the function only if HAVE_INLINE.
66437         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66438         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66439         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66440         Enable the function only if HAVE_INLINE.
66441         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66442         Enable the function only if HAVE_INLINE.
66443         * modules/utf8-ucs4: Update.
66444         * modules/utf8-ucs4-unsafe: Update.
66445         * modules/utf16-ucs4: Update.
66446         * modules/utf16-ucs4-unsafe: Update.
66447         * modules/ucs4-utf8: Update.
66448         * modules/ucs4-utf16: Update.
66449
66450 2007-03-24  Bruno Haible  <bruno@clisp.org>
66451
66452         * lib/utf8-ucs4.h: Remove file.
66453         * lib/utf8-ucs4-unsafe.h: Remove file.
66454         * lib/utf16-ucs4.h: Remove file.
66455         * lib/utf16-ucs4-unsafe.h: Remove file.
66456         * lib/ucs4-utf8.h: Remove file.
66457         * lib/ucs4-utf16.h: Remove file.
66458         * lib/unistr.h: Include their previous contents.
66459         * m4/utf-ucs4.m4: Remove file.
66460         * m4/ucs4-utf.m4: Remove file.
66461         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66462         (Depends-on): Add unistr/base.
66463         (configure.ac): Remove gl_UTF_UCS4.
66464         (Makefile.am): Update.
66465         (Include): Change to unistr.h.
66466         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66467         (Depends-on): Add unistr/base.
66468         (configure.ac): Remove gl_UTF_UCS4.
66469         (Makefile.am): Update.
66470         (Include): Change to unistr.h.
66471         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66472         (Depends-on): Add unistr/base.
66473         (configure.ac): Remove gl_UTF_UCS4.
66474         (Makefile.am): Update.
66475         (Include): Change to unistr.h.
66476         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66477         (Depends-on): Add unistr/base.
66478         (configure.ac): Remove gl_UTF_UCS4.
66479         (Makefile.am): Update.
66480         (Include): Change to unistr.h.
66481         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66482         (Depends-on): Add unistr/base.
66483         (configure.ac): Remove gl_UCS4_UTF.
66484         (Makefile.am): Update.
66485         (Include): Change to unistr.h.
66486         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66487         (Depends-on): Add unistr/base.
66488         (configure.ac): Remove gl_UCS4_UTF.
66489         (Makefile.am): Update.
66490         (Include): Change to unistr.h.
66491         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66492         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66493         utf8-ucs4-unsafe.h.
66494         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66495         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66496         utf16-ucs4-unsafe.h.
66497         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66498         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66499         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66500         * lib/unistr/u8-strchr.c: Likewise.
66501         * lib/unistr/u8-strrchr.c: Likewise.
66502         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66503         * lib/unistr/u16-strchr.c: Likewise.
66504         * lib/unistr/u16-strrchr.c: Likewise.
66505         * lib/striconveh.c: Update.
66506         * lib/linebreak.c: Update.
66507
66508 2007-03-24  Bruno Haible  <bruno@clisp.org>
66509
66510         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66511         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66512
66513 2007-03-22  Bruno Haible  <bruno@clisp.org>
66514
66515         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66516
66517 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66518
66519         * MODULES.html.sh (File system functions): New module write-any-file.
66520         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66521         * m4/write-any-file.m4: New files.
66522
66523 2007-03-23  Eric Blake  <ebb9@byu.net>
66524
66525         * gnulib-tool: Rearrange space-tab sequences, since some editors
66526         like to eat them.
66527
66528 2007-03-23  Eric Blake  <ebb9@byu.net>
66529
66530         * lib/version-etc.c (version_etc_va): Update license wording to
66531         be more concise.  Recommended by Richard Stallman.
66532
66533 2007-03-22  Bruno Haible  <bruno@clisp.org>
66534
66535         * lib/poll.c (MSG_PEEK): New fallback definition.
66536
66537 2007-03-22  Bruno Haible  <bruno@clisp.org>
66538
66539         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66540         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66541         (main): Update.
66542         Fixes a compilation error on BeOS.
66543
66544 2007-03-22  Bruno Haible  <bruno@clisp.org>
66545
66546         * modules/frexpl-tests: New file.
66547         * tests/test-frexpl.c: New file.
66548
66549         * modules/frexpl: New file.
66550         * m4/frexpl.m4: New file.
66551         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66552         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66554         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66555         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66556         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66557
66558 2007-03-22  Bruno Haible  <bruno@clisp.org>
66559
66560         * lib/frexpl.c: Share code with lib/frexp.c.
66561         * modules/mathl (Files): Add lib/frexp.c.
66562         (Depends-on): Add isnanl-nolibm.
66563
66564 2007-03-22  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/printf-frexp (Files): Add m4/frexp.m4.
66567         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66568         only if the found frexp function actually works.
66569
66570 2007-03-22  Bruno Haible  <bruno@clisp.org>
66571
66572         * lib/frexp.c: Remove older implementation that uses divisions.
66573
66574 2007-03-21  Bruno Haible  <bruno@clisp.org>
66575
66576         * modules/frexp-tests: New file.
66577         * tests/test-frexp.c: New file.
66578
66579         * modules/frexp: New file.
66580         * lib/frexp.c: New file.
66581         * m4/frexp.m4: New file.
66582         * lib/math_.h (frexp): New declaration.
66583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66584         REPLACE_FREXP.
66585         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66586
66587 2007-03-21  Bruno Haible  <bruno@clisp.org>
66588
66589         * modules/isnanl-tests: New file.
66590         * tests/test-isnanl.c: New file.
66591
66592         * modules/isnanl: New file.
66593         * lib/isnanl.h: New file.
66594         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66595         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66596         gl_FUNC_ISNANL_WORKS.
66597         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66598         New macros.
66599
66600 2007-03-21  Bruno Haible  <bruno@clisp.org>
66601
66602         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66603         lib/isnanl.h.
66604         (Include): Update.
66605         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66606         * lib/vasnprintf.c: Update.
66607         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66608         tests/test-isnanl.h, remove tests/test-isnanl.c.
66609         (Makefile.am): Update.
66610         * tests/test-isnanl-nolibm.c: New file.
66611         * tests/test-isnanl.h: New file.
66612         * tests/test-isnanl.c: Remove file.
66613
66614 2007-03-21  Jim Meyering  <jim@meyering.net>
66615
66616         When trying to open ".", treat ESTALE like EACCES.
66617         * lib/savewd.c (savewd_save): Resort to forking not just upon
66618         failure with EACCES, but also when errno is ESTALE.
66619
66620 2007-03-20  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66623         Needed on AIX 5.1. Reported by Matthew Woehlke.
66624
66625 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66626
66627         Suggestions by Bruno Haible:
66628         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66629         our own.
66630         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66631         * modules/acl (Depends-on): Add gettext.
66632
66633 2007-03-19  Bruno Haible  <bruno@clisp.org>
66634
66635         * modules/iconvme: Remove file.
66636         * lib/iconvme.h: Remove file.
66637         * lib/iconvme.c: Remove file.
66638         * m4/iconvme.m4: Remove file.
66639
66640 2007-03-19  Bruno Haible  <bruno@clisp.org>
66641
66642         * doc/relocatable-maint.texi: Break long shell script line.
66643         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66644
66645 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66646
66647         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66648         handle file_has_acl.
66649         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66650         * lib/acl.c: Move header inclusions and related macro defns into
66651         lib/acl-internal.h.
66652         (S_ISLNK): Remove defn, since that's now done for us.
66653         (file_has_acl): Move to lib/file-has-acl.c.
66654         Call acl_trivial if available.  This is the crucial part of the fix.
66655         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66656         shared within the library.  Rewrite a bit, partly to make it compatible
66657         with the GNU coding style.
66658         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66659         Remove unnecessary double-quotes.
66660         Don't test for acl_to_text; the build will catch that.
66661         Replace acl_entries if it doesn't exist and it is needed.
66662         Check for -lsec and acl_trivial (as used on Solaris 10).
66663         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66664         lib/file-has-acl.c.
66665         (Depends-on): Add sys_stat, for S_ISLNK.
66666
66667 2007-03-19  Ben Pfaff  <blp@gnu.org>
66668
66669         * doc/gnulib.texi: Fix typos.
66670         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66671
66672 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66675         If size is zero here, buf must be zero.
66676
66677 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66678
66679         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66680         <bruno@clisp.org>.
66681
66682 2007-03-18  Bruno Haible  <bruno@clisp.org>
66683
66684         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66685         Suggested by Eric Blake.
66686
66687 2007-03-18  Ben Pfaff  <blp@gnu.org>
66688
66689         * doc/relocatable.texi: Recommend using as prefix a directory
66690         that does not exist and will never be created.  Based on
66691         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66692         and others.
66693
66694 2007-03-17  Bruno Haible  <bruno@clisp.org>
66695
66696         * lib/fchownat.c: Include lchown.h.
66697
66698 2007-03-17  Bruno Haible  <bruno@clisp.org>
66699
66700         Fix endless loop when the given allocated size was > INT_MAX.
66701         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66702         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66703         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66704         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66705         * lib/sprintf.c (sprintf): Likewise.
66706
66707 2007-03-17  Bruno Haible  <bruno@clisp.org>
66708
66709         * tests/test-argp-2.sh (func_compare): Output a context diff.
66710
66711 2007-03-17  Bruno Haible  <bruno@clisp.org>
66712
66713         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66714         locale's decimal-point character.
66715
66716 2007-03-17  Bruno Haible  <bruno@clisp.org>
66717
66718         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66719         before comparing it. Needed because on some platforms (e.g. x86) a
66720         'long double' occupies less bytes than sizeof (long double).
66721
66722 2007-03-17  Bruno Haible  <bruno@clisp.org>
66723
66724         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66725         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66726         * tests/test-getaddrinfo.c (simple): Likewise.
66727         * tests/test-read-file.c (main): Likewise.
66728
66729 2007-03-17  Bruno Haible  <bruno@clisp.org>
66730
66731         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66732
66733 2007-03-17  Bruno Haible  <bruno@clisp.org>
66734
66735         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66736         unused variable.
66737
66738 2007-03-17  Bruno Haible  <bruno@clisp.org>
66739
66740         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66741         * tests/test-c-strncasecmp.c: Likewise.
66742
66743 2007-03-17  Bruno Haible  <bruno@clisp.org>
66744
66745         * modules/stdlib (Depends-on): Add unistd.
66746         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66747         Needed for MacOS X 10.3.
66748
66749 2007-03-17  Bruno Haible  <bruno@clisp.org>
66750
66751         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66752
66753 2007-03-17  Bruno Haible  <bruno@clisp.org>
66754
66755         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66756
66757 2007-03-17  Bruno Haible  <bruno@clisp.org>
66758
66759         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66760         to reflect files copied from gnulib (with or without modifications).
66761         Suggested by Jim Meyering.
66762
66763 2007-03-17  Eric Blake  <ebb9@byu.net>
66764
66765         * NEWS: Document stdlib change from 2007-02-18.
66766
66767 2007-03-17  Jim Meyering  <jim@meyering.net>
66768
66769         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66770         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66771         someone uses a name containing shell meta-characters.
66772         Reported by Alfred M. Szmidt.
66773
66774         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66775
66776 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66777
66778         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66779         and copy gettext configuration files only if configure.ac contains
66780         a use of AM_GNU_GETTEXT_VERSION.
66781
66782 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66783
66784         * build-aux/bootstrap (gnulib_name): New variable.
66785         (gnulib_tool_options): Use it.
66786
66787 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66788
66789         * tests/test-des.c: Use new namespace.
66790
66791 2007-03-15  Bruno Haible  <bruno@clisp.org>
66792
66793         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66794         Reported by James Youngman <jay@gnu.org>.
66795
66796 2007-03-15  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66799         declared prototype. Needed with cc on OSF/1 5.1.
66800
66801 2007-03-15  Bruno Haible  <bruno@clisp.org>
66802
66803         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66804         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66805         (struct gl_list_implementation): Add dispose_fn argument to the
66806         'create_empty', 'create' methods.
66807         (struct gl_list_impl_base): Add field 'dispose_fn'.
66808         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66809         argument.
66810         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66811         dispose_fn argument.
66812         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66813         dispose_fn on the dropped values.
66814         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66815         dispose_fn argument.
66816         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66817         dropped values.
66818         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66819         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66820         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66821         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66822         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66823         argument.
66824         (gl_tree_list_free): Call dispose_fn on the dropped values.
66825         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66826         the dropped values.
66827         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66828         Add dispose_fn argument.
66829         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66830         Call dispose_fn on the dropped values.
66831         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66832         Add dispose_fn argument.
66833         (gl_sublist_create): Initialize the 'dispose_fn' field.
66834         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66835         * tests/test-array_list.c (main): Update.
66836         * tests/test-carray_list.c (main): Update.
66837         * tests/test-avltree_list.c (main): Update.
66838         * tests/test-rbtree_list.c (main): Update.
66839         * tests/test-avltreehash_list.c (main): Update.
66840         * tests/test-rbtreehash_list.c (main): Update.
66841         * tests/test-linked_list.c (main): Update.
66842         * tests/test-linkedhash_list.c (main): Update.
66843         * tests/test-array_oset.c (main): Update.
66844
66845 2007-03-15  Bruno Haible  <bruno@clisp.org>
66846
66847         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66848         (gl_oset_create_empty): Add dispose_fn argument.
66849         (struct gl_oset_implementation): Add dispose_fn argument to
66850         'create_empty' method.
66851         (struct gl_oset_impl_base): Add dispose_fn field.
66852         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66853         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66854         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66855         values.
66856         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66857         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66858         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66859         dropped value.
66860         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66861         dropped value.
66862         * tests/test-array_oset.c (main): Update.
66863         * tests/test-avltree_oset.c (main): Update.
66864         * tests/test-rbtree_oset.c (main): Update.
66865         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66866
66867 2007-03-13  Bruno Haible  <bruno@clisp.org>
66868
66869         * tests/test-stdbool.c (i): Update after last patch.
66870
66871 2007-03-12  Bruno Haible  <bruno@clisp.org>
66872
66873         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66874         the iswprint macro. Needed on Solaris 2.5.1.
66875
66876 2007-03-12  Bruno Haible  <bruno@clisp.org>
66877
66878         * tests/test-printf-frexp.c (main): Declare x as volatile.
66879
66880 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66881
66882         * doc/gnulib.texi (Build robot for gnulib): New section.
66883
66884 2007-03-12  Jim Meyering  <jim@meyering.net>
66885
66886         * build-aux/bootstrap: New file.
66887         * build-aux/bootstrap.conf: New file, from coreutils.
66888
66889 2007-03-11  Bruno Haible  <bruno@clisp.org>
66890
66891         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66892
66893 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66894
66895         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66896         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66897         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66898
66899 2007-03-11  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66902         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66903
66904 2007-03-11  Bruno Haible  <bruno@clisp.org>
66905
66906         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66907         formula. Needed for SunPRO C 5.0.
66908
66909 2007-03-11  Bruno Haible  <bruno@clisp.org>
66910
66911         * modules/long-options (Depends-on): Add getopt.
66912
66913 2007-03-11  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/modechange (Depends-on): Add stdbool.
66916
66917 2007-03-11  Bruno Haible  <bruno@clisp.org>
66918
66919         * modules/i-ring (Depends-on): Add stdbool.
66920
66921 2007-03-11  Bruno Haible  <bruno@clisp.org>
66922
66923         * modules/gc-des (Depends-on): Add stdbool.
66924
66925 2007-03-11  Bruno Haible  <bruno@clisp.org>
66926
66927         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66928
66929 2007-03-11  Bruno Haible  <bruno@clisp.org>
66930
66931         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66932
66933 2007-03-11  Bruno Haible  <bruno@clisp.org>
66934
66935         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66936
66937 2007-03-11  Bruno Haible  <bruno@clisp.org>
66938
66939         * lib/vasnprintf.c (sprintf): Undefine.
66940
66941 2007-03-11  Bruno Haible  <bruno@clisp.org>
66942
66943         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66944         initializers in SunPRO C and Compaq C compilers.
66945
66946 2007-03-11  Bruno Haible  <bruno@clisp.org>
66947
66948         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66949         decrementing code ANSI C compliant.
66950
66951 2007-03-11  Bruno Haible  <bruno@clisp.org>
66952
66953         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66954         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66955
66956 2007-03-11  Bruno Haible  <bruno@clisp.org>
66957
66958         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66959         <stdbool.h> substitute doesn't pass.
66960
66961 2007-03-11  Bruno Haible  <bruno@clisp.org>
66962
66963         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66964
66965 2007-03-11  Bruno Haible  <bruno@clisp.org>
66966
66967         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66968         script, for submission to autobuild.josefsson.org.
66969
66970 2007-03-10  Bruno Haible  <bruno@clisp.org>
66971
66972         * modules/canonicalize-lgpl-tests: New file.
66973         * tests/test-canonicalize-lgpl.sh: New file.
66974         * tests/test-canonicalize-lgpl.c: New file.
66975
66976         * modules/c-strcase-tests: New file.
66977         * tests/test-c-strcase.sh: New file.
66978         * tests/test-c-strcasecmp.c: New file.
66979         * tests/test-c-strncasecmp.c: New file.
66980
66981         * modules/atexit-tests: New file.
66982         * tests/test-atexit.sh: New file.
66983         * tests/test-atexit.c: New file.
66984
66985 2007-03-10  Bruno Haible  <bruno@clisp.org>
66986
66987         * tests/test-binary-io.sh: Use temporary filenames that are not so
66988         likely to clash with those of other tests (in a parallel make).
66989         * tests/test-binary-io.c: Likewise.
66990
66991 2007-03-10  Bruno Haible  <bruno@clisp.org>
66992
66993         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66994         fallback; use #error instead.
66995         Suggested by Simon Josefsson.
66996
66997 2007-03-10  Bruno Haible  <bruno@clisp.org>
66998
66999         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67000         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67001         first and the last.
67002
67003 2007-03-10  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67006
67007 2007-03-10  Bruno Haible  <bruno@clisp.org>
67008
67009         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67010         "make distcheck".
67011         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67012         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67013         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67014
67015 2007-03-10  Bruno Haible  <bruno@clisp.org>
67016
67017         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67018         variable.
67019         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67020         variable.
67021
67022 2007-03-09  Eric Blake  <ebb9@byu.net>
67023         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67024
67025         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67026         types are not being provided by gnulib.
67027         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67028         types are supported.
67029
67030 2007-03-10  Bruno Haible  <bruno@clisp.org>
67031
67032         * lib/stdio_.h (__attribute__): New macro.
67033         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67034         vsprintf): Specify __attribute__ __format__ for GCC.
67035         Suggested by Eric Blake.
67036
67037 2007-03-09  Bruno Haible  <bruno@clisp.org>
67038
67039         * modules/printf-posix-tests: New file.
67040         * tests/test-printf-posix.sh: New file.
67041         * tests/test-printf-posix.c: New file.
67042
67043         * modules/printf-posix: New file.
67044         * lib/printf.c: New file.
67045         * m4/printf-posix-rpl.m4: New file.
67046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67047         REPLACE_PRINTF.
67048         * lib/stdio_.h (printf): New declaration.
67049         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67050         ____strfmon____): New macros.
67051         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67052         REPLACE_PRINTF.
67053
67054 2007-03-09  Bruno Haible  <bruno@clisp.org>
67055
67056         * tests/test-vasnprintf-posix2.sh: New file.
67057         * tests/test-vasnprintf-posix2.c: New file.
67058         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67059         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67060         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67061
67062         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67063         a locale dependent decimal point, rather than always '.'.
67064
67065 2007-03-09  Eric Blake  <ebb9@byu.net>
67066
67067         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67068         spite of platforms like Tandem/NSK that define it to -1.
67069
67070 2007-03-08  Bruno Haible  <bruno@clisp.org>
67071
67072         * modules/vprintf-posix-tests: New file.
67073         * tests/test-vprintf-posix.sh: New file.
67074         * tests/test-vprintf-posix.c: New file.
67075         * tests/test-printf-posix.h: New file.
67076
67077         * modules/vprintf-posix: New file.
67078         * lib/vprintf.c: New file.
67079         * m4/vprintf-posix.m4: New file.
67080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67081         REPLACE_VPRINTF.
67082         * lib/stdio_.h (vprintf): New declaration.
67083         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67084         REPLACE_VPRINTF.
67085
67086 2007-03-08  Bruno Haible  <bruno@clisp.org>
67087
67088         * modules/fprintf-posix-tests: New file.
67089         * tests/test-fprintf-posix.sh: New file.
67090         * tests/test-fprintf-posix.c: New file.
67091
67092         * modules/fprintf-posix: New file.
67093         * lib/fprintf.c: New file.
67094         * m4/fprintf-posix.m4: New file.
67095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67096         REPLACE_FPRINTF.
67097         * lib/stdio_.h (fprintf): New declaration.
67098         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67099         REPLACE_FPRINTF.
67100
67101 2007-03-08  Bruno Haible  <bruno@clisp.org>
67102
67103         * modules/vfprintf-posix-tests: New file.
67104         * tests/test-vfprintf-posix.sh: New file.
67105         * tests/test-vfprintf-posix.c: New file.
67106         * tests/test-fprintf-posix.h: New file.
67107         * tests/test-fprintf-posix.out: New file.
67108
67109         * modules/vfprintf-posix: New file.
67110         * lib/vfprintf.c: New file.
67111         * m4/vfprintf-posix.m4: New file.
67112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67113         REPLACE_VFPRINTF.
67114         * lib/stdio_.h (vfprintf): New declaration.
67115         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67116         REPLACE_VFPRINTF.
67117
67118 2007-03-08  Bruno Haible  <bruno@clisp.org>
67119
67120         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67121
67122 2007-03-08  Bruno Haible  <bruno@clisp.org>
67123
67124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67125         instead of 'expr' invocations.
67126         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67127         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67128         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67129         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67131         Suggested by Paul Eggert.
67132
67133 2007-03-08  Bruno Haible  <bruno@clisp.org>
67134
67135         * modules/fseterr-tests: New file.
67136         * tests/test-fseterr.c: New file.
67137
67138         * modules/fseterr: New file.
67139         * lib/fseterr.h: New file.
67140         * lib/fseterr.c: New file.
67141
67142 2007-03-08  Bruno Haible  <bruno@clisp.org>
67143
67144         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67145         * lib/getopt_.h: Likewise.
67146         * lib/mbswidth.h: Likewise.
67147         * lib/setenv.h: Likewise.
67148         * lib/vasnprintf.h: Likewise.
67149         * lib/vasprintf.h: Likewise.
67150         * lib/verror.h: Likewise.
67151         * lib/xsetenv.h: Likewise.
67152         * lib/xvasprintf.h: Likewise.
67153
67154 2007-03-08  Jim Meyering  <jim@meyering.net>
67155
67156         * users.txt: Add parted.
67157
67158         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67159
67160 2007-03-07  Bruno Haible  <bruno@clisp.org>
67161
67162         * m4/printf.m4: Make the shell script snippets copy&pastable.
67163
67164 2007-03-02  Bruno Haible  <bruno@clisp.org>
67165
67166         * lib/netinet_in_.h: New file.
67167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67168         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67169         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67170         (Depends-on): Add absolute-header.
67171         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67172         into netinet/in.h.
67173
67174 2007-03-03  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/sys_select_.h: New file.
67177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67178         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67179         * modules/sys_select (Files): Add lib/sys_select_.h.
67180         (Depends-on): Add absolute-header.
67181         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67182         into sys/select.h.
67183
67184 2007-03-02  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67187         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67188         values.
67189         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67190         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67191         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67192         * modules/sys_socket (Depends-on): Add absolute-header.
67193         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67194         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67195         (Include): Remove requirement of inclusion of <sys/types.h>.
67196
67197 2007-03-02  Bruno Haible  <bruno@clisp.org>
67198
67199         * lib/byteswap_.h (bswap_32): Fix formula.
67200
67201 2007-03-06  Bruno Haible  <bruno@clisp.org>
67202
67203         * modules/sprintf-posix-tests: New file.
67204         * tests/test-sprintf-posix.c: New file.
67205
67206         * modules/sprintf-posix: New file.
67207         * lib/sprintf.c: New file.
67208         * m4/sprintf-posix.m4: New file.
67209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67210         REPLACE_SPRINTF.
67211         * lib/stdio_.h (sprintf): New declaration.
67212         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67213         REPLACE_SPRINTF.
67214
67215 2007-03-06  Bruno Haible  <bruno@clisp.org>
67216
67217         * modules/vsprintf-posix-tests: New file.
67218         * tests/test-vsprintf-posix.c: New file.
67219         * tests/test-sprintf-posix.h: New file.
67220
67221         * modules/vsprintf-posix: New file.
67222         * lib/vsprintf.c: New file.
67223         * m4/vsprintf-posix.m4: New file.
67224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67225         REPLACE_VSPRINTF.
67226         * lib/stdio_.h (vsprintf): New declaration.
67227         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67228         REPLACE_VSPRINTF.
67229
67230 2007-03-06  Bruno Haible  <bruno@clisp.org>
67231
67232         * modules/vsnprintf (Depend-on): Remove minmax.
67233
67234 2007-03-06  Bruno Haible  <bruno@clisp.org>
67235
67236         * modules/snprintf-posix-tests: New file.
67237         * tests/test-snprintf-posix.c: New file.
67238
67239         * modules/snprintf-posix: New file.
67240         * m4/snprintf-posix.m4: New file.
67241         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67242         gl_FUNC_SNPRINTF.
67243         (gl_FUNC_SNPRINTF): Invoke it.
67244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67245         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67246         is set.
67247         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67248
67249 2007-03-06  Bruno Haible  <bruno@clisp.org>
67250
67251         * modules/vsnprintf-posix-tests: New file.
67252         * tests/test-vsnprintf-posix.c: New file.
67253         * tests/test-snprintf-posix.h: New file.
67254
67255         * modules/vsnprintf-posix: New file.
67256         * m4/vsnprintf-posix.m4: New file.
67257         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67258         gl_FUNC_VSNPRINTF.
67259         (gl_FUNC_VSNPRINTF): Invoke it.
67260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67261         * lib/stdio_.h (vsnprintf): Define as a replacement if
67262         REPLACE_VSNPRINTF is set.
67263         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67264
67265 2007-03-06  Bruno Haible  <bruno@clisp.org>
67266
67267         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67269
67270 2007-03-06  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67273         (asinl): Declare also if HAVE_DECL_ASINL is set.
67274         (atanl): Declare also if HAVE_DECL_ATANL is set.
67275         (ceill): Declare also if HAVE_DECL_CEILL is set.
67276         (cosl): Declare also if HAVE_DECL_COSL is set.
67277         (expl): Declare also if HAVE_DECL_EXPL is set.
67278         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67279         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67280         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67281         (logl): Declare also if HAVE_DECL_LOGL is set.
67282         (sinl): Declare also if HAVE_DECL_SINL is set.
67283         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67284         (tanl): Declare also if HAVE_DECL_TANL is set.
67285         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67287         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67288         declaration of frexpl, ldexpl.
67289         * modules/printf-frexpl (Depends-on): Add math.
67290         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67291
67292 2007-03-05  Bruno Haible  <bruno@clisp.org>
67293
67294         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67295         frexpl and ldexpl are declared.
67296         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67297
67298 2007-03-05  Bruno Haible  <bruno@clisp.org>
67299
67300         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67301         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67302
67303 2007-03-05  Bruno Haible  <bruno@clisp.org>
67304
67305         * lib/stdio_.h: Include <stddef.h>.
67306
67307 2007-03-05  Bruno Haible  <bruno@clisp.org>
67308
67309         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67310
67311 2007-03-05  Bruno Haible  <bruno@clisp.org>
67312
67313         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67314         NetBSD 4, from Ralf Wildenhues.
67315
67316 2007-03-04  Bruno Haible  <bruno@clisp.org>
67317
67318         * lib/vasprintf.h: Update #if logic for the case when the functions
67319         exist but are overridden.
67320
67321 2007-03-04  Bruno Haible  <bruno@clisp.org>
67322
67323         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67324         implementations: glibc-2.4 and MacOS X 10.3.
67325         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67326         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67327         * tests/test-vasprintf-posix.c (test_function): Likewise.
67328
67329 2007-03-04  Bruno Haible  <bruno@clisp.org>
67330
67331         * modules/vasprintf-posix-tests: New file.
67332         * tests/test-vasprintf-posix.c: New file.
67333
67334         * modules/vasprintf-posix: New file.
67335         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67336         defined.
67337         * m4/vasprintf-posix.m4: New file.
67338         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67339         gl_FUNC_VASPRINTF.
67340         (gl_FUNC_VASPRINTF): Invoke it.
67341         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67342         here.
67343         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67344
67345 2007-03-04  Bruno Haible  <bruno@clisp.org>
67346
67347         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67348         REPLACE_GETTIMEOFDAY.
67349         * modules/sys_time (Makefile.am): Likewise.
67350         * m4/sys_time_h.m4: Likewise.
67351         * m4/gettimeofday.m4: Likewise.
67352
67353 2007-03-04  Bruno Haible  <bruno@clisp.org>
67354
67355         * modules/vasnprintf-posix-tests: New file.
67356         * tests/test-vasnprintf-posix.c: New file.
67357
67358         * modules/vasnprintf-posix: New file.
67359         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67360         printf-frexpl.h.
67361         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67362         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67363         REPLACE_VASNPRINTF is defined.
67364         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67365         gl_FUNC_VASNPRINTF.
67366         (gl_FUNC_VASNPRINTF): Invoke it.
67367         * m4/vasnprintf-posix.m4: New file.
67368         * m4/printf.m4: New file.
67369
67370 2007-03-04  Bruno Haible  <bruno@clisp.org>
67371
67372         Compile progreloc.c only if --enable-relocatable is specified.
67373         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67374         if --enable-relocatable was specified.
67375         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67376         lib_SOURCES.
67377
67378 2007-03-04  Jim Meyering  <jim@meyering.net>
67379
67380         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67381         Use it consistently, rather than enumerating errno constants.
67382
67383 2007-03-04  Bruno Haible  <bruno@clisp.org>
67384
67385         * modules/xvasprintf-tests: New file.
67386         * tests/test-xvasprintf.c: New file.
67387
67388         * modules/vasprintf-tests: New file.
67389         * tests/test-vasprintf.c: New file.
67390
67391         * modules/vasnprintf-tests: New file.
67392         * tests/test-vasnprintf.c: New file.
67393
67394         * modules/vsnprintf-tests: New file.
67395         * tests/test-vsnprintf.c: New file.
67396
67397         * modules/snprintf-tests: New file.
67398         * tests/test-snprintf.c: New file.
67399
67400 2007-03-04  Bruno Haible  <bruno@clisp.org>
67401
67402         Compile relocatable.c only if --enable-relocatable is specified.
67403         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67404         gl_RELOCATABLE_LIBRARY.
67405         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67406         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67407         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67408         gl_RELOCATABLE_LIBRARY.
67409         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67410         (Makefile.am): Remove lib_SOURCES.
67411         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67412         gl_RELOCATABLE_LIBRARY.
67413         (Makefile.am): Remove lib_SOURCES.
67414         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67415         always.
67416         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67417         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67418
67419 2007-03-04  Bruno Haible  <bruno@clisp.org>
67420
67421         * modules/argmatch-tests: New file.
67422         * tests/test-argmatch.c: New file.
67423
67424         * tests/test-allocsa.c (main): Halve the number of loop runs.
67425
67426         * modules/alloca-opt-tests: New file.
67427         * tests/test-alloca-opt.c: New file.
67428
67429 2007-03-04  Jim Meyering  <jim@meyering.net>
67430
67431         Work around difference between Linux ACLs and Solaris 10 ZFS.
67432         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67433         for EINVAL.
67434
67435 2007-03-03  Bruno Haible  <bruno@clisp.org>
67436
67437         * modules/relocatable-prog (Depends-on): Add back progreloc's
67438         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67439
67440 2007-03-03  Bruno Haible  <bruno@clisp.org>
67441
67442         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67443         * modules/relocatable-lib: New file.
67444
67445 2007-03-03  Bruno Haible  <bruno@clisp.org>
67446
67447         * modules/relocatable-prog: Renamed from modules/relocatable.
67448         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67449
67450 2007-03-03  Bruno Haible  <bruno@clisp.org>
67451
67452         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67453         m4/relocatable-lib.m4.
67454         (Depends-on): Remove 'relocatable'.
67455         (configure.ac): Add gl_RELOCATABLE_NOP.
67456
67457 2007-03-03  Bruno Haible  <bruno@clisp.org>
67458
67459         * modules/relocatable-prog-wrapper: New file.
67460         * modules/relocatable (Depends-on): Add it. Remove all other
67461         dependencies except progname.
67462         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67463
67464         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67465         (gl_FUNC_STRERROR): Nop.
67466         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67467
67468         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67469         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67470
67471         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67472         (gl_FUNC_READLINK): Update.
67473
67474         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67475
67476 2007-03-03  Bruno Haible  <bruno@clisp.org>
67477
67478         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67479         * modules/xreadlink (Depends-on): Add unistd.
67480         * modules/xreadlink-with-size (Depends-on): Likewise.
67481
67482 2007-03-03  Bruno Haible  <bruno@clisp.org>
67483
67484         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67485         extracted from gt_FUNC_SETENV.
67486         (gt_FUNC_SETENV): Remove macro.
67487         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67488         remove gt_FUNC_SETENV.
67489
67490 2007-03-03  Bruno Haible  <bruno@clisp.org>
67491
67492         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67493         ENABLE_RELOCATABLE here.
67494         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67495
67496 2007-03-03  Bruno Haible  <bruno@clisp.org>
67497
67498         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67499         * tests/test-rbtreehash_list.c: Include progname.h.
67500         (main): Call set_program_name.
67501
67502         * modules/rbtree-oset-tests (Depends-on): Add progname.
67503         * tests/test-rbtree_oset.c: Include progname.h.
67504         (main): Call set_program_name.
67505
67506         * modules/rbtree-list-tests (Depends-on): Add progname.
67507         * tests/test-rbtree_list.c: Include progname.h.
67508         (main): Call set_program_name.
67509
67510         * modules/linked-list-tests (Depends-on): Add progname.
67511         * tests/test-linked_list.c: Include progname.h.
67512         (main): Call set_program_name.
67513
67514 2007-03-03  Bruno Haible  <bruno@clisp.org>
67515
67516         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67517         All uses of __restrict changed to _Restrict_.
67518         * lib/glob_.h (__restrict): Remove macro.
67519
67520 2007-03-02  Bruno Haible  <bruno@clisp.org>
67521
67522         * modules/gettext (configure.ac): Require gettext infrastructure
67523         from version 0.16.1.
67524
67525 2007-03-02  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/linkedhash-list-tests (Depends-on): Add progname.
67528         * tests/test-linkedhash_list.c: Include progname.h.
67529         (main): Call set_program_name.
67530
67531         * modules/carray-list-tests (Depends-on): Add progname.
67532         * tests/test-carray_list.c: Include progname.h.
67533         (main): Call set_program_name.
67534
67535         * modules/avltreehash-list-tests (Depends-on): Add progname.
67536         * tests/test-avltreehash_list.c: Include progname.h.
67537         (main): Call set_program_name.
67538
67539         * modules/avltree-oset-tests (Depends-on): Add progname.
67540         * tests/test-avltree_oset.c: Include progname.h.
67541         (main): Call set_program_name.
67542
67543         * modules/avltree-list-tests (Depends-on): Add progname.
67544         * tests/test-avltree_list.c: Include progname.h.
67545         (main): Call set_program_name.
67546
67547         * modules/array-oset-tests (Depends-on): Add progname.
67548         * tests/test-array_oset.c: Include progname.h.
67549         (main): Call set_program_name.
67550
67551         * modules/array-list-tests (Depends-on): Add progname.
67552         * tests/test-array_list.c: Include progname.h.
67553         (main): Call set_program_name.
67554
67555         * modules/argp-tests (Depends-on): Add progname.
67556         * tests/test-argp.c: Include argp.h first. Include progname.h.
67557         (main): Call set_program_name.
67558
67559 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * doc/gnulib-tool.texi (Initial import): Reword description of
67562         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67563         limited effect even if defined after the first system include.
67564
67565 2007-03-01  Bruno Haible  <bruno@clisp.org>
67566
67567         * build-aux/config.libpath: Update to libtool-1.5.22.
67568         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67569
67570 2007-03-01  Bruno Haible  <bruno@clisp.org>
67571
67572         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67573         foo_CFLAGS.
67574         Reported by Ralf Wildenhues.
67575
67576 2007-03-01  Bruno Haible  <bruno@clisp.org>
67577
67578         * build-aux/install-reloc: Remove object files left over by some
67579         compilers.
67580         Reported by Ralf Wildenhues.
67581
67582 2007-03-01  Bruno Haible  <bruno@clisp.org>
67583
67584         * build-aux/install-reloc: Break long lines.
67585
67586 2007-03-01  Bruno Haible  <bruno@clisp.org>
67587
67588         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67589         Reported by Ralf Wildenhues.
67590
67591 2007-03-01  Bruno Haible  <bruno@clisp.org>
67592
67593         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67594         include ordering constraints.
67595
67596 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67599         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67600         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67601         as another example.
67602         * lib/time_.h: Fix misspelling.
67603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67604         Require gl_HEADER_TIME_H_DEFAULTS.
67605         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67606         * m4/time_r.m4 (gl_TIME_R): Likewise.
67607         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67608
67609 2007-03-01  Bruno Haible  <bruno@clisp.org>
67610
67611         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67612         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67613
67614 2007-03-01  Jim Meyering  <jim@meyering.net>
67615
67616         * modules/xreadlink (Maintainer): Add my name.
67617         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67618
67619 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67620             Bruno Haible  <bruno@clisp.org>
67621
67622         * build-aux/install-reloc: Compile also c-ctype.c.
67623         * build-aux/relocatable.sh.in: New file.
67624         * doc/relocatable.texi: New file.
67625         * doc/relocatable-maint.texi: New file.
67626         * doc/gnulib.texi: Include relocatable-maint.texi.
67627         * lib/progreloc.c: Include unistd.h unconditionally.
67628         * lib/relocwrapper.c: Include unistd.h unconditionally.
67629         Include c-ctype.h.
67630         (add_dotbin): Use c_tolower.
67631         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67632         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67633         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67634         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67635         to m4/relocatable-lib.m4.
67636         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67637         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67638         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67639         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67640         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67641         * modules/relocatable: New file.
67642         * modules/relocatable-lib: New file.
67643         * modules/relocatable-script: New file.
67644
67645 2007-02-28  Bruno Haible  <bruno@clisp.org>
67646
67647         Import --enable-relocatable infrastructure.
67648         * build-aux/config.libpath: New file, from GNU gettext.
67649         * build-aux/install-reloc: New file, from GNU gettext.
67650         * build-aux/reloc-ldflags: New file, from GNU gettext.
67651         * lib/relocatable.h: New file, from GNU gettext.
67652         * lib/relocatable.c: New file, from GNU gettext.
67653         * lib/relocwrapper.c: New file, from GNU gettext.
67654         * m4/relocatable.m4: New file, from GNU gettext.
67655
67656 2007-02-28  Bruno Haible  <bruno@clisp.org>
67657
67658         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67659
67660         * modules/xreadlink: New file, from GNU gettext with modifications.
67661         * lib/xreadlink.c: New file, from GNU gettext.
67662         * lib/xreadlink.h: Add comments.
67663         (xreadlink): New declaration.
67664
67665         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67666         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67667         lib/xreadlink-with-size.c.
67668         (configure.ac): Remove gl_XREADLINK invocation.
67669         (Makefile.am): Augment lib_SOURCES.
67670         * m4/xreadlink.m4: Remove file.
67671         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67672         (xreadlink_with_size): Renamed from xreadink.
67673         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67674         * modules/canonicalize (Depends-on): Replace xreadlink with
67675         xreadlink-with-size.
67676         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67677
67678 2007-02-25  Jim Meyering  <jim@meyering.net>
67679
67680         * build-aux/announce-gen: When complaining about excess arguments,
67681         list them.
67682
67683 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         * README: Document signed integer overflow situation more
67686         accurately.
67687
67688 2007-02-25  Bruno Haible  <bruno@clisp.org>
67689
67690         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67691         'a' or 'A' conversion.
67692
67693 2007-02-25  Bruno Haible  <bruno@clisp.org>
67694
67695         * modules/filename: Renamed from modules/pathname.
67696         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67697         lib/concatpath.c with lib/concat-filename.c.
67698         (Makefile.am): Update.
67699         (Include): Replace pathname.h with filename.h.
67700         * lib/filename.h: Renamed from lib/pathname.h.
67701         (concatenated_filename): Renamed from concatenated_pathname.
67702         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67703         (concatenated_filename): Renamed from concatenated_pathname.
67704         * lib/findprog.c: Include filename.h instead of pathname.h.
67705         (find_in_path): Update.
67706         * lib/javacomp.c: Include filename.h instead of pathname.h.
67707         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67708         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67709         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67710         is_oldgcj_14_13_usable, is_javac_usable): Update.
67711         * lib/javaexec.c: Include filename.h instead of pathname.h.
67712         (execute_java_class): Update.
67713         * modules/findprog: Update.
67714         * modules/javacomp: Update.
67715         * modules/javaexec: Update.
67716         * MODULES.html.sh (File system functions): Add 'filename', remove
67717         'pathname'.
67718
67719 2007-02-25  Bruno Haible  <bruno@clisp.org>
67720
67721         * modules/printf-frexpl-tests: New file.
67722         * tests/test-printf-frexpl.c: New file.
67723
67724         * modules/printf-frexpl: New file.
67725         * lib/printf-frexpl.h: New file.
67726         * lib/printf-frexpl.c: New file.
67727         * m4/printf-frexpl.m4: New file.
67728
67729 2007-02-25  Bruno Haible  <bruno@clisp.org>
67730
67731         * modules/printf-frexp-tests: New file.
67732         * tests/test-printf-frexp.c: New file.
67733
67734         * modules/printf-frexp: New file.
67735         * lib/printf-frexp.h: New file.
67736         * lib/printf-frexp.c: New file.
67737         * m4/printf-frexp.m4: New file.
67738
67739 2007-02-25  Bruno Haible  <bruno@clisp.org>
67740
67741         Assume automake >= 1.10 for the tests.
67742         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67743         * modules/arctwo-tests: Likewise.
67744         * modules/argp-tests: Likewise.
67745         * modules/avltree-list-tests: Likewise.
67746         * modules/avltree-oset-tests: Likewise.
67747         * modules/avltreehash-list-tests: Likewise.
67748         * modules/carray-list-tests: Likewise.
67749         * modules/crc-tests: Likewise.
67750         * modules/des-tests: Likewise.
67751         * modules/gc-arcfour-tests: Likewise.
67752         * modules/gc-arctwo-tests: Likewise.
67753         * modules/gc-des-tests: Likewise.
67754         * modules/gc-hmac-md5-tests: Likewise.
67755         * modules/gc-hmac-sha1-tests: Likewise.
67756         * modules/gc-md2-tests: Likewise.
67757         * modules/gc-md4-tests: Likewise.
67758         * modules/gc-md5-tests: Likewise.
67759         * modules/gc-pbkdf2-sha1-tests: Likewise.
67760         * modules/gc-rijndael-tests: Likewise.
67761         * modules/gc-sha1-tests: Likewise.
67762         * modules/gc-tests: Likewise.
67763         * modules/getaddrinfo-tests: Likewise.
67764         * modules/hmac-md5-tests: Likewise.
67765         * modules/hmac-sha1-tests: Likewise.
67766         * modules/linked-list-tests: Likewise.
67767         * modules/linkedhash-list-tests: Likewise.
67768         * modules/lock-tests: Likewise.
67769         * modules/md2-tests: Likewise.
67770         * modules/md4-tests: Likewise.
67771         * modules/md5-tests: Likewise.
67772         * modules/rbtree-list-tests: Likewise.
67773         * modules/rbtree-oset-tests: Likewise.
67774         * modules/rbtreehash-list-tests: Likewise.
67775         * modules/read-file-tests: Likewise.
67776         * modules/rijndael-tests: Likewise.
67777         * modules/stdint-tests: Likewise.
67778         * modules/tls-tests: Likewise.
67779
67780 2007-02-24  Bruno Haible  <bruno@clisp.org>
67781
67782         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67783         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67784         function; instead check whether isnan with a double argument links.
67785         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67786         function; instead check whether isnan with a 'long double' argument
67787         links.
67788         Reported by Eric Blake <ebb9@byu.net>.
67789
67790 2007-02-24  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67793         defined.
67794         * lib/isnanl.c: Remove all code. Just include isnan.c.
67795         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67796
67797 2007-02-25  Jim Meyering  <jim@meyering.net>
67798
67799         Avoid conflicting types for 'unsetenv' on FreeBSD.
67800         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67801         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67802         in stdlib.h.
67803
67804 2007-02-24  Bruno Haible  <bruno@clisp.org>
67805
67806         * modules/isnanl-nolibm-tests: New file.
67807         * tests/test-isnanl.c: New file.
67808
67809         * modules/isnanl-nolibm: New file.
67810         * lib/isnanl.h: New file.
67811         * lib/isnanl.c: New file.
67812         * m4/isnanl.m4: New file.
67813
67814 2007-02-24  Bruno Haible  <bruno@clisp.org>
67815
67816         * modules/isnan-nolibm-tests: New file.
67817         * tests/test-isnan.c: New file.
67818
67819         * modules/isnan-nolibm: New file.
67820         * lib/isnan.h: New file.
67821         * lib/isnan.c: New file.
67822         * m4/isnan.m4: New file.
67823
67824 2007-02-24  Bruno Haible  <bruno@clisp.org>
67825
67826         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67827         assume that an exponent fits in 20 bits.
67828
67829 2007-02-24  Jim Meyering  <jim@meyering.net>
67830
67831         * m4/regex.m4: Update the description of the configure-time option,
67832         --without-included-regex, to state accurately what the defaults are,
67833         and perhaps to give people an idea why using this option is risky.
67834
67835 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67838         loops on small arguments.  This attempts to avoid the problem
67839         Bruno Haible reported for AIX 4.3.2 in
67840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67841
67842 2007-02-23  Bruno Haible  <bruno@clisp.org>
67843
67844         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67845         Needed for help2man.
67846
67847 2007-02-23  Karl Berry  <karl@gnu.org>
67848
67849         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67850         exists, foo.h should be cvs-ignored, not committed.
67851
67852 2007-02-23  Eric Blake  <ebb9@byu.net>
67853
67854         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67855         * lib/stat-time.h (includes): Likewise.
67856         * lib/utimecmp.c (includes): Likewise.
67857         * lib/utimens.h (includes): Likewise.
67858         * lib/getdate.y (includes): Also include "timespec.h" for use
67859         internal to the module.
67860         * modules/utimens (Depends-on): Revert yesterday's patch.
67861         * modules/nanosleep (Depends-on): Add missing dependency.
67862
67863 2007-02-22  Bruno Haible  <bruno@clisp.org>
67864
67865         * lib/glob.c: Don't include getlogin_r.h.
67866
67867 2007-02-22  Jim Meyering  <jim@meyering.net>
67868
67869         * modules/utimens (Depends-on): Add timespec, required for
67870         utimens.h's inclusion of timespec.h.
67871
67872 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67875         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67876         Schwab in
67877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67878         I'll try to think of a better way to fix the Solaris problem.
67879
67880         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67881         like glibc; on Solaris 10, it fails with errno == EINVAL.
67882         POSIX says the behavior is unspecified if the first argument is NULL,
67883         so play it safe and never pass NULL to the system getcwd.
67884
67885 2007-02-21  Jim Meyering  <jim@meyering.net>
67886
67887         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67888         of gettimeofday.  It would conflict with the one now always
67889         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67890         an IRIX 6.5 build failure.
67891
67892 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         Minor fixups to port to Solaris 10 with Sun C 5.8.
67895         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67896         * modules/getcwd (Depends-on): Add dirfd.
67897         * lib/putenv.c (putenv): #undef it.
67898         (rpl_putenv): New decl.
67899         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67900
67901 2007-02-20  Bruno Haible  <bruno@clisp.org>
67902
67903         * modules/stdio-tests: New file.
67904         * tests/test-stdio.c: New file.
67905
67906         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67907         (Depends-on): Add stdio.
67908         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67909         (Include): Use <stdio.h> instead of vsnprintf.h.
67910         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67911         HAVE_DECL_VSNPRINTF.
67912         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67913
67914         * modules/snprintf (Files): Remove lib/snprintf.h.
67915         (Depends-on): Add stdio.
67916         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67917         (Include): Use <stdio.h> instead of snprintf.h.
67918         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67919         HAVE_DECL_SNPRINTF.
67920         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67921         * lib/getaddrinfo.c: Likewise.
67922
67923         * modules/stdio: New file.
67924         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67925         * lib/snprintf.h: Remove file.
67926         * lib/vsnprintf.h: Remove file.
67927         * lib/.cppi-disable: Remove snprintf.h.
67928         * m4/stdio_h.m4: New file.
67929         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67930
67931 2007-02-20  Jim Meyering  <jim@meyering.net>
67932
67933         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67934         used by e.g., mingw.  From Bruno Haible.
67935
67936 2007-02-19  Bruno Haible  <bruno@clisp.org>
67937
67938         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67939         warnings.
67940         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67941
67942 2007-02-19  Bruno Haible  <bruno@clisp.org>
67943
67944         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67945         from mingw users.
67946
67947 2007-02-19  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67950         warnings.
67951         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67952
67953 2007-02-19  Jim Meyering  <jim@meyering.net>
67954
67955         Don't use FD after a successful "fdopendir (fd)".
67956         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67957         Reset it by calling dirfd on the just-obtained DIR*.
67958
67959         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67960         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67961
67962 2007-02-18  Bruno Haible  <bruno@clisp.org>
67963
67964         * lib/readlink.c: Include <unistd.h>.
67965         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67966         HAVE_READLINK.
67967         * modules/readlink (Depends-on): Add unistd.
67968         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67969         (Include): Add <unistd.h>.
67970
67971         * lib/getlogin_r.h: Remove file.
67972         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67973         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67974         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67975         HAVE_DECL_GETLOGIN_R.
67976         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67978         (Include): Use <unistd.h> instead of getlogin_r.h.
67979
67980         * lib/getcwd.h: Remove file.
67981         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67982         * lib/xgetcwd.c: Likewise.
67983         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67984         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67985         * modules/getcwd (Files): Remove lib/getcwd.h.
67986         (Depends-on): Add unistd.
67987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67988         (Include): Use <unistd.h> instad of getcwd.h.
67989
67990         * lib/ftruncate.c: Include <unistd.h> first.
67991         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67992         Set HAVE_FTRUNCATE.
67993         * modules/ftruncate (Depends-on): Add unistd.
67994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67995
67996         * lib/fchdir.c: Include <unistd.h> first.
67997         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67998         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67999         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68000         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68001         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68002
68003         * lib/dup2.c: Include <unistd.h> first.
68004         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68005         HAVE_DUP2.
68006         * modules/dup2 (Depends-on): Add unistd.
68007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68008
68009         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68010         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68011         REPLACE_CHOWN. Don't define chown as a macro here.
68012         * modules/chown (Depends-on): Add unistd.
68013         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68014
68015         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68016         Add definition for GL_LINK_WARNING.
68017         (chown, dup2): New declarations.
68018         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68019         link warning.
68020         (ftruncate): New declaration.
68021         (getcwd): New declaration, taken from old getcwd.h.
68022         (getlogin_r): New declaration, taken from old getlogin_r.h.
68023         (readlink): New declaration.
68024         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68025         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68026         (gl_PREREQ_UNISTD): Remove macro.
68027         (gl_UNISTD_MODULE_INDICATOR): New macro.
68028         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68029         many new variables. Don't set UNISTD_H.
68030         * modules/unistd (Description): Change.
68031         (Depends-on): Add link-warning.
68032         (configure.ac): Update.
68033         (Makefile.am): Create unistd.h always. Substitute many new variables
68034         into it.
68035
68036 2007-02-18  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68039         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68040         HAVE_GETSUBOPT.
68041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68042         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68043         * lib/getsubopt.h: Remove file.
68044         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68045         (Depends-on): Add stdlib.
68046         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68047         (Includes): Use <stdlib.h> instead of getsubopt.h.
68048         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68049         Set HAVE_GETSUBOPT.
68050         * lib/getsubopt.c: Don't include getsubopt.h.
68051
68052 2007-02-18  Bruno Haible  <bruno@clisp.org>
68053
68054         * modules/fchdir (Depends-on): Add dup2.
68055
68056 2007-02-18  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/stdlib_.h: Handle glibc's special invocation convention
68059         specially.
68060
68061 2007-02-18  Bruno Haible  <bruno@clisp.org>
68062
68063         * modules/stdlib-tests: New file.
68064         * tests/test-stdlib.c: New file.
68065
68066         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68067         (Depends-on): Add stdlib.
68068         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68069         (Includes): Use <stdlib.h> instead of mkstemp.h.
68070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68071         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68072         * lib/mkstemp.c: Don't include mkstemp.h.
68073         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68074         * lib/stdlib--.h: Don't include mkstemp.h.
68075
68076         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68077         (Depends-on): Add stdlib.
68078         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68079         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68080         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68081         HAVE_MKDTEMP.
68082         * lib/mkdtemp.c: Don't include mkdtemp.h.
68083         * lib/clean-temp.c: Don't include mkdtemp.h.
68084
68085         * modules/exit (Files): Remove lib/exit.h.
68086         (Depends-on): Add stdlib.
68087         (Makefile.am): Remove lib_SOURCES.
68088         (Include): Use <stdlib.h> instead of exit.h.
68089         * lib/argmatch.c: Don't include exit.h.
68090         * lib/execute.c: Likewise.
68091         * lib/pagealign_alloc.c: Likewise.
68092         * lib/pipe.c: Likewise.
68093         * lib/wait-process.c: Likewise.
68094         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68095         * lib/exitfail.c: Likewise.
68096         * lib/savewd.c: Likewise.
68097         * lib/xsetenv.c: Likewise.
68098
68099         * modules/stdlib: New file.
68100         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68101         and extra comments about mkstemp().
68102         * lib/exit.h: Remove file.
68103         * lib/mkdtemp.h: Remove file.
68104         * lib/mkstemp.h: Remove file.
68105         * m4/stdlib_h.m4: New file.
68106         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68107
68108 2007-02-18  Bruno Haible  <bruno@clisp.org>
68109
68110         * modules/math-tests: New file.
68111         * tests/test-math.c: New file.
68112
68113         * modules/math: New file.
68114         * modules/mathl (Files): Remove lib/mathl.h.
68115         (Depends-on): Add math.
68116         (Makefile.am): Don't mention mathl.h.
68117         (Include): Use <math.h> instead of mathl.h.
68118         * lib/math_.h: New file.
68119         * lib/mathl.h: Remove file.
68120         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68121         mathl.h.
68122         * lib/asinl.c: Likewise.
68123         * lib/atanl.c: Likewise.
68124         * lib/ceill.c: Likewise.
68125         * lib/cosl.c: Likewise.
68126         * lib/expl.c: Likewise.
68127         * lib/floorl.c: Likewise.
68128         * lib/frexpl.c: Likewise.
68129         * lib/ldexpl.c: Likewise.
68130         * lib/logl.c: Likewise.
68131         * lib/sincosl.c: Likewise.
68132         * lib/sinl.c: Likewise.
68133         * lib/sqrtl.c: Likewise.
68134         * lib/tanl.c: Likewise.
68135         * lib/trigl.c: Likewise.
68136         * m4/math_h.m4: New file.
68137         * MODULES.html.sh (Mathematics): Add math.
68138
68139 2007-02-17  Bruno Haible  <bruno@clisp.org>
68140
68141         * modules/wctype-tests: New file.
68142         * tests/test-wctype.c: New file.
68143
68144         * modules/wchar-tests: New file.
68145         * tests/test-wchar.c: New file.
68146
68147         * modules/unistd-tests: New file.
68148         * tests/test-unistd.c: New file.
68149
68150         * modules/time-tests: New file.
68151         * tests/test-time.c: New file.
68152
68153         * modules/sysexits-tests: New file.
68154         * tests/test-sysexits.c: New file.
68155
68156         * modules/sys_time-tests: New file.
68157         * tests/test-sys_time.c: New file.
68158
68159         * modules/sys_stat-tests: New file.
68160         * tests/test-sys_stat.c: New file.
68161
68162         * modules/sys_socket-tests: New file.
68163         * tests/test-sys_socket.c: New file.
68164
68165         * modules/sys_select-tests: New file.
68166         * tests/test-sys_select.c: New file.
68167
68168         * modules/string-tests: New file.
68169         * tests/test-string.c: New file.
68170
68171         * modules/stdbool-tests: New file.
68172         * tests/test-stdbool.c: New file.
68173
68174         * modules/netinet_in-tests: New file.
68175         * tests/test-netinet_in.c: New file.
68176
68177         * modules/inttypes-tests: New file.
68178         * tests/test-inttypes.c: New file.
68179
68180         * modules/fcntl-tests: New file.
68181         * tests/test-fcntl.c: New file.
68182
68183         * modules/byteswap-tests: New file.
68184         * tests/test-byteswap.c: New file.
68185
68186         * modules/arpa_inet-tests: New file.
68187         * tests/test-arpa_inet.c: New file.
68188
68189 2007-02-17  Bruno Haible  <bruno@clisp.org>
68190
68191         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68192         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68193         if the corresponding module is not enabled. Emit link warnings if
68194         the function is used nevertheless.
68195         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68196         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68197         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68198         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68199         * modules/inttypes (Depends-on): Add link-warning.
68200         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68201         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68202         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68203         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68204         * modules/imaxdiv (configure.ac): Likewise.
68205         * modules/strtoimax (configure.ac): Likewise.
68206         * modules/strtoumax (configure.ac): Likewise.
68207
68208 2007-02-17  Bruno Haible  <bruno@clisp.org>
68209
68210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68211         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68212         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68213         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68214
68215 2007-02-17  Bruno Haible  <bruno@clisp.org>
68216
68217         * modules/link-warning: New file.
68218         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68219         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68220         * modules/string (Depends-on): Add link-warning.
68221         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68222         string.h.
68223         * MODULES.html.sh (Support for building libraries and executables): Add
68224         link-warning.
68225
68226 2007-02-17  Bruno Haible  <bruno@clisp.org>
68227
68228         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68229         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68230         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68231         long lines.
68232
68233 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68234             Bruno Haible  <bruno@clisp.org>
68235
68236         * modules/tmpfile: New file.
68237         * lib/tmpfile.c: New file.
68238         * m4/tmpfile.m4: New file.
68239         * MODULES.html.sh (func_all_modules): New section "Input/output".
68240
68241 2007-02-15  Bruno Haible  <bruno@clisp.org>
68242
68243         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68244         (supports_delete_on_close): New function.
68245         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68246
68247 2007-02-14  Bruno Haible  <bruno@clisp.org>
68248
68249         * modules/mbspcasecmp-tests: New file.
68250         * tests/test-mbspcasecmp.sh: New file.
68251         * tests/test-mbspcasecmp.c: New file.
68252
68253         New module mbspcasecmp.
68254         * modules/mbspcasecmp: New file.
68255         * lib/mbspcasecmp.c: New file.
68256         * lib/string_.h (strncasecmp): Change warning message.
68257         (mbspcasecmp): New declaration.
68258         * m4/mbspcasecmp.m4: New file.
68259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68260         GNULIB_MBSPCASECMP.
68261         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68262         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68263
68264 2007-02-14  Bruno Haible  <bruno@clisp.org>
68265
68266         * modules/mbsncasecmp-tests: New file.
68267         * tests/test-mbsncasecmp.sh: New file.
68268         * tests/test-mbsncasecmp.c: New file.
68269
68270         New module mbsncasecmp.
68271         * modules/mbsncasecmp: New file.
68272         * lib/mbsncasecmp.c: New file.
68273         * lib/string_.h (mbsncasecmp): New declaration.
68274         * m4/mbsncasecmp.m4: New file.
68275         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68276         GNULIB_MBSNCASECMP.
68277         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68278         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68279
68280 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68281
68282         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68283         Verify that it doesn't overlap with our flags.
68284         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68285         do not have the desired effect in multibyte locales; instead, use
68286         mbscasecmp.
68287         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68288         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68289         we don't require GNU fnmatch ourselves (if our users require it, they
68290         should do so explicitly).
68291
68292         Fix regex code so it doesn't rely on strcasecmp.
68293         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68294         Otherwise, include gnulib's langinfo.h.
68295         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68296         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68297         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68298         * modules/regex (FILES): Remove m4/codeset.m4.
68299         (Depends-on): Add localcharset.  Remove strcase.
68300
68301 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68302
68303         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68304         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68305
68306 2007-02-13  Bruno Haible  <bruno@clisp.org>
68307
68308         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68310
68311 2007-02-12  Bruno Haible  <bruno@clisp.org>
68312
68313         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68314         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68315         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68316         time warning rather than a link error.
68317
68318 2007-02-12  Bruno Haible  <bruno@clisp.org>
68319
68320         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68321         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68322         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68323
68324 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68327         args, not 2.
68328
68329 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68330
68331         New module 'time', so that apps can include <time.h> as per
68332         POSIX and GNU instead of separate include files like time_r.h
68333         and timegm.h.  This implementation tries out a simpler approach
68334         for replacing decls in standard include files (as compared to
68335         the string module), somewhat as an experiment.
68336
68337         * config/srclist.txt: Comment out mktime.c for now.
68338         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68339         since it doesn't apply any more.  Use generic wording instead.
68340         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68341         'time'.
68342         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68343         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68344         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68345         Don't include <sys/types.h>; no longer needed since we assume C89.
68346         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68347         * lib/strftime.c: Likewise.
68348         * lib/time_r.c: Likewise.
68349         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68350         * lib/nanosleep.c: Include <time.h> first, to check interface.
68351         * lib/strptime.c: Likewise.
68352         * lib/time_r.c: Likewise.
68353         * lib/timegm.c: Likewise.
68354         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68355         needed.
68356         * lib/timegm.c: Don't include timegm.h; no longer needed.
68357         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68358         time.h now handles any problems in that area.
68359         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68360         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68361         that time.h defines struct timespec.
68362         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68363         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68364         handles that.
68365         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68366         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68367         needed.  Set REPLACE_LOCALTIME.
68368         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68369         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68370         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68371         nanosleep; time_h.m4 now does that.  Don't require
68372         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68373         module handles this now.
68374         * modules/getdate (Depends-on): Remove timespec.  Add time.
68375         * modules/nanosleep (Depends-on): Likewise.
68376         * modules/stat-time (Depends-on): Likewise.
68377         * modules/nanosleep (Include): Include time.h, not timespec.h.
68378         * modules/strptime (Files): Remove lib/strptime.h.
68379         (Depends-on): Add extensions, time.
68380         (Include): Include time.h, not strptime.h.
68381         * modules/time_r (Files): Remove lib/time_r.h.
68382         (Depends-on): Add time.
68383         (Include): Include time.h, not time_r.h.
68384         * modules/timegm: Likewise.
68385         * modules/timespec (Description): Now does timespec-related decls
68386         of our own, instead of struct timespec itself.
68387         (Depends-on): Add time; remove extensions.
68388         (Maintainer): Add self.
68389         * modules/utimecmp (Depends-on): Add time; remove timespec.
68390         * modules/utimens (Depends-on): Likewise.
68391         * modules/xnanosleep (Depends-on): Likewise.
68392
68393 2007-02-11  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/c-strstr.c: Include allocsa.h.
68396         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68397         * lib/c-strcasestr.c: Include allocsa.h.
68398         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68399         * lib/strcasestr.c: Include allocsa.h.
68400         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68401         * lib/mbsstr.c: Include allocsa.h.
68402         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68403         allocsa/freesa instead of malloc/free.
68404         * lib/mbscasestr.c: Include allocsa.h.
68405         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68406         allocsa/freesa instead of malloc/free.
68407         * modules/c-strstr (Depends-on): Add allocsa.
68408         * modules/c-strcasestr (Depends-on): Likewise.
68409         * modules/strcasestr (Depends-on): Likewise.
68410         * modules/mbsstr (Depends-on): Likewise.
68411         * modules/mbscasestr (Depends-on): Likewise.
68412
68413 2007-02-11  Bruno Haible  <bruno@clisp.org>
68414
68415         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68416
68417         * modules/mbsspn-tests: New file.
68418         * tests/test-mbsspn.sh: New file.
68419         * tests/test-mbsspn.c: New file.
68420
68421 2007-02-11  Bruno Haible  <bruno@clisp.org>
68422
68423         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68424
68425         * modules/mbspbrk-tests: New file.
68426         * tests/test-mbspbrk.sh: New file.
68427         * tests/test-mbspbrk.c: New file.
68428
68429 2007-02-11  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68432         unneeded cast.
68433
68434         * modules/mbscspn-tests: New file.
68435         * tests/test-mbscspn.sh: New file.
68436         * tests/test-mbscspn.c: New file.
68437
68438 2007-02-11  Bruno Haible  <bruno@clisp.org>
68439
68440         * modules/mbscasecmp-tests: New file.
68441         * tests/test-mbscasecmp.sh: New file.
68442         * tests/test-mbscasecmp.c: New file.
68443
68444 2007-02-11  Bruno Haible  <bruno@clisp.org>
68445
68446         Ensure O(n) worst-case complexity of mbscasestr.
68447         * lib/mbscasestr.c: Include stdbool.h.
68448         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68449         functions.
68450         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68451         the bookkeeping indicates that it's worth it.
68452         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68453
68454         * modules/mbscasestr-tests: New file.
68455         * tests/test-mbscasestr1.c: New file.
68456         * tests/test-mbscasestr2.sh: New file.
68457         * tests/test-mbscasestr2.c: New file.
68458         * tests/test-mbscasestr3.sh: New file.
68459         * tests/test-mbscasestr3.c: New file.
68460         * tests/test-mbscasestr4.sh: New file.
68461         * tests/test-mbscasestr4.c: New file.
68462         * m4/locale-tr.m4: New file.
68463
68464 2007-02-11  Bruno Haible  <bruno@clisp.org>
68465
68466         Ensure O(n) worst-case complexity of mbsstr.
68467         * lib/mbsstr.c: Include stdbool.h.
68468         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68469         functions.
68470         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68471         bookkeeping indicates that it's worth it.
68472         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68473
68474         * modules/mbsstr-tests: New file.
68475         * tests/test-mbsstr1.c: New file.
68476         * tests/test-mbsstr2.sh: New file.
68477         * tests/test-mbsstr2.c: New file.
68478         * tests/test-mbsstr3.sh: New file.
68479         * tests/test-mbsstr3.c: New file.
68480         * m4/locale-fr.m4: New file.
68481
68482 2007-02-11  Bruno Haible  <bruno@clisp.org>
68483
68484         * lib/mbsrchr.c (mbsrchr): Fix bug.
68485
68486         * modules/mbsrchr-tests: New file.
68487         * tests/test-mbsrchr.sh: New file.
68488         * tests/test-mbsrchr.c: New file.
68489
68490 2007-02-11  Bruno Haible  <bruno@clisp.org>
68491
68492         * lib/mbschr.c (mbschr): Fix bug.
68493
68494         * modules/mbschr-tests: New file.
68495         * tests/test-mbschr.sh: New file.
68496         * tests/test-mbschr.c: New file.
68497         * m4/locale-zh.m4: New file.
68498
68499 2007-02-11  Bruno Haible  <bruno@clisp.org>
68500
68501         Support for copying multibyte string iterators.
68502         * lib/mbiter.h: Include <string.h>.
68503         (mbiter_multi_copy): New function.
68504         (mbi_copy): New macro.
68505         * lib/mbuiter.h: Include <string.h>.
68506         (mbuiter_multi_copy): New function.
68507         (mbui_copy): New macro.
68508
68509 2007-02-11  Bruno Haible  <bruno@clisp.org>
68510
68511         New module mbslen.
68512         * modules/mbslen: New file.
68513         * lib/mbslen.c: New file.
68514         * lib/string_.h (mbslen): New declaration.
68515         * m4/mbslen.m4: New file.
68516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68517         GNULIB_MBSLEN.
68518         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68519         * MODULES.html.sh (Internationalization functions): Add mbslen.
68520
68521 2007-02-11  Bruno Haible  <bruno@clisp.org>
68522
68523         Ensure O(n) worst-case complexity of strcasestr substitute.
68524         * lib/strcasestr.c: Include stdbool.h.
68525         (knuth_morris_pratt): New function.
68526         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68527         bookkeeping indicates that it's worth it.
68528         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68529
68530         * modules/strcasestr-tests: New file.
68531         * tests/test-strcasestr.c: New file.
68532
68533 2007-02-11  Bruno Haible  <bruno@clisp.org>
68534
68535         Ensure O(n) worst-case complexity of c_strcasestr.
68536         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68537         (knuth_morris_pratt): New function.
68538         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68539         the bookkeeping indicates that it's worth it.
68540         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68541
68542         * modules/c-strcasestr-tests: New file.
68543         * tests/test-c-strcasestr.c: New file.
68544
68545 2007-02-11  Bruno Haible  <bruno@clisp.org>
68546
68547         Ensure O(n) worst-case complexity of c_strstr.
68548         * lib/c-strstr.c: Include stdbool.h, string.h.
68549         (knuth_morris_pratt): New function.
68550         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68551         bookkeeping indicates that it's worth it.
68552         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68553
68554         * lib/c-strstr.c: Complete rewrite for maintainability.
68555
68556         * modules/c-strstr-tests: New file.
68557         * tests/test-c-strstr.c: New file.
68558
68559 2007-02-11  Bruno Haible  <bruno@clisp.org>
68560
68561         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68562         5.2.1 and earlier, whereby \055 was treated just like the range
68563         delimiter '-'.
68564         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68565
68566 2007-02-08  Bruno Haible  <bruno@clisp.org>
68567
68568         * modules/regex (Depends-on): Add stdbool.
68569         Reported by Dalibor Topic <robilad@kaffe.org>.
68570
68571 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68574         Prefer returning from main to exiting from it.
68575         Remove unnecessary parens after sizeof.
68576
68577 2007-02-05  Bruno Haible  <bruno@clisp.org>
68578
68579         New module mbssep.
68580         * modules/mbssep: New file.
68581         * lib/mbssep.c: New file.
68582         * lib/string_.h (strsep): Add a conditional link warning.
68583         (mbssep): New declaration.
68584         * m4/mbssep.m4: New file.
68585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68586         GNULIB_MBSSEP.
68587         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68588         * MODULES.html.sh (Internationalization functions): Add mbssep.
68589
68590 2007-02-05  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68593         Optimize search in case of 1 delimiter.
68594
68595 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68596
68597         * lib/acl.h: Include sys/types.h before sys/acl.h.
68598
68599 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68600
68601         Merge upstream fix for glibc bugzilla #3957:
68602
68603         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68604
68605         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68606         bit for RE_HAT_LISTS_NOT_NEWLINE.
68607         (build_charclass_op): Remove bogus comment.
68608
68609 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68610
68611         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68612
68613 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68614
68615         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68616         * lib/memmem.c [!defined _LIBC]: Include config.h.
68617
68618 2007-02-04  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68621         warning message.
68622
68623 2007-02-04  Bruno Haible  <bruno@clisp.org>
68624
68625         New module mbstok_r.
68626         * modules/mbstok_r: New file.
68627         * lib/mbstok_r.c: New file.
68628         * lib/string_.h (strtok_r): Change argument names to match the
68629         comments. Add a conditional link warning.
68630         (mbstok_r): New declaration.
68631         * m4/mbstok_r.m4: New file.
68632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68633         GNULIB_MBSTOK_R.
68634         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68635         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68636
68637 2007-02-04  Bruno Haible  <bruno@clisp.org>
68638
68639         New module mbsspn.
68640         * modules/mbsspn: New file.
68641         * lib/mbsspn.c: New file.
68642         * lib/string_.h (strspn): Add a conditional link warning.
68643         (mbsspn): New declaration.
68644         * m4/mbsspn.m4: New file.
68645         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68646         GNULIB_MBSSPN.
68647         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68648         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68649
68650 2007-02-04  Bruno Haible  <bruno@clisp.org>
68651
68652         New module mbspbrk.
68653         * modules/mbspbrk: New file.
68654         * lib/mbspbrk.c: New file.
68655         * lib/string_.h (strpbrk): Add a conditional link warning.
68656         (mbspbrk): New declaration.
68657         * m4/mbspbrk.m4: New file.
68658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68659         GNULIB_MBSPBRK.
68660         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68661         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68662
68663 2007-02-04  Bruno Haible  <bruno@clisp.org>
68664
68665         New module mbscspn.
68666         * modules/mbscspn: New file.
68667         * lib/mbscspn.c: New file.
68668         * lib/string_.h (strcspn): Add a conditional link warning.
68669         (mbscspn): New declaration.
68670         * m4/mbscspn.m4: New file.
68671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68672         GNULIB_MBSCSPN.
68673         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68674         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68675
68676 2007-02-04  Bruno Haible  <bruno@clisp.org>
68677
68678         New module mbscasestr, reduced goal of strcasestr.
68679         * modules/mbscasestr: New file.
68680         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68681         (mbscasestr): Renamed from strcasestr.
68682         * lib/strcasestr.c: Don't include mbuiter.h.
68683         (strcasestr): Remove support for multibyte locales.
68684         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68685         Change the conditional link warning.
68686         (mbscasestr): New declaration.
68687         * m4/mbscasestr.m4: New file.
68688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68689         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68690         REPLACE_STRCASESTR.
68691         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68693         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68694         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68695         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68696         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68697         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68698         (Depends-on): Remove mbuiter.
68699         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68700
68701 2007-02-04  Bruno Haible  <bruno@clisp.org>
68702
68703         Simplify handling of strncasecmp.
68704         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68705         the conditional link warning.
68706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68707         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68708         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68709         * modules/strcase (configure.ac): Don't invoke
68710         gl_STRING_MODULE_INDICATOR.
68711         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68712
68713 2007-02-04  Bruno Haible  <bruno@clisp.org>
68714
68715         New module mbscasecmp, reduced goal of strcasecmp.
68716         * modules/mbscasecmp: New file.
68717         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68718         (mbscasecmp): Renamed from strcasecmp.
68719         * lib/strcasecmp.c: Don't include mbuiter.h.
68720         (strcasecmp): Remove support for multibyte locales.
68721         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68722         Change the conditional link warning.
68723         (mbscasecmp): New declaration.
68724         * m4/mbscasecmp.m4: New file.
68725         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68726         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68727         REPLACE_STRCASECMP.
68728         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68730         GNULIB_MBSCASECMP.
68731         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68732         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68733         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68734         (Depends-on): Remove mbuiter.
68735         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68736
68737 2007-02-04  Bruno Haible  <bruno@clisp.org>
68738
68739         New module mbsstr. Remove module strstr.
68740         * modules/mbsstr: New file.
68741         * modules/strstr: Remove file.
68742         * lib/mbsstr.c: Renamed from lib/strstr.c.
68743         (mbsstr): Renamed from strstr.
68744         * lib/string_.h (strstr): Remove declaration. Change the conditional
68745         link warning.
68746         (mbsstr): New declaration.
68747         * m4/mbsstr.m4: New file.
68748         * m4/strstr.m4: Remove file.
68749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68750         REPLACE_STRSTR.
68751         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68752         Don't initialize GNULIB_STRSTR.
68753         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68754         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68755         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68756         (Support for systems lacking ANSI C 89): Remove strstr.
68757
68758 2007-02-04  Bruno Haible  <bruno@clisp.org>
68759
68760         New module mbsrchr.
68761         * modules/mbsrchr: New file.
68762         * lib/mbsrchr.c: New file.
68763         * lib/string_.h (strrchr): Add a conditional link warning.
68764         (mbsrchr): New declaration.
68765         * m4/mbsrchr.m4: New file.
68766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68767         GNULIB_MBSRCHR.
68768         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68769         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68770
68771 2007-02-04  Bruno Haible  <bruno@clisp.org>
68772
68773         New module mbschr.
68774         * modules/mbschr: New file.
68775         * lib/mbschr.c: New file.
68776         * lib/string_.h (strchr): Add a conditional link warning.
68777         (mbschr): New declaration.
68778         * m4/mbschr.m4: New file.
68779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68780         GNULIB_MBSCHR.
68781         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68782         * MODULES.html.sh (Internationalization functions): Add mbschr.
68783
68784 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68785
68786         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68787
68788         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68789
68790 2007-02-04  Bruno Haible  <bruno@clisp.org>
68791
68792         New module description section 'configure.ac-early'.
68793         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68794         (func_get_autoconf_early_snippet): New function.
68795         (func_import, func_create_testdir): Use it. Remove special cases for
68796         modules 'extensions' and 'lock'.
68797         * modules/extensions (configure.ac-early): Require
68798         gl_USE_SYSTEM_EXTENSIONS.
68799         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68800
68801 2007-02-04  Bruno Haible  <bruno@clisp.org>
68802
68803         Make use of gcj-4.3's -fsource and -ftarget option.
68804         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68805         and if so try the options -fsource and -ftarget.
68806         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68807         source_version, ftarget_option, target_version arguments.
68808         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68809         (is_envjavac_oldgcj_14_14_usable): Renamed from
68810         is_envjavac_gcj_14_14_usable.
68811         (is_envjavac_oldgcj_14_13_usable): Renamed from
68812         is_envjavac_gcj_14_13_usable.
68813         (is_gcj_present): Update.
68814         (is_gcj_43, is_gcj43_usable): New functions.
68815         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68816         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68817         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68818         try the options -fsource and -ftarget.
68819
68820 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68823         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68824         larger value.
68825
68826 2007-02-03  Jim Meyering  <jim@meyering.net>
68827
68828         Give tools a better chance to allocate space for very large buffers.
68829         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68830
68831         Make pwd and readlink work also when run with an unreadable parent dir
68832         on systems with openat support.
68833         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68834         provided getcwd function, even when we have openat support.
68835         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68836
68837 2007-02-02  Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68840         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68841         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68842         portability problems if one of these functions is only used on specific
68843         platforms.
68844         Reported by Paul Eggert.
68845
68846 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68847
68848         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68849         is causing more trouble than it's curing.
68850         * lib/regex_internal.h (__mempcpy): Remove.
68851         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68852         (and make the code a tad smaller to boot).
68853         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68854
68855 2007-02-02  Jim Meyering  <jim@meyering.net>
68856
68857         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68858         section, not in the Makefile.am: one.
68859
68860 2007-02-02  Eric Blake  <ebb9@byu.net>
68861
68862         * lib/strchrnul.c: Always include config.h first.
68863
68864         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68865         gnulib strstr is not necessary here.
68866
68867 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68868
68869         * m4/socklen.m4: Fix typo.
68870
68871 2007-02-02  Eric Blake  <ebb9@byu.net>
68872
68873         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68874         * modules/netinet_in (Makefile.am): Likewise.
68875
68876 2007-02-01  Bruno Haible  <bruno@clisp.org>
68877
68878         * lib/string_.h (GL_LINK_WARNING): New macro.
68879         (strcasecmp, strstr, strcasestr): If provided by the system,
68880         conditionally define as a macro that leads to a warning instead of to
68881         an error.
68882         (strncasecmp): Conditionally define as a macro that leads to a warning.
68883
68884 2007-02-01  Karl Berry  <karl@gnu.org>
68885
68886         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68887
68888 2007-02-01  Bruno Haible  <bruno@clisp.org>
68889
68890         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68891         renamings.
68892
68893 2007-02-01  Eric Blake  <ebb9@byu.net>
68894
68895         * modules/regex (Depends-on): Revert dependence on mempcpy.
68896         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68897         module's definition of mempcpy.
68898         Reported by Paul Eggert.
68899
68900 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68903         the symbol XYZ before redefining it.  This fixes a problem with
68904         programs that don't use XYZ, when compiled on systems that define
68905         XYZ to something else.
68906
68907 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68910         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68911         writeable to group or other and (2) is intended to have a special
68912         mode bit that is set or cleared.  In such a case, the directory
68913         should be neither group- nor other-writeable until the special
68914         mode bits are right.
68915
68916 2007-01-31  Eric Blake  <ebb9@byu.net>
68917
68918         * modules/mountlist (Depends-on): Add strstr.
68919
68920         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68921         bug.
68922         * modules/string (Makefile.am): Remove redundant replacement.
68923         * modules/regex (Depends-on): Add mempcpy.
68924
68925 2007-01-31  Bruno Haible  <bruno@clisp.org>
68926
68927         New module description field 'Link'.
68928         * gnulib-tool (func_usage): Document --extract-link-directive.
68929         (sed_extract_prog): Recognize 'Link' directive.
68930         (func_get_link_directive): New function.
68931         (func_import): Show summary of link directives.
68932         Handle --extract-link-directive option.
68933         * modules/acl (Link): New section.
68934         * modules/clock-time (Link): New section.
68935         * modules/euidaccess (Link): New section.
68936         * modules/gettext (Link): New section.
68937         * modules/iconv (Link): New section.
68938         * modules/lock (Link): New section.
68939         * modules/nanosleep (Link): New section.
68940         * modules/readline (Link): New section.
68941
68942 2007-01-27  Bruno Haible  <bruno@clisp.org>
68943
68944         Enforce the use of gnulib modules for unportable <string.h> functions.
68945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68946         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68947         (gl_HEADER_STRING_H_BODY): Require it.
68948         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68949         the symbol XYZ to one that gives a link error.
68950         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68951         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68952         * modules/mempcpy (configure.ac): Likewise.
68953         * modules/memrchr (configure.ac): Likewise.
68954         * modules/stpcpy (configure.ac): Likewise.
68955         * modules/stpncpy (configure.ac): Likewise.
68956         * modules/strcase (configure.ac): Likewise.
68957         * modules/strcasestr (configure.ac): Likewise.
68958         * modules/strchrnul (configure.ac): Likewise.
68959         * modules/strdup (configure.ac): Likewise.
68960         * modules/strndup (configure.ac): Likewise.
68961         * modules/strnlen (configure.ac): Likewise.
68962         * modules/strpbrk (configure.ac): Likewise.
68963         * modules/strsep (configure.ac): Likewise.
68964         * modules/strstr (configure.ac): Likewise.
68965         * modules/strtok_r (configure.ac): Likewise.
68966
68967 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68968
68969         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68970
68971 2007-01-30  Jim Meyering  <jim@meyering.net>
68972
68973         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68974
68975 2007-01-29  Bruno Haible  <bruno@clisp.org>
68976
68977         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68978         * lib/execute.c: Likewise.
68979         * lib/pipe.c: Likewise.
68980         * lib/printf-args.h: Likewise.
68981         * lib/printf-args.c: Likewise.
68982         * lib/printf-parse.c: Likewise.
68983         * lib/vasnprintf.c: Likewise.
68984
68985 2007-01-29  Eric Blake  <ebb9@byu.net>
68986
68987         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68988         declaration.
68989
68990 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68991
68992         * lib/strptime.h (strptime): Use 'restrict' for args where
68993         POSIX requires this.
68994         * lib/strptime.c (strptime): Likewise.
68995         Change license notice from LGPL to GPL, since gnulib-tool will
68996         change this as needed.
68997         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68998         defined.
68999         Include "strptime.h" first, to check interface.
69000         Do not #undef _LIBC and _NL_CURRENT.
69001         Do not include <stdlib.h>; no longer needed.
69002         Include "time_r.h" and declare ptime_locale_status
69003         only if _LIBC is not defined.
69004         (__P): Remove unused macro.
69005         (match_string): Bring back glibc version, but use it only if _LIBC
69006         is defined.
69007         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69008         Remove unnecessary assertion and abort() call.
69009         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69010         * m4/strptime.m4: Fix serial number comment.
69011         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69012         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69013         (Depends-on): Add time_r.
69014
69015 2007-01-29  Bruno Haible  <bruno@clisp.org>
69016
69017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69018         strptime.
69019         * modules/strptime (Depends-on): Add stdbool.
69020         * lib/strptime.h: Include <time.h> always. Add comments.
69021
69022 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69023
69024         * modules/strptime: New file.
69025         * lib/strptime.h: New file.
69026         * lib/strptime.c: New file.
69027         * m4/strptime.m4: New file.
69028
69029 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69030
69031         * MODULES.html.sh: New module mpsort.
69032         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69033
69034         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69035         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69036         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69037         All uses changed.
69038         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69039         All uses changed.
69040         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69041         to _Restrict_.
69042         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69043         the parameter matches the prototype.
69044
69045 2007-01-28  Jim Meyering  <jim@meyering.net>
69046
69047         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69048         sys/time.h here, reverting that part of the previous patch:
69049         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69050
69051 2007-01-28  Bruno Haible  <bruno@clisp.org>
69052
69053         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69054         value of $(SYS_TIME_H).
69055         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69056         remove it conditionally, too. [added by Jim Meyering]
69057         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69058         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69059         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69060         GETTIMEOFDAY_REPLACEMENT to 1.
69061
69062 2007-01-28  Bruno Haible  <bruno@clisp.org>
69063
69064         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69065         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69066         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69067         Set UNISTD_H instead of UNISTD_H2.
69068         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69069
69070 2007-01-28  Bruno Haible  <bruno@clisp.org>
69071
69072         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69073         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69074
69075 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69076
69077         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69078         (func_create_testdir): Ensure C locale for `grep' and `tr'
69079         character ranges.
69080         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69081         ACLOCAL_AMFLAGS parsing state machine.
69082
69083 2007-01-27  Bruno Haible  <bruno@clisp.org>
69084
69085         * modules/unistr/base: Update.
69086
69087 2007-01-27  Bruno Haible  <bruno@clisp.org>
69088
69089         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69090         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69091         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69092         modules/unistr/u32-mbtouc.
69093         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69094         * lib/unistr.h: Update.
69095         * lib/linebreak.c: Update.
69096         * modules/unistr/u32-mbtouc: Renamed from
69097         modules/unistr/u32-mbtouc-safe.
69098         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69099         * lib/unistr.h: Update.
69100         * lib/unistr/u32-to-u8.c: Update.
69101         * lib/unistr/u32-to-u16.c: Update.
69102
69103 2007-01-27  Bruno Haible  <bruno@clisp.org>
69104
69105         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69106         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69107         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69108         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69109         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69110         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69111         modules/unistr/u16-mbtouc.
69112         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69113         * lib/unistr.h: Update.
69114         * lib/linebreak.c: Update.
69115         * modules/linebreak: Update.
69116         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69117         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69118         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69119         * modules/unistr/u16-mbtouc: Renamed from
69120         modules/unistr/u16-mbtouc-safe.
69121         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69122         * lib/unistr.h: Update.
69123         * lib/unistr/u16-to-u8.c: Update.
69124         * modules/unistr/u16-to-u8: Update.
69125         * lib/unistr/u16-to-u32.c: Update.
69126         * modules/unistr/u16-to-u32: Update.
69127
69128 2007-01-27  Bruno Haible  <bruno@clisp.org>
69129
69130         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69131         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69132         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69133         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69134         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69135         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69136         modules/unistr/u8-mbtouc.
69137         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69138         * lib/unistr.h: Update.
69139         * lib/striconveh.c: Update.
69140         * modules/striconveh: Update.
69141         * lib/linebreak.c: Update.
69142         * modules/linebreak: Update.
69143         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69144         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69145         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69146         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69147         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69148         * lib/unistr.h: Update.
69149         * lib/striconveh.c: Update.
69150         * modules/striconveh: Update.
69151         * lib/unistr/u8-to-u16.c: Update.
69152         * modules/unistr/u8-to-u16: Update.
69153         * lib/unistr/u8-to-u32.c: Update.
69154         * modules/unistr/u8-to-u32: Update.
69155
69156 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69157
69158         Sync from Libtool.
69159         * lib/argz.c: Do not include strings.h nor memory.h, include
69160         string.h unconditionally.  Patch by Simon Josefsson.
69161
69162 2007-01-27  Bruno Haible  <bruno@clisp.org>
69163
69164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69165         from gl_HEADER_STRING_H_BODY.
69166         (gl_HEADER_STRING_H_BODY): Require it.
69167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69168         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69169         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69170         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69171         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69172         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69174         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69175         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69176         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69177         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69178         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69179         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69180         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69181         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69182
69183 2007-01-27  Bruno Haible  <bruno@clisp.org>
69184
69185         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69186         check_PROGRAMS into noinst_PROGRAMS.
69187         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69188         check_PROGRAMS in this case.
69189         (func_import): Set for_test to false.
69190         (func_create_testdir): Set for_test to true.
69191
69192 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69193             Bruno Haible  <bruno@clisp.org>
69194
69195         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69196         (Depends-on): Add string.
69197         (Includes): Use <string.h> instead of strcasestr.h.
69198         * modules/string (Makefile.am): Also substitute the value of
69199         REPLACE_STRCASESTR.
69200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69201         assume strcasestr is declared in <string.h> not <strings.h>. Also
69202         set REPLACE_STRCASESTR.
69203         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69204         REPLACE_STRCASESTR.
69205         * lib/strcasestr.h: Remove file.
69206         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69207         * lib/string_.h (strcasestr): New declaration.
69208
69209 2007-01-27  Bruno Haible  <bruno@clisp.org>
69210
69211         * lib/string_.h: Use 'extern'.
69212
69213 2007-01-27  Jim Meyering  <jim@meyering.net>
69214
69215         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69216         of set-but-not-used local, "q".
69217
69218         * lib/mempcpy.c: Include <config.h> before <string.h>.
69219         This fixes a compilation error on HP-UX, due to the system's
69220         "restrict"-using mempcpy prototype.
69221
69222 2007-01-26  Bruno Haible  <bruno@clisp.org>
69223
69224         Small optimization.
69225         * lib/javacomp.c: Include c-strstr.h.
69226          (is_envjavac_gcj): Use c_strstr instead of strstr.
69227         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69228
69229 2007-01-26  Bruno Haible  <bruno@clisp.org>
69230
69231         * MODULES.html.sh (Unicode string functions): Add the new modules.
69232
69233         * modules/uniconv/u32-strconv-to-locale: New file.
69234         * lib/uniconv/u32-strconv-to-locale.c: New file.
69235
69236         * modules/uniconv/u16-strconv-to-locale: New file.
69237         * lib/uniconv/u16-strconv-to-locale.c: New file.
69238
69239         * modules/uniconv/u8-strconv-to-locale: New file.
69240         * lib/uniconv/u8-strconv-to-locale.c: New file.
69241
69242         * modules/uniconv/u32-strconv-from-locale: New file.
69243         * lib/uniconv/u32-strconv-from-locale.c: New file.
69244
69245         * modules/uniconv/u16-strconv-from-locale: New file.
69246         * lib/uniconv/u16-strconv-from-locale.c: New file.
69247
69248         * modules/uniconv/u8-strconv-from-locale: New file.
69249         * lib/uniconv/u8-strconv-from-locale.c: New file.
69250
69251         * modules/uniconv/u32-strconv-to-enc: New file.
69252         * lib/uniconv/u32-strconv-to-enc.c: New file.
69253         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69254         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69255
69256         * modules/uniconv/u16-strconv-to-enc: New file.
69257         * lib/uniconv/u16-strconv-to-enc.c: New file.
69258         * lib/uniconv/u-strconv-to-enc.h: New file.
69259         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69260         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69261
69262         * modules/uniconv/u8-strconv-to-enc: New file.
69263         * lib/uniconv/u8-strconv-to-enc.c: New file.
69264         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69265         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69266
69267         * modules/uniconv/u32-strconv-from-enc: New file.
69268         * lib/uniconv/u32-strconv-from-enc.c: New file.
69269         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69270         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69271
69272         * modules/uniconv/u16-strconv-from-enc: New file.
69273         * lib/uniconv/u16-strconv-from-enc.c: New file.
69274         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69275         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69276
69277         * modules/uniconv/u8-strconv-from-enc: New file.
69278         * lib/uniconv/u8-strconv-from-enc.c: New file.
69279         * lib/uniconv/u-strconv-from-enc.h: New file.
69280         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69281         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69282
69283         * modules/uniconv/u32-conv-from-enc: New file.
69284         * lib/uniconv/u32-conv-from-enc.c: New file.
69285         * modules/uniconv/u32-conv-from-enc-tests: New file.
69286         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69287
69288         * modules/uniconv/u16-conv-from-enc: New file.
69289         * lib/uniconv/u16-conv-from-enc.c: New file.
69290         * lib/uniconv/u-conv-from-enc.h: New file.
69291         * modules/uniconv/u16-conv-from-enc-tests: New file.
69292         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69293
69294         * modules/uniconv/u8-conv-from-enc: New file.
69295         * lib/uniconv/u8-conv-from-enc.c: New file.
69296         * modules/uniconv/u8-conv-from-enc-tests: New file.
69297         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69298
69299         * modules/uniconv/base: New file.
69300         * lib/uniconv.h: New file.
69301
69302 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69303
69304         * doc/gnulib-tool.texi (Initial import): Update to match current
69305         behavior with strdup module.
69306         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69307         * lib/memmem.h: Remove; all uses removed.  This is now done
69308         by <string.h>.
69309         * lib/mempcpy.h: Likewise.
69310         * lib/memrchr.h: Likewise.
69311         * lib/stpcpy.h: Likewise.
69312         * lib/stpncpy.h: Likewise.
69313         * lib/strcase.h: Likewise.
69314         * lib/strchrnul.h: Likewise.
69315         * lib/strdup.h: Likewise.
69316         * lib/strndup.h: Likewise.
69317         * lib/strnlen.h: Likewise.
69318         * lib/strpbrk.h: Likewise.
69319         * lib/strsep.h: Likewise.
69320         * lib/strstr.h: Likewise.
69321         * lib/strtok_r.h: Likewise.
69322         * lib/string_.h: New file.
69323         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69324         Rely on <string.h> instead.
69325         * lib/canon-host.c: Likewise.
69326         * lib/chdir-long.c: Likewise.
69327         * lib/concatpath.c: Likewise.
69328         * lib/exclude.c: Likewise.
69329         * lib/fchdir.c: Likewise.
69330         * lib/getaddrinfo.c: Likewise.
69331         * lib/getcwd.c: Likewise.
69332         * lib/getsubopt.c: Likewise.
69333         * lib/glob.c: Likewise.
69334         * lib/hard-locale.c: Likewise.
69335         * lib/iconvme.c: Likewise.
69336         * lib/javacomp.c: Likewise.
69337         * lib/mempcpy.c: Likewise.
69338         * lib/memrchr.c: Likewise.
69339         * lib/regex_internal.h: Likewise.
69340         * lib/stpncpy.c: Likewise.
69341         * lib/strcasecmp.c: Likewise.
69342         * lib/strchrnul.c: Likewise.
69343         * lib/strdup.c: Likewise.
69344         * lib/striconv.c: Likewise.
69345         * lib/striconveh.c: Likewise.
69346         * lib/striconveha.c: Likewise.
69347         * lib/strncasecmp.c: Likewise.
69348         * lib/strndup.c: Likewise.
69349         * lib/strnlen.c: Likewise.
69350         * lib/strsep.c: Likewise.
69351         * lib/strstr.c: Likewise.
69352         * lib/strtok_r.c: Likewise.
69353         * lib/userspec.c: Likewise.
69354         * lib/w32spawn.h: Likewise.
69355         * lib/xstrndup.c: Likewise.
69356         * lib/mountlist.c (strstr): Remove decl.
69357         * m4/string_h.m4: New file.
69358         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69359         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69360         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69361         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69362         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69363         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69364         Set REPLACE_STRCASECMP if necessary.
69365         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69366         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69367         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69368         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69369         HAVE_DECL_STRDUP if necessary.
69370         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69371         since gl_FUNC_STRNDUP does that now.
69372         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69373         Check for decl here...
69374         (gl_PREREQ_STRNLEN): ... not here.
69375         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69376         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69377         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69378         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69379         necessary.
69380         * modules/string: New file.
69381         * modules/memmem (Files): Remove special-purpose include file.
69382         (Depends-on): Add string.
69383         (Include): Include <string.h>, not the removed file.
69384         * modules/mempcpy: Likewise.
69385         * modules/memrchr: Likewise.
69386         * modules/stpcpy: Likewise.
69387         * modules/stpncpy: Likewise.
69388         * modules/strcase: Likewise.
69389         * modules/strchrnul: Likewise.
69390         * modules/strdup: Likewise.
69391         * modules/strndup: Likewise.
69392         * modules/strnlen: Likewise.
69393         * modules/strpbrk: Likewise.
69394         * modules/strsep: Likewise.
69395         * modules/strstr: Likewise.
69396         * modules/strtok_r: Likewise.
69397         * tests/test-dirname.c: Don't include "strdup.h", since
69398         <string.h> now suffices.
69399         * tests/test-memmem.c: Don't include "memmem.h", since
69400         <string.h> now suffices.
69401
69402 2007-01-25  Bruno Haible  <bruno@clisp.org>
69403
69404         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69405         *resultp is 0.
69406
69407         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69408         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69409         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69410         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69411
69412         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69413         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69414         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69415         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69416         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69417         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69418
69419 2007-01-24  Bruno Haible  <bruno@clisp.org>
69420
69421         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69423         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69424         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69425         gl_FUNC_FTS_CORE.
69426         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69427         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69428         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69429         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69430         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69431         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69432         gl_FUNC_FCHOWNAT.
69433         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69434         gl_FUNC_STRFTIME.
69435         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69436         Reported by Ralf Wildenhues.
69437
69438 2007-01-24  Bruno Haible  <bruno@clisp.org>
69439
69440         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69441         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69442         gl_GETADDRINFO.
69443         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69444         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69445         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69446
69447 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69450         Don't use 'exit'; just return from 'main'.
69451         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69452
69453         * lib/fnmatch_.h: Readjust white space and comments to match
69454         glibc, to avoid spurious diffs.
69455
69456 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69457
69458         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69459         2004-12-01 change by Jakub Jelinek, since this code won't compile
69460         if !LIBC.  Problem reported by Bob Proulx.
69461
69462 2007-01-23  Bruno Haible  <bruno@clisp.org>
69463
69464         * lib/striconveh.c: Include c-strcaseeq.h.
69465         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69466         * modules/striconveh (Depends-on): Add c-strcaseeq.
69467
69468 2007-01-23  Bruno Haible  <bruno@clisp.org>
69469
69470         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69471
69472         * modules/c-strcaseeq: New file.
69473         * lib/c-strcaseeq.h: New file.
69474
69475         * modules/streq: New file.
69476         * lib/streq.h: New file.
69477
69478 2007-01-23  Bruno Haible  <bruno@clisp.org>
69479
69480         * modules/striconveha-tests: New file.
69481         * tests/test-striconveha.c: New file.
69482
69483         * lib/striconveha.h: Include <stdbool.h>.
69484         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69485         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69486         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69487         (mem_iconveha): New function.
69488         (str_iconveha_notranslit): Renamed from str_iconveha.
69489         (str_iconveha): New function.
69490         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69491         c-strcase.
69492
69493 2007-01-23  Bruno Haible  <bruno@clisp.org>
69494
69495         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69496         encodings without forgiving before trying any encoding with handler.
69497         (str_iconveha): Try all encodings without forgiving before trying any
69498         encoding with handler.
69499
69500 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69501
69502         Import the following changes from libc.
69503
69504         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69505
69506         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69507
69508         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69509
69510         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69511         normal_bracket label.
69512
69513         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69514
69515         [BZ #361]
69516         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69517         to normal_bracket after fetching the next character.
69518
69519 2007-01-22  Bruno Haible  <bruno@clisp.org>
69520
69521         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69522         argument.
69523         * lib/striconveh.c (iconv_carefully_1): New function.
69524         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69525         argument.
69526         (str_cd_iconveh): Update.
69527         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69528         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69529         * tests/test-striconveh.c (MAGIC): New macro.
69530         (new_offsets): New function.
69531         (main): Test call with and without offsets.
69532
69533 2007-01-22  Bruno Haible  <bruno@clisp.org>
69534
69535         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69536         * modules/sys_select (Makefile.am): Likewise.
69537         * modules/sys_socket (Makefile.am): Likewise.
69538         * modules/sys_time (Makefile.am): Likewise.
69539
69540 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * modules/gettimeofday (License): Change from GPL to LGPL, since
69543         gettimeofday is a library function.
69544
69545 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69546
69547         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69548
69549 2007-01-21  Bruno Haible  <bruno@clisp.org>
69550
69551         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69552
69553 2007-01-21  Bruno Haible  <bruno@clisp.org>
69554
69555         * modules/striconveha: New file.
69556         * lib/striconveha.h: New file.
69557         * lib/striconveha.c: New file.
69558         * MODULES.html.sh (Internationalization functions): Add striconveha.
69559         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69560         string.
69561         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69562
69563 2007-01-21  Bruno Haible  <bruno@clisp.org>
69564
69565         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69566         * lib/striconveh.c (str_iconveh): Likewise.
69567
69568 2007-01-21  Bruno Haible  <bruno@clisp.org>
69569
69570         * lib/striconveh.h (mem_iconveh): New declaration.
69571         * lib/striconveh.c (mem_iconveh): New function.
69572         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69573
69574 2007-01-21  Bruno Haible  <bruno@clisp.org>
69575
69576         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69577
69578         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69579         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69580         original result buffer.
69581         (str_cd_iconveh): Update.
69582         * tests/test-striconveh.c (main): Update.
69583
69584         * lib/striconv.h (mem_cd_iconv): Change specification.
69585         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69586         result buffer.
69587         (str_cd_iconv): Update.
69588         * tests/test-striconv.c (main): Update.
69589
69590 2007-01-21  Bruno Haible  <bruno@clisp.org>
69591
69592         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69593
69594 2007-01-20  Jim Meyering  <jim@meyering.net>
69595
69596         * lib/userspec.c (parse_with_separator): If a user or group string
69597         starts with "+", skip the corresponding name-to-ID look-up, since
69598         such a look-up must fail: user and group names may not include "+".
69599
69600 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69603         since we now assume the sys_time module.
69604         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69605         check for sys/time.h; no longer needed.
69606         * modules/poll (Depends-on): Depend on sys_time.
69607
69608 2007-01-18  Bruno Haible  <bruno@clisp.org>
69609
69610         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69611         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69612
69613         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69614         gettimeofday.
69615
69616         * tests/test-gettimeofday.c: Include <time.h>.
69617         (dummy): Remove variable.
69618
69619         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69620         gl_HEADER_SYS_TIME_H.
69621         (gl_HEADER_SYS_TIME_H): New macro.
69622
69623         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69624         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69625         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69626         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69627         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69628         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69629         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69630         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69631         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69632         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69633         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69634
69635         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69636         last change; it caused a compilation error when cross-compiling to
69637         Cygwin.
69638
69639 2007-01-18  Jim Meyering  <jim@meyering.net>
69640
69641         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69642         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69643         than the race-prone "test -d sys || mkdir sys".
69644         (configure.ac): Use AC_PROG_MKDIR_P.
69645         * modules/sys_select: Likewise.
69646         * modules/sys_socket: Likewise.
69647         * modules/sys_time: Likewise.
69648
69649 2007-01-18  Eric Blake  <ebb9@byu.net>
69650
69651         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69652         replace gettimeofday.
69653         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69654         name, to avoid infinite recursion.
69655
69656 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69659         module sys_time.
69660         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69661         assume timespec.h defines struct timeval.
69662         * lib/settime.c: Likewise.
69663         * lib/utimens.c: Likewise.
69664         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69665         since we now assume the gettimeofday module.
69666         * lib/tempname.c (__gen_tempname): Likewise.
69667         * lib/gettimeofday.h: Remove.
69668         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69669         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69670         Include <time.h>, for 'time()'.
69671         (localtime_buffer_addr): Also use this workaround if
69672         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69673         to simplify the uses.  All uses changed.
69674         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69675         that #undef is inside {}, and 'const' follows type name consistently.
69676         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69677         (gettimeofday): Do not use the maximum possible value for
69678         tv->tv_usec, since that might break usages other than ls.c.
69679         Instead, we'll leave ls.c alone.  This undoes today's patch
69680         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69681         we've never observed the problem but might as well keep the
69682         canary.
69683         * lib/nanosleep.c: Include timespec.h first, for interface check.
69684         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69685         now assume the sys_time module.
69686         * lib/tempname.c: Likewise.
69687         * lib/timespec.h: Likewise.
69688         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69689         needed.
69690         * lib/strftime.c: Likewise.
69691         * lib/timespec.h: Likewise.
69692         * lib/posixtm.c: Include posixtm.h first, for interface check.
69693         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69694         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69695         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69696         * lib/sys_time_.h: New file.
69697         * lib/timespec.h (struct timespec): Use long int, not long.
69698         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69699         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69700         Remove obsolescent call to AC_HEADER_TIME.
69701         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69703         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69704         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69705         Likewise.
69706         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69707         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69709         into the sys_time module.  Check for gettimeofday just once.
69710         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69711         for gettimeofday signature to just check the signature.  Merely
69712         compile it, since linking doesn't test signature.  Improve test for
69713         whether gettimeofday.o is actually needed.
69714         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69715         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69716         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69717         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69718         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69719         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69720         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69721         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69722         than worrying about sys/time.h.
69723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69724         Don't bother worrying about TIME_WITH_SYS_TIME.
69725         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69726         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69727         * m4/sys_time_h.m4: New file.
69728         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69729         Don't include sys/time.h.  Return from main rather than exiting.
69730         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69731         all uses changed.
69732         * modules/gethrxtime (Depends-on): Add sys_time.
69733         * modules/gettime (Depends-on): Likewise.
69734         * modules/gettimeofday (Depends-on): Likewise.
69735         * modules/nanosleep (Depends-on): Likewise.
69736         * modules/settime (Depends-on): Likewise.
69737         * modules/tempname (Depends-on): Likewise.
69738         * modules/utimens (Depends-on): Likewise.
69739         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69740         (Include): Change back to <sys/time.h>.
69741         (Maintainer): Add self.
69742         * modules/sys_time: New file.
69743         * modules/tempname (Depends-on): Add gettimeofday.
69744         * tests/test-gettimeofday.c: Include <sys/time.h>
69745         rather than gettimeofday.h.
69746
69747 2007-01-17  Bruno Haible  <bruno@clisp.org>
69748
69749         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69750         the license default to GPL.
69751         (func_create_testdir): Don't complain if a module is LGPL and its
69752         tests module depends on GPLed modules.
69753
69754 2007-01-17  Bruno Haible  <bruno@clisp.org>
69755
69756         * lib/gettimeofday.c (gettimeofday): Add code for the case
69757         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69758         maximum possible value for tv->tv_usec, rather than the minimum one.
69759
69760 2005-10-08  Martin Lambers  <marlam@marlam.de>
69761 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69762 2007-01-16  Bruno Haible  <bruno@clisp.org>
69763
69764         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69765         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69766         gl_FUNC_GETTIMEOFDAY.
69767         (Include): Add gettimeofday.h.
69768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69769         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69770         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69771         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69772         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69773         * lib/gettimeofday.h: New file.
69774         * lib/gettimeofday.c: Include <sys/timeb.h>.
69775         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69776         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69777         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69778         fall back on time().
69779
69780         * tests/test-gettimeofday.c: New file.
69781         * modules/gettimeofday-tests: New file.
69782
69783 2007-01-16  Eric Blake  <ebb9@byu.net>
69784
69785         * modules/fnmatch (Depends-on): Depend on wchar.
69786         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69787         * m4/fnmatch.m4: Likewise.
69788         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69789         * m4/mbchar.m4: Likewise.
69790         * modules/mbswidth (Depends-on): Depend on wchar.
69791         * lib/mbswidth.c: Assume <wchar.h>.
69792         * m4/mbswidth.m4: Likewise.
69793         * modules/quotearg (Depends-on): Depend on wchar.
69794         * lib/quotearg.c: Assume <wchar.h>.
69795         * m4/quotearg.m4: Likewise.
69796         * modules/regex (Depends-on): Depend on wchar.
69797         * lib/regex_internal.h: Assume <wchar.h>.
69798         * m4/regex.m4: Likewise.
69799         * modules/stdint (Depends-on): Depend on wchar.
69800         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69801         * m4/stdint.m4: Likewise.
69802         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69803         * modules/strftime (Depends-on): Depend on wchar.
69804         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69805         * modules/strtol (Depends-on): Depend on wchar.
69806         * lib/strtol.c: Assume <wchar.h>.
69807         * modules/wcwidth (Depends-on): Depend on wchar.
69808         * lib/wcwidth.h: Assume <wchar.h>.
69809         * m4/wcwidth.m4: Likewise.
69810
69811 2007-01-16  Bruno Haible  <bruno@clisp.org>
69812
69813         * modules/csharpexec-script: New, created from...
69814         * modules/csharpexec: ... this.
69815
69816 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69817
69818         * modules/javaexec-script: New, created from...
69819         * modules/javaexec: ... this.
69820
69821 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69822
69823         * modules/poll (Dependencies): Add sys_select.
69824
69825 2007-01-15  Jim Meyering  <jim@meyering.net>
69826
69827         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69828         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69829         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69830         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69831
69832 2007-01-15  Bruno Haible  <bruno@clisp.org>
69833
69834         * modules/striconveh: New file.
69835         * lib/striconveh.h: New file.
69836         * lib/striconveh.c: New file.
69837         * MODULES.html.sh (Internationalization functions): Add striconveh.
69838
69839         * modules/striconveh-tests: New file.
69840         * tests/test-striconveh.c: New file.
69841
69842 2007-01-15  Bruno Haible  <bruno@clisp.org>
69843
69844         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69845         not from GNU libiconv or GNU libc.
69846
69847 2007-01-15  Bruno Haible  <bruno@clisp.org>
69848
69849         * doc/gnulib-intro.texi (Copyright): Explain the different license
69850         terms for module descriptions, autoconf macros, tests, documentation.
69851
69852 2007-01-14  Bruno Haible  <bruno@clisp.org>
69853
69854         * modules/striconv-tests: New file.
69855         * tests/test-striconv.c: New file.
69856
69857 2007-01-14  Bruno Haible  <bruno@clisp.org>
69858
69859         * modules/iconv-tests: New file.
69860         * tests/test-iconv.c: New file.
69861
69862 2007-01-14  Bruno Haible  <bruno@clisp.org>
69863
69864         * gnulib-tool (func_get_license): For test modules, use the license of
69865         the main module.
69866
69867 2007-01-14  Bruno Haible  <bruno@clisp.org>
69868
69869         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69870         if iconv is found to exist.
69871
69872 2007-01-14  Bruno Haible  <bruno@clisp.org>
69873
69874         * modules/c-ctype-tests: New file.
69875         * tests/test-c-ctype.c: New file.
69876
69877 2007-01-14  Bruno Haible  <bruno@clisp.org>
69878
69879         * modules/binary-io-tests: New file.
69880         * tests/test-binary-io.sh: New file.
69881         * tests/test-binary-io.c: New file.
69882
69883 2007-01-14  Bruno Haible  <bruno@clisp.org>
69884
69885         * modules/array-oset-tests: New file.
69886         * tests/test-array_oset.c: New file.
69887
69888 2007-01-14  Bruno Haible  <bruno@clisp.org>
69889
69890         * modules/array-list-tests: New file.
69891         * tests/test-array_list.c: New file.
69892
69893 2007-01-14  Bruno Haible  <bruno@clisp.org>
69894
69895         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69896         and make.
69897         Reported by Simon Josefsson in
69898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69899
69900 2007-01-14  Bruno Haible  <bruno@clisp.org>
69901
69902         * modules/allocsa-tests: New file.
69903         * tests/test-allocsa.c: New file.
69904
69905 2007-01-14  Bruno Haible  <bruno@clisp.org>
69906
69907         * modules/fchdir (Depends-on): Add absolute-header.
69908         * modules/unistd (Depends-on): Likewise.
69909
69910 2006-12-30  Bruno Haible  <bruno@clisp.org>
69911
69912         * modules/fchdir: New file.
69913         * modules/unistd (Files): Add lib/unistd_.h.
69914         (Makefile.am): Generate unistd.h from unistd_.h.
69915         * lib/fchdir.c: New file.
69916         * lib/dirent_.h: New file.
69917         * lib/unistd_.h: New file.
69918         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69919         * m4/fchdir.m4: New file.
69920         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69921         (gl_HEADER_UNISTD): Invoke it.
69922         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69923         function.
69924         * lib/backupfile.c (opendir, closedir): Undefine.
69925         * lib/chown.c (open, close): Undefine.
69926         * lib/clean-temp.c (open, close): Undefine.
69927         * lib/copy-file.c (open, close): Undefine.
69928         * lib/execute.c (open, close): Undefine.
69929         * lib/fsusage.c (open, close): Undefine.
69930         * lib/gc-gnulib.c (open, close): Undefine.
69931         * lib/getcwd.c (opendir, closedir): Undefine.
69932         * lib/glob.c (opendir, closedir): Undefine.
69933         * lib/javacomp.c (open, close): Undefine.
69934         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69935         * lib/openat-proc.c (open, close): Undefine.
69936         * lib/pagealign_alloc.c (open, close): Undefine.
69937         * lib/pipe.c (open, close): Undefine.
69938         * lib/progreloc.c (open, close): Undefine.
69939         * lib/savedir.c (opendir, closedir): Undefine.
69940         * lib/utime.c (open, close): Undefine.
69941         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69942
69943 2007-01-10  Bruno Haible  <bruno@clisp.org>
69944
69945         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69946
69947 2007-01-12  Eric Blake  <ebb9@byu.net>
69948
69949         Provide a robust <wchar.h>.  Further simplifications are now
69950         possible in other modules, but not included here.
69951         * modules/wchar: New module.
69952         * m4/wchar.m4: New file.
69953         * lib/wchar_.h: Likewise.
69954         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69955         of the new module.
69956         * MODULES.html.sh (Extended multibyte and wide character utilities):
69957         New section.
69958
69959 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69962         to a reasonable default for memory allocation.
69963         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69964         file system that reports garbage st_size values for symlinks.
69965         Problem reported by Liyang Hu.
69966
69967 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69968
69969         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69970         Emacs .#* auto-save files).
69971
69972 2007-01-11  Bruno Haible  <bruno@clisp.org>
69973
69974         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69975         directory.
69976
69977 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69978
69979         Use @...@ consistently in lib/wctype_.h.
69980         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69981         on it being set to 1 or 0.
69982         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69983         go back to AC_SUBSTing it.
69984         * modules/wctype (Makefile.am): Undo previous change.
69985
69986 2007-01-10  Eric Blake  <ebb9@byu.net>
69987
69988         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69989         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69990         * modules/wctype (Makefile.am): Likewise.
69991         Reported by Chris McGuire.
69992
69993 2007-01-10  Jim Meyering  <jim@meyering.net>
69994
69995         fts.c: a small readability/maintainability improvement
69996         * lib/fts.c (fts_read): Make this code slightly more readable and
69997         maintainable by hoisting the "sp->fts_cur = p" assignments to
69998         immediately follow the statements that set P.  Derived from
69999         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70000
70001 2007-01-10  Eric Blake  <ebb9@byu.net>
70002
70003         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70004         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70006         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70007         Reported by Chris McGuire.
70008
70009 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70010
70011         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70012         in sed script.
70013
70014 2007-01-09  Bruno Haible  <bruno@clisp.org>
70015
70016         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70017         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70018         variables.
70019         (func_module): Use them.
70020
70021 2007-01-09  Bruno Haible  <bruno@clisp.org>
70022
70023         * modules/unistr/base: New file.
70024         * lib/unistr.h: New file.
70025
70026         * modules/unistr/u8-to-u16: New file.
70027         * lib/unistr/u8-to-u16.c: New file.
70028
70029         * modules/unistr/u8-to-u32: New file.
70030         * lib/unistr/u8-to-u32.c: New file.
70031
70032         * modules/unistr/u16-to-u8: New file.
70033         * lib/unistr/u16-to-u8.c: New file.
70034
70035         * modules/unistr/u16-to-u32: New file.
70036         * lib/unistr/u16-to-u32.c: New file.
70037
70038         * modules/unistr/u32-to-u8: New file.
70039         * lib/unistr/u32-to-u8.c: New file.
70040
70041         * modules/unistr/u32-to-u16: New file.
70042         * lib/unistr/u32-to-u16.c: New file.
70043
70044         * modules/unistr/u8-check: New file.
70045         * modules/unistr/u16-check: New file.
70046         * modules/unistr/u32-check: New file.
70047         * lib/unistr/u8-check.c: New file.
70048         * lib/unistr/u16-check.c: New file.
70049         * lib/unistr/u32-check.c: New file.
70050
70051         * modules/unistr/u8-chr: New file.
70052         * modules/unistr/u16-chr: New file.
70053         * modules/unistr/u32-chr: New file.
70054         * lib/unistr/u8-chr.c: New file.
70055         * lib/unistr/u16-chr.c: New file.
70056         * lib/unistr/u32-chr.c: New file.
70057
70058         * modules/unistr/u8-cmp: New file.
70059         * modules/unistr/u16-cmp: New file.
70060         * modules/unistr/u32-cmp: New file.
70061         * lib/unistr/u8-cmp.c: New file.
70062         * lib/unistr/u16-cmp.c: New file.
70063         * lib/unistr/u32-cmp.c: New file.
70064
70065         * modules/unistr/u8-cpy: New file.
70066         * modules/unistr/u16-cpy: New file.
70067         * modules/unistr/u32-cpy: New file.
70068         * lib/unistr/u8-cpy.c: New file.
70069         * lib/unistr/u16-cpy.c: New file.
70070         * lib/unistr/u32-cpy.c: New file.
70071         * lib/unistr/u-cpy.h: New file.
70072
70073         * modules/unistr/u8-cpy-alloc: New file.
70074         * modules/unistr/u16-cpy-alloc: New file.
70075         * modules/unistr/u32-cpy-alloc: New file.
70076         * lib/unistr/u8-cpy-alloc.c: New file.
70077         * lib/unistr/u16-cpy-alloc.c: New file.
70078         * lib/unistr/u32-cpy-alloc.c: New file.
70079         * lib/unistr/u-cpy-alloc.h: New file.
70080
70081         * modules/unistr/u8-endswith: New file.
70082         * modules/unistr/u16-endswith: New file.
70083         * modules/unistr/u32-endswith: New file.
70084         * lib/unistr/u8-endswith.c: New file.
70085         * lib/unistr/u16-endswith.c: New file.
70086         * lib/unistr/u32-endswith.c: New file.
70087         * lib/unistr/u-endswith.h: New file.
70088
70089         * modules/unistr/u8-mblen: New file.
70090         * modules/unistr/u16-mblen: New file.
70091         * modules/unistr/u32-mblen: New file.
70092         * lib/unistr/u8-mblen.c: New file.
70093         * lib/unistr/u16-mblen.c: New file.
70094         * lib/unistr/u32-mblen.c: New file.
70095
70096         * modules/unistr/u8-mbtouc: New file.
70097         * modules/unistr/u16-mbtouc: New file.
70098         * modules/unistr/u32-mbtouc: New file.
70099         * lib/unistr/u8-mbtouc.c: New file.
70100         * lib/unistr/u16-mbtouc.c: New file.
70101         * lib/unistr/u32-mbtouc.c: New file.
70102
70103         * modules/unistr/u8-mbtouc-safe: New file.
70104         * modules/unistr/u16-mbtouc-safe: New file.
70105         * modules/unistr/u32-mbtouc-safe: New file.
70106         * lib/unistr/u8-mbtouc-safe.c: New file.
70107         * lib/unistr/u16-mbtouc-safe.c: New file.
70108         * lib/unistr/u32-mbtouc-safe.c: New file.
70109
70110         * modules/unistr/u8-move: New file.
70111         * modules/unistr/u16-move: New file.
70112         * modules/unistr/u32-move: New file.
70113         * lib/unistr/u8-move.c: New file.
70114         * lib/unistr/u16-move.c: New file.
70115         * lib/unistr/u32-move.c: New file.
70116         * lib/unistr/u-move.h: New file.
70117
70118         * modules/unistr/u8-next: New file.
70119         * modules/unistr/u16-next: New file.
70120         * modules/unistr/u32-next: New file.
70121         * lib/unistr/u8-next.c: New file.
70122         * lib/unistr/u16-next.c: New file.
70123         * lib/unistr/u32-next.c: New file.
70124
70125         * modules/unistr/u8-prev: New file.
70126         * modules/unistr/u16-prev: New file.
70127         * modules/unistr/u32-prev: New file.
70128         * lib/unistr/u8-prev.c: New file.
70129         * lib/unistr/u16-prev.c: New file.
70130         * lib/unistr/u32-prev.c: New file.
70131
70132         * modules/unistr/u8-set: New file.
70133         * modules/unistr/u16-set: New file.
70134         * modules/unistr/u32-set: New file.
70135         * lib/unistr/u8-set.c: New file.
70136         * lib/unistr/u16-set.c: New file.
70137         * lib/unistr/u32-set.c: New file.
70138         * lib/unistr/u-set.h: New file.
70139
70140         * modules/unistr/u8-startswith: New file.
70141         * modules/unistr/u16-startswith: New file.
70142         * modules/unistr/u32-startswith: New file.
70143         * lib/unistr/u8-startswith.c: New file.
70144         * lib/unistr/u16-startswith.c: New file.
70145         * lib/unistr/u32-startswith.c: New file.
70146         * lib/unistr/u-startswith.h: New file.
70147
70148         * modules/unistr/u8-stpcpy: New file.
70149         * modules/unistr/u16-stpcpy: New file.
70150         * modules/unistr/u32-stpcpy: New file.
70151         * lib/unistr/u8-stpcpy.c: New file.
70152         * lib/unistr/u16-stpcpy.c: New file.
70153         * lib/unistr/u32-stpcpy.c: New file.
70154         * lib/unistr/u-stpcpy.h: New file.
70155
70156         * modules/unistr/u8-stpncpy: New file.
70157         * modules/unistr/u16-stpncpy: New file.
70158         * modules/unistr/u32-stpncpy: New file.
70159         * lib/unistr/u8-stpncpy.c: New file.
70160         * lib/unistr/u16-stpncpy.c: New file.
70161         * lib/unistr/u32-stpncpy.c: New file.
70162         * lib/unistr/u-stpncpy.h: New file.
70163
70164         * modules/unistr/u8-strcat: New file.
70165         * modules/unistr/u16-strcat: New file.
70166         * modules/unistr/u32-strcat: New file.
70167         * lib/unistr/u8-strcat.c: New file.
70168         * lib/unistr/u16-strcat.c: New file.
70169         * lib/unistr/u32-strcat.c: New file.
70170         * lib/unistr/u-strcat.h: New file.
70171
70172         * modules/unistr/u8-strchr: New file.
70173         * modules/unistr/u16-strchr: New file.
70174         * modules/unistr/u32-strchr: New file.
70175         * lib/unistr/u8-strchr.c: New file.
70176         * lib/unistr/u16-strchr.c: New file.
70177         * lib/unistr/u32-strchr.c: New file.
70178
70179         * modules/unistr/u8-strcmp: New file.
70180         * modules/unistr/u16-strcmp: New file.
70181         * modules/unistr/u32-strcmp: New file.
70182         * lib/unistr/u8-strcmp.c: New file.
70183         * lib/unistr/u16-strcmp.c: New file.
70184         * lib/unistr/u32-strcmp.c: New file.
70185
70186         * modules/unistr/u8-strcpy: New file.
70187         * modules/unistr/u16-strcpy: New file.
70188         * modules/unistr/u32-strcpy: New file.
70189         * lib/unistr/u8-strcpy.c: New file.
70190         * lib/unistr/u16-strcpy.c: New file.
70191         * lib/unistr/u32-strcpy.c: New file.
70192         * lib/unistr/u-strcpy.h: New file.
70193
70194         * modules/unistr/u8-strcspn: New file.
70195         * modules/unistr/u16-strcspn: New file.
70196         * modules/unistr/u32-strcspn: New file.
70197         * lib/unistr/u8-strcspn.c: New file.
70198         * lib/unistr/u16-strcspn.c: New file.
70199         * lib/unistr/u32-strcspn.c: New file.
70200         * lib/unistr/u-strcspn.h: New file.
70201
70202         * modules/unistr/u8-strdup: New file.
70203         * modules/unistr/u16-strdup: New file.
70204         * modules/unistr/u32-strdup: New file.
70205         * lib/unistr/u8-strdup.c: New file.
70206         * lib/unistr/u16-strdup.c: New file.
70207         * lib/unistr/u32-strdup.c: New file.
70208         * lib/unistr/u-strdup.h: New file.
70209
70210         * modules/unistr/u8-strlen: New file.
70211         * modules/unistr/u16-strlen: New file.
70212         * modules/unistr/u32-strlen: New file.
70213         * lib/unistr/u8-strlen.c: New file.
70214         * lib/unistr/u16-strlen.c: New file.
70215         * lib/unistr/u32-strlen.c: New file.
70216         * lib/unistr/u-strlen.h: New file.
70217
70218         * modules/unistr/u8-strmblen: New file.
70219         * modules/unistr/u16-strmblen: New file.
70220         * modules/unistr/u32-strmblen: New file.
70221         * lib/unistr/u8-strmblen.c: New file.
70222         * lib/unistr/u16-strmblen.c: New file.
70223         * lib/unistr/u32-strmblen.c: New file.
70224
70225         * modules/unistr/u8-strmbtouc: New file.
70226         * modules/unistr/u16-strmbtouc: New file.
70227         * modules/unistr/u32-strmbtouc: New file.
70228         * lib/unistr/u8-strmbtouc.c: New file.
70229         * lib/unistr/u16-strmbtouc.c: New file.
70230         * lib/unistr/u32-strmbtouc.c: New file.
70231
70232         * modules/unistr/u8-strncat: New file.
70233         * modules/unistr/u16-strncat: New file.
70234         * modules/unistr/u32-strncat: New file.
70235         * lib/unistr/u8-strncat.c: New file.
70236         * lib/unistr/u16-strncat.c: New file.
70237         * lib/unistr/u32-strncat.c: New file.
70238         * lib/unistr/u-strncat.h: New file.
70239
70240         * modules/unistr/u8-strncmp: New file.
70241         * modules/unistr/u16-strncmp: New file.
70242         * modules/unistr/u32-strncmp: New file.
70243         * lib/unistr/u8-strncmp.c: New file.
70244         * lib/unistr/u16-strncmp.c: New file.
70245         * lib/unistr/u32-strncmp.c: New file.
70246
70247         * modules/unistr/u8-strncpy: New file.
70248         * modules/unistr/u16-strncpy: New file.
70249         * modules/unistr/u32-strncpy: New file.
70250         * lib/unistr/u8-strncpy.c: New file.
70251         * lib/unistr/u16-strncpy.c: New file.
70252         * lib/unistr/u32-strncpy.c: New file.
70253         * lib/unistr/u-strncpy.h: New file.
70254
70255         * modules/unistr/u8-strnlen: New file.
70256         * modules/unistr/u16-strnlen: New file.
70257         * modules/unistr/u32-strnlen: New file.
70258         * lib/unistr/u8-strnlen.c: New file.
70259         * lib/unistr/u16-strnlen.c: New file.
70260         * lib/unistr/u32-strnlen.c: New file.
70261         * lib/unistr/u-strnlen.h: New file.
70262
70263         * modules/unistr/u8-strpbrk: New file.
70264         * modules/unistr/u16-strpbrk: New file.
70265         * modules/unistr/u32-strpbrk: New file.
70266         * lib/unistr/u8-strpbrk.c: New file.
70267         * lib/unistr/u16-strpbrk.c: New file.
70268         * lib/unistr/u32-strpbrk.c: New file.
70269         * lib/unistr/u-strpbrk.h: New file.
70270
70271         * modules/unistr/u8-strrchr: New file.
70272         * modules/unistr/u16-strrchr: New file.
70273         * modules/unistr/u32-strrchr: New file.
70274         * lib/unistr/u8-strrchr.c: New file.
70275         * lib/unistr/u16-strrchr.c: New file.
70276         * lib/unistr/u32-strrchr.c: New file.
70277
70278         * modules/unistr/u8-strspn: New file.
70279         * modules/unistr/u16-strspn: New file.
70280         * modules/unistr/u32-strspn: New file.
70281         * lib/unistr/u8-strspn.c: New file.
70282         * lib/unistr/u16-strspn.c: New file.
70283         * lib/unistr/u32-strspn.c: New file.
70284         * lib/unistr/u-strspn.h: New file.
70285
70286         * modules/unistr/u8-strstr: New file.
70287         * modules/unistr/u16-strstr: New file.
70288         * modules/unistr/u32-strstr: New file.
70289         * lib/unistr/u8-strstr.c: New file.
70290         * lib/unistr/u16-strstr.c: New file.
70291         * lib/unistr/u32-strstr.c: New file.
70292         * lib/unistr/u-strstr.h: New file.
70293
70294         * modules/unistr/u8-strtok: New file.
70295         * modules/unistr/u16-strtok: New file.
70296         * modules/unistr/u32-strtok: New file.
70297         * lib/unistr/u8-strtok.c: New file.
70298         * lib/unistr/u16-strtok.c: New file.
70299         * lib/unistr/u32-strtok.c: New file.
70300         * lib/unistr/u-strtok.h: New file.
70301
70302         * modules/unistr/u8-uctomb: New file.
70303         * modules/unistr/u16-uctomb: New file.
70304         * modules/unistr/u32-uctomb: New file.
70305         * lib/unistr/u8-uctomb.c: New file.
70306         * lib/unistr/u16-uctomb.c: New file.
70307         * lib/unistr/u32-uctomb.c: New file.
70308
70309         * MODULES.html.sh (Unicode string functions): Add the new modules.
70310
70311 2007-01-08  Bruno Haible  <bruno@clisp.org>
70312
70313         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70314         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70315         subdirectories.
70316
70317 2007-01-08  Karl Berry  <karl@gnu.org>
70318
70319         * doc/error.texi: mention that main() fns must set program_name
70320         when progname is used.
70321
70322 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70325         WCTYPE_H is empty, for the benefit of builds from non-distclean
70326         directories.  Problem reported by Eric Blake in
70327         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70328
70329 2007-01-08  Bruno Haible  <bruno@clisp.org>
70330
70331         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70332         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70333         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70334         PROVIDE_CANONICALIZE_FILENAME_MODE.
70335         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70336
70337 2007-01-08  Bruno Haible  <bruno@clisp.org>
70338
70339         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70340         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70341         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70342         * lib/fts.c: Likewise.
70343         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70344
70345 2006-12-25  Bruno Haible  <bruno@clisp.org>
70346
70347         * modules/utf8-ucs4-safe: New file.
70348         * lib/utf8-ucs4-safe.h: New file.
70349         * lib/unistr/utf8-ucs4-safe.c: New file.
70350
70351         * modules/utf16-ucs4-safe: New file.
70352         * lib/utf16-ucs4-safe.h: New file.
70353         * lib/unistr/utf16-ucs4-safe.c: New file.
70354
70355         * MODULES.html.sh (Unicode string functions): Add the new modules.
70356
70357 2007-01-08  Bruno Haible  <bruno@clisp.org>
70358
70359         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70360         (Depends-on): Add unitypes.
70361         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70362         (u8_mbtouc_aux): Move out to separate file.
70363         (u8_mbtouc): Use ucs4_t, uint8_t types.
70364         * lib/unistr/utf8-ucs4.c: New file.
70365
70366         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70367         (Depends-on): Add unitypes.
70368         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70369         (u16_mbtouc_aux): Move out to separate file.
70370         (u16_mbtouc): Use ucs4_t, uint16_t types.
70371         * lib/unistr/utf16-ucs4.c: New file.
70372
70373         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70374         (Depends-on): Add unitypes.
70375         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70376         (u8_uctomb_aux): Move out to separate file.
70377         (u8_uctomb): Use ucs4_t, uint8_t types.
70378         * lib/unistr/ucs4-utf8.c: New file.
70379
70380         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70381         (Depends-on): Add unitypes.
70382         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70383         (u16_uctomb_aux): Move out to separate file.
70384         (u16_uctomb): Use ucs4_t, uint16_t types.
70385         * lib/unistr/ucs4-utf16.c: New file.
70386
70387 2006-12-25  Bruno Haible  <bruno@clisp.org>
70388
70389         * modules/unitypes: New file.
70390         * lib/unitypes.h: New file.
70391         * MODULES.html.sh (func_all_modules): New section "Unicode string
70392         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70393         this section. Add unitypes.
70394
70395 2007-01-08  Bruno Haible  <bruno@clisp.org>
70396
70397         Avoid variable names that conflict with those from libtool.
70398         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70399         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70400         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70401         library_names_spec to acl_library_names_spec, hardcode_* to
70402         acl_hardcode_*.
70403         Reported by Ralf Wildenhues.
70404
70405 2007-01-08  Bruno Haible  <bruno@clisp.org>
70406
70407         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70408         definition.
70409         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70410         definition.
70411         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70412         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70413         definition.
70414         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70415         definition.
70416         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70417         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70418         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70419         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70420         definition.
70421         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70422         definition.
70423         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70424         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70425         GC_USE_<algorithm>.
70426         * lib/gc-libgcrypt.c: Likewise.
70427         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70428         * modules/gc-arctwo (configure.ac): Likewise.
70429         * modules/gc-des (configure.ac): Likewise.
70430         * modules/gc-hmac-md5 (configure.ac): Likewise.
70431         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70432         * modules/gc-md2 (configure.ac): Likewise.
70433         * modules/gc-md4 (configure.ac): Likewise.
70434         * modules/gc-md5 (configure.ac): Likewise.
70435         * modules/gc-random (configure.ac): Likewise.
70436         * modules/gc-rijndael (configure.ac): Likewise.
70437         * modules/gc-sha1 (configure.ac): Likewise.
70438
70439 2007-01-08  Bruno Haible  <bruno@clisp.org>
70440
70441         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70442         macro definition.
70443         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70444         definition.
70445         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70446         definition.
70447         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70448         * modules/fcntl-safer (configure.ac): Likewise.
70449         * modules/fopen-safer (configure.ac): Likewise.
70450         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70451         GNULIB_FWRITEERROR macro definition.
70452
70453 2007-01-08  Bruno Haible  <bruno@clisp.org>
70454
70455         * m4/gnulib-common.m4: New file.
70456         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70457         (func_get_filelist): Add m4/gnulib-common.m4.
70458
70459 2007-01-08  Bruno Haible  <bruno@clisp.org>
70460
70461         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70462         command.
70463
70464 2007-01-08  Jim Meyering  <jim@meyering.net>
70465
70466         Use a more robust test for a "can't happen" condition.
70467         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70468         narrowed the st_size value.  Presuming the "can't happen" condition
70469         is true, that narrowing could conceivably convert an invalid st_size
70470         value into a valid one.  Instead, use a change based on Matthew
70471         Woehlke's original patch.
70472
70473         Slight readability improvement: use an assert-like macro
70474         in place of literal "abort ()" uses.
70475         * lib/fts.c (fts_assert): Define.
70476         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70477         Use this macro instead of a bare 'abort'.
70478
70479 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70480
70481         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70482         simply work around them.
70483         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70484         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70485         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70486         declaring.
70487         Don't bother to define as macros, since the standard doesn't require it.
70488         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70489         longer worry about IRIX 5.3.
70490         (HAVE_WCTYPE_CTMP_BUG): Remove.
70491
70492 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70495         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70496         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70497         Problems reported by Georg Schwarz for IRIX 5.3.
70498
70499         * gnulib-tool (autoconf_minversion): Take the maximum version number
70500         found, not the minimum.  Problem reported by James Youngman.
70501
70502 2007-01-03  Karl Berry  <karl@gnu.org>
70503
70504         * doc/error.texi: new file, explaining interaction with progname.
70505         * doc/gnulib.texi: include it.  Update copyright.
70506
70507 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70508
70509         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70510         AC_CANONICAL_HOST, to improve autobuild outputs.
70511
70512 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70513             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70514
70515         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70516         sockets, server sockets, and other file descriptors.  Count errors
70517         to compute the return value.  Reorder the code a bit to be easier
70518         to follow.  Don't set event bits that were not requested (except
70519         POLLERR and POLLHUP).
70520
70521 2007-01-01  Bruno Haible  <bruno@clisp.org>
70522
70523         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70524
70525 2007-01-03  Jim Meyering  <jim@meyering.net>
70526
70527         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70528
70529 2007-01-02  Bruno Haible  <bruno@clisp.org>
70530
70531         * modules/settime (Include): Require timespec.h.
70532         * modules/nanosleep (Include): Likewise.
70533
70534 2007-01-01  Bruno Haible  <bruno@clisp.org>
70535
70536         * gnulib-tool (func_emit_copyright_notice): Bump year.
70537         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70538
70539 2007-01-01  Bruno Haible  <bruno@clisp.org>
70540
70541         Improve support for OpenBSD.
70542         * build-aux/config.rpath (libname_spec): Export.
70543         (library_names_spec): New variable. Export.
70544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70545         library_names_spec from the config.rpath output. Locate shared library
70546         through the name pattern in library_names_spec.
70547
70548 2007-01-01  Eric Blake  <ebb9@byu.net>
70549
70550         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70551
70552 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70553
70554         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70555         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70556         assume the C locale, and avoid an "eval" that could cause trouble.
70557         Problem with SORT reported by Bob Proulx.
70558
70559         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70560         Define.  Trivial patch from Henning Nielsen Lund, originally
70561         sent to bug-grep@gnu.org today.
70562
70563 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70566         struct stat.  Problem reported by Henning Nielsen Lund.
70567         * lib/acl.c: Include acl.h first, to check interface.  Don't
70568         bother to include sys/types.h and sys/stat.h again.
70569
70570 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         Import the following change from libc; problem reported by
70573         Sven Verdoolaege.
70574
70575         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70576
70577         [BZ #1373]
70578         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70579
70580 2006-12-28  Jim Meyering  <jim@meyering.net>
70581
70582         * build-aux/announce-gen: Do not assume that the package
70583         builds any of tar.gz, tar.bz2, and .xdelta files.
70584         Suggestion from Simon Josefsson.
70585
70586 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70587
70588         * modules/announce-gen: New file.
70589
70590 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70593         handles its gotchas now.
70594         * lib/mbswidth.c: Likewise.
70595         * lib/wcwidth.h: Likewise.
70596         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70597         and iswcntrl; the wctype module does this stuff now.
70598         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70600         * modules/mbchar (Depends-on): Add wctype.
70601         * modules/mbswidth (Depends-on): Likewise.
70602         * modules/wcwidth (Depends-on): Likewise.
70603
70604 2006-12-27  Eric Blake  <ebb9@byu.net>
70605
70606         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70607         module uses more than what <wctype.h> is required to provide.
70608
70609 2006-12-26  Eric Blake  <ebb9@byu.net>
70610
70611         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70612
70613 2006-12-26  Eric Blake  <ebb9@byu.net>
70614
70615         * modules/absolute-header: New module.
70616         * modules/fcntl (Depends-on): Depend on it.
70617         * modules/inttypes (Depends-on): Likewise.
70618         * modules/stdint (Depends-on): Likewise.
70619         * modules/sys_stat (Depends-on): Likewise.
70620         * modules/wctype (Depends-on): Likewise.
70621         * MODULES.html.sh (Support for building libraries and
70622         executables): Document it.
70623
70624 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         * gnulib-tool (SED): Remove, undoing previous change.
70627         The problem was that it broke coreutils on Solaris, because
70628         "sed --posix" leaked into a makefile.
70629         (sed): New alias, if 'alias' and GNU sed.
70630
70631 2006-12-24  Jim Meyering  <jim@meyering.net>
70632
70633         Work around an fchownat bug in glibc-2.4:
70634         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70635         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70636         in spite of the -P option.
70637         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70638         New macros.
70639         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70640         * modules/openat (Files): Add lib/fchownat.c.
70641         * lib/openat.c (fchownat): Don't define here.  Move to...
70642         * lib/fchownat.c: ...this new file.
70643
70644 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         Fix bug reported by Bruno Haible in
70647         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70648         where quotearg.c didn't compile on Mac OS X 10.2 because it
70649         lacks <wchar.h> and wint_t.
70650         * lib/wctype_.h (__wctype_wint_t): New type.
70651         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70652         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70653         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70654         Arg is now of type __wctype_wint_t, not wint_t.
70655         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70656         substitute HAVE_WINT_T.
70657         * modules/wctype (Files): Add m4/wint_t.m4.
70658         (wctype.h): Substitute HAVE_WINT_T.
70659
70660 2006-12-23  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70663
70664 2006-12-23  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70667         S_ISLNK.
70668         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70669         mingw.
70670
70671 2006-12-22  Bruno Haible  <bruno@clisp.org>
70672
70673         * lib/copy-file.c: Include acl.h.
70674         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70675         Close the file descriptors only after being done with copy_acl.
70676         * modules/copy-file (Depends-on): Add acl.
70677
70678 2006-12-22  Bruno Haible  <bruno@clisp.org>
70679
70680         * gnulib-tool (SED): New variable.
70681         Use $SED instead of sed everywhere.
70682
70683 2006-12-22  Bruno Haible  <bruno@clisp.org>
70684
70685         * modules/no-c++: New file.
70686         * m4/no-c++.m4: New file.
70687         * MODULES.html.sh (Support for building libraries and executables):
70688         Add no-c++.
70689
70690 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70693         Include <limits.h>, and use its INT_MAX to rewrite the
70694         j loop so that it does not overflow 'int'.  Problem reported by
70695         Ralf Wildenhues in
70696         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70697         Play it safe by shifting left by 1 rather than multiplying by 2,
70698         as GCC is less likely to optimize this away when the value
70699         is signed (when it assumes overflow leads to undefined behavior).
70700         Also, don't assume time_t uses two's complement.
70701
70702 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70703
70704         * MODULES.html.sh: New module wctype.
70705         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70706         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70707         <wctype.h>, since the new wctype module should fix this.
70708         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70709         the wctype module should arrange for it.
70710         * lib/regex_internal.h: Likewise.
70711         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70712         since the wctype module should handle this now.
70713         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70714         * modules/fnmatch (Depends-on): Add wctype.
70715         * modules/quotearg (Depends-on): Likewise.
70716         * modules/regex (Depends-on): Likewise.
70717
70718 2006-12-19  Bruno Haible  <bruno@clisp.org>
70719
70720         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70721         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70722
70723 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70724
70725         * modules/savewd (Depends-on): Fix dependency on fcntl.
70726
70727 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70730         conforms to C99, rather than relying on the user's environment
70731         setting of STDINT_H.
70732
70733 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70734         and Eric Blake  <ebb9@byu.net>
70735
70736         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70737         This is more consistent with the other defines here.
70738         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70739         Port to z/OS.  Problem reported by Paul Gilmartin.
70740         Change local vars to use gl_ prefix rather than ac_.
70741         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70742         with other defines.
70743         * modules/double-slash-root: New module.
70744         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70745         (Depends-on): Add double-slash-root.
70746         * MODULES.html.sh (File system functions): Mention new module.
70747
70748 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70749
70750         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70751         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70752         This is for the benefit of gzip, which doesn't do i18n.
70753
70754 2006-12-12  Jim Meyering  <jim@meyering.net>
70755
70756         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70757         Reported by Andreas Schwab <schwab@suse.de>.
70758
70759 2006-12-12  Bruno Haible  <bruno@clisp.org>
70760
70761         Merge these changes.
70762         2006-09-05  Bruno Haible  <bruno@clisp.org>
70763         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70764         iconv_alloc succeeded.
70765         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70766         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70767         test for " && dest " at the end - dest is always != NULL there. Call
70768         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70769         with 2xNULL arguments, also to flush the state storage. Handle the
70770         IRIX iconv behaviour. Realloc the final result, to throw away unused
70771         memory.
70772
70773 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70776         and fchmodat unconditionally, since glibc 2.4 has them.
70777         Problem reported by Arkadiusz Miskiewicz.
70778
70779 2006-12-10  Bruno Haible  <bruno@clisp.org>
70780
70781         * gnulib-tool (func_import): Show the include files only for those
70782         modules that are copied and specified.
70783         Reported by Karl Berry.
70784
70785 2006-12-08  Jim Meyering  <jim@meyering.net>
70786
70787         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70788         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70789
70790         * build-aux/announce-gen: Add two new options, both optional:
70791         --bootstrap-tools=TOOL_LIST
70792               a comma-separated list of tools, e.g.,
70793               autoconf,automake,bison,gnulib
70794         --gnulib-snapshot-date=DATE
70795               if gnulib is in the bootstrap tool list,
70796               then report this as the snapshot date.
70797               If not specified, use the current date/time.
70798               If you specify a date here, be sure it's UTC.
70799
70800 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70801
70802         * tests/test-argp-2.sh: Fix test to match actual output.
70803         (func_compare): Fix sed script to be portable.
70804
70805 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70806
70807         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70808         workaround for this case.  It is not autoconfigured now; offhand
70809         it's hard to see how to autoconfigure it.
70810
70811 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70814         a directory that is about to be chowned.  Such a directory's
70815         initial file permissions should permit the owner only and this
70816         should not be changed until after the chown, since the group and
70817         other bits would be incorrect if they granted permission before
70818         the chown.
70819
70820         Fix porting problem for iswctype reported by Georg Schwarz in:
70821         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70822         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70823         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70824         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70825         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70826
70827 2006-12-03  Jim Meyering  <jim@meyering.net>
70828
70829         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70830         p->fts_statp may not yet be defined.
70831         (fts_read): Instead, set it in the caller, once p->fts_statp is
70832         sure to be defined, and corresponds to a top-level directory.
70833         This bug made du -x fail.  Here's the coreutils test case:
70834         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70835         Reported by Mike Frysinger.
70836
70837 2006-12-01  Jim Meyering  <jim@meyering.net>
70838
70839         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70840         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70841         Reported by Simon Josefsson.
70842
70843 2006-11-30  Jim Meyering  <jim@meyering.net>
70844
70845         * m4/warning.m4: Use the all-permissive copyright notice
70846         recommended by RMS (rather than LGPL).
70847         * m4/vararrays.m4: Likewise.
70848         * m4/flexmember.m4: Likewise.
70849
70850 2006-11-29  Bruno Haible  <bruno@clisp.org>
70851
70852         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70853         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70854         using +=.
70855         Reported by Simon Josefsson <simon@josefsson.org>.
70856
70857 2006-11-28  James Youngman <jay@gnu.org>
70858
70859         * README: Advise users that they might find the bug-gnulib@gnu.org
70860         and autotools-announce@gnu.org mailing lists useful.
70861
70862 2006-11-28  Bruno Haible  <bruno@clisp.org>
70863
70864         * m4/ptrdiff_max.m4: Remove file.
70865
70866 2006-11-21  Bruno Haible  <bruno@clisp.org>
70867
70868         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70869         _AC_COMPUTE_INT.
70870         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70871         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70872         _AC_COMPUTE_INT.
70873         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70874         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70875         _AC_COMPUTE_INT.
70876         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70877
70878 2006-11-28  Jim Meyering  <jim@meyering.net>
70879
70880         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70881         warning from "gcc -Wshadow" about shadowing the builtin.
70882
70883 2006-11-27  Bruno Haible  <bruno@clisp.org>
70884
70885         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70886         _AC_COMPUTE_INT.
70887         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70888
70889 2006-11-27  Bruno Haible  <bruno@clisp.org>
70890             Paul Eggert  <eggert@cs.ucla.edu>
70891
70892         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70893
70894 2006-11-26  Bruno Haible  <bruno@clisp.org>
70895
70896         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70897         noinst_LTLIBRARIES.
70898
70899 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70900             Bruno Haible  <bruno@clisp.org>
70901
70902         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70903         if compiling with "gcc -ansi".
70904
70905 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70906
70907         Fix some incompatibilities with gcc -ansi -pedantic.
70908         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70909         if compiling pedantically with GCC, unless it's C99 or later.
70910         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70911         it mishandles gcc -ansi -pedantic as well.
70912         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70913         if gcc -pedantic.
70914         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70915         initializers for struct if -pedantic, unless it's C99 or later.
70916
70917 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70918
70919         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70920         Don't close an fd more than once. Identical atimes indicate
70921         success, not failure.
70922
70923 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70924
70925         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70926
70927 2006-11-23  Jim Meyering  <jim@meyering.net>
70928
70929         * build-aux/announce-gen: New file.  From coreutils.
70930
70931 2006-11-22  Jim Meyering  <jim@meyering.net>
70932
70933         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70934         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70935         (fts_read): Use a temporary to narrow the overused st_size member
70936         before using it in a switch statement.  Reported by Matthew Woehlke.
70937
70938         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70939         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70940
70941 2006-11-20  Bruno Haible  <bruno@clisp.org>
70942
70943         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70944         changequote instead of pairs of brackets.
70945         Reported by Andreas Schwab <schwab@suse.de>.
70946
70947 2006-11-21  Jim Meyering  <jim@meyering.net>
70948
70949         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70950         so as to remain compatible with older compilers.
70951         Patch from Michael Deutschmann.
70952
70953 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * MODULES.html.sh (File system functions): Add openat.
70956
70957         * lib/openat.h (rpl_fstatat): New macro, if
70958         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70959         (fstatat): Define to rpl_fstatat under the same conditions,
70960         unless COMPILING_FSTATAT.
70961         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70962         seems to have the bug.
70963         * lib/fstatat.c: New file.
70964         * modules/openat (Files): Add it.
70965
70966 2006-11-20  Bruno Haible  <bruno@clisp.org>
70967
70968         * Makefile: New file.
70969
70970 2006-11-20  Jim Meyering  <jim@meyering.net>
70971
70972         The beginnings of syntax-related checks for gnulib.
70973         * lib/Makefile: New file.
70974         * lib/t-idcache: New script.  Ensure that the two halves of
70975         idcache.c stay in sync.
70976
70977         * lib/idcache.c: Adjust comments in user- and group- portions to
70978         be more accurate, and to be consistent with one another.
70979
70980 2006-11-20  Jim Meyering  <jim@meyering.net>
70981
70982         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70983         continue using the flexible array member (thus, this module performs
70984         half as many malloc calls), with the addition that...
70985         (getgroup, getuser): Consistently record a non-match via an empty
70986         "name" string, and map an empty string match to a NULL return value.
70987         * modules/idcache (Depends-on): Re-add flexmember.
70988
70989         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70990         (getuidbyname, getgroup, getgidbyname): Likewise.
70991
70992         Use cleaner syntax: NULL rather than 0.
70993         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70994
70995 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70998         It mishandled the case where the group was missing.
70999         Problem reported by Greg Schafer.
71000         * modules/idcache: Likewise.
71001
71002 2006-11-18  Jim Meyering  <jim@meyering.net>
71003
71004         * check-module (%exempt_header): Add exception for some
71005         conditionally-included headers.
71006
71007         * modules/i-ring (Depends-on): Add verify.
71008         (License): Change to LGPL.
71009
71010 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71011
71012         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71013         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71014         and inttostr.h.  Use snprintf rather than uinttostr, so that
71015         LGPLed code doesn't depend on GPLed.
71016
71017 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71018
71019         * modules/inline (License): Change from GPL to LGPL.
71020
71021 2006-11-17  Jim Meyering  <jim@meyering.net>
71022
71023         * modules/d-type (License): Switch to LGPL.
71024
71025 2006-11-15  Bruno Haible  <bruno@clisp.org>
71026
71027         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71028
71029 2006-11-15  Eric Blake  <ebb9@byu.net>
71030
71031         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71032         the module dependency.
71033
71034 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71035             Bruno Haible  <bruno@clisp.org>
71036
71037         * gnulib-tool (func_create_testdir): Add license consistency check.
71038
71039 2006-11-15  Eric Blake  <ebb9@byu.net>
71040
71041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71042         random "(cached)" in configure output.
71043
71044 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71045
71046         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71047         test for conforming inttypes.h is both announced and cached.
71048
71049         * MODULES.html.sh (seen_modules, seen_files): New variables.
71050         (func_module): Rewrite to use a few less gnulib-tool and sed
71051         invocations.  Avoid a couple of quadratic algorithms for ...
71052         (missed_modules, missed_files): ... these, with ...
71053         (func_append, func_tmpdir): ... these new functions, from
71054         gnulib-tool.  Analogously, install traps for cleanup.
71055
71056         * tests/test-gc.c (main): Remove unused variables.
71057         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71058
71059 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71060
71061         * modules/inttostr (License): Change to LGPL.
71062
71063 2006-11-14  Eric Blake  <ebb9@byu.net>
71064
71065         * modules/tempname (License): Change to LGPL.
71066
71067 2006-11-14  Eric Blake  <ebb9@byu.net>
71068
71069         * doc/functions.texi (Function Portability): *printf functions on
71070         Cygwin now understand all POSIX size specifiers.
71071
71072 2006-11-14  Bruno Haible  <bruno@clisp.org>
71073
71074         * modules/c-ctype (License): Change to LGPL.
71075
71076 2006-11-12  Bruno Haible  <bruno@clisp.org>
71077
71078         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71079         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71080         for GNOME libraries, for which the include files are installed in
71081         subdirectories of $prefix/include.
71082
71083 2006-11-12  Bruno Haible  <bruno@clisp.org>
71084
71085         * m4/lib-link.m4: Require at least autoconf-2.54.
71086         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71087         name to underscores for the --with option.
71088
71089 2006-11-13  Bruno Haible  <bruno@clisp.org>
71090
71091         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71092         the tests directory.
71093         Reported by Ralf Wildenhues.
71094
71095 2006-11-13  Bruno Haible  <bruno@clisp.org>
71096
71097         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71098         (func_emit_initmacro_end): Undo the override here.
71099         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71100         Works around the famous automake error in coreutils.
71101
71102 2006-11-13  Eric Blake  <ebb9@byu.net>
71103
71104         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71105         element, not its node.
71106
71107 2006-11-12  Bruno Haible  <bruno@clisp.org>
71108
71109         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71110         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71111
71112 2006-11-12  Bruno Haible  <bruno@clisp.org>
71113
71114         * gnulib-tool: New option --local-symlink.
71115         (func_usage): Document it.
71116         (lsymbolic): New variable.
71117         (func_import, func_create_testdir): If --symlink was not specified,
71118         test whether --local-symlink was specified and the file comes from
71119         the local_gnulib_dir.
71120
71121 2006-11-12  Bruno Haible  <bruno@clisp.org>
71122
71123         * gnulib-tool (func_ln): New function.
71124         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71125
71126 2006-11-12  Bruno Haible  <bruno@clisp.org>
71127
71128         Finish support for source files in subdirectories.
71129         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71130         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71131         AUTOMAKE_OPTIONS.
71132         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71133
71134 2006-11-12  Bruno Haible  <bruno@clisp.org>
71135
71136         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71137         EXTRA_lib_SOURCES augmentation.
71138         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71139
71140 2006-11-12  Jim Meyering  <jim@meyering.net>
71141
71142         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71143         file descriptors.  This also averts a failure on systems with
71144         native openat support when a traversed directory lacks "x" access.
71145         * lib/fts_.h: Include "i-ring.h"
71146         (struct FTS) [fts_fd_ring]: New member.
71147         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71148         (FCHDIR): Add parentheses.
71149         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71150         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71151         When descending, rather than simply closing the previous
71152         fts_cwd_fd value, push that file descriptor onto the ring.
71153         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71154         (fts_open): Initialize the new fd_ring member.
71155         (fts_close): Clear the ring.
71156         (fts_safe_changedir): When possible, use our new fd_ring to skip
71157         the diropen and fstat and dev/ino comparison that would normally
71158         accompany a virtual `chdir ("..")'.
71159
71160         * modules/fts (Depends-on): Add i-ring.
71161         * modules/i-ring: New module.
71162         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71163         * m4/i-ring.m4: New file.
71164
71165 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71166
71167         * gnulib-tool (func_create_testdir): Fix replacement of
71168         `build-aux' in configure.ac.  Run autotools in gltests
71169         subdirectory.
71170         (func_create_testdir, func_create_megatestdir, test): There is
71171         no need for '--force' in most autotool invocations in a new
71172         tree.  Actually fail the whole test if any of the tools, or the
71173         configure or make stages fail.
71174
71175         Sync from Automake.
71176         * build-aux/gnupload: Revert last change.  Add pointer to upload
71177         instructions of the GNU Maintenance Instructions.
71178         Suggestion by Karl Berry.
71179
71180 2006-11-10  Jim Meyering  <jim@meyering.net>
71181
71182         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71183
71184 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71185
71186         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71187         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71188         (bind_textdomain_codeset) [! ENABLE_NLS]:
71189         Evaluate all the arguments.  That way, callers get compatible behavior
71190         if the arguments have side effects.  Also, it avoids some GCC
71191         diagnostics in some cases; Joel E. Denny reported problems when Bison
71192         was configured with --enable-gcc-warnigs.
71193
71194 2006-11-10  Jim Meyering  <jim@meyering.net>
71195
71196         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71197         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71198         account.
71199
71200 2006-11-10  Jim Meyering  <jim@meyering.net>
71201
71202         * modules/inline: New file/module.
71203         * modules/xalloc (Files): Remove m4/inline.m4.
71204         (Depends-on): Add inline, instead.
71205         * modules/oset: Likewise.
71206         * modules/list: Likewise.
71207
71208 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71211         Problem reported by Matthew Woehlke.
71212
71213 2006-11-09  Bruno Haible  <bruno@clisp.org>
71214
71215         * lib/tempname.c (gen_tempname): Remove variant that invokes
71216         __gen_tempname.
71217         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71218         __gen_tempname.
71219
71220 2006-11-08  Bruno Haible  <bruno@clisp.org>
71221
71222         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71223         to 'yes' instead of 'cross-compiling'.
71224
71225 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         * lib/quotearg.h (quotearg_free): New decl.
71228         * lib/quotearg.c (quotearg_free): New function.
71229         (slot0, nslots, slotvec0, slotvec):
71230         Now file-scope so that quotearg_free can get at them.
71231
71232 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71233
71234         Sync from Automake.
71235         * build-aux/gnupload: Add missing 'gnu' to example URL.
71236         Report by Karl Berry.
71237
71238 2006-11-08  Bruno Haible  <bruno@clisp.org>
71239
71240         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71241         Suggested by Paul Eggert.
71242
71243 2006-11-08  Jim Meyering  <jim@meyering.net>
71244
71245         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71246         It's already included if !_LIBC.
71247         (fts_safe_changedir): Add a comment.
71248
71249 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71250
71251         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71252         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71253         Matthew Woehlke.
71254
71255         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71256         definitions up, to avoid colliding with change below.
71257         (static_inline) [HAVE_INLINE]: New macro.
71258         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71259         Provide extern decls when !HAVE_INLINE.  Do not define unless
71260         static_inline is defined, either by us or by xmalloc.c.  Use
71261         static_inline rather than static inline.
71262         (XCALLOC): Optimize sizeof(T) = 1 case.
71263         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71264
71265 2006-11-07  Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71268         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71269         AC_C_INLINE.
71270         * modules/xalloc (Files): Add m4/inline.m4.
71271
71272 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71273
71274         * README: Fix typo.
71275         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71276         (Miscellanous Notes): ...from this.
71277
71278 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71281         Mention that offsetof should be used instead of sizeof.
71282         From Bruno Haible.
71283
71284 2006-11-07  Bruno Haible  <bruno@clisp.org>
71285
71286         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71287
71288 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71291         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71292         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71293         (gl_tree_add_before, gl_tree_add_after):
71294         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71295         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71296         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71297         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71298         (gl_linked_add_after, gl_linked_add_at): Likewise.
71299         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71300         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71301         (gl_tree_add_before, gl_tree_add_after): Likewise.
71302         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71303         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71304         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71305
71306 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71307
71308         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71309
71310 2006-11-06  Bruno Haible  <bruno@clisp.org>
71311
71312         * m4/inline.m4: New file.
71313         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71314         * modules/list (Files): Add m4/inline.m4.
71315         * modules/oset (Files): Likewise.
71316
71317 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * lib/idcache.c: Include <stddef.h>, for offsetof.
71320         (struct userid.name): Change from char * to a flexible array member.
71321         All uses changed.
71322         * modules/idcache (Depends-on): Add flexmember.
71323
71324         * MODULES.html.sh (Core language properties): New module flexmember.
71325         * modules/flexmember, m4/flexmember.m4: New files.
71326
71327         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71328         inline functions that are identical with the old xnmalloc_inline,
71329         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71330         that we can avoid some unnecessary integer multiplications and
71331         divisions in the common case where the element size is known at
71332         compile time.
71333         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71334         needed.
71335         (xnboundedmalloc): Remove.
71336         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71337         arguments, for consistency with rest of this header.
71338         (xcharalloc): Rewrite using XNMALLOC.
71339         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71340         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71341         versions have been moved to lib/xalloc.h and renamed to be the
71342         non-*_inline versions.
71343         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71344         and xnrealloc functions, since those functions are now inline and
71345         now call us.
71346         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71347         renaming described above.
71348         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71349         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71350         captures the dependency in AC_C_INLINE.
71351
71352         New module canonicalize-lgpl, proposed by Charles Wilson in
71353         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71354         with a few small changes afterwards.
71355         * MODULES.html.sh (File system functions): New module
71356         canonicalize-lgpl.
71357         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71358         and canonicalize_file_name.
71359         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71360         * modules/canonicalize-lgpl: New files.
71361
71362 2006-11-05  Bruno Haible  <bruno@clisp.org>
71363
71364         * gnulib-tool (func_import, func_create_testdir): Create directories
71365         also for files in subdirectories of lib/.
71366
71367 2006-11-05  Bruno Haible  <bruno@clisp.org>
71368
71369         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71370         ANSI C compliant.
71371
71372 2006-11-03  Bruno Haible  <bruno@clisp.org>
71373
71374         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71375         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71376         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71377         (xnboundedmalloc): New inline function.
71378         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71379         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71380         xmalloc.
71381         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71382         xmalloc.
71383         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71384         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71385         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71386         xmalloc.
71387         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71388         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71389         xmalloc.
71390         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71391         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71392         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71393         xmalloc.
71394         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71395         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71396         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71397         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71398         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71399         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71400         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71401
71402 2006-11-03  Bruno Haible  <bruno@clisp.org>
71403
71404         * lib/c-ctype.h [C++]: Define functions without name mangling.
71405         * lib/fwriteerror.h [C++]: Likewise.
71406         * lib/gcd.h [C++]: Likewise.
71407         * lib/linebreak.h [C++]: Likewise.
71408
71409 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71412         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71413         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71414         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71415         Check for functions and headers just once.
71416         Check for declaration of canonicalize_file_name.
71417         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71418
71419 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71420
71421         * gnulib-tool (func_import): Fix typo in actioncmd.
71422
71423 2006-11-02  Bruno Haible  <bruno@clisp.org>
71424
71425         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71426         newline sequence in the Makefile.am snippet as a space, like "make"
71427         does.
71428         Reported by Roger Persson <perrog@gmail.com>.
71429
71430 2006-11-01  Bruno Haible  <bruno@clisp.org>
71431
71432         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71433         already declared in <string.h>.
71434         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71435
71436 2006-11-01  Bruno Haible  <bruno@clisp.org>
71437
71438         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71439         * lib/strcase.h: Include <string.h>.
71440         (strcasecmp): Define to rpl_strcasecmp here.
71441
71442 2006-11-01  Bruno Haible  <bruno@clisp.org>
71443
71444         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71445
71446 2006-11-01  Eric Blake  <ebb9@byu.net>
71447
71448         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71449
71450         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71451
71452 2006-10-29  Bruno Haible  <bruno@clisp.org>
71453
71454         Make it compile in C++ mode.
71455         * lib/full-write.c (full_rw): Add a cast.
71456
71457 2006-11-01  Bruno Haible  <bruno@clisp.org>
71458
71459         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71460         be POSIX compliant.
71461         Reported by Roger Persson <perrog@gmail.com>.
71462
71463 2006-11-01  Eric Blake  <ebb9@byu.net>
71464
71465         * lib/getopt_.h: Fix comments.
71466
71467 2006-10-31  Eric Blake  <ebb9@byu.net>
71468
71469         * modules/tmpdir (Depends-on): Add sys_stat.
71470         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71471         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71472         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71473         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71474         tempname.
71475
71476 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         Avoid some C++ diagnostics reported by Bruno Haible.
71479         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71480         xmalloc.
71481         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71482         (struct slotvec): Move to top level.
71483         (quotearg_n_options): Rewrite to avoid xmalloc.
71484         * lib/xalloc.h (xcharalloc): New function.
71485         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71486         [defined __cplusplus]: Add function template that provides result
71487         type propagation.  This part of the change is from Bruno Haible.
71488
71489 2006-10-29  Bruno Haible  <bruno@clisp.org>
71490
71491         Make it compile in C++ mode.
71492         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71493         * lib/strnlen1.c (strnlen1): Cast memchr result.
71494         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71495         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71496         (create_temp_dir): Rename local variable 'template'.
71497         (compile_csharp_using_sscli): Add cast.
71498         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71499         * lib/findprog.c (find_in_path): Likewise.
71500         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71501         * lib/wait-process.c (register_slave_subprocess): Likewise.
71502
71503 2006-10-22  Bruno Haible  <bruno@clisp.org>
71504
71505         * modules/tsearch: New file.
71506         * lib/tsearch.h: New file.
71507         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71508         * m4/tsearch.m4: New file.
71509         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71510
71511 2006-10-29  Eric Blake  <ebb9@byu.net>
71512
71513         * lib/arcfour.c: Assume config.h.
71514         * lib/arctwo.c: Likewise.
71515         * lib/base64.c: Likewise.
71516         * lib/check-version.c: Likewise.
71517         * lib/crc.c: Likewise.
71518         * lib/des.c: Likewise.
71519         * lib/gc-gnulib.c: Likewise.
71520         * lib/gc-libgcrypt.c: Likewise.
71521         * lib/gc-pbkdf2-sha1.c: Likewise.
71522         * lib/getaddrinfo.c: Likewise.
71523         * lib/getdelim.c: Likewise.
71524         * lib/getline.c: Likewise.
71525         * lib/hmac-md5.c: Likewise.
71526         * lib/hmac-sha1.c: Likewise.
71527         * lib/iconvme.c: Likewise.
71528         * lib/md2.c: Likewise.
71529         * lib/md4.c: Likewise.
71530         * lib/memxor.c: Likewise.
71531         * lib/read-file.c: Likewise.
71532         * lib/readline.c: Likewise.
71533         * lib/rijndael-alg-fst.c: Likewise.
71534         * lib/rijndael-api-fst.c: Likewise.
71535         * lib/xgetdomainname.c: Likewise.
71536
71537 2006-10-28  Eric Blake  <ebb9@byu.net>
71538
71539         * lib/xstrndup.c: Assume config.h.
71540
71541 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71544         stat-macros.h is now for our own macros, whereas stat_h is for
71545         macros in the <sys/stat.h> name space.
71546         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71547         (STAT_MACROS_H): Remove.
71548         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71549         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71550         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71551         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71552         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71553         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71554         Move these macros to ...
71555         * lib/stat_.h: here.  Don't include stat-macros.h.
71556         * lib/canonicalize.c: Don't include stat-macros.h.
71557         * lib/chown.c: Likewise.
71558         * lib/euidaccess.c: Likewise.
71559         * lib/file-type.c: Likewise.
71560         * lib/filemode.c: Likewise.
71561         * lib/glob.c: Likewise.
71562         * lib/isapipe.c: Likewise.
71563         * lib/lchown.c: Likewise.
71564         * lib/lstat.c: Likewise.
71565         * lib/mkdir-p.c: Likewise.
71566         * lib/rmdir.c: Likewise.
71567         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71568         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71569         unless mkdir isn't declared, to speed up 'configure'.
71570         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71571         would define all the S_* symbols.
71572         * modules/canonicalize (Depends-on):
71573         Depend on sys_stat, not stat-macros.
71574         * modules/chown: Likewise.
71575         * modules/euidaccess: Likewise.
71576         * modules/filemode: Likewise.
71577         * modules/file-type: Likewise.
71578         * modules/glob: Likewise.
71579         * modules/isapipe: Likewise.
71580         * modules/lchown: Likewise.
71581         * modules/lstat: Likewise.
71582         * modules/mkancesdirs: Likewise.
71583         * modules/rmdir: Likewise.
71584         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71585         * modules/modechange: Likewise.
71586         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71587         (configure.ac): Remove gl_STAT_MACROS.
71588         * modules/sys_stat (Depends-on): Remove stat-macros.
71589
71590 2006-10-27  Bruno Haible  <bruno@clisp.org>
71591
71592         * m4/signed.m4: Remove file.
71593         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71594         invocation.
71595         * modules/vasnprintf (Files): Remove m4/signed.m4.
71596
71597 2006-10-27  Bruno Haible  <bruno@clisp.org>
71598
71599         Update to GNU gettext 0.16.
71600         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71601         m4/inttypes-h.m4, m4/signed.m4.
71602         * m4/gettext.m4: Update to GNU gettext 0.16.
71603         * m4/intl.m4: New file, from GNU gettext.
71604         * m4/intldir.m4: New file, from GNU gettext.
71605         * config/srclist.txt: Update
71606
71607 2006-10-27  Eric Blake  <ebb9@byu.net>
71608
71609         * MODULES.html.sh: Document tempname.
71610         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71611         dependencies.
71612         (Files): Move lib/tempname.c...
71613         * modules/tempname: ...to this new module.
71614         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71615         (gl_PREREQ_TEMPNAME): Move...
71616         * m4/tempname.m4: ...to this new file.
71617         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71618         * modules/sys_stat (Depends-on): Add stat-macros.
71619         * lib/stat_.h (includes): Pick up stat macros.
71620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71621         if stat macros are broken.
71622         * lib/tempname.c (includes): No need to include "stat-macros.h".
71623         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71624         (direxists, __path_search) [!_LIBC]: Don't compile these in
71625         gnulib; the tmpdir module covers that.
71626         * lib/tempname.h: New file.
71627
71628 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * COPYING: Explain how gnulib-tool converts licence headers.
71631         Almost all wording by Eric Blake.
71632
71633 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * lib/mbchar.h (is_basic_table): Make read-only.
71636         * lib/mbchar.c (is_basic_table): Likewise.
71637         Reported by John Darrington.
71638
71639 2006-10-25  Bruno Haible  <bruno@clisp.org>
71640
71641         * lib/progname.h (set_program_name): Undefine before defining.
71642
71643 2006-10-25  Bruno Haible  <bruno@clisp.org>
71644
71645         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71646         false for non-gcc C++ compilers.
71647         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71648
71649 2006-10-24  Bruno Haible  <bruno@clisp.org>
71650
71651         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71652         iconv implementations like Irix iconv.
71653
71654 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * modules/vararrays: New file.
71657         * m4/vararrays.m4: New file, taken from diffutils.
71658         * MODULES.html.sh: New module vararrays.
71659
71660 2006-10-24  Karl Berry  <karl@gnu.org>
71661
71662         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71663         Don't call GNU Unix.
71664
71665 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71666
71667         * users.txt: Add Libtool.
71668
71669         Sync from Libtool:
71670
71671         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71674         to gnulib's policy of including config.h unconditionally.
71675
71676 2006-10-24  Bruno Haible  <bruno@clisp.org>
71677
71678         * modules/wcwidth (Files): Add m4/wint_t.m4.
71679         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71680         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71681
71682 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71683
71684         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71685         to pacify GCC with some -W flags enabled.  Problem reported by
71686         Bruno Haible.
71687
71688 2006-10-24  Jim Meyering  <jim@meyering.net>
71689
71690         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71691         Reported by Karl Berry.
71692
71693 2006-10-23  Bruno Haible  <bruno@clisp.org>
71694
71695         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71696
71697 2006-10-24  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/gl_list.h: Use C comment style, not C++ comment style.
71700
71701 2006-10-23  Eric Blake  <ebb9@byu.net>
71702
71703         * lib/getaddrinfo.c (includes): Add missing include.
71704
71705 2006-10-23  Bruno Haible  <bruno@clisp.org>
71706             Paul Eggert  <eggert@cs.ucla.edu>
71707
71708         Ability to rename obstack_free.
71709         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71710         obstack_free.
71711         (obstack_free): Invoke the __obstack_free macro.
71712         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71713
71714 2006-10-23  Bruno Haible  <bruno@clisp.org>
71715             Paul Eggert  <eggert@cs.ucla.edu>
71716
71717         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71718         __argc, __argv from the declaration. (They are defined as macros on
71719         mingw.)
71720
71721 2006-10-22  Bruno Haible  <bruno@clisp.org>
71722
71723         * doc/gnulib-intro.texi: New file.
71724         * doc/gnulib.texi: Include it.
71725
71726 2006-10-21  Bruno Haible  <bruno@clisp.org>
71727
71728         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71729         "Introduction", "Miscellanous Notes", "Particular Modules".
71730
71731 2006-10-21  Bruno Haible  <bruno@clisp.org>
71732
71733         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71734         Change mostlyclean-local rule to avoid sh syntax error from bash
71735         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71736
71737 2006-10-23  Jim Meyering  <jim@meyering.net>
71738
71739         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71740         in place of snprintf.
71741
71742         * modules/inttostr (Files): Add lib/uinttostr.c.
71743         * lib/uinttostr.c (inttostr): New file/function.
71744         * lib/inttostr.h (uinttostr): Declare.
71745         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71746         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71747         Add uinttostr.
71748         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71749
71750 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * lib/canonicalize.c (ELOOP): Define if not already defined.
71753         Problem reported by Bruno Haible in
71754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71755
71756 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71759         Problem reported by Perry Smith and Ville Laurikari.
71760
71761         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71762         uses.
71763
71764 2006-10-19  Bruno Haible  <bruno@clisp.org>
71765
71766         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71767         for mingw.
71768
71769 2006-10-19  Bruno Haible  <bruno@clisp.org>
71770
71771         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71772         Needed for mingw.
71773
71774 2006-10-19  Bruno Haible  <bruno@clisp.org>
71775
71776         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71777
71778 2006-10-19  Bruno Haible  <bruno@clisp.org>
71779
71780         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71781         it.
71782
71783 2006-10-19  Bruno Haible  <bruno@clisp.org>
71784
71785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71786         invocation.
71787
71788 2006-10-19  Bruno Haible  <bruno@clisp.org>
71789
71790         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71791         mountlist by default.
71792
71793 2006-10-16  Bruno Haible  <bruno@clisp.org>
71794
71795         * lib/c-strstr.c: Include c-strstr.h.
71796
71797 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71798
71799         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71800         in a slash.
71801
71802 2006-10-18  Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/lock.h [C++]: Wrap definitions in extern "C".
71805
71806 2006-10-18  Bruno Haible  <bruno@clisp.org>
71807
71808         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71809         gl_LIBOBJS list.
71810
71811 2006-10-18  Bruno Haible  <bruno@clisp.org>
71812
71813         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71814
71815 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * lib/xstrtol.h: Include gettext.h.
71818         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71819         Problem reported by Eric Blake.
71820         * modules/xstrtol (Depends-on): Add gettext-h.
71821
71822 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71823
71824         * lib/strftime.c (advance): New macro.
71825         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71826         incomplete type, so you can't add 0 to it.  Problem and patch
71827         reported by Eelco Dolstra for dietlibc.
71828
71829 2006-10-18  Jim Meyering  <jim@meyering.net>
71830
71831         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71832         type for a local, and rename it: s/up/user_proc/.
71833
71834 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71835
71836         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71837         READ_UTMP_USER_PROCESS.
71838         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71839
71840 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71841
71842         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71843         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71844
71845 2006-10-17  Eric Blake  <ebb9@byu.net>
71846
71847         * lib/sigprocmask.c (sigprocmask): Fix typo.
71848
71849         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71850
71851         * modules/clean-temp (Makefile.am): Don't add to make output...
71852         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71853         config.h.
71854
71855 2006-10-17  Bruno Haible  <bruno@clisp.org>
71856
71857         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71858         differently if DEFAULT_TEXT_DOMAIN is set.
71859
71860 2006-10-16  Bruno Haible  <bruno@clisp.org>
71861
71862         * lib/clean-temp.c: Include fwriteerror.h.
71863
71864 2006-10-16  Bruno Haible  <bruno@clisp.org>
71865
71866         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71867
71868 2006-10-16  Bruno Haible  <bruno@clisp.org>
71869
71870         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71871         * lib/sigprocmask.h: Include <sys/types.h>.
71872         (sigset_t): Use the system's definition if present.
71873
71874 2006-10-17  Eric Blake  <ebb9@byu.net>
71875
71876         * lib/xvasprintf.c (includes): Assume config.h.
71877         * lib/xasprintf.c (includes): Likewise.
71878
71879 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71880
71881         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71882         at least as wide as intmax_t.
71883
71884 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71885
71886         (Imported from Automake.)
71887         * build-aux/gnupload: Update to version 1.1 of directive file.
71888
71889 2006-10-16  Eric Blake  <ebb9@byu.net>
71890
71891         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71892         match Automake 1.10a.
71893
71894 2006-10-14  Bruno Haible  <bruno@clisp.org>
71895
71896         * modules/sigprocmask: New file.
71897         * lib/sigprocmask.h: New file.
71898         * lib/sigprocmask.c: New file.
71899         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71900         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71901         request sigprocmask.o.
71902         (gl_PREREQ_SIGPROCMASK): New macro.
71903         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71904         (Depends-on): Add sigprocmask.
71905         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71906         gt_SIGNALBLOCKING. Test for 'raise' only once.
71907         * lib/fatal-signal.c: Include sigprocmask.h.
71908         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71909         unblock_fatal_signals): Define always.
71910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71911         sigprocmask.
71912
71913 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71914
71915         Sync from Automake.
71916         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71917         which incorrectly sets the mode of an existing destination
71918         directory.  In some cases the unpatched install-sh could do the
71919         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71920         system.  We hope this is rare in practice, but it's clearly worth
71921         fixing.  Problem reported by Alex Unleashed in
71922         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71923         Also, don't bother to check for -m bugs unless we're using -m;
71924         suggested by Stepan Kasal.
71925
71926 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71927
71928         Sync from Automake.
71929         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71930         `-c' flag, so they appear at the same position as in %FASTDEP%
71931         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71932         which ignores unknown options only after the first non-option.
71933         Bug report against M4 by Nelson H. F. Beebe.
71934
71935 2006-10-13  Jim Meyering  <jim@meyering.net>
71936
71937         Fix a bug in yesterday's change.
71938         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71939         p->fts_statp->st_dev would be used uninitialized.
71940         Ensures that we always call fts_stat on the very first entry.
71941         Miklos Szeredi reported that find -xdev stopped working.
71942
71943 2006-10-12  Bruno Haible  <bruno@clisp.org>
71944
71945         * gnulib-tool (func_get_automake_snippet): Append an automatically
71946         computed EXTRA_DIST augmentation.
71947         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71948         * modules/alloca-opt (Makefile.am): Likewise.
71949         * modules/allocsa (Makefile.am): Likewise.
71950         * modules/arcfour (Makefile.am): Likewise.
71951         * modules/arctwo (Makefile.am): Likewise.
71952         * modules/argmatch (Makefile.am): Likewise.
71953         * modules/argz (Makefile.am): Likewise.
71954         * modules/atexit (Makefile.am): Likewise.
71955         * modules/backupfile (Makefile.am): Likewise.
71956         * modules/byteswap (Makefile.am): Likewise.
71957         * modules/c-strtod (Makefile.am): Likewise.
71958         * modules/c-strtold (Makefile.am): Likewise.
71959         * modules/calloc (Makefile.am): Likewise.
71960         * modules/canon-host (Makefile.am): Likewise.
71961         * modules/canonicalize (Makefile.am): Likewise.
71962         * modules/chdir-long (Makefile.am): Likewise.
71963         * modules/chdir-safer (Makefile.am): Likewise.
71964         * modules/check-version (Makefile.am): Likewise.
71965         * modules/chown (Makefile.am): Likewise.
71966         * modules/cloexec (Makefile.am): Likewise.
71967         * modules/close-stream (Makefile.am): Likewise.
71968         * modules/closeout (Makefile.am): Likewise.
71969         * modules/crc (Makefile.am): Likewise.
71970         * modules/csharpexec (Makefile.am): Likewise.
71971         * modules/cycle-check (Makefile.am): Likewise.
71972         * modules/des (Makefile.am): Likewise.
71973         * modules/dev-ino (Makefile.am): Likewise.
71974         * modules/dirfd (Makefile.am): Likewise.
71975         * modules/dirname (Makefile.am): Likewise.
71976         * modules/dup2 (Makefile.am): Likewise.
71977         * modules/eealloc (Makefile.am): Likewise.
71978         * modules/error (Makefile.am): Likewise.
71979         * modules/euidaccess (Makefile.am): Likewise.
71980         * modules/exclude (Makefile.am): Likewise.
71981         * modules/exitfail (Makefile.am): Likewise.
71982         * modules/fcntl-safer (Makefile.am): Likewise.
71983         * modules/fcntl (Makefile.am): Likewise.
71984         * modules/file-type (Makefile.am): Likewise.
71985         * modules/fileblocks (Makefile.am): Likewise.
71986         * modules/filemode (Makefile.am): Likewise.
71987         * modules/filenamecat (Makefile.am): Likewise.
71988         * modules/fnmatch (Makefile.am): Likewise.
71989         * modules/fopen-safer (Makefile.am): Likewise.
71990         * modules/fpending (Makefile.am): Likewise.
71991         * modules/fprintftime (Makefile.am): Likewise.
71992         * modules/free (Makefile.am): Likewise.
71993         * modules/fsusage (Makefile.am): Likewise.
71994         * modules/ftruncate (Makefile.am): Likewise.
71995         * modules/fts (Makefile.am): Likewise.
71996         * modules/gc-arcfour (Makefile.am): Likewise.
71997         * modules/gc-des (Makefile.am): Likewise.
71998         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71999         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72000         * modules/gc-md4 (Makefile.am): Likewise.
72001         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72002         * modules/gc-sha1 (Makefile.am): Likewise.
72003         * modules/gc (Makefile.am): Likewise.
72004         * modules/getaddrinfo (Makefile.am): Likewise.
72005         * modules/getcwd (Makefile.am): Likewise.
72006         * modules/getdelim (Makefile.am): Likewise.
72007         * modules/getdomainname (Makefile.am): Likewise.
72008         * modules/getgroups (Makefile.am): Likewise.
72009         * modules/gethostname (Makefile.am): Likewise.
72010         * modules/gethrxtime (Makefile.am): Likewise.
72011         * modules/getline (Makefile.am): Likewise.
72012         * modules/getloadavg (Makefile.am): Likewise.
72013         * modules/getlogin_r (Makefile.am): Likewise.
72014         * modules/getndelim2 (Makefile.am): Likewise.
72015         * modules/getopt (Makefile.am): Likewise.
72016         * modules/getpagesize (Makefile.am): Likewise.
72017         * modules/getpass-gnu (Makefile.am): Likewise.
72018         * modules/getpass (Makefile.am): Likewise.
72019         * modules/getsubopt (Makefile.am): Likewise.
72020         * modules/gettime (Makefile.am): Likewise.
72021         * modules/gettimeofday (Makefile.am): Likewise.
72022         * modules/getugroups (Makefile.am): Likewise.
72023         * modules/getusershell (Makefile.am): Likewise.
72024         * modules/glob (Makefile.am): Likewise.
72025         * modules/group-member (Makefile.am): Likewise.
72026         * modules/hard-locale (Makefile.am): Likewise.
72027         * modules/hash (Makefile.am): Likewise.
72028         * modules/hmac-md5 (Makefile.am): Likewise.
72029         * modules/hmac-sha1 (Makefile.am): Likewise.
72030         * modules/human (Makefile.am): Likewise.
72031         * modules/idcache (Makefile.am): Likewise.
72032         * modules/imaxabs (Makefile.am): Likewise.
72033         * modules/imaxdiv (Makefile.am): Likewise.
72034         * modules/inet_ntop (Makefile.am): Likewise.
72035         * modules/inet_pton (Makefile.am): Likewise.
72036         * modules/intprops (Makefile.am): Likewise.
72037         * modules/inttostr (Makefile.am): Likewise.
72038         * modules/inttypes (Makefile.am): Likewise.
72039         * modules/isapipe (Makefile.am): Likewise.
72040         * modules/javaversion (Makefile.am): Likewise.
72041         * modules/lchmod (Makefile.am): Likewise.
72042         * modules/lchown (Makefile.am): Likewise.
72043         * modules/localcharset (Makefile.am): Likewise.
72044         * modules/long-options (Makefile.am): Likewise.
72045         * modules/lstat (Makefile.am): Likewise.
72046         * modules/malloc (Makefile.am): Likewise.
72047         * modules/mathl (Makefile.am): Likewise.
72048         * modules/mbchar (Makefile.am): Likewise.
72049         * modules/md2 (Makefile.am): Likewise.
72050         * modules/md4 (Makefile.am): Likewise.
72051         * modules/md5 (Makefile.am): Likewise.
72052         * modules/memcasecmp (Makefile.am): Likewise.
72053         * modules/memchr (Makefile.am): Likewise.
72054         * modules/memcmp (Makefile.am): Likewise.
72055         * modules/memcoll (Makefile.am): Likewise.
72056         * modules/memcpy (Makefile.am): Likewise.
72057         * modules/memmem (Makefile.am): Likewise.
72058         * modules/memmove (Makefile.am): Likewise.
72059         * modules/mempcpy (Makefile.am): Likewise.
72060         * modules/memrchr (Makefile.am): Likewise.
72061         * modules/memset (Makefile.am): Likewise.
72062         * modules/memxor (Makefile.am): Likewise.
72063         * modules/mkancesdirs (Makefile.am): Likewise.
72064         * modules/mkdir-p (Makefile.am): Likewise.
72065         * modules/mkdir (Makefile.am): Likewise.
72066         * modules/mkdtemp (Makefile.am): Likewise.
72067         * modules/mkstemp (Makefile.am): Likewise.
72068         * modules/mktime (Makefile.am): Likewise.
72069         * modules/modechange (Makefile.am): Likewise.
72070         * modules/mountlist (Makefile.am): Likewise.
72071         * modules/nanosleep (Makefile.am): Likewise.
72072         * modules/obstack (Makefile.am): Likewise.
72073         * modules/openat (Makefile.am): Likewise.
72074         * modules/pagealign_alloc (Makefile.am): Likewise.
72075         * modules/pathmax (Makefile.am): Likewise.
72076         * modules/physmem (Makefile.am): Likewise.
72077         * modules/poll (Makefile.am): Likewise.
72078         * modules/posixtm (Makefile.am): Likewise.
72079         * modules/posixver (Makefile.am): Likewise.
72080         * modules/putenv (Makefile.am): Likewise.
72081         * modules/quote (Makefile.am): Likewise.
72082         * modules/quotearg (Makefile.am): Likewise.
72083         * modules/raise (Makefile.am): Likewise.
72084         * modules/read-file (Makefile.am): Likewise.
72085         * modules/readline (Makefile.am): Likewise.
72086         * modules/readlink (Makefile.am): Likewise.
72087         * modules/readtokens (Makefile.am): Likewise.
72088         * modules/readutmp (Makefile.am): Likewise.
72089         * modules/realloc (Makefile.am): Likewise.
72090         * modules/regex (Makefile.am): Likewise.
72091         * modules/rename-dest-slash (Makefile.am): Likewise.
72092         * modules/rename (Makefile.am): Likewise.
72093         * modules/rijndael (Makefile.am): Likewise.
72094         * modules/rmdir (Makefile.am): Likewise.
72095         * modules/rpmatch (Makefile.am): Likewise.
72096         * modules/safe-read (Makefile.am): Likewise.
72097         * modules/safe-write (Makefile.am): Likewise.
72098         * modules/same-inode (Makefile.am): Likewise.
72099         * modules/same (Makefile.am): Likewise.
72100         * modules/save-cwd (Makefile.am): Likewise.
72101         * modules/savedir (Makefile.am): Likewise.
72102         * modules/setenv (Makefile.am): Likewise.
72103         * modules/settime (Makefile.am): Likewise.
72104         * modules/sha1 (Makefile.am): Likewise.
72105         * modules/sig2str (Makefile.am): Likewise.
72106         * modules/snprintf (Makefile.am): Likewise.
72107         * modules/stat-macros (Makefile.am): Likewise.
72108         * modules/stat-time (Makefile.am): Likewise.
72109         * modules/stdbool (Makefile.am): Likewise.
72110         * modules/stdint (Makefile.am): Likewise.
72111         * modules/stdlib-safer (Makefile.am): Likewise.
72112         * modules/stpcpy (Makefile.am): Likewise.
72113         * modules/stpncpy (Makefile.am): Likewise.
72114         * modules/strcase (Makefile.am): Likewise.
72115         * modules/strcasestr (Makefile.am): Likewise.
72116         * modules/strchrnul (Makefile.am): Likewise.
72117         * modules/strcspn (Makefile.am): Likewise.
72118         * modules/strdup (Makefile.am): Likewise.
72119         * modules/strerror (Makefile.am): Likewise.
72120         * modules/strftime (Makefile.am): Likewise.
72121         * modules/strndup (Makefile.am): Likewise.
72122         * modules/strnlen (Makefile.am): Likewise.
72123         * modules/strpbrk (Makefile.am): Likewise.
72124         * modules/strsep (Makefile.am): Likewise.
72125         * modules/strstr (Makefile.am): Likewise.
72126         * modules/strtod (Makefile.am): Likewise.
72127         * modules/strtoimax (Makefile.am): Likewise.
72128         * modules/strtok_r (Makefile.am): Likewise.
72129         * modules/strtol (Makefile.am): Likewise.
72130         * modules/strtoll (Makefile.am): Likewise.
72131         * modules/strtoul (Makefile.am): Likewise.
72132         * modules/strtoull (Makefile.am): Likewise.
72133         * modules/strtoumax (Makefile.am): Likewise.
72134         * modules/strverscmp (Makefile.am): Likewise.
72135         * modules/sys_socket (Makefile.am): Likewise.
72136         * modules/sys_stat (Makefile.am): Likewise.
72137         * modules/sysexits (Makefile.am): Likewise.
72138         * modules/time_r (Makefile.am): Likewise.
72139         * modules/timegm (Makefile.am): Likewise.
72140         * modules/timespec (Makefile.am): Likewise.
72141         * modules/tmpfile-safer (Makefile.am): Likewise.
72142         * modules/trim (Makefile.am): Likewise.
72143         * modules/unistd-safer (Makefile.am): Likewise.
72144         * modules/unlinkdir (Makefile.am): Likewise.
72145         * modules/unlocked-io (Makefile.am): Likewise.
72146         * modules/userspec (Makefile.am): Likewise.
72147         * modules/utime (Makefile.am): Likewise.
72148         * modules/utimecmp (Makefile.am): Likewise.
72149         * modules/utimens (Makefile.am): Likewise.
72150         * modules/vasnprintf (Makefile.am): Likewise.
72151         * modules/vasprintf (Makefile.am): Likewise.
72152         * modules/vsnprintf (Makefile.am): Likewise.
72153         * modules/xalloc (Makefile.am): Likewise.
72154         * modules/xgetcwd (Makefile.am): Likewise.
72155         * modules/xnanosleep (Makefile.am): Likewise.
72156         * modules/xreadlink (Makefile.am): Likewise.
72157         * modules/xstrtod (Makefile.am): Likewise.
72158         * modules/xstrtol (Makefile.am): Likewise.
72159         * modules/xstrtold (Makefile.am): Likewise.
72160         * modules/yesno (Makefile.am): Likewise.
72161         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72162
72163 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         * modules/error (Makefile.am): Distribute files through
72166         EXTRA_DIST, not lib_SOURCES.
72167
72168 2006-10-12  Eric Blake  <ebb9@byu.net>
72169
72170         * modules/error (Makefile.am): Distribute files in /lib.
72171         * modules/obstack (Makefile.am): Likewise.
72172
72173 2006-10-12  Bruno Haible  <bruno@clisp.org>
72174
72175         * modules/acl (Makefile.am): Distribute all files in lib/ through
72176         EXTRA_DIST.
72177         * modules/arcfour (Makefile.am): Likewise.
72178         * modules/arctwo (Makefile.am): Likewise.
72179         * modules/argmatch (Makefile.am): Likewise.
72180         * modules/argz (Makefile.am): Likewise.
72181         * modules/atexit (Makefile.am): Likewise.
72182         * modules/backupfile (Makefile.am): Likewise.
72183         * modules/c-strtod (Makefile.am): Likewise.
72184         * modules/c-strtold (Makefile.am): Likewise.
72185         * modules/calloc (Makefile.am): Likewise.
72186         * modules/canon-host (Makefile.am): Likewise.
72187         * modules/canonicalize (Makefile.am): Likewise.
72188         * modules/chdir-long (Makefile.am): Likewise.
72189         * modules/chdir-safer (Makefile.am): Likewise.
72190         * modules/check-version (Makefile.am): Likewise.
72191         * modules/chown (Makefile.am): Likewise.
72192         * modules/cloexec (Makefile.am): Likewise.
72193         * modules/close-stream (Makefile.am): Likewise.
72194         * modules/closeout (Makefile.am): Likewise.
72195         * modules/crc (Makefile.am): Likewise.
72196         * modules/cycle-check (Makefile.am): Likewise.
72197         * modules/des (Makefile.am): Likewise.
72198         * modules/dirfd (Makefile.am): Likewise.
72199         * modules/dirname (Makefile.am): Likewise.
72200         * modules/dup2 (Makefile.am): Likewise.
72201         * modules/euidaccess (Makefile.am): Likewise.
72202         * modules/exclude (Makefile.am): Likewise.
72203         * modules/exitfail (Makefile.am): Likewise.
72204         * modules/fcntl-safer (Makefile.am): Likewise.
72205         * modules/file-type (Makefile.am): Likewise.
72206         * modules/fileblocks (Makefile.am): Likewise.
72207         * modules/filemode (Makefile.am): Likewise.
72208         * modules/filenamecat (Makefile.am): Likewise.
72209         * modules/fnmatch (Makefile.am): Likewise.
72210         * modules/fopen-safer (Makefile.am): Likewise.
72211         * modules/fpending (Makefile.am): Likewise.
72212         * modules/fprintftime (Makefile.am): Likewise.
72213         * modules/free (Makefile.am): Likewise.
72214         * modules/fsusage (Makefile.am): Likewise.
72215         * modules/ftruncate (Makefile.am): Likewise.
72216         * modules/fts (Makefile.am): Likewise.
72217         * modules/gc (Makefile.am): Likewise.
72218         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72219         * modules/getaddrinfo (Makefile.am): Likewise.
72220         * modules/getcwd (Makefile.am): Likewise.
72221         * modules/getdelim (Makefile.am): Likewise.
72222         * modules/getdomainname (Makefile.am): Likewise.
72223         * modules/getgroups (Makefile.am): Likewise.
72224         * modules/gethostname (Makefile.am): Likewise.
72225         * modules/gethrxtime (Makefile.am): Likewise.
72226         * modules/getline (Makefile.am): Likewise.
72227         * modules/getloadavg (Makefile.am): Likewise.
72228         * modules/getlogin_r (Makefile.am): Likewise.
72229         * modules/getopt (Makefile.am): Likewise.
72230         * modules/getpass (Makefile.am): Likewise.
72231         * modules/getpass-gnu (Makefile.am): Likewise.
72232         * modules/getsubopt (Makefile.am): Likewise.
72233         * modules/gettime (Makefile.am): Likewise.
72234         * modules/gettimeofday (Makefile.am): Likewise.
72235         * modules/getugroups (Makefile.am): Likewise.
72236         * modules/getusershell (Makefile.am): Likewise.
72237         * modules/glob (Makefile.am): Likewise.
72238         * modules/group-member (Makefile.am): Likewise.
72239         * modules/hard-locale (Makefile.am): Likewise.
72240         * modules/hash (Makefile.am): Likewise.
72241         * modules/hmac-md5 (Makefile.am): Likewise.
72242         * modules/hmac-sha1 (Makefile.am): Likewise.
72243         * modules/human (Makefile.am): Likewise.
72244         * modules/idcache (Makefile.am): Likewise.
72245         * modules/imaxabs (Makefile.am): Likewise.
72246         * modules/imaxdiv (Makefile.am): Likewise.
72247         * modules/inet_ntop (Makefile.am): Likewise.
72248         * modules/inet_pton (Makefile.am): Likewise.
72249         * modules/inttostr (Makefile.am): Likewise.
72250         * modules/isapipe (Makefile.am): Likewise.
72251         * modules/lchown (Makefile.am): Likewise.
72252         * modules/long-options (Makefile.am): Likewise.
72253         * modules/lstat (Makefile.am): Likewise.
72254         * modules/malloc (Makefile.am): Likewise.
72255         * modules/mathl (Makefile.am): Likewise.
72256         * modules/mbchar (Makefile.am): Likewise.
72257         * modules/md2 (Makefile.am): Likewise.
72258         * modules/md4 (Makefile.am): Likewise.
72259         * modules/md5 (Makefile.am): Likewise.
72260         * modules/memcasecmp (Makefile.am): Likewise.
72261         * modules/memchr (Makefile.am): Likewise.
72262         * modules/memcmp (Makefile.am): Likewise.
72263         * modules/memcoll (Makefile.am): Likewise.
72264         * modules/memcpy (Makefile.am): Likewise.
72265         * modules/memmem (Makefile.am): Likewise.
72266         * modules/memmove (Makefile.am): Likewise.
72267         * modules/mempcpy (Makefile.am): Likewise.
72268         * modules/memrchr (Makefile.am): Likewise.
72269         * modules/memset (Makefile.am): Likewise.
72270         * modules/memxor (Makefile.am): Likewise.
72271         * modules/mkancesdirs (Makefile.am): Likewise.
72272         * modules/mkdir (Makefile.am): Likewise.
72273         * modules/mkdir-p (Makefile.am): Likewise.
72274         * modules/mkdtemp (Makefile.am): Likewise.
72275         * modules/mkstemp (Makefile.am): Likewise.
72276         * modules/mktime (Makefile.am): Likewise.
72277         * modules/modechange (Makefile.am): Likewise.
72278         * modules/mountlist (Makefile.am): Likewise.
72279         * modules/nanosleep (Makefile.am): Likewise.
72280         * modules/openat (Makefile.am): Likewise.
72281         * modules/pagealign_alloc (Makefile.am): Likewise.
72282         * modules/physmem (Makefile.am): Likewise.
72283         * modules/poll (Makefile.am): Likewise.
72284         * modules/posixtm (Makefile.am): Likewise.
72285         * modules/posixver (Makefile.am): Likewise.
72286         * modules/putenv (Makefile.am): Likewise.
72287         * modules/quote (Makefile.am): Likewise.
72288         * modules/quotearg (Makefile.am): Likewise.
72289         * modules/raise (Makefile.am): Likewise.
72290         * modules/read-file (Makefile.am): Likewise.
72291         * modules/readline (Makefile.am): Likewise.
72292         * modules/readlink (Makefile.am): Likewise.
72293         * modules/readtokens (Makefile.am): Likewise.
72294         * modules/readutmp (Makefile.am): Likewise.
72295         * modules/realloc (Makefile.am): Likewise.
72296         * modules/regex (Makefile.am): Likewise.
72297         * modules/rename (Makefile.am): Likewise.
72298         * modules/rename-dest-slash (Makefile.am): Likewise.
72299         * modules/rijndael (Makefile.am): Likewise.
72300         * modules/rmdir (Makefile.am): Likewise.
72301         * modules/rpmatch (Makefile.am): Likewise.
72302         * modules/safe-read (Makefile.am): Likewise.
72303         * modules/safe-write (Makefile.am): Likewise.
72304         * modules/same (Makefile.am): Likewise.
72305         * modules/save-cwd (Makefile.am): Likewise.
72306         * modules/savedir (Makefile.am): Likewise.
72307         * modules/setenv (Makefile.am): Likewise.
72308         * modules/settime (Makefile.am): Likewise.
72309         * modules/sha1 (Makefile.am): Likewise.
72310         * modules/sig2str (Makefile.am): Likewise.
72311         * modules/snprintf (Makefile.am): Likewise.
72312         * modules/stdlib-safer (Makefile.am): Likewise.
72313         * modules/stpcpy (Makefile.am): Likewise.
72314         * modules/stpncpy (Makefile.am): Likewise.
72315         * modules/strcase (Makefile.am): Likewise.
72316         * modules/strcasestr (Makefile.am): Likewise.
72317         * modules/strchrnul (Makefile.am): Likewise.
72318         * modules/strcspn (Makefile.am): Likewise.
72319         * modules/strdup (Makefile.am): Likewise.
72320         * modules/strerror (Makefile.am): Likewise.
72321         * modules/strftime (Makefile.am): Likewise.
72322         * modules/strndup (Makefile.am): Likewise.
72323         * modules/strnlen (Makefile.am): Likewise.
72324         * modules/strpbrk (Makefile.am): Likewise.
72325         * modules/strsep (Makefile.am): Likewise.
72326         * modules/strstr (Makefile.am): Likewise.
72327         * modules/strtod (Makefile.am): Likewise.
72328         * modules/strtoimax (Makefile.am): Likewise.
72329         * modules/strtok_r (Makefile.am): Likewise.
72330         * modules/strtol (Makefile.am): Likewise.
72331         * modules/strtoll (Makefile.am): Likewise.
72332         * modules/strtoul (Makefile.am): Likewise.
72333         * modules/strtoull (Makefile.am): Likewise.
72334         * modules/strtoumax (Makefile.am): Likewise.
72335         * modules/strverscmp (Makefile.am): Likewise.
72336         * modules/time_r (Makefile.am): Likewise.
72337         * modules/timegm (Makefile.am): Likewise.
72338         * modules/tmpfile-safer (Makefile.am): Likewise.
72339         * modules/unistd-safer (Makefile.am): Likewise.
72340         * modules/unlinkdir (Makefile.am): Likewise.
72341         * modules/userspec (Makefile.am): Likewise.
72342         * modules/utime (Makefile.am): Likewise.
72343         * modules/utimecmp (Makefile.am): Likewise.
72344         * modules/utimens (Makefile.am): Likewise.
72345         * modules/vasnprintf (Makefile.am): Likewise.
72346         * modules/vasprintf (Makefile.am): Likewise.
72347         * modules/vsnprintf (Makefile.am): Likewise.
72348         * modules/xalloc (Makefile.am): Likewise.
72349         * modules/xgetcwd (Makefile.am): Likewise.
72350         * modules/xnanosleep (Makefile.am): Likewise.
72351         * modules/xreadlink (Makefile.am): Likewise.
72352         * modules/xstrtod (Makefile.am): Likewise.
72353         * modules/xstrtol (Makefile.am): Likewise.
72354         * modules/xstrtold (Makefile.am): Likewise.
72355         * modules/yesno (Makefile.am): Likewise.
72356
72357 2006-10-12  Jim Meyering  <jim@meyering.net>
72358
72359         * m4/getloadavg.m4: Revert the change below.
72360
72361         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72362         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72363         fail with a symlink, which is what coreutils' ./bootstrap now
72364         creates by default.
72365
72366 2006-10-12  Bruno Haible  <bruno@clisp.org>
72367
72368         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72369         mingw.
72370         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72371         MSVC and mingw explicitly.
72372
72373 2006-10-11  Simon Josefsson  <jas@extundo.com>
72374             Bruno Haible  <bruno@clisp.org>
72375
72376         Add support for multiple gnulib-tool invocations in the scope of a
72377         single configure.ac file.
72378         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72379         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72380         with the same contents as the _LIBADD variable.
72381         (func_emit_initmacro_start, func_emit_initmacro_end,
72382         func_emit_initmacro_done): New functions.
72383         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72384         gl_LIBOBJS and gl_LTLIBOBJS.
72385
72386 2006-10-11  Bruno Haible  <bruno@clisp.org>
72387
72388         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72389         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72390         autoreconf. Instead, invoke autopoint explicitly but move back the
72391         *.m4 files from gnulib.
72392
72393 2006-10-11  Bruno Haible  <bruno@clisp.org>
72394
72395         * gnulib-tool (func_usage): Make module names after --create-testdir
72396         optional.
72397         (func_create_testdir): If no module was specified, use nearly all
72398         modules.
72399
72400 2006-10-12  Jim Meyering  <jim@meyering.net>
72401
72402         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72403         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72404         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72405         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72406         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72407         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72408         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72409         (fts_set_stat_required): New function.
72410         (fts_open): Defer the calls to fts_stat, if possible or requested.
72411         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72412         into fts_stat itself.
72413         (fts_read): Perform any required (deferred) fts_stat call.
72414         (fts_build): Likewise, for the directory we're about to open and read.
72415         In the readdir loop, carefully decide whether each entry will require
72416         an eventual call to fts_stat, using dirent.d_type info if available.
72417         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72418         a command line argument into this function.  Update all callers.
72419         Map a return value of FTS_DOT to FTS_D for a command line argument.
72420         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72421         Thanks to Miklos Szeredi for his tenacity and for the initial
72422         bug report about "find" failing on a FUSE-based file system.
72423
72424         * lib/fts.c (fts_open): Use consistent indentation.
72425
72426 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72429         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72430         reported by Jim Meyering.  All uses of cache variables renamed
72431         to match Autoconf's.
72432         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72433         the other one.
72434
72435         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72436         Fix misspelling in diagnostic.
72437
72438 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72439
72440         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72441         defined.  Problem reported by Matthew Woehlke.
72442
72443         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72444         Add support for Tandem NonStop R series.
72445         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72446         Use new macro.
72447
72448         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72449         (has_trailing_slash): Omit size arg; all callers changed.
72450         Omit 'inline', since it doesn't help performance and we'd
72451         need to configure it.
72452         Don't count //, ///, etc. as having a trailing slash.
72453         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72454         (rpl_rename_dest_slash): On failure, use rename's errno rather
72455         than (in some cases) an incorrect or junk errno.
72456         Simplify code by removing need to compute length; this does
72457         cause it to make two passes instead of one over the file name,
72458         but it's worth it.
72459
72460         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72461         change, since Autoconf's version may no longer be appropriate now
72462         that we are using CVS Autoconf's version.  Add support for Tandem.
72463
72464 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72465             Bruno Haible  <bruno@clisp.org>
72466
72467         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72468         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72469         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72470         gl_AC_TYPE_LONG_LONG.
72471
72472         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72473         instead of HAVE_LONG_LONG.
72474         * lib/printf-args.c (printf_fetchargs): Likewise.
72475         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72476         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72477         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72478         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72479         gl_AC_TYPE_LONG_LONG.
72480
72481 2006-10-11  Bruno Haible  <bruno@clisp.org>
72482
72483         * m4/longlong.m4: Add comments.
72484         * m4/ulonglong.m4: Likewise.
72485
72486 2006-10-10  Bruno Haible  <bruno@clisp.org>
72487
72488         Make it possible to #define stpcpy, strdup to aliases.
72489         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72490         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72491
72492 2006-10-10  Bruno Haible  <bruno@clisp.org>
72493
72494         Make it possible to #define gcd to an alias.
72495         * lib/gcd.c: Include config.h.
72496
72497 2006-10-10  Bruno Haible  <bruno@clisp.org>
72498
72499         Make it possible to #define c_isascii to an alias.
72500         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72501         defined. Undefine the macros before defining them, to avoid gcc
72502         warnings.
72503         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72504         define NO_C_CTYPE_MACROS early.
72505
72506 2006-10-10  Bruno Haible  <bruno@clisp.org>
72507
72508         Make it possible to #define set_program_name to an alias.
72509         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72510         ENABLE_RELOCATABLE early.
72511
72512 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72513
72514         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72515         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72516         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72517         More generally, don't assume that 64-bit signed int is available
72518         if unsigned int is, and vice versa.
72519         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72520         unsigned symbols, not on their signed counterparts.
72521         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72522         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72523         (UINT64_C, UINTMAX_C):
72524         Likewise.
72525         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72526         unsigned counterparts.
72527         (Have_long_long, Unsigned): New macros.
72528         (Int): Renamed from INT.
72529         (strtoimax): Use the new macros.
72530         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72531         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72532         * modules/inttypes (inttypes.h): Substitute
72533         HAVE_UNSIGNED_LONG_LONG_INT.
72534         * modules/stdint (stdint.h): Likewise.
72535         (Files): Add m4/ulonglong.m4.
72536
72537 2006-10-10  Bruno Haible  <bruno@clisp.org>
72538
72539         Fix a gcc -Wshadow warning.
72540         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72541         to 'bucket'.
72542         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72543         gl_linked_indexof_from_to): Likewise.
72544         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72545         Likewise.
72546         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72547         Likewise.
72548         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72549         Reported by Eric Blake.
72550
72551 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72552
72553         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72554         for NetBSD.  Problem reported by Bruno Haible.
72555
72556 2006-10-09  Jim Meyering  <jim@meyering.net>
72557
72558         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72559         Patch from Bruno Haible.
72560
72561 2006-10-09  Jim Meyering  <jim@meyering.net>
72562
72563         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72564         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72565         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72566
72567 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72568
72569         Don't include <config.h> twice; this doesn't work in some cases,
72570         e.g., when config.h has "#define intmax_t long long int" and
72571         we include <config.h>, <inttypes.h>, <config.h> in that order.
72572         Problem reported by Matthew Woehlke in:
72573         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72574         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72575         * lib/fts-cycle.c: Don't include config.h.
72576         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72577         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72578         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72579         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72580         inttypes.h.
72581         * lib/xstrtoumax.c: Likewise.
72582         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72583         __strtol and the like, so that this module is more like its siblings.
72584         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72585         Remove; no longer needed now that we assume gnulib inttypes.h.
72586
72587 2006-10-08  Bruno Haible  <bruno@clisp.org>
72588
72589         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72590         option.
72591
72592 2006-10-07  Jim Meyering  <jim@meyering.net>
72593
72594         * modules/inttypes (inttypes.h): Revert what seems to have been
72595         an inadvertent part of today's change: use "|", not "/" in the
72596         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72597
72598 2006-10-07  Bruno Haible  <bruno@clisp.org>
72599
72600         * modules/sublist: New file.
72601
72602 2006-10-07  Bruno Haible  <bruno@clisp.org>
72603
72604         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72605         * modules/argz (argz.h): Likewise.
72606         * modules/arpa_inet (arpa/inet.h): Likewise.
72607         * modules/byteswap (byteswap.h): Likewise.
72608         * modules/configmake (configmake.h): Likewise.
72609         * modules/fcntl (fcntl.h): Likewise.
72610         * modules/fnmatch (fnmatch.h): Likewise.
72611         * modules/getopt (getopt.h): Likewise.
72612         * modules/glob (glob.h): Likewise.
72613         * modules/inttypes (inttypes.h): Likewise.
72614         * modules/netinet_in (netinet/in.h): Likewise.
72615         * modules/poll (poll.h): Likewise.
72616         * modules/stdbool (stdbool.h): Likewise.
72617         * modules/stdint (stdint.h): Likewise.
72618         * modules/sys_select (sys/select.h): Likewise.
72619         * modules/sys_socket (sys/socket.h): Likewise.
72620         * modules/sys_stat (sys/stat.h): Likewise.
72621         * modules/sysexits (sysexits.h): Likewise.
72622         * modules/unistd (unistd.h): Likewise.
72623         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72624         Add a "DO NOT EDIT" comment to the generated file.
72625         (func_import): Likewise for gnulib-comp.m4.
72626
72627 2006-10-07  Bruno Haible  <bruno@clisp.org>
72628
72629         * lib/gl_sublist.h: New file.
72630         * lib/gl_sublist.c: New file.
72631
72632 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72633
72634         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72635         name (relative to the original working directory) and the file
72636         name component (relative to the temporary working directory).  All
72637         callers changed.
72638         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72639         * lib/mkdir-p.c (make_dir_parents): Likewise.
72640         * lib/mkdir-p.h (make_dir_parents): Likewise.
72641
72642 2006-10-06  Eric Blake  <ebb9@byu.net>
72643
72644         Define several macros for use by the clean-temp module.
72645         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72646         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72647         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72648
72649         * lib/clean-temp.h (close_stream_temp): New declaration.
72650         * lib/clean-temp.c (includes): Pull in headers according to what
72651         other modules are in use.
72652         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72653
72654 2006-10-06  Bruno Haible  <bruno@clisp.org>
72655
72656         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72657         instead of fopen, fwriteerror.
72658
72659 2006-10-06  Bruno Haible  <bruno@clisp.org>
72660
72661         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72662         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72663         int.
72664         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72665         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72666         Return an error indicator.
72667         Suggested by Eric Blake.
72668
72669 2006-10-06  Bruno Haible  <bruno@clisp.org>
72670
72671         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72672         Reported by Eric Blake.
72673
72674 2006-10-06  Bruno Haible  <bruno@clisp.org>
72675
72676         * modules/closeout (Description): Mention stderr too.
72677
72678 2006-10-06  Bruno Haible  <bruno@clisp.org>
72679         and Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * lib/closeout.c (close_stdout): Also close stderr.
72682         * lib/closeout.h: Update comment.
72683
72684 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72685
72686         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72687         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72688         * lib/dirchownmod.c: Include lchown.h.
72689         * lib/lchown.c: Don't include files that lchown.h now includes.
72690         Don't declare chown, since lchown.h now does that.
72691         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72692         (lchown): Define to rpl_chown if lchown is declared but
72693         does not exist.  Declare using a prototype if lchown is not
72694         declared.  Add a copyright notice.
72695         * lib/mkstemp.h: Include <unistd.h>.
72696         * lib/openat.c: Include lchown.h.
72697
72698         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72699         we now test for that separately.
72700         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72701         rather than O_NOFOLLOW, when testing whether it's possible to
72702         avoid a race condition reliably.
72703         * lib/savewd.c (savewd_chdir): Likewise.
72704
72705         Remove macros that are no longer needed now that stdint.h is
72706         reliable.
72707         * lib/fsusage.c (UINTMAX_MAX): Remove.
72708         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72709         * lib/utimecmp.c (SIZE_MAX): Remove.
72710
72711         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72712
72713         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72714         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72715         O_NOATIME works.
72716
72717 2006-10-05  Bruno Haible  <bruno@clisp.org>
72718
72719         * lib/gl_list.h (gl_sortedlist_search_from_to,
72720         gl_sortedlist_indexof_from_to): New declarations.
72721         (gl_list_implementation): New fields sortedlist_search_from_to,
72722         sortedlist_indexof_from_to.
72723         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72724         inline functions.
72725         * lib/gl_list.c (gl_sortedlist_search_from_to,
72726         gl_sortedlist_indexof_from_to): New functions.
72727         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72728         function.
72729         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72730         (gl_array_sortedlist_search_from_to): New function.
72731         (gl_array_list_implementation): Update.
72732         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72733         function.
72734         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72735         (gl_carray_sortedlist_search_from_to): New function.
72736         (gl_carray_list_implementation): Update.
72737         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72738         gl_linked_sortedlist_indexof_from_to): New functions.
72739         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72740         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72741         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72742         gl_tree_sortedlist_indexof_from_to): New functions.
72743         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72744         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72745         Update.
72746         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72747         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72748         Update.
72749
72750 2006-10-05  Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72753         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72754         (struct gl_list_implementation): Add fields search_from_to,
72755         indexof_from_to. Remove fields search, indexof.
72756         (gl_list_search): Use the search_from_to method.
72757         (gl_list_search_from, gl_list_search_from_to): New functions.
72758         (gl_list_indexof): Use the indexof_from_to method.
72759         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72760         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72761         (gl_list_search_from, gl_list_search_from_to): New functions.
72762         (gl_list_indexof): Use the indexof_from_to method.
72763         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72764         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72765         gl_array_indexof. Add start_index, end_index arguments.
72766         (gl_array_search_from_to): Renamed from gl_array_search. Add
72767         start_index, end_index arguments.
72768         (gl_array_remove, gl_array_list_implementation): Update.
72769         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72770         gl_carray_indexof. Add start_index, end_index arguments.
72771         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72772         start_index, end_index arguments.
72773         (gl_carray_remove, gl_carray_list_implementation): Update.
72774         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72775         gl_linked_search. Add start_index, end_index arguments.
72776         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72777         start_index, end_index arguments.
72778         (gl_linked_remove): Update.
72779         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72780         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72781         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72782         field to 'size_t'.
72783         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72784         gl_tree_search. Add start_index, end_index arguments.
72785         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72786         start_index, end_index arguments.
72787         (gl_tree_remove): Update.
72788         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72789         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72790         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72791         function.
72792         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72793         gl_tree_search. Add start_index, end_index arguments.
72794         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72795         start_index, end_index arguments.
72796         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72797         Update.
72798         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72799
72800 2006-10-05  Bruno Haible  <bruno@clisp.org>
72801
72802         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72803
72804         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72805         fwriteerror_temp): New declarations.
72806         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72807         (descriptors): New variable.
72808         (cleanup): First, close the descriptors.
72809         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72810         fclose_temp, fwriteerror_temp): New functions.
72811
72812 2006-10-04  Jim Meyering  <jim@meyering.net>
72813
72814         * lib/fts.c (fts_open): Tiny comment change.
72815
72816 2006-10-04  Bruno Haible  <bruno@clisp.org>
72817
72818         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72819         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72820         gl_LOCK_BODY.
72821         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72822         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72823         gl_LOCK_EARLY_BODY.
72824         (gl_LOCK): Require gl_LOCK_BODY.
72825
72826 2006-10-04  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72829         (gl_oset_search_atleast): New declaration.
72830         (struct gl_oset_implementation): Add field 'search_atleast'.
72831         (gl_oset_search_atleast): New inline function.
72832         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72833         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72834         (gl_array_oset_implementation): Update.
72835         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72836         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72837         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72838
72839 2006-10-04  Bruno Haible  <bruno@clisp.org>
72840
72841         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72842
72843 2006-10-03  Bruno Haible  <bruno@clisp.org>
72844
72845         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72846         from gl_avltreehash_list_implementation.
72847
72848 2006-10-03  Bruno Haible  <bruno@clisp.org>
72849
72850         * lib/gl_oset.c (gl_oset_add): Fix return type.
72851
72852 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72853
72854         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72855
72856 2006-10-02  Eric Blake  <ebb9@byu.net>
72857
72858         * modules/strnlen (Depends-on): Add extensions.
72859
72860 2006-10-02  Eric Blake  <ebb9@byu.net>
72861
72862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72863         definition in 2.60+.
72864
72865 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72866
72867         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72868         checks.
72869
72870 2006-10-02  Bruno Haible  <bruno@clisp.org>
72871
72872         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72873         to the AUTOMAKE_OPTIONS.
72874         Reported by Jim Meyering.
72875
72876 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         Work around bug in Solaris 10 /proc file system:
72879         /proc/self/fd/NNN/.. isn't the parent directory of
72880         the directory whose file descriptor is NNN.  This needs to
72881         be worked around at run time, not compile time, since a
72882         program might be built on Solaris 8, where things work, and
72883         run on Solaris 10.
72884         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72885         to use the following interface instead:
72886         (OPENAT_BUFFER_SIZE): New macro.
72887         (openat_proc_name): New function.
72888         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72889         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72890         Likewise.
72891         * lib/openat-proc.c: New file.
72892         * modules/openat (Files): Add lib/openat-proc.c.
72893         (Depends-on): Add same-inode, stdbool.
72894         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72895
72896 2006-09-29  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72899         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72900         argument. Set stdout_closed before testing for ferror, not after.
72901         (fwriteerror, fwriteerror_no_ebadf): New functions.
72902
72903 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72904
72905         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72906
72907 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72908
72909         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72910         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72911
72912 2006-09-28  Jim Meyering  <jim@meyering.net>
72913
72914         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72915         Include <unistd.h>.
72916
72917 2006-09-28  Bruno Haible  <bruno@clisp.org>
72918
72919         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72920         * modules/linkedhash-list (Depends-on): Likewise.
72921         * modules/rbtreehash-list (Depends-on): Likewise.
72922
72923 2006-09-28  Bruno Haible  <bruno@clisp.org>
72924
72925         * lib/strndup.h: Simplify the redefinition of strndup.
72926         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72927         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72928
72929 2006-09-28  Bruno Haible  <bruno@clisp.org>
72930
72931         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72932         * lib/gl_linkedhash_list.c: Likewise.
72933         * lib/gl_rbtreehash_list.c: Likewise.
72934
72935 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72936
72937         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72938         getaddrinfo.
72939
72940         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72941         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72942         it causes <stdio_ext.h> to cause a compile-time error.
72943         Problem reported by Nelson H. F. Beebe.
72944         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72945         of HAVE_DECL___PENDING.
72946
72947         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72948         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72949         declaration.
72950
72951 2006-09-27  Jim Meyering  <jim@meyering.net>
72952
72953         This file could end up with a definition for a function
72954         named __strndup, rather than rpl_strndup on a system with
72955         incomplete weak_alias support.
72956         * lib/strndup.c (strndup): Rename from __strndup.
72957         Remove #defines that used to map __strndup to strndup.
72958         Don't use K&R prototypes.
72959         Remove LIBC-related code, since this file is not sync'd with glibc.
72960         * lib/strndup.h: Revamp, accordingly.
72961         * m4/strndup.m4: Modernize.
72962
72963 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * modules/savewd (Depends-on): Add 'raise'.
72966         * lib/savewd.c: Include <signal.h>, for 'raise'.
72967
72968 2006-09-26  Jim Meyering  <jim@meyering.net>
72969
72970         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72971         when we detect Darwin 8.7.0's acl_get_file bug.
72972         Rearrange to perform the new (below) run-test while $LIBS
72973         contains any acl-related library.  Set USE_ACL at the end.
72974         (gl_ACL_GET_FILE): New function.
72975
72976 2006-09-26  Eric Blake  <ebb9@byu.net>
72977
72978         * lib/verror.c: Include <config.h> unconditionally.
72979
72980 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * modules/clock-time (Maintainer): Add self.
72983         * modules/getlogin_r (Depends-on): Add extensions.
72984
72985 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72986
72987         * modules/clock-time: New module.
72988         * modules/nanosleep (Depends-on): Add clock-time.
72989         * modules/gethrxtime (Depends-on): Likewise.
72990         * modules/gettime (Depends-on): Likewise.
72991         * modules/settime (Depends-on): Likewise.
72992
72993         * modules/fts-lgpl: Depend on openat.
72994         * modules/mkancesdirs: Depend on savewd.
72995         * modules/mkdir-p: Likewise.
72996
72997 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72998
72999         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73000
73001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73002         `gl_have_arbitrary_file_name_length_limit' to
73003         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73004         actually works between configure runs.
73005
73006 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73007             Bruno Haible  <bruno@clisp.org>
73008
73009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73010
73011 2006-09-25  Jim Meyering  <jim@meyering.net>
73012
73013         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73014         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73015
73016 2006-09-25  Eric Blake  <ebb9@byu.net>
73017
73018         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73019         exec's in 2006-09-18 patch when shuffling fds.
73020
73021 2006-09-25  Bruno Haible  <bruno@clisp.org>
73022
73023         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73024         Reported by Jim Meyering.
73025
73026 2006-09-24  Jim Meyering  <jim@meyering.net>
73027
73028         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73029         compare a pointer against a literal "0".  That caused failures with
73030         at least HP-UX's hpcc.
73031
73032 2006-09-22  Simon Josefsson  <jas@extundo.com>
73033
73034         * modules/gc-sha1:
73035         * modules/gc-md4:
73036         * modules/gc-hmac-sha1:
73037         * modules/gc-hmac-md5:
73038         * modules/gc-des:
73039         * modules/gc-arcfour: Distribute more files.
73040
73041 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73042
73043         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73044         (gl_linked_iterator_from_to): Initialize struct completely.
73045         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73046         (gl_tree_iterator_from_to): Likewise
73047         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73048         * lib/gl_array_list.c [lint] (gl_array_iterator)
73049         (gl_array_iterator_from_to): Likewise.
73050         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73051         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73052         (gl_carray_iterator_from_to): Likewise.
73053
73054         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73055         * lib/md4.c (md4_process_block): Remove unused variable.
73056         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73057         parentheses for clarity.
73058
73059 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73060
73061         * modules/bison-i18n (Depends-on): Add gettext.
73062
73063 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73064
73065         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73066         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73067         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73068         also add missing comma that caused broken test.
73069         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73070         stdlib.h, for `abort'.
73071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73072         variables.
73073         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73074         include unistd.h if present, for `rmdir'.
73075         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73076         variables.
73077         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73078         in the process include standard headers for prototypes.
73079         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73080         gets declared on GNU/Linux.
73081         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73082         unistd.h, for `rmdir'.
73083         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73084
73085         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73086         always true.
73087         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73088
73089         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73090
73091 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73092
73093         * gnulib-tool (func_version): Create output all at once.  This
73094         may help avoid triggering unnecessary SIGPIPEs, and at any
73095         rate it doesn't hurt.
73096
73097 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73098             Bruno Haible  <bruno@clisp.org>
73099
73100         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73101         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73102         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73103
73104         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73105         (gl_FUNC_VASPRINTF): Invoke it.
73106
73107 2006-09-22  Bruno Haible  <bruno@clisp.org>
73108
73109         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73110         getloadavg.c as first argument.
73111
73112 2006-09-22  Bruno Haible  <bruno@clisp.org>
73113
73114         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73115         at the beginning of the gl_INIT macro.
73116         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73117         gl_GETLOADAVG.
73118
73119 2006-09-22  Bruno Haible  <bruno@clisp.org>
73120
73121         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73122         module.
73123         Suggested by Ralf Wildenhues.
73124
73125 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73126
73127         Import this patch from libc:
73128
73129         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73130
73131         * lib/regex_internal.c (re_string_reconstruct): Handle
73132         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73133         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73134         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73135         re_string_context_at.
73136
73137         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73138         now requires it.
73139         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73140         gl_REGEX now does it for us.
73141         (gl_REGEX): Add test taken from
73142         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73143
73144         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73145         Check that large offsets work.  Modernize Autoconf usages.
73146         Prefer "yes" to mean a good thing rather than a bad.
73147         Don't put "#define mkstemp" in config.h, as this might interfere
73148         with standard system headers that "#define mkstemp mkstemp64".
73149
73150         * modules/mkstemp (Depends-on): Add extensions, so that
73151         mkstemp is visible on some platforms.
73152         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73153         (Include): Change to "mkstemp.h" from <stdlib.h>.
73154         (Files): Add mkstemp.h.
73155
73156         * lib/mkstemp.h: New file, since some standard headers
73157         #define mkstemp.
73158         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73159         Include "mkstemp.h".
73160         Make the _LIBC code resemble glibc original more,
73161         e.g., use K&R style.
73162         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73163         (mkstemp): Remove, since mkstemp.h does this for us.
73164         * lib/stdlib--.h: Include mkstemp.h.
73165
73166         Import this patch from libc:
73167
73168         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73169
73170         * lib/tempname.c (__gen_tempname): Change attempts_min
73171         into a macro.  Use preprocessor to decide how to initialize
73172         attempts [Coverity CID 67].
73173
73174 2006-09-20  Bruno Haible  <bruno@clisp.org>
73175
73176         * lib/mkdtemp.c: Import from libc.
73177         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73178                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73179                 attempts_min into a macro.  Use preprocessor to decide how to
73180                 initialize attempts [Coverity CID 67].
73181         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73182                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73183                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73184
73185 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73186
73187         * gnulib-tool (func_exit): New function, to allow to pass the
73188         exit status portably through the trap.  Use everywhere.
73189         (--help, --version): Signal a write error.
73190         (trap): catch SIGPIPE, for write errors.
73191         Exit at the end of the trap, with the correct exit status.
73192
73193 2006-09-19  Karl Berry  <karl@gnu.org>
73194
73195         * doc/gnulib.texi: note about the license texinfo files.
73196
73197 2006-09-19  Eric Blake  <ebb9@byu.net>
73198
73199         * gnulib-tool: Avoid space-tab.
73200
73201 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73204         that prevented coreutils 6.1 from building.  Problem reported
73205         by Petter Reinholdtsen.
73206
73207 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         * gnulib-tool (avoidlist): Fix typo that broke options like
73210         --avoid=lock that are used by coreutils bootstrap.
73211
73212 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73213
73214         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73215         more systematically.
73216
73217 2006-09-18  Jim Meyering  <jim@meyering.net>
73218
73219         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73220
73221 2006-09-18  Bruno Haible  <bruno@clisp.org>
73222
73223         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73224
73225 2006-09-18  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73228         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73229         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73230         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73231         * m4/gettext.m4: Require autoconf >= 2.52.
73232         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73233         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73234         of gl_cv_header_inttypes_h.
73235
73236 2006-09-18  Bruno Haible  <bruno@clisp.org>
73237
73238         * lib/javaversion.c: Include configmake.h.
73239
73240 2006-09-18  Bruno Haible  <bruno@clisp.org>
73241
73242         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73243         avoid that the while loops be executed in a subshell.
73244
73245 2006-09-18  Bruno Haible  <bruno@clisp.org>
73246
73247         * MODULES.html.sh (func_module): Break long lines.
73248         Suggested by Bruce Korb <bkorb@gnu.org>.
73249
73250 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73251
73252         Speed up by a factor of 1.12.
73253         * gnulib-tool (nl): New variable.
73254         (func_import): Rewrite include directive extraction to only read each
73255         directive once.
73256
73257 2006-09-17  Bruno Haible  <bruno@clisp.org>
73258
73259         * modules/javaversion (Makefile.am): Remove DEFS setting.
73260         (Depends-on): Add configmake, for PKGDATADIR definition.
73261
73262 2006-09-17  Bruno Haible  <bruno@clisp.org>
73263
73264         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73265
73266 2006-09-17  Bruno Haible  <bruno@clisp.org>
73267
73268         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73269         (func_modules_transitive_closure, func_modules_add_dummy,
73270         func_modules_to_filelist, func_import, func_create_testdir,
73271         func_create_megatestdir, ...): Use it wherever possible.
73272         Suggested by Ralf Wildenhues.
73273
73274 2006-09-16  Karl Berry  <karl@gnu.org>
73275
73276         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73277         to avoid sectioning errors.
73278         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73279         [ifinfo]: blank line after @center-ed titles.
73280         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73281         Spell FSF address consistently with others.
73282         (These changes approved by rms.)
73283
73284 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73285
73286         Speed up by a factor of 1.61.
73287         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73288         already checked module names again.
73289
73290 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73291
73292         Speed up by a factor of 1.13.
73293         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73294         for new_files, and the input to func_add_or_update.
73295
73296 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73297
73298         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73299         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73300
73301 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73302
73303         * modules/mkancesdirs (Depends-on): Add fcntl.
73304         * modules/savewd: New file.
73305         * MODULES.html.sh (File system functions): Add savewd.
73306
73307         * modules/configmake (Makefile.am): Add support for the
73308         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73309
73310 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73311
73312         * m4/savewd.m4: New file.
73313
73314 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73317         (dirchownmod): New arg FD.  All callers changed.
73318         Use FD rather than opening the directory ourself, as opening is
73319         now the caller's responsibility.
73320         * lib/dirchownmod.h: Likewise.
73321         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73322         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73323         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73324         (test_dir): Remove.
73325         (mkancesdirs): Return length of prefix of FILE that has already
73326         been made, or -2 if there is a child doing the work.  Redo
73327         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73328         ".", and treat ".." specially since it might stray back into
73329         already-created areas.  Use a subprocess if necessary.  New arg
73330         WD; all users changed.  MAKE_DIR function should now return 1
73331         if it creates a directory that is not readable.  Return -2 if
73332         a child process is spun off.
73333         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73334         Adjust signature to match code.
73335         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73336         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73337         all users changed.
73338         * lib/savewd.c, lib/savewd.h: New files.
73339
73340 2006-09-15  Jim Meyering  <jim@meyering.net>
73341
73342         * modules/rename-dest-slash: New module.
73343         * MODULES.html.sh (posix_compat): Add it here.
73344
73345         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73346
73347 2006-09-15  Jim Meyering  <jim@meyering.net>
73348
73349         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73350         file.
73351
73352         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73353
73354 2006-09-15  Jim Meyering  <jim@meyering.net>
73355
73356         * lib/rename-dest-slash.c (has_trailing_slash): Use
73357         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73358         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73359         test before testing whether SRC is a directory.
73360         Suggestions from Bruno Haible.
73361
73362         Avoid a warning about an unused variable.
73363         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73364         into the #ifdef block where it's used.
73365
73366         * lib/rename-dest-slash.c: New file.
73367
73368 2006-09-14  Bruno Haible  <bruno@clisp.org>
73369
73370         * lib/allocsa.c: Include <config.h> unconditionally.
73371         * lib/asnprintf.c: Likewise.
73372         * lib/asprintf.c: Likewise.
73373         * lib/c-strcasecmp.c: Likewise.
73374         * lib/c-strcasestr.c: Likewise.
73375         * lib/c-strncasecmp.c: Likewise.
73376         * lib/c-strstr.c: Likewise.
73377         * lib/classpath.c: Likewise.
73378         * lib/clean-temp.c: Likewise.
73379         * lib/concatpath.c: Likewise.
73380         * lib/copy-file.c: Likewise.
73381         * lib/csharpcomp.c: Likewise.
73382         * lib/csharpexec.c: Likewise.
73383         * lib/execute.c: Likewise.
73384         * lib/fatal-signal.c: Likewise.
73385         * lib/findprog.c: Likewise.
73386         * lib/fwriteerror.c: Likewise.
73387         * lib/gl_array_list.c: Likewise.
73388         * lib/gl_array_oset.c: Likewise.
73389         * lib/gl_avltree_list.c: Likewise.
73390         * lib/gl_avltree_oset.c: Likewise.
73391         * lib/gl_avltreehash_list.c: Likewise.
73392         * lib/gl_carray_list.c: Likewise.
73393         * lib/gl_linked_list.c: Likewise.
73394         * lib/gl_linkedhash_list.c: Likewise.
73395         * lib/gl_list.c: Likewise.
73396         * lib/gl_oset.c: Likewise.
73397         * lib/gl_rbtree_list.c: Likewise.
73398         * lib/gl_rbtree_oset.c: Likewise.
73399         * lib/gl_rbtreehash_list.c: Likewise.
73400         * lib/imaxabs.c: Likewise.
73401         * lib/imaxdiv.c: Likewise.
73402         * lib/javacomp.c: Likewise.
73403         * lib/javaexec.c: Likewise.
73404         * lib/javaversion.c: Likewise.
73405         * lib/linebreak.c: Likewise.
73406         * lib/localcharset.c: Likewise.
73407         * lib/lock.c: Likewise.
73408         * lib/mbchar.c: Likewise.
73409         * lib/mbswidth.c: Likewise.
73410         * lib/mkdtemp.c: Likewise.
73411         * lib/pipe.c: Likewise.
73412         * lib/printf-args.c: Likewise.
73413         * lib/printf-parse.c: Likewise.
73414         * lib/progname.c: Likewise.
73415         * lib/progreloc.c: Likewise.
73416         * lib/readlink.c: Likewise.
73417         * lib/sh-quote.c: Likewise.
73418         * lib/stpcpy.c: Likewise.
73419         * lib/stpncpy.c: Likewise.
73420         * lib/strcasecmp.c: Likewise.
73421         * lib/strcasestr.c: Likewise.
73422         * lib/strcspn.c: Likewise.
73423         * lib/striconv.c: Likewise.
73424         * lib/strncasecmp.c: Likewise.
73425         * lib/strnlen1.c: Likewise.
73426         * lib/strstr.c: Likewise.
73427         * lib/strtok_r.c: Likewise.
73428         * lib/tls.c: Likewise.
73429         * lib/tmpdir.c: Likewise.
73430         * lib/unicodeio.c: Likewise.
73431         * lib/unsetenv.c: Likewise.
73432         * lib/vasnprintf.c: Likewise.
73433         * lib/vasprintf.c: Likewise.
73434         * lib/wait-process.c: Likewise.
73435         * lib/xallocsa.c: Likewise.
73436         * lib/xsetenv.c: Likewise.
73437         * lib/xstriconv.c: Likewise.
73438
73439 2006-09-13  Simon Josefsson  <jas@extundo.com>
73440
73441         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73442         that internally, suggested by Ralf Wildenhues
73443         <Ralf.Wildenhues@gmx.de>.
73444
73445 2006-09-13  Simon Josefsson  <jas@extundo.com>
73446
73447         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73448         @LIBOBJS@.
73449         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73450
73451 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73452
73453         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73454         longer worry about uses that don't define HAVE_CONFIG_H.
73455         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73456         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73457         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73458         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73459         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73460         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73461         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73462         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73463         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73464         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73465         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73466         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73467         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73468         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73469         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73470         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73471         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73472         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73473         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73474         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73475         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73476         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73477         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73478         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73479         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73480         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73481         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73482         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73483         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73484         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73485         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73486         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73487         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73488         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73489         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73490         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73491         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73492         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73493         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73494         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73495         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73496         Likewise.
73497
73498 2006-09-13  Eric Blake  <ebb9@byu.net>
73499
73500         * lib/getopt.c: Fix typo in last commit.
73501
73502 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73503
73504         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73505         dgettext.
73506
73507 2006-09-12  Jim Meyering  <jim@meyering.net>
73508
73509         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73510         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73511         Reported by Nelson H. F. Beebe.
73512
73513 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73514
73515         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73516         program_invocation_name and program_invocation_short_name are
73517         initialized.
73518         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73519         and program_invocation_short_name to argp.h, so they are visible
73520         to user programs.
73521         * lib/argp.h: Likewise
73522
73523 2006-09-10  Bruno Haible  <bruno@clisp.org>
73524
73525         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73526         m4/inttypes_h.m4, m4/uintmax_t.m4.
73527
73528 2006-09-10  Bruno Haible  <bruno@clisp.org>
73529
73530         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73531         gl_AC_TYPE_UINTMAX_T.
73532
73533 2006-09-10  Bruno Haible  <bruno@clisp.org>
73534
73535         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73536
73537 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73538
73539         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73540         convention.  Text proposed by Bruno Haible.
73541         (struct argp_option): Document the use of N_() wrappers.
73542
73543         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73544         '\v', and translate the two parts separately, instead of feeding
73545         the whole string to gettext.  This allows to exclude
73546         '\v' from the strings visible to the translator by writing doc
73547         strings as N_("..") "\v" N_("..").
73548
73549 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73550
73551         * config/srclist.txt: Undo latest change; the bug was fixed.
73552
73553 2006-09-09  Bruno Haible  <bruno@clisp.org>
73554
73555         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73556         assignments if building a library without libtool.
73557         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73558         in func_emit_lib_Makefile_am.
73559         (func_import): When building a static library libfoo.a, arrange to
73560         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73561         (func_create_testdir): Likewise.
73562         * modules/gc (configure.ac, Makefile.am): If building statically,
73563         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73564         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73565         * modules/striconv (configure.ac, Makefile.am): Likewise.
73566         Based on a suggestion by Ralf Wildenhues.
73567
73568 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73569
73570         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73571         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73572         Also:
73573
73574         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73575         Add year_2050_test to catch glibc bug 2821
73576         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73577
73578         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73579         Prefer #ifdef to #if.
73580
73581         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73582         Return from 'main' instead of calling 'exit'.
73583
73584 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73587         returned the maximum time_t value rather than (time_t) -1.
73588         Problem originally reported by William Bardwell
73589         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73590
73591         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73592         Moved to here ...
73593         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73594         ... from here.
73595
73596 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73597
73598         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73599         2821 is fixed.
73600
73601 2006-09-08  Jim Meyering  <jim@meyering.net>
73602
73603         Don't make generated files read-only.  That would bother too many
73604         people.  However, do retain the ability to work when targets are
73605         read-only: remove the destination and temporary files before writing
73606         them (when generated via sed or echo), or by using the -f option for
73607         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73608         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73609         * modules/byteswap, modules/configmake, modules/fcntl:
73610         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73611         * modules/localcharset, modules/netinet_in, modules/poll:
73612         * modules/stdbool, modules/stdint, modules/sys_select:
73613         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73614
73615 2006-09-08  Jim Meyering  <jim@meyering.net>
73616
73617         Avoid new build failure on FreeBSD 6.0.
73618         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73619         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73620         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73621
73622 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73623
73624         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73625
73626 2006-09-07  Jim Meyering  <jim@meyering.net>
73627
73628         Fix global typo in last change: use chmod u-w, not chmod u-x.
73629         Spotted by Paul Eggert and Bruce Korb.
73630         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73631         * modules/byteswap, modules/configmake, modules/fcntl:
73632         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73633         * modules/localcharset, modules/netinet_in, modules/poll:
73634         * modules/stdbool, modules/stdint, modules/sys_select:
73635         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73636
73637 2006-09-06  Jim Meyering  <jim@meyering.net>
73638
73639         Make generated files be read-only.
73640         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73641         Ensure that each generated file is now read-only.
73642         * modules/argz: Likewise.
73643         * modules/arpa_inet: Likewise.
73644         * modules/byteswap: Likewise.
73645         * modules/configmake: Likewise.
73646         * modules/fcntl: Likewise.
73647         * modules/fnmatch: Likewise.
73648         * modules/getopt: Likewise.
73649         * modules/glob: Likewise.
73650         * modules/inttypes: Likewise.
73651         * modules/netinet_in: Likewise.
73652         * modules/poll: Likewise.
73653         * modules/stdbool: Likewise.
73654         * modules/stdint: Likewise.
73655         * modules/sys_select: Likewise.
73656         * modules/sys_socket: Likewise.
73657         * modules/sys_stat: Likewise.
73658         * modules/sysexits: Likewise.
73659         * modules/localcharset: Same as above, but continue using temporary
73660         file named "t-$@" (why different?) rather than the "$@-t" used
73661         everywhere else.
73662
73663         * modules/sysexits (Makefile.am): Replace literal occurrences
73664         of "sysexit.h" more readable, and more consistent, "$@".
73665
73666 2006-09-06  Bruno Haible  <bruno@clisp.org>
73667
73668         * modules/striconv: New file.
73669         * modules/xstriconv: New file.
73670         * MODULES.html.sh (Internationalization functions): Add striconv,
73671         xstriconv.
73672
73673 2006-09-06  Bruno Haible  <bruno@clisp.org>
73674
73675         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73676         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73677         not using libtool correctly.
73678
73679 2006-09-06  Bruno Haible  <bruno@clisp.org>
73680
73681         * lib/striconv.h: New file.
73682         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73683         iconvstring.c.
73684         * lib/xstriconv.h: New file.
73685         * lib/xstriconv.c: New file.
73686
73687 2006-09-06  Bruno Haible  <bruno@clisp.org>
73688
73689         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73690         lib_..._LDFLAGS.
73691
73692 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73693
73694         * lib/argz_.h: Sync from Libtool.
73695
73696         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73697                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73698
73699         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73700
73701 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73702
73703         * modules/trim: New file.
73704
73705 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73706
73707         * lib/trim.h: New file.
73708         * lib/trim.c: New file.
73709
73710 2006-09-05  Bruno Haible  <bruno@clisp.org>
73711
73712         * MODULES.html.sh (String handling): Add trim.
73713
73714 2006-09-04  Karl Berry  <karl@gnu.org>
73715
73716         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73717         until next release.
73718
73719 2006-09-03  Bruno Haible  <bruno@clisp.org>
73720
73721         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73722         correctly.
73723
73724 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73725
73726         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73727         not gl_GETLOADAVG.  Omit unneeded semicolons.
73728         Problems reported by Ralf Wildenhues in
73729         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73730         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73731         at the end, which is the usual gnulib style.
73732
73733         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73734         of doing all the work ourselves.
73735         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73736         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73737
73738 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73739
73740         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73741         Problem reported by Ralf Wildenhues in
73742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73743
73744         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73745         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73746
73747 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73750         yesterday's patch by changing test -n to test -z.
73751
73752 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73755         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73756         the former is now obsolescent.
73757
73758         * modules/chdir-long (Depends-on): Add fcntl.
73759
73760 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73761
73762         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73763         obsolescent, and programs should use gnulib instead.
73764         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73765         but with prefixes changed.
73766
73767 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73770         or stdbool.h, because they might not exist while configuring.
73771
73772         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73773         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73774         does that for us.
73775         (O_DIRECTORY): Remove.
73776
73777 2006-08-31  Eric Blake  <ebb9@byu.net>
73778
73779         * gnulib-tool: Don't let emacs change spaces to TAB.
73780
73781 2006-08-31  Bruno Haible  <bruno@clisp.org>
73782
73783         * gnulib-tool: When calling func_import more than once, do it in a
73784         subshell.
73785         Reported by Eric Blake <ebb9@byu.net>.
73786
73787 2006-08-31  Bruno Haible  <bruno@clisp.org>
73788
73789         * gnulib-tool (nl): Remove variable.
73790         (sed_transform_lib_file): Use more robust test for config-h module.
73791         (func_import): Fix typo in 2006-08-25 patch.
73792
73793 2006-08-31  Bruno Haible  <bruno@clisp.org>
73794
73795         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73796         specified, augment Makefile.am variables instead of assigning them.
73797
73798 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73799
73800         Work around a bug in both the Linux and SunOS 64-bit kernels:
73801         nanosleep mishandles sleeps for longer than 2**31 seconds.
73802         Problem reported by Frank v Waveren in
73803         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73805         Check for nanosleep bug.
73806         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73807
73808 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73809
73810         Work around a bug in both the Linux and SunOS 64-bit kernels:
73811         nanosleep mishandles sleeps for longer than 2**31 seconds.
73812         Problem reported by Frank v Waveren in
73813         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73814         * lib/nanosleep.c (BILLION): New constant.
73815         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73816         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73817         implementation.
73818
73819 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73820
73821         * modules/nanosleep (Depends-on): Add gettime.
73822
73823 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73824         and Simon Josefsson  <jas@extundo.com>
73825         and Oskar Liljeblad  <oskar@osk.mine.nu>
73826
73827         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73828         * gnulib-tool (func_import): New license type 'unmodifiable license
73829         text'.
73830         * modules/fdl: Use it.  Longer description.
73831         * module/gpl, module/lgpl: New files.
73832
73833 2006-08-30  Jim Meyering  <jim@meyering.net>
73834
73835         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73836         shadowing the parameter.
73837
73838 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73839
73840         Sync from Libtool:
73841
73842         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73843
73844         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73845         sharing with gnulib.  Report by Eric Blake.
73846
73847 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * modules/isapipe: New file.
73850         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73851
73852 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73853
73854         * modules/configmake (Makefile.am): Add a comment, and omit
73855         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73856         by Bruno Haible.
73857
73858 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73859
73860         * m4/isapipe.m4: New file.
73861
73862 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * lib/isapipe.c, lib/isapipe.h: New files.
73865
73866 2006-08-29  Jim Meyering  <jim@meyering.net>
73867
73868         * modules/configmake (Makefile.am): Make configmake.h depend on
73869         Makefile.  Otherwise, a stale configmake.h could hang around.
73870
73871 2006-08-29  Eric Blake  <ebb9@byu.net>
73872
73873         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73874         resolution of upstream bug 3044.
73875
73876 2006-08-29  Bruno Haible  <bruno@clisp.org>
73877
73878         * modules/localcharset (Depends-on): Add configmake.
73879         (Makefile.am): Remove setting of LIBDIR through DEFS.
73880
73881 2006-08-29  Bruno Haible  <bruno@clisp.org>
73882
73883         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73884         defined.
73885
73886 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         * modules/fcntl: New file.
73889         * modules/chdir-safer (Depends-on): Add fcntl.
73890         * modules/fts: Likewise.
73891         * modules/mkdir-p: Likewise.
73892
73893         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73894         This undoes the most recent change, since we're now addressing the
73895         problem in a different way.
73896
73897         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73898         into output, since the output might be called Makefile.am even
73899         if $makefile_name is something different.
73900         (func_import): Use $makefile_am rather than
73901         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73902         empty.
73903
73904         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73905
73906 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73909         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73910         recent change to stdint.m4, since we're now addressing the problem in a
73911         different way.
73912
73913 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * m4/fcntl_h.m4: New file.
73916
73917 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * lib/fcntl_.h: New file.
73920         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73921         the fcntl module.
73922         * lib/dirchownmod.c: Likewise.
73923         * lib/fts.c: Likewise.
73924
73925         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73926         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73927         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73928         just before including <inttypes.h>, to avoid circular inclusion.
73929
73930 2006-08-28  Jim Meyering  <jim@meyering.net>
73931
73932         * doc/visibility.texi: Actually read and correct the grammar of the
73933         sentence affected by yesterday's change.
73934
73935 2006-08-28  Eric Blake  <ebb9@byu.net>
73936
73937         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73938         needs wrapper.
73939
73940 2006-08-28  Eric Blake  <ebb9@byu.net>
73941
73942         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73943
73944 2006-08-28  Eric Blake  <ebb9@byu.net>
73945
73946         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73947
73948 2006-08-28  Bruno Haible  <bruno@clisp.org>
73949
73950         * modules/c-strstr: New file, from GNU gettext.
73951         * MODULES.html.sh (String handling): Add c-strstr.
73952
73953 2006-08-28  Bruno Haible  <bruno@clisp.org>
73954
73955         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73956         macros.
73957         Reported by Eric Blake.
73958
73959 2006-08-28  Bruno Haible  <bruno@clisp.org>
73960
73961         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73962         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73963         * lib/vasprintf.c: Include errno.h, limits.h.
73964         (EOVERFLOW): New fallback definition.
73965         (vasprintf): Test here whether the string length is > INT_MAX.
73966         * lib/vsnprintf.c: Include errno.h, limits.h.
73967         (EOVERFLOW): New fallback definition.
73968         (vsnprintf): Fix bug when generated string was too long for the buffer.
73969         Test here whether the string length is > INT_MAX.
73970
73971 2006-08-28  Bruno Haible  <bruno@clisp.org>
73972
73973         * lib/inttypes_.h (SCNX*): Remove definitions.
73974         Reported by Eric Blake.
73975
73976 2006-08-28  Bruno Haible  <bruno@clisp.org>
73977
73978         * lib/c-strstr.h: New file, from GNU gettext.
73979         * lib/c-strstr.c: New file, from GNU gettext.
73980
73981 2006-08-28  Bruno Haible  <bruno@clisp.org>
73982
73983         * gnulib-tool: Reorder some statements.
73984
73985 2006-08-28  Bruno Haible  <bruno@clisp.org>
73986
73987         * gnulib-tool: New option --makefile-name.
73988         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73989         $makefile_name.
73990         (func_import): Write $makefile_name to the cache file, and read it from
73991         there unless explicitly specified. Use $makefile_name as file name
73992         instead of Makefile.am. Adjust the recommendations accordingly.
73993
73994 2006-08-28  Bruno Haible  <bruno@clisp.org>
73995
73996         * gnulib-tool (func_verify_module): Check against misapplying patch.
73997
73998 2006-08-28  Bruno Haible  <bruno@clisp.org>
73999
74000         * gnulib-tool (func_relativize, func_relconcat): New functions.
74001         Give an error if --local-dir is given with --update.
74002         Remove trailing slashes from $local_gnulib_dir.
74003         (func_import): Store the relativized $local_gnulib_dir in
74004         gnulib-cache.m4, and read it from there if not specified explicitly.
74005
74006 2006-08-28  Bruno Haible  <bruno@clisp.org>
74007
74008         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74009         is the current directory. Respect also $local_gnulib_dir.
74010
74011 2006-08-28  Bruno Haible  <bruno@clisp.org>
74012             Simon Josefsson  <jas@extundo.com>
74013
74014         BeOS portability.
74015         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74016
74017 2006-08-27  Jim Meyering  <jim@meyering.net>
74018
74019         * doc/visibility.texi: Remove duplicate word: "pointer".
74020
74021 2006-08-26  Bruno Haible  <bruno@clisp.org>
74022
74023         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74024         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74025         (Makefile.am): Create inttypes.h from inttypes_.h.
74026         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74027
74028         * modules/imaxabs: New file.
74029
74030         * modules/imaxdiv: New file.
74031
74032 2006-08-26  Bruno Haible  <bruno@clisp.org>
74033
74034         * m4/inttypes.m4: New file.
74035         * m4/_inttypes_h.m4: Remove file.
74036         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74037         PRI_MACROS_BROKEN.
74038         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74039
74040         * m4/imaxabs.m4: New file.
74041
74042         * m4/imaxdiv.m4: New file.
74043
74044 2006-08-26  Bruno Haible  <bruno@clisp.org>
74045
74046         * lib/inttypes_.h: New file.
74047         * lib/inttypes.h: Remove file.
74048         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74049
74050         * lib/imaxabs.c: New file.
74051
74052         * lib/imaxdiv.c: New file.
74053
74054 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74055
74056         New config-h module, so that "make" output needn't be cluttered
74057         by -DHAVE_CONFIG_H.
74058         * MODULES.html.sh (Support for building libraries and executables):
74059         Add config-h.
74060         * modules/config-h: New file.
74061         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74062         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74063         the config-h module is used.
74064
74065         New configmake module, so that "make" output needn't be cluttered
74066         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74067         * MODULES.html.sh (Support for building libraries and executables):
74068         Add configmake.
74069         * modules/configmake: New file.
74070
74071 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74072
74073         * m4/config-h.m4: New file.
74074
74075 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         * config/srclist.txt: Add elisp-comp.
74078
74079 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74080
74081         * MODULES.html.sh (Support for building libraries and executables):
74082         Add elisp-comp.
74083         * build-aux/elisp-comp: New file.
74084         * modules/elisp-comp: New file.
74085
74086 2006-08-24  Bruno Haible  <bruno@clisp.org>
74087
74088         * gnulib-tool (func_create_testdir): Use non-default values of
74089         sourcebase and m4base.
74090
74091 2006-08-24  Bruno Haible  <bruno@clisp.org>
74092
74093         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74094         HTML structure.
74095
74096 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74097
74098         * modules/openat (Depends-on): Add lchown.
74099
74100 2006-08-23  Bruno Haible  <bruno@clisp.org>
74101
74102         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74103         of gl_LOCK_EARLY instead of gl_LOCK.
74104
74105 2006-08-23  Bruno Haible  <bruno@clisp.org>
74106
74107         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74108         on OSF/1 to no.
74109         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74110
74111 2006-08-23  Bruno Haible  <bruno@clisp.org>
74112
74113         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74114         as unusable.
74115
74116         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74117         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74118         (gl_LOCK): New macro.
74119
74120 2006-08-22  Simon Josefsson  <jas@extundo.com>
74121
74122         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74123         to md5 module.
74124
74125 2006-08-22  Simon Josefsson  <jas@extundo.com>
74126
74127         * MODULES.html.sh: Add "Support for maintaining and release
74128         projects".
74129
74130         * build-aux/gnupload: New file, from coreutils.
74131
74132 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74133
74134         Avoid the need for AC_LIBSOURCES in m4 macros.
74135         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74136         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74137         * modules/check-version (EXTRA_DIST): Add check-version.h.
74138         * modules/crc (EXTRA_DIST): Add crc.h.
74139         * modules/des (EXTRA_DIST): Add des.h.
74140         * modules/gc (EXTRA_DIST): Add gc.h.
74141         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74142         * modules/getline (EXTRA_DIST): Add getline.h.
74143         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74144         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74145         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74146         * modules/md2 (EXTRA_DIST): Add md2.h.
74147         * modules/md4 (EXTRA_DIST): Add md4.h.
74148         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74149         * modules/read-file (EXTRA_DIST): Add read-file.h.
74150         * modules/readline (EXTRA_DIST): Add readline.h.
74151         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74152         rijndael-api-fst.h.
74153
74154 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * m4/rijndael.m4 (gl_ARCFOUR):
74157         * m4/arctwo.m4 (gl_ARCTWO):
74158         * m4/check-version.m4 (gl_CHECK_VERSION):
74159         * m4/crc.m4 (gl_CRC):
74160         * m4/des.m4 (gl_DES):
74161         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74162         * m4/gc.m4 (gl_GC):
74163         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74164         * m4/getline.m4 (gl_FUNC_GETLINE):
74165         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74166         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74167         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74168         * m4/md2.m4 (gl_MD2):
74169         * m4/md4.m4 (gl_MD4):
74170         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74171         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74172         * m4/readline.m4 (gl_FUNC_READLINE):
74173         * m4/rijndael.m4 (gl_RIJNDAEL):
74174         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74175         to get the necessary .h files and whatnot.
74176
74177 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74180         gnulib rather than the other way around.
74181         * config/srclistvars.sh (COREUTILS): Remove.
74182
74183 2006-08-22  Jim Meyering  <jim@meyering.net>
74184
74185         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74186
74187         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74188
74189 2006-08-22  Eric Blake  <ebb9@byu.net>
74190
74191         * modules/regexprops-generic: New file.
74192         * MODULES.html.sh (Support for building documentation): List it.
74193
74194 2006-08-22  Eric Blake  <ebb9@byu.net>
74195
74196         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74197         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74198         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74199         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74200
74201 2006-08-22  Bruno Haible  <bruno@clisp.org>
74202
74203         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74204         and lib_LTLIBRARIES like the other lib_* variables.
74205
74206 2006-08-22  Bruno Haible  <bruno@clisp.org>
74207
74208         * build-aux/x-to-1.in: New file, from GNU gettext.
74209
74210 2006-08-22  Bruno Haible  <bruno@clisp.org>
74211
74212         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74213         <utmpx.h> exists.
74214
74215 2006-08-22  Bruno Haible  <bruno@clisp.org>
74216
74217         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74218         <utmpx.h> exists.
74219
74220 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74221
74222         BeOS portability.
74223         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74224         exist.
74225         Problem reported by Bruno Haible.
74226
74227 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74228
74229         Avoid the need for AC_LIBSOURCES in m4 macros.
74230         * modules/acl (EXTRA_DIST): Add acl.h.
74231         * modules/argmatch (Files): Add m4/argmatch.m4.
74232         (configure.ac): Add gl_ARGMATCH.
74233         (EXTRA_DIST): Renamed from lib_SOURCES, for
74234         consistency with the other modules.  Remove argmatch.c.
74235         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74236         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74237         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74238         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74239         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74240         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74241         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74242         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74243         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74244         * modules/closeout (EXTRA_DIST): Add closeout.h.
74245         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74246         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74247         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74248         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74249         dirname.h; remove basename.c and stripslash.c.
74250         * modules/exclude (EXTRA_DIST): Add exclude.h.
74251         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74252         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74253         * modules/file-type (EXTRA_DIST): Add file-type.h.
74254         * modules/filemode (EXTRA_DIST): Add filemode.h.
74255         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74256         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74257         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74258         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74259         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74260         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74261         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74262         * modules/getdate (EXTRA_DIST): Add getdate.c.
74263         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74264         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74265         * modules/getpass (EXTRA_DIST): Add getpass.h.
74266         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74267         * modules/group-member (EXTRA_DIST): Add group-member.h.
74268         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74269         * modules/hash (EXTRA_DIST): Add hash.h.
74270         * modules/human (EXTRA_DIST): Add human.h.
74271         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74272         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74273         * modules/lchown (EXTRA_DIST): Add lchown.h.
74274         * modules/long-options (EXTRA_DIST): Add long-options.h.
74275         * modules/lstat (EXTRA_DIST): Add lstat.h.
74276         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74277         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74278         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74279         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74280         * modules/memxor (EXTRA_DIST): Add memxor.h.
74281         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74282         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74283         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74284         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74285         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74286         * modules/physmem (EXTRA_DIST): Add physmem.h.
74287         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74288         * modules/posixver (EXTRA_DIST): Add posixver.h.
74289         * modules/quote (EXTRA_DIST): Add quote.h.
74290         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74291         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74292         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74293         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74294         regex_internal.h regexec.c.
74295         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74296         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74297         * modules/same (EXTRA_DIST): Add same.h.
74298         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74299         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74300         * modules/savedir (EXTRA_DIST): Add savedir.h.
74301         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74302         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74303         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74304         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74305         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74306         * modules/strdup (EXTRA_DIST): Add strdup.h.
74307         * modules/strftime (EXTRA_DIST): Add strftime.h.
74308         * modules/strndup (EXTRA_DIST): Add strndup.h.
74309         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74310         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74311         * modules/time_r (EXTRA_DIST): Add time_r.h.
74312         * modules/timespec (EXTRA_DIST): Add timespec.h.
74313         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74314         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74315         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74316         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74317         * modules/userspec (EXTRA_DIST): Add userspec.h.
74318         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74319         * modules/utimens (EXTRA_DIST): Add utimens.h.
74320         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74321         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74322         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74323         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74324         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74325         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74326         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74327         * modules/yesno (EXTRA_DIST): Add yesno.h.
74328
74329 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74330
74331         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74332
74333         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74334         * m4/dev-ino.m4, same-inode.m4: Remove.
74335
74336         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74337         * m4/acl.m4 (AC_FUNC_ACL):
74338         * m4/backupfile.m4 (gl_BACKUPFILE):
74339         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74340         * m4/canon-host.m4 (gl_CANON_HOST):
74341         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74342         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74343         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74344         * m4/cloexec.m4 (gl_CLOEXEC):
74345         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74346         * m4/closeout.m4 (gl_CLOSEOUT):
74347         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74348         * m4/dirname.m4 (gl_DIRNAME):
74349         * m4/exclude.m4 (gl_EXCLUDE):
74350         * m4/exitfail.m4 (gl_EXITFAIL):
74351         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74352         * m4/file-type.m4 (gl_FILE_TYPE):
74353         * m4/filemode.m4 (gl_FILEMODE):
74354         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74355         * m4/fpending.m4 (gl_FUNC_FPENDING):
74356         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74357         * m4/fts.m4 (gl_FUNC_FTS):
74358         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74359         * m4/getdate.m4 (gl_GETDATE):
74360         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74361         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74362         * m4/getpass.m4 (gl_FUNC_GETPASS):
74363         * m4/gettime.m4 (gl_GETTIME):
74364         * m4/getugroups.m4 (gl_GETUGROUPS):
74365         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74366         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74367         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74368         * m4/hash.m4 (gl_HASH):
74369         * m4/idcache.m4 (gl_IDCACHE):
74370         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74371         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74372         * m4/long-options.m4 (gl_LONG_OPTIONS):
74373         * m4/lstat.m4 (gl_FUNC_LSTAT):
74374         * m4/md5.m4 (gl_MD5):
74375         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74376         * m4/memcoll.m4 (gl_MEMCOLL):
74377         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74378         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74379         * m4/memxor.m4 (gl_MEMXOR):
74380         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74381         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74382         * m4/modechange.m4 (gl_MODECHANGE):
74383         * m4/mountlist.m4 (gl_MOUNTLIST):
74384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74385         * m4/openat.m4 (gl_FUNC_OPENAT):
74386         * m4/pathmax.m4 (gl_PATHMAX):
74387         * m4/physmem.m4 (gl_PHYSMEM):
74388         * m4/posixtm.m4 (gl_POSIXTM):
74389         * m4/posixver.m4 (gl_POSIXVER):
74390         * m4/quote.m4 (gl_QUOTE):
74391         * m4/quotearg.m4 (gl_QUOTEARG):
74392         * m4/readtokens.m4 (gl_READTOKENS):
74393         * m4/readutmp.m4 (gl_READUTMP):
74394         * m4/regex.m4 (gl_REGEX):
74395         * m4/safe-read.m4 (gl_SAFE_READ):
74396         * m4/safe-write.m4 (gl_SAFE_WRITE):
74397         * m4/same.m4 (gl_SAME):
74398         * m4/save-cwd.m4 (gl_SAVE_CWD):
74399         * m4/savedir.m4 (gl_SAVEDIR):
74400         * m4/settime.m4 (gl_SETTIME):
74401         * m4/sha1.m4 (gl_SHA1):
74402         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74403         * m4/stat-macros.m4 (gl_STAT_MACROS):
74404         * m4/stat-time.m4 (gl_STAT_TIME):
74405         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74406         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74407         * m4/strdup.m4 (gl_FUNC_STRDUP):
74408         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74409         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74410         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74411         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74412         * m4/time_r.m4 (gl_TIME_R):
74413         * m4/timespec.m4 (gl_TIMESPEC):
74414         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74415         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74416         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74417         * m4/userspec.m4 (gl_USERSPEC):
74418         * m4/utimecmp.m4 (gl_UTIMECMP):
74419         * m4/utimens.m4 (gl_UTIMENS):
74420         * m4/xalloc.m4 (gl_XALLOC):
74421         * m4/xgetcwd.m4 (gl_XGETCWD):
74422         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74423         * m4/xreadlink.m4 (gl_XREADLINK):
74424         * m4/xstrtod.m4 (gl_XSTRTOD):
74425         * m4/yesno.m4 (gl_YESNO):
74426         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74427         to get the necessary .h files and whatnot.
74428
74429 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74430             Bruno Haible  <bruno@clisp.org>
74431
74432         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74433         /bin/sh understanding of '!' conditional negation.
74434
74435 2006-08-21  Jim Meyering  <jim@meyering.net>
74436
74437         * modules/openat (Depends-on): Really alphabetize.
74438
74439         * modules/acl (Depends-on): Add error and quote.
74440
74441         * check-module (find_included_lib_files): Add at-func.c to the
74442         ok-to-include-more-than-once white list.
74443
74444         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74445
74446 2006-08-21  Bruno Haible  <bruno@clisp.org>
74447
74448         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74449         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74450         Reported by Martin Lambers <marlam@marlam.de>.
74451
74452 2006-08-21  Bruno Haible  <bruno@clisp.org>
74453
74454         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74455         specify an installation location, don't emit a noinst_LIBRARIES or
74456         noinst_LTLIBRARIES assignment.
74457
74458 2006-08-21  Bruno Haible  <bruno@clisp.org>
74459
74460         BeOS portability.
74461         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74462         BeOS has mbrtowc() but no <wctype.h>.
74463
74464 2006-08-21  Bruno Haible  <bruno@clisp.org>
74465
74466         BeOS portability.
74467         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74468         exist.
74469
74470 2006-08-21  Bruno Haible  <bruno@clisp.org>
74471
74472         BeOS portability.
74473         * lib/mbchar.h: Include <wctype.h> only if it exists.
74474
74475 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74476
74477         Remove files that are no longer needed by their respective modules.
74478         * m4/obstack.m4: Remove.
74479         * m4/strerror_r.m4: Remove.
74480         * m4/uint32_t.m4: Remove.
74481         * m4/uintptr_t.m4: Remove.
74482         * m4/ullong_max.m4: Remove.
74483         * m4/xstrtoimax.m4: Remove.
74484         * m4/xstrtoumax.m4: Remove.
74485
74486         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74487         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74488         dependencies now capture this.
74489
74490         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74491         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74492         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74493         * m4/human.m4 (gl_HUMAN): Likewise.
74494         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74495         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74496
74497         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74498
74499         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74500         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74501         stdint.
74502         * m4/human.m4 (gl_HUMAN): Likewise.
74503         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74504         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74505         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74506         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74507         * m4/xstrtol (gl_XSTRTOL): Likewise.
74508
74509         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74510         AC_TYPE_LONG_LONG_INT.
74511         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74512         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74513         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74514         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74515
74516         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74517         on stdbool.
74518
74519         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74520         (gl_PREREQ_XSTRTOUL): Remove.
74521
74522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74523
74524         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74525         mode.
74526
74527 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74528
74529         Add and change modules to make it easier for coreutils to use
74530         gnulib-tool.
74531         * modules/backupfile (Files): Remove m4/d-ino.m4.
74532         (Depends-on): Add d-ino.
74533         * modules/cycle-check (Depends-on): Add stdint.
74534         (lib_SOURCES): Add cycle-check.h.
74535         * modules/d-ino: New module.
74536         * modules/d-type: New module.
74537         * modules/error (Files): Remove m4/strerror_r.m4.
74538         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74539         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74540         m4/inttypes_h.m4, m4/uintmax_t.m4.
74541         (Depends-on): Add stdint.
74542         (lib_SOURCES): Add fsusage.h.
74543         * modules/getcwd (Files): Remove d-ino.m4.
74544         (Depends-on): Add d-ino.
74545         * modules/getndelim2 (Depends-on): Add stdint.
74546         * modules/glob (Files): Remove m4/d-type.m4.
74547         (Depends-on): Add d-type.
74548         * modules/host-os: New module.
74549         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74550         m4/inttypes_h.m4, m4/uintmax_t.m4.
74551         * Depends-on: Add stdint.
74552         (lib_SOURCES): Add human.h.
74553         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74554         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74555         m4/uintmax_t.m4, m4/ulonglong.m4.
74556         (Depends-on): Add stdint.
74557         (EXTRA_DIST): Add inttostr.h.
74558         * modules/lchmod: New module.
74559         * modules/link-follow: New module.
74560         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74561         (Depends-on): Add lchmod.
74562         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74563         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74564         (Depends-on): Add stdint.
74565         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74566         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74567         (Depends-on): Add stdint.
74568         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74569         * modules/perl: New module.
74570         * modules/regex (Depends-on): Add stdint.
74571         * modules/rmdir-errno: New module.
74572         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74573         m4/intmax_t.m4.
74574         (Depends-on): Add stdint.
74575         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74576         m4/uintmax_t.m4.
74577         (Depends-on): Add stdint.
74578         * modules/unlink-busy: New module.
74579         * modules/utimecmp (Depends-on): Add stdint.
74580         * modules/uptime: New module.
74581         * modules/winsz-ioctl: New module.
74582         * modules/winsz-termios: New module.
74583         * modules/xnanosleep (Depends-on): Add nanosleep.
74584         * modules/ullong_max: Remove.
74585         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74586         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74587         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74588         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74589         (Depends-on): Add inttypes.
74590         (lib_SOURCES): Add xstrtol.h.
74591         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74592         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74593         * MODULES.html.sh: Move 'assert' into the assert section.
74594         Move 'dummy' into the linking section.
74595         Remove ullong_max.
74596         Add section for compatibility checks for POSIX:2001 functions,
74597         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74598         winsz-ioctl, and winsz-termios into it.
74599         Add lchmod.
74600         Add top-level Misc section and put host-os, perl, and uptime
74601         into it.
74602
74603 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74606         now assume the stdint module.  Do not include inttypes.h.
74607         * lib/fsusage.h: Likewise.
74608         * lib/getndelim2.c: Likewise.
74609         * lib/human.h: Likewise.
74610         * lib/inttostr.h: Likewise.
74611         * lib/obstack.c: Likewise.
74612         * lib/regex_internal.h: Likewise.
74613         * lib/tempname.c: Likewise.
74614         * lib/utimecmp.c: Likewise.
74615         * lib/xstrtol.h: Likewise.
74616
74617         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74618
74619         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74620         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74621         * lib/xtime.h: Likewise.
74622
74623 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74624
74625         * modules/openat (Files): Add lib/fchmodat.c.
74626         Fixes problem reported by Jay Youngman.
74627
74628 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74629
74630         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74631         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74632
74633 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74634             Bruno Haible  <bruno@clisp.org>
74635
74636         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74637         and is a script that invokes bison. Tighten the code. Add comments.
74638
74639 2006-08-18  Jim Meyering  <jim@meyering.net>
74640
74641         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74642         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74643         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74644         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74645
74646 2006-08-18  Bruno Haible  <bruno@clisp.org>
74647
74648         * modules/bison-i18n: New file.
74649         * MODULES.html.sh (Internationalization functions): Add it.
74650
74651 2006-08-18  Bruno Haible  <bruno@clisp.org>
74652
74653         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74654         sys/statvfs.h. When getmntinfo was found, check its declaration and
74655         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74656
74657 2006-08-18  Bruno Haible  <bruno@clisp.org>
74658
74659         * m4/bison-i18n.m4: New file, from bison.
74660
74661 2006-08-18  Bruno Haible  <bruno@clisp.org>
74662
74663         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74664         (ME_DUMMY): Treat "kernfs" as a dummy.
74665         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74666
74667 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         Update from coreutils.
74670
74671         2006-08-15  Jim Meyering  <jim@meyering.net>
74672
74673         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74674
74675         2006-01-17  Jim Meyering  <jim@meyering.net>
74676
74677         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74678
74679         2006-01-11  Jim Meyering  <jim@meyering.net>
74680
74681         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74682         Check for the lchmod function.
74683
74684 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         Update from coreutils.
74687
74688         * lib/__fpending.h: Add copyright notice.
74689         * lib/fprintftime.h: Likewise.
74690         * lib/savedir.c: Use (C) in copyright notice.
74691         * lib/savedir.h: Likewise.
74692
74693         2006-08-15  Jim Meyering  <jim@meyering.net>
74694
74695         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74696         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74697         in support of the EXPECTED_ERRNO macro.
74698         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74699         definitions.  Instead, define the appropriate symbols and include
74700         "at-func.c".
74701         * lib/mkdirat.c (mkdirat): Likewise.
74702         * lib/fchmodat.c (fchmodat): Likewise.
74703         (ENOSYS): Remove definition.
74704         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74705         it.  Don't include "unistd--.h" -- it wasn't ever used.
74706
74707         2006-01-17  Jim Meyering  <jim@meyering.net>
74708
74709         Rewrite fts.c not to change the current working directory,
74710         by using openat, fstatat, fdopendir, etc..
74711
74712         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74713         (HAVE_OPENAT_SUPPORT): Define.
74714         [_LIBC] (fchdir): Don't undef or define; no longer used.
74715         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74716         Now, this `function' always succeeds, and consumes its file descriptor
74717         parameter -- so callers must not close such FDs.  Update callers.
74718         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74719         (diropen): Add parameter, SP.  Adjust all callers.
74720         Implement using diropen_fd, rather than open.
74721         (fts_open): Initialize new member, fts_cwd_fd.
74722         Remove fts_rft-setting code.
74723         (fts_close): Close fts_cwd_fd, if necessary.
74724         (__opendir2): Define in terms of opendir or opendirat,
74725         depending on whether the FST_NOCHDIR flag is set.
74726         (fts_build): Since fts_safe_changedir consumes its FD, and since
74727         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74728         and close the dup'd file descriptor upon failure.
74729         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74730         (fts_safe_changedir): Tweak semantics to reflect that this function
74731         now calls cwd_advance_fd and hence consumes its FD argument.
74732         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74733         [struct FTS] (fts_rft): Remove now-unused member.
74734         [struct FTS] (fts_cycle.state): Improve comment.
74735
74736         * lib/openat.c (openat_needs_fchdir): New function.
74737         * lib/openat.h (openat_needs_fchdir): Declare it.
74738
74739 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74742         Problem and fix reported by Pádraig Brady in
74743         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74744
74745 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74746
74747         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74748
74749 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * lib/memcoll.c (memcoll): Optimize for the common case where the
74752         arguments are bytewise equal.
74753
74754 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * doc/regexprops-generic.texi: Add a copyright notice.
74757
74758 2006-08-15  Bruno Haible  <bruno@clisp.org>
74759
74760         * modules/tmpdir (License): Change to LGPL.
74761
74762 2006-08-15  Bruno Haible  <bruno@clisp.org>
74763
74764         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74765         module.
74766
74767 2006-08-14  Simon Josefsson  <jas@extundo.com>
74768
74769         * config/srclist.txt: Add gnupload.
74770
74771 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         Change copyright notice from LGPL 2 to GPL 2, since that's the
74774         standard form used in the gnulib repository.
74775         * tests/test-lock.c: Likewise.
74776         * tests/test-stdint.c: Likewise.
74777         * tests/test-tls.c: Likewise.
74778
74779         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74780         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74781         Add copyright notice.
74782
74783         * check-module: Add copyright notice.  Output a copyright
74784         notice if "--version" is specified.
74785         * modules/COPYING: New file.
74786         * tests/test-getaddrinfo.c: Add copyright notice.
74787         * tests/test-verify.c: Likewise.
74788
74789 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         Change copyright notice from LGPL 2 to GPL 2, since that's the
74792         standard form used in the gnulib repository.
74793         * lib/lock.c: LGPL -> GPL.
74794         * lib/lock.h: Likewise.
74795         * lib/strnlen1.c: Likewise.
74796         * lib/strnlen1.h: Likewise.
74797         * lib/tls.c: Likewise.
74798         * lib/tls.h: Likewise.
74799         * lib/tmpdir.c: Likewise.
74800
74801         * lib/TODO: Remove; this belongs only in coreutils.
74802
74803 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74804
74805         Add copyright notices to long-enough files that lack them, since
74806         otherwise the files aren't clearly free.  Use the same notice that
74807         getdate.texi already uses.
74808         * doc/alloca-opt.texi: Add copyright notice.
74809         * doc/alloca.texi: Likewise.
74810         * doc/ctime.texi: Likewise.
74811         * doc/functions.texi: Likewise.
74812         * doc/gcd.texi: Likewise.
74813         * doc/gnulib-tool.texi: Likewise.
74814         * doc/inet_ntoa.texi: Likewise.
74815         * doc/visibility.texi: Likewise.
74816
74817         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74818         * doc/quote.texi: Add copyright notice.
74819
74820         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74821         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74822         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74823         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74824         is now obsolete, and give a pointer to the Sun list.
74825         Add copyright notice.
74826
74827 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74828
74829         * config/srclistvars.sh: Add copyright notice.
74830
74831 2006-08-14  Eric Blake  <ebb9@byu.net>
74832
74833         Import the following change from libc:
74834
74835         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74836
74837         Upstream bug 2997.
74838         * lib/misc/error.c: Add space between program name and message if file
74839         name is missing.
74840
74841 2006-08-12  Karl Berry  <karl@gnu.org>
74842
74843         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74844         remove, these originate in gnulib now.
74845
74846 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74847
74848         * doc/Makefile (standards.info standards.html standards.dvi):
74849         Also depend on make-stds.texi.
74850
74851 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74852
74853         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74854         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74855
74856         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74857         in wchar_t.  Problem reported by Eric Blake.
74858
74859         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74860         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74861         Also, help the compiler to keep LEN in a register.
74862
74863 2006-08-11  Eric Blake  <ebb9@byu.net>
74864
74865         * users.txt: Sort.  Add tar.
74866
74867 2006-08-11  Bruno Haible  <bruno@clisp.org>
74868
74869         * users.txt: New file.
74870
74871 2006-08-11  Bruno Haible  <bruno@clisp.org>
74872
74873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74874         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74875
74876 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * modules/snprintf (Depends-on): Remove minmax.
74879         (Maintainer): Add self and Bruno.
74880
74881 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74884         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74885         (EOVERFLOW): Define if the system does not.
74886         Do not include "minmax.h"; it wasn't used.
74887         (snprintf): Don't assume size_t promotes to an unsigned type.
74888         Fix bug when generated string was too long for the buffer: the
74889         buffer's contents are supposed to be the initial prefix of the
74890         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74891         exceeds INT_MAX; do the check ourselves.
74892
74893         Import the following changes from libc:
74894
74895         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74896
74897         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74898         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74899         set wc to the byte which couldn't be converted.
74900         (re_string_reconstruct): Don't clear valid_raw_len before calling
74901         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74902         tip_context using re_string_context_at.
74903
74904         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74905
74906         * lib/posix/regex.h: g++ still cannot handled [restrict].
74907
74908         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74909
74910         * lib/posix/regex.h: Remove special handling for VMS.
74911
74912 2006-08-10  Jim Meyering  <jim@meyering.net>
74913
74914         * modules/same-inode: New module.
74915         * modules/dev-ino: New module.
74916         * modules/cycle-check: Depend on these modules, rather than simply
74917         including their .h files.
74918         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74919         required via m4/cycle-check.m4.
74920         * modules/same: Depend on new same-inode module, rather than
74921         including same-inode.h.
74922         * modules/chdir-safer: New file.
74923
74924         * modules/chown (Depends-on): Add stat-macros.
74925
74926 2006-08-10  Jim Meyering  <jim@meyering.net>
74927
74928         * m4/cycle-check.m4: New file.
74929         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74930         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74931
74932 2006-08-10  Eric Blake  <ebb9@byu.net>
74933
74934         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74935         in from original proposal.
74936
74937 2006-08-10  Eric Blake  <ebb9@byu.net>
74938         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74939
74940         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74941         namespace.
74942
74943 2006-08-10  Bruno Haible  <bruno@clisp.org>
74944
74945         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74946         as well.
74947
74948 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         Sync from coreutils.
74951
74952         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74953
74954         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74955         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74956
74957 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74958
74959         * modules/restrict: Remove; no longer needed now that we assume
74960         Autoconf 2.59 or later.
74961         * MODULES.html.sh: Remove 'restrict'.
74962         * modules/argp (Depends-on): Remove 'restrict'.
74963         * modules/base64 (Depends-on): Likewise.
74964         * modules/gc (Depends-on): Likewise.
74965         * modules/getaddrinfo (Depends-on): Likewise.
74966         * modules/glob (Depends-on): Likewise.
74967         * modules/inet_ntop (Depends-on): Likewise.
74968         * modules/inet_pton (Depends-on): Likewise.
74969         * modules/memxor (Depends-on): Likewise.
74970         * modules/regex (Depends-on): Likewise.
74971         * modules/strtok_r (Depends-on): Likewise.
74972         * modules/time_r (Depends-on): Likewise.
74973
74974 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74977         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74978         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74979         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74980         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74981         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74982         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74983         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74984
74985         Merge from coreutils.
74986         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74987         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74988         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74989         * m4/time_r.m4 (gl_TIME_R): Likewise.
74990
74991 2006-08-09  Karl Berry  <karl@gnu.org>
74992
74993         * config/srclist.txt: no more gettext-tools, per Bruno.
74994
74995 2006-08-08  Eric Blake  <ebb9@byu.net>
74996
74997         * modules/verror: New module.
74998         * MODULES.html.sh: Document it.
74999
75000 2006-08-08  Eric Blake  <ebb9@byu.net>
75001
75002         * lib/verror.h, lib/verror.c: New files.
75003
75004 2006-08-08  Eric Blake  <ebb9@byu.net>
75005
75006         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75007         verror_at_line output complies with GNU Coding Standards even when
75008         file is NULL.
75009
75010 2006-08-07  Bruno Haible  <bruno@clisp.org>
75011
75012         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75013         versions of AIX.
75014         Reported by Ralf Wildenhues.
75015
75016 2006-08-07  Bruno Haible  <bruno@clisp.org>
75017
75018         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75019         in an AC_DEFUN. Needed so that the autoconf snippets can use
75020         AC_REQUIRE.
75021
75022 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75023
75024         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75025         Initialize pkgdata_DATA.
75026         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75027         overriding it.
75028
75029 2006-08-06  Eric Blake  <ebb9@byu.net>
75030
75031         * lib/error.h: Fold in some upstream changes from glibc.
75032         * lib/error.c: Likewise.
75033
75034 2006-08-04  Bruno Haible  <bruno@clisp.org>
75035
75036         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75037         Make the mostlyclean-local rule depend on mostlyclean-generic.
75038         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75039
75040 2006-07-31  Bruno Haible  <bruno@clisp.org>
75041
75042         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75043         <stdlib.h>, <string.h>.
75044
75045 2006-07-30  Bruno Haible  <bruno@clisp.org>
75046
75047         * modules/readlink (License): Change to LGPL.
75048
75049 2006-07-30  Bruno Haible  <bruno@clisp.org>
75050
75051         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75052         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75053         set PKGDATADIR to point to it.
75054
75055 2006-07-30  Bruno Haible  <bruno@clisp.org>
75056
75057         * modules/csharpexec (configure.ac): Comment out macro invocation.
75058         * modules/javaexec (configure.ac): Likewise.
75059         * modules/javacomp-script (configure.ac): Likewise.
75060
75061         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75062
75063 2006-07-30  Bruno Haible  <bruno@clisp.org>
75064
75065         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75066         linked-list.
75067
75068 2006-07-30  Bruno Haible  <bruno@clisp.org>
75069
75070         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75071
75072 2006-07-30  Bruno Haible  <bruno@clisp.org>
75073
75074         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75075         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75076         get removed.
75077
75078 2006-07-29  Bruno Haible  <bruno@clisp.org>
75079
75080         Make it possible for gnulib-tool to work with locally modified or
75081         augmented gnulib repositories.
75082         * gnulib-tool (func_usage): Document --local-dir option.
75083         (local_gnulib_dir): New variable.
75084         Handle --local-dir option.
75085         (func_lookup_file): New function.
75086         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75087         (func_get_description, func_get_filelist, func_get_description,
75088         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75089         func_get_automake_snippet, func_get_include_directive,
75090         func_get_license, func_get_maintainer): Use func_lookup_file.
75091         (func_import, func_create_testdir): Use func_lookup_file.
75092
75093 2006-07-29  Bruno Haible  <bruno@clisp.org>
75094
75095         * modules/setenv (Depends-on): Add unistd.
75096
75097 2006-07-29  Bruno Haible  <bruno@clisp.org>
75098
75099         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75100
75101 2006-07-29  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75104
75105 2006-07-29  Bruno Haible  <bruno@clisp.org>
75106
75107         * gnulib-tool (import, update): If there is no Makefile.am, look at
75108         aclocal.m4, instead of bailing out.
75109
75110 2006-07-29  Bruno Haible  <bruno@clisp.org>
75111
75112         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75113         Categorize the options by when they are useful.
75114
75115 2006-07-29  Bruno Haible  <bruno@clisp.org>
75116
75117         * gnulib-tool (func_usage): Document option --no-libtool.
75118         Handle option --no-libtool.
75119         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75120         for changed semantics of $libtool variable.
75121         (func_import): Likewise. If libtool is not used, show this through
75122         an option --no-libtool.
75123         (func_create_testdir): Update.
75124
75125 2006-07-29  Bruno Haible  <bruno@clisp.org>
75126
75127         * gnulib-tool (func_import): Extend error message about missing
75128         --doc-base.
75129
75130 2006-07-29  Bruno Haible  <bruno@clisp.org>
75131
75132         * gnulib-tool (func_import): Don't create the $docbase directory if
75133         there is no file to store there.
75134
75135 2006-07-29  Bruno Haible  <bruno@clisp.org>
75136
75137         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75138         relevant, look for configure.ac there, not in the current directory.
75139         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75140
75141 2006-07-29  Bruno Haible  <bruno@clisp.org>
75142
75143         * gnulib-tool (SORT): New variable.
75144         (func_usage): Undocument --assume-autoconf option.
75145         Remove --assume-autoconf option handling.
75146         (autoconf_minversion): Determine from the contents of configure.ac.
75147         (func_import): Remove autoconf_minversion handling.
75148         Suggested by Eric Blake.
75149
75150 2006-07-29  Bruno Haible  <bruno@clisp.org>
75151
75152         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75153
75154 2006-07-29  Bruno Haible  <bruno@clisp.org>
75155
75156         * config/srclist.txt (*setenv.[ch]): Remove rules.
75157
75158 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75159
75160         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75161
75162 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75163
75164         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75165         arpa/inet.h.
75166
75167 2006-07-28  Simon Josefsson  <jas@extundo.com>
75168
75169         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75170         * modules/inet_pton (Depends-on): Likewise.
75171
75172 2006-07-28  Simon Josefsson  <jas@extundo.com>
75173
75174         * m4/netinet_in_h.m4: New file.
75175
75176 2006-07-28  Simon Josefsson  <jas@extundo.com>
75177
75178         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75179         #include's.
75180
75181 2006-07-28  Simon Josefsson  <jas@extundo.com>
75182
75183         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75184         #include's.
75185
75186 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75187
75188         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75189         setgid on directories only if they set these bits.
75190         * lib/modechange.h: Remove obsolete comment about masks.
75191
75192 2006-07-28  Eric Blake  <ebb9@byu.net>
75193
75194         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75195         macro expansion.
75196
75197 2006-07-28  Bruno Haible  <bruno@clisp.org>
75198
75199         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75200
75201 2006-07-28  Bruno Haible  <bruno@clisp.org>
75202
75203         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75204
75205 2006-07-28  Bruno Haible  <bruno@clisp.org>
75206
75207         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75208         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75209         Define fallbacks.
75210         Avoids link error on FreeBSD 4.x.
75211         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75212
75213         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75214         encoding.
75215         * lib/mbswidth.c (iswcntrl): Likewise.
75216
75217 2006-07-27  Bruno Haible  <bruno@clisp.org>
75218
75219         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75220         test.
75221
75222 2006-07-27  Bruno Haible  <bruno@clisp.org>
75223
75224         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75225         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75226         defined.
75227
75228 2006-07-26  Eric Blake  <ebb9@byu.net>
75229
75230         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75231
75232 2006-07-26  Eric Blake  <ebb9@byu.net>
75233
75234         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75235         like mingw that lack mkstemp.
75236         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75237         avoid compilation warning on mingw.
75238
75239 2006-07-26  Bruno Haible  <bruno@clisp.org>
75240
75241         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75242         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75243         INT_FAST*_MIN, INTPTR_MIN.
75244
75245 2006-07-25  Bruno Haible  <bruno@clisp.org>
75246
75247         * modules/version-etc (Depends-on): Add stdarg.
75248
75249 2006-07-25  Bruno Haible  <bruno@clisp.org>
75250
75251         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75252         complex commands.
75253
75254 2006-07-25  Bruno Haible  <bruno@clisp.org>
75255
75256         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75257         defined in <stdarg.h> or config.h.
75258
75259 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75260
75261         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75262         (gl_STDIO_SAFER): Remove.
75263
75264 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75265
75266         * MODULES.html.sh (File stream based Input/Output):
75267         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75268         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75269         * modules/fopen-safer, modules/tmpfile-safer: New files.
75270         * modules/stdio-safer: Remove.
75271
75272 2006-07-24  Bruno Haible  <bruno@clisp.org>
75273
75274         * modules/tmpdir: New file.
75275         * MODULES.html.sh (File system functions): Add it.
75276
75277 2006-07-24  Bruno Haible  <bruno@clisp.org>
75278
75279         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75280         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75281
75282 2006-07-24  Bruno Haible  <bruno@clisp.org>
75283
75284         * modules/clean-temp: New file.
75285
75286 2006-07-24  Bruno Haible  <bruno@clisp.org>
75287
75288         * m4/tmpdir.m4: New file, from GNU gettext.
75289
75290 2006-07-24  Bruno Haible  <bruno@clisp.org>
75291
75292         * lib/tmpdir.h: New file, from GNU gettext.
75293         * lib/tmpdir.c: New file, from GNU gettext.
75294
75295 2006-07-24  Bruno Haible  <bruno@clisp.org>
75296
75297         * lib/clean-temp.h: New file, from GNU gettext.
75298         * lib/clean-temp.c: New file, from GNU gettext.
75299
75300 2006-07-23  Eric Blake  <ebb9@byu.net>
75301
75302         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75303         (Depends-on): Add binary-io.
75304
75305 2006-07-23  Eric Blake  <ebb9@byu.net>
75306
75307         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75308
75309 2006-07-23  Eric Blake  <ebb9@byu.net>
75310
75311         * lib/tmpfile-safer.c: New file.
75312         * lib/stdio-safer.h (fopen_safer): Add prototype.
75313         * lib/stdio--.h (tmpfile): Make safer.
75314
75315 2006-07-23  Bruno Haible  <bruno@clisp.org>
75316
75317         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75318         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75319         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75320         gl_linked_remove_at): Use it.
75321
75322 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75323         and Simon Josefsson <jas@extundo.com>
75324
75325         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75326
75327         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75328
75329 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * modules/close-stream: New file.
75332         * modules/closeout (Description): Make it clear that it exits
75333         with a diagnostic on error.
75334         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75335         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75336
75337 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * m4/close-stream.m4: New file.
75340
75341 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * lib/close-stream.c, lib/close-stream.h: New files.
75344
75345 2006-07-22  Bruno Haible  <bruno@clisp.org>
75346
75347         Merge from GNU gettext 0.15.
75348
75349         2006-05-01  Bruno Haible  <bruno@clisp.org>
75350
75351                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75352
75353         2006-07-22  Bruno Haible  <bruno@clisp.org>
75354
75355                 * modules/javaversion: New file.
75356                 * MODULES.html.sh (Java): Add javaversion.
75357
75358         2006-03-12  Bruno Haible  <bruno@clisp.org>
75359
75360                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75361
75362         2005-12-04  Bruno Haible  <bruno@clisp.org>
75363
75364                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75365                 (untested).
75366
75367         2006-06-21  Bruno Haible  <bruno@clisp.org>
75368
75369                 Avoid warnings from recent versions of mcs.
75370                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75371                 -o, -L, -r any more. Use options documented since mcs-1.0
75372                 instead. Similarly for -g.
75373
75374         2005-12-04  Bruno Haible  <bruno@clisp.org>
75375
75376                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75377                 .resources, not .resource.
75378
75379         2005-07-09  Bruno Haible  <bruno@clisp.org>
75380
75381                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75382                 add a .dll suffix.
75383                 Reported by Mark Junker <mjscod@gmx.de>.
75384
75385         2006-07-22  Bruno Haible  <bruno@clisp.org>
75386
75387                 * modules/gettext: Upgrade to gettext-0.15.
75388                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75389                 m4/visibility.m4.
75390                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75391
75392 2006-07-22  Bruno Haible  <bruno@clisp.org>
75393
75394         Merge from GNU gettext 0.15.
75395
75396         2006-03-25  Bruno Haible  <bruno@clisp.org>
75397
75398                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75399
75400         2006-07-21  Bruno Haible  <bruno@clisp.org>
75401
75402                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75403                 "1.1".
75404
75405         2006-05-09  Bruno Haible  <bruno@clisp.org>
75406
75407                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75408                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75409                 for the conftestver execution.
75410
75411         2006-05-01  Bruno Haible  <bruno@clisp.org>
75412
75413                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75414                 optional target-version argument. Verify that the compiler
75415                 groks source of the specified source-version, or add -source
75416                 option as necessary. Verify that the compiler produces
75417                 bytecode in the specified target-version, or add -target and
75418                 -source options as necessary. Make the result of the test
75419                 available as variable CONF_JAVAC. Also log error output in
75420                 config.log.
75421
75422         2006-03-11  Bruno Haible  <bruno@clisp.org>
75423
75424                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75425
75426         2006-05-09  Bruno Haible  <bruno@clisp.org>
75427
75428                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75429                 CLASSPATH_SEPARATOR to a semicolon.
75430
75431         2006-03-12  Bruno Haible  <bruno@clisp.org>
75432
75433                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75434                 available as variable CONF_JAVA, for subsequent autoconf
75435                 tests. Also log error output in config.log.
75436
75437         2006-07-19  Bruno Haible  <bruno@clisp.org>
75438
75439                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75440                 that getline works on glibc2 systems. Needed to avoid trouble
75441                 in relocatable.c.
75442                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75443
75444         2005-12-04  Bruno Haible  <bruno@clisp.org>
75445
75446                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75447                 launcher (untested).
75448
75449         2005-12-04  Bruno Haible  <bruno@clisp.org>
75450
75451                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75452
75453         2006-07-22  Bruno Haible  <bruno@clisp.org>
75454
75455                 * gettext.m4: Update from GNU gettext-0.15.
75456                 * nls.m4: Likewise.
75457                 * po.m4: Likewise.
75458                 * inttypes-pri.m4: Likewise.
75459                 * inttypes-h.m4: Renamed from inttypes.m4.
75460                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75461
75462 2006-07-22  Bruno Haible  <bruno@clisp.org>
75463
75464         Merge from GNU gettext 0.15.
75465
75466         2005-07-05  Bruno Haible  <bruno@clisp.org>
75467
75468                 * printf-args.c (printf_fetchargs): Work around broken
75469                 definition of wint_t on mingw.
75470
75471         2005-02-12  Bruno Haible  <bruno@clisp.org>
75472
75473                 * xallocsa.h: Add extern "C" for C++.
75474
75475         2006-05-17  Bruno Haible  <bruno@clisp.org>
75476
75477                 Cygwin portability.
75478                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75479
75480         2006-04-30  Bruno Haible  <bruno@clisp.org>
75481
75482                 * progreloc.c: Include <mach-o/dyld.h> if available.
75483                 (find_executable): Use _NSGetExecutablePath when possible.
75484
75485         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75486
75487                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75488                 function.
75489
75490         2005-12-29  Bruno Haible  <bruno@clisp.org>
75491
75492                 * progreloc.c (set_program_name_and_installdir): Fix
75493                 compilation error.
75494
75495         2005-12-04  Bruno Haible  <bruno@clisp.org>
75496
75497                 Cygwin portability.
75498                 * progreloc.c: Include <windows.h> also on Cygwin.
75499                 (find_executable): Add support for Cygwin.
75500                 (set_program_name_and_installdir): Handle also platforms with
75501                 nonempty EXEEXT.
75502
75503         2006-07-11  Bruno Haible  <bruno@clisp.org>
75504
75505                 * javacomp.c: Fix a comment.
75506                 Reported by Jim Meyering.
75507
75508         2006-04-30  Bruno Haible  <bruno@clisp.org>
75509
75510                 * javacomp.h (compile_java_class): Add source_version,
75511                 target_version arguments.
75512                 * javacomp.c: Rewritten to choose only a compiler that
75513                 respects the specified source_version and target_version.
75514
75515         2006-06-27  Bruno Haible  <bruno@clisp.org>
75516
75517                 Assume correct S_ISDIR macro.
75518                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75519
75520         2006-07-22  Bruno Haible  <bruno@clisp.org>
75521
75522                 * javaversion.h: New file, from GNU gettext.
75523                 * javaversion.c: New file, from GNU gettext.
75524                 * javaversion.java: New file, from GNU gettext.
75525                 * javaversion.class: New file, from GNU gettext.
75526
75527         2006-05-17  Bruno Haible  <bruno@clisp.org>
75528
75529                 Cygwin portability.
75530                 * javaexec.c (execute_java_class): Test for jview program
75531                 also on Cygwin.
75532
75533         2006-04-09  Bruno Haible  <bruno@clisp.org>
75534
75535                 * fatal-signal.c: Don't include string.h.
75536                 (at_fatal_signal): Use a copying loop instead of memcpy.
75537
75538         2005-12-04  Bruno Haible  <bruno@clisp.org>
75539
75540                 * csharpexec.c: Add support for 'clix' launcher (untested).
75541                 (execute_csharp_using_sscli): New function.
75542                 (execute_csharp_program): Call it.
75543
75544         2006-06-21  Bruno Haible  <bruno@clisp.org>
75545
75546                 Avoid warnings from recent versions of mcs.
75547                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75548                 -o, -L, -r any more. Use options documented since mcs-1.0
75549                 instead. Similarly for -g.
75550
75551         2005-07-09  Bruno Haible  <bruno@clisp.org>
75552
75553                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75554                 add a .dll suffix.
75555                 Reported by Mark Junker <mjscod@gmx.de>.
75556
75557         2006-06-17  Bruno Haible  <bruno@clisp.org>
75558
75559                 * config.charset: Update for NetBSD 3.0.
75560
75561         2006-05-17  Bruno Haible  <bruno@clisp.org>
75562
75563                 Cygwin portability.
75564                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75565
75566         2006-05-16  Bruno Haible  <bruno@clisp.org>
75567
75568                 * localcharset.c [CYGWIN]: Include <windows.h>.
75569                 (get_charset_aliases): For Cygwin, return the same CPxxx
75570                 aliases list as under WIN32.
75571                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75572                 the environment variables. Fall back to GetACP().
75573
75574         2006-04-05  Bruno Haible  <bruno@clisp.org>
75575
75576                 * config.charset: Update Juan Manuel Guerrero's address.
75577
75578         2005-02-12  Bruno Haible  <bruno@clisp.org>
75579
75580                 * allocsa.h: Add extern "C" for C++.
75581
75582         2005-02-10  Bruno Haible  <bruno@clisp.org>
75583
75584                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75585                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75586
75587         2006-07-22  Bruno Haible  <bruno@clisp.org>
75588
75589                 * gettext.h: Update to GNU gettext-0.15.
75590
75591 2006-07-22  Bruno Haible  <bruno@clisp.org>
75592
75593         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75594         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75595         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75596
75597 2006-07-21  Eric Blake  <ebb9@byu.net>
75598
75599         * modules/stdlib-safer: New file.
75600         * MODULES.html.sh (File stream based Input/Output): Add
75601         stdlib-safer.
75602
75603 2006-07-21  Eric Blake  <ebb9@byu.net>
75604
75605         * lib/stdlib-safer.h: New file from coreutils, required by
75606         stdlib--.h.
75607
75608 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75611
75612 2006-07-20  Bruno Haible  <bruno@clisp.org>
75613
75614         * gnulib-tool: Recognize new option --assume-autoconf.
75615         (autoconf_minversion): New variable.
75616         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75617
75618 2006-07-20  Bruno Haible  <bruno@clisp.org>
75619
75620         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75621
75622 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75623
75624         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75625         Reindent and repaginate.
75626
75627 2006-07-19  Derek Price  <derek@ximbiot.com>
75628
75629         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75630         Correct grammar.
75631
75632 2006-07-17  Bruno Haible  <bruno@clisp.org>
75633
75634         * modules/list: New file.
75635         * modules/array-list: New file.
75636         * modules/carray-list, modules/carray-list-tests: New files.
75637         * modules/linked-list, modules/linked-list-tests: New files.
75638         * modules/avltree-list, modules/avltree-list-tests: New files.
75639         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75640         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75641         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75642         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75643         * modules/oset: New file.
75644         * modules/array-oset: New file.
75645         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75646         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75647         * tests/test-carray_list.c: New file.
75648         * tests/test-linked_list.c: New file.
75649         * tests/test-avltree_list.c: New file.
75650         * tests/test-rbtree_list.c: New file.
75651         * tests/test-linkedhash_list.c: New file.
75652         * tests/test-avltreehash_list.c: New file.
75653         * tests/test-rbtreehash_list.c: New file.
75654         * tests/test-avltree_oset.c: New file.
75655         * tests/test-rbtree_oset.c: New file.
75656         * MODULES.html.sh (Container data structures): New section.
75657
75658 2006-07-17  Bruno Haible  <bruno@clisp.org>
75659
75660         * m4/gl_list.m4: New file.
75661
75662 2006-07-17  Bruno Haible  <bruno@clisp.org>
75663
75664         * lib/gl_list.h: New file.
75665         * lib/gl_list.c: New file.
75666         * lib/gl_array_list.h: New file.
75667         * lib/gl_array_list.c: New file.
75668         * lib/gl_carray_list.h: New file.
75669         * lib/gl_carray_list.c: New file.
75670         * lib/gl_linked_list.h: New file.
75671         * lib/gl_linked_list.c: New file.
75672         * lib/gl_anylinked_list1.h: New file.
75673         * lib/gl_anylinked_list2.h: New file.
75674         * lib/gl_avltree_list.h: New file.
75675         * lib/gl_avltree_list.c: New file.
75676         * lib/gl_anyavltree_list1.h: New file.
75677         * lib/gl_anyavltree_list2.h: New file.
75678         * lib/gl_rbtree_list.h: New file.
75679         * lib/gl_rbtree_list.c: New file.
75680         * lib/gl_anyrbtree_list1.h: New file.
75681         * lib/gl_anyrbtree_list2.h: New file.
75682         * lib/gl_anytree_list1.h: New file.
75683         * lib/gl_anytree_list2.h: New file.
75684         * lib/gl_linkedhash_list.h: New file.
75685         * lib/gl_linkedhash_list.c: New file.
75686         * lib/gl_anyhash_list1.h: New file.
75687         * lib/gl_anyhash_list2.h: New file.
75688         * lib/gl_avltreehash_list.h: New file.
75689         * lib/gl_avltreehash_list.c: New file.
75690         * lib/gl_rbtreehash_list.h: New file.
75691         * lib/gl_rbtreehash_list.c: New file.
75692         * lib/gl_anytreehash_list1.h: New file.
75693         * lib/gl_anytreehash_list2.h: New file.
75694
75695         * lib/gl_oset.h: New file.
75696         * lib/gl_oset.c: New file.
75697         * lib/gl_array_oset.h: New file.
75698         * lib/gl_array_oset.c: New file.
75699         * lib/gl_avltree_oset.h: New file.
75700         * lib/gl_avltree_oset.c: New file.
75701         * lib/gl_rbtree_oset.h: New file.
75702         * lib/gl_rbtree_oset.c: New file.
75703         * lib/gl_anytree_oset.h: New file.
75704
75705 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * m4/mkancesdirs.m4: New file.
75708         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75709         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75710         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75711         it.
75712
75713 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75714
75715         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75716         * lib/mkancesdirs.h: New files.
75717         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75718         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75719         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75720         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75721         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75722         callers changed.  Revamp internals significantly, by not
75723         attempting to create directories that are temporarily more
75724         permissive than the final results.  Do not attempt to use
75725         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75726         This removes some race conditions, fixes some bugs, and simplifies
75727         things.  Use new dirchownmod function to do owner and mode changes.
75728         * lib/mkdir-p.h: Likewise.
75729         * lib/modechange.c (octal_to_mode): New function.
75730         (struct mode_change): New member mentioned.
75731         (make_node_op_equals): New arg mentioned.  All callers changed.
75732         (mode_compile): Keep track of which mode bits the user has explicitly
75733         mentioned.
75734         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75735         New arg PMODE_BITS, to keep track of which mode bits the user
75736         mentioned; it treats S_ISUID and S_ISGID speciall.
75737         All callers changed.
75738         * lib/modechange.h: Likewise.
75739
75740 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         * MODULES.html.sh: Add mkancestors.
75743         * modules/mkancesdirs: New module.
75744         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75745         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75746         The chdir-safer and afs files are now orphans; I'll remove them
75747         unless someone speaks up.
75748         Add lib/dirchownmod.c, lib/dirchownmod.h.
75749         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75750         Add lchown, mkancesdirs.
75751         (Maintainer): Add self.
75752
75753 2006-07-15  Karl Berry  <karl@gnu.org>
75754
75755         * gnulib-tool: help message wording/arrangement.
75756
75757 2006-07-14  Simon Josefsson  <jas@extundo.com>
75758
75759         * doc/gnulib.texi (Libtool and Windows): New section.
75760
75761 2006-07-12  Simon Josefsson  <jas@extundo.com>
75762
75763         * modules/gendocs (License): Fix license, approved by Karl.
75764
75765 2006-07-12  Eric Blake  <ebb9@byu.net>
75766
75767         * MODULES.html.sh: Add gendocs.
75768
75769 2006-07-11  Eric Blake  <ebb9@byu.net>
75770
75771         * modules/fdl: New module, to install doc/fdl.texi.
75772         * MODULES.html.sh: Add new section for documentation modules.
75773         * gnulib-tool: Avoid space-tab.
75774         (--doc-base): New option, to manage files from doc.
75775
75776 2006-07-11  Eric Blake  <ebb9@byu.net>
75777
75778         * m4/absolute-header.m4: Fix comments to match recent change.
75779
75780 2006-07-11  Eric Blake  <ebb9@byu.net>
75781
75782         * gnulib-tool: List --doc-base before --tests-base.
75783
75784 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75785
75786         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75787
75788 2006-07-11  Bruno Haible  <bruno@clisp.org>
75789
75790         * README: Mention where to put documentation.
75791
75792 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75793
75794         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75795
75796 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75799         to stdint.m4.
75800
75801 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75802
75803         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75804         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75805         "no/such/file/stdint.h" when there is no such file, so that
75806         the resulting C code can be parsed by dodgy compilers.
75807         Problems reported by Bob Proulx.
75808
75809 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75810
75811         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75812         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75813         macros into the GNU _D_EXACT_NAMLEN.
75814         * lib/savedir.c:  Likewise.
75815         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75816
75817 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75818         and Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75821         * m4/savedir.m4:
75822         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75823         macros into the GNU _D_EXACT_NAMLEN.
75824
75825 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75826
75827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75828         around the absolute name, to work around a problem with the HP-UX
75829         11.23 native C compiler, reported by Bob Proulx.
75830
75831 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75832
75833         * doc/maintain.texi, make-stds.texi: Sync from
75834         <http://savannah.gnu.org/projects/gnustandards>.
75835
75836 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75839
75840 2006-07-09  Jim Meyering  <jim@meyering.net>
75841
75842         * m4/glob.m4: Remove a doubled word in a comment.
75843
75844 2006-07-09  Jim Meyering  <jim@meyering.net>
75845
75846         * lib/argp-pv.c: Remove a doubled word in a comment.
75847         * lib/check-version.c (check_version): Likewise.
75848         * lib/javacomp.c (compile_java_class): Likewise.
75849
75850 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75853         for the benefit of people using Autoconf 2.60.  If you want to
75854         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75855         (or m4/onceonly.m4, if pre-2.57) manually.
75856
75857 2006-07-08  Jim Meyering  <jim@meyering.net>
75858
75859         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75860         comment.
75861         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75862         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75863         comment.
75864
75865 2006-07-08  Jim Meyering  <jim@meyering.net>
75866
75867         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75868
75869 2006-07-07  Simon Josefsson  <jas@extundo.com>
75870
75871         * tests/test-crc.c: Change expected crc value, the test vector
75872         were probably computed using the old broken crc.c?
75873
75874 2006-07-06  Simon Josefsson  <jas@extundo.com>
75875
75876         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75877         now the canonical place for the M4 file).
75878
75879         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75880         from the sys_socket dependency now.
75881
75882         * modules/inet_pton (Files): Ditto.
75883
75884         * modules/inet_ntop (Files): Ditto.
75885
75886 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75887
75888         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75889         not gl_PREREQ_GETUSERSHELL.
75890
75891 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75892
75893         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75894         with only one argument, for Autoconf 2.60.
75895         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75896         expand to nothing, so add a shell command to avoid syntax error.
75897         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75898
75899 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75900
75901         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75902
75903 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75904
75905         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75906         no longer needed.  Check for isblank decl.
75907         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75908         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75909         of existence.
75910
75911 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * lib/getloadavg.c: Use __VMS, not VMS.
75914         * lib/getopt.c: Likewise.
75915         * lib/getpagesize.h: Likewise.
75916         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75917         and probably does not work.
75918
75919 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * lib/.cppi-disable: Add wcwidth.
75922         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75923         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75924         (ISGRAPH): Remove.  All uses changed to isgraph.
75925         (FOLD) [!defined _LIBC]: Remove special case.
75926         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75927         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75928         HAVE_ISBLANK.
75929         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75930         case.
75931
75932 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75933
75934         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75935         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75936         brackets.  Other minor changes to suppress some compiler
75937         warnings.
75938
75939 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75940         and Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75943         of invoking obsolescent AC_HEADER_DIRENT macro.
75944         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75945         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75946         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75948         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75949         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75950         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75951         * m4/readdir.m4: Remove; no longer needed.
75952
75953 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75954         and Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75957         Don't worry about this obsolete case any more.
75958         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75959         directories.
75960         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75961         worry about this obsolete case any more.
75962         * lib/fts.c: Likewise.
75963         * lib/getcwd.c: Likewise.
75964         * lib/glob.h: Likewise.
75965         * lib/savedir.c: Likewise.
75966
75967 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75970         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75971         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75972         needed.
75973         All uses removed.
75974         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75975         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75976         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75977         needed.
75978         * m4/getdate.m4 (gl_GETDATE): Likewise.
75979         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75980         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75981         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75982         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75983         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75984         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75985         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75986         needed.
75987
75988 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         * lib/memcasecmp.c: Include <limits.h>.
75991         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75992         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75993         Don't assume isdigit succeeds only on '0' through '9'.
75994
75995 2006-07-05  Eric Blake  <ebb9@byu.net>
75996
75997         * modules/getaddrinfo (Depends-on): Add snprintf.
75998
75999 2006-07-05  Eric Blake  <ebb9@byu.net>
76000
76001         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76002         to avoid 'header present but could not be compiled' on cygwin.
76003
76004 2006-07-05  Eric Blake  <ebb9@byu.net>
76005
76006         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76007         missing from netdb.h.
76008         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76009
76010 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76011
76012         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76013         no longer needed.
76014         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76015         * m4/getdate.m4 (gl_GETDATE): Likewise.
76016         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76017         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76018         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76019         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76020         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76021
76022 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76023
76024         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76025         All uses of is_space replaced by isspace.
76026         * lib/exit.h: Don't talk about STDC_HEADERS.
76027         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76028         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76029         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76030         replaced by isprint etc.
76031         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76032         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76033         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76034         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76035         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76036         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76037
76038 2006-07-05  Bruno Haible  <bruno@clisp.org>
76039
76040         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76041         the function exists, before testing against AIX.
76042         Reported by Martin Lambers <marlam@marlam.de>.
76043
76044 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76047         From Mark D. Baushke.
76048
76049 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76052         to the absolute name, not just one, to bypass Sun C 5.8's
76053         "warning: #include of /usr/include/... may be non-portable".
76054
76055 2006-07-04  Eric Blake  <ebb9@byu.net>
76056
76057         * modules/dirname-tests: New test module.
76058         * tests/test-dirname.c: New file, replacing dirname.c
76059         TEST_DIRNAME section that was recently deleted.
76060
76061 2006-07-04  Bruno Haible  <bruno@clisp.org>
76062
76063         Assume ANSI C header files and <ctype.h> functions.
76064         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76065         (mbsnwidth): Use isprint, iscntrl instead.
76066
76067 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         Merge from coreutils.
76070         * MODULES.html.sh: Add xstrtold.
76071         * modules/xstrtold: New file.
76072         * modules/cycle-check (Files): Add lib/same-inode.h.
76073         * modules/dirname (Files): Add m4/double-slash-root.m4.
76074         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76075         * modules/mkdir-p (Files): Add lib/same-inode.h.
76076         * modules/same (Files): Add lib/same-inode.h.
76077
76078 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76081         This is to keep the terminology clean; POSIX talks about
76082         "absolute pathnames", not "full pathnames", but the GNU
76083         Coding Standards say to use "path" for something else;
76084         so use "absolute" to keep both sides happy.
76085         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76086         Set gl_absolute_header, not gl_full_header_path.
76087         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76088         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76089         All uses changed.
76090
76091         Merge from coreutils.
76092
76093         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76096         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76097         want to require the building of c-strtod.o.
76098         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76099         needs -lm directly.
76100         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76101
76102         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76105         --as-needed option if available.  Problem reported by Albert Chin in
76106         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76107         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76108         cc merely issues a bunch of annoying warnings for --as-needed
76109         (this problem was reported by Bob Proulx).  Also, try linking with
76110         -lm to detect a bug in binutils 2.16 (this problem was reported
76111         by Ralf Wildenhues).
76112
76113         2006-06-18  Jim Meyering  <jim@meyering.net>
76114
76115         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76116         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76117         macro.
76118         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76119         also check for glibc-2.4's abort-inducing bug.
76120
76121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76122         Low-probability clean-up should be to use rmdir to get rid of
76123         the just-created directory, not unlink.
76124
76125         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76126         configure fail, and request a bug report to inform us about it.
76127         Add a comment that, barring reports to the contrary, in 2007 we'll
76128         assume ftruncate is universally available.
76129
76130         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76131
76132         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76133
76134         2006-03-12  Jim Meyering  <jim@meyering.net>
76135
76136         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76137         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76138         * m4/same.m4 (gl_SAME): Likewise.
76139         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76140
76141         2006-03-11  Eric Blake  <ebb9@byu.net>
76142
76143         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76144         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76145         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76146         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76147
76148 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76151         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76152         reported by Mark D. Baushke, one in
76153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76154
76155         Merge from coreutils.
76156
76157         * lib/.cppi-disable: Add stdint_.h.
76158         * lib/.cvsignore: Add stdint.h.
76159
76160         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76163         both double and long double versions.
76164         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76165         * lib/xstrtold.c: New file.
76166         * lib/xstrtod.h (xstrtold): New decl.
76167
76168         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76169
76170         * lib/filemode.c (setst): Remove.
76171         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76172         (arguably) clearer, and the generated code is a bit smaller on my
76173         Debian GNU/Linux stable x86 host.
76174
76175         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76178         Assume that filemode.h includes sys/types.h and sys/stat.h.
76179         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76180         (ftypelet): Reorder to put common cases first, for efficiency.
76181         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76182         to do 'M'.
76183         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76184         of 10, for compatibility with FreeBSD.  All callers changed.
76185         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76186         types that can't be deduced solely from st_mode.  First arg is now a
76187         const pointer.
76188         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76189         (strmode): Renamed from mode_string.
76190         (filemodestring): New decl.
76191         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76192         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76193         needed.
76194         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76195
76196         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76199         fsusage.h now does that.  Include fsusage.h first, to test interface.
76200         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76201         at most one method (the old code could have generated decls that
76202         didn't conform to C89, not that this was ever exercised).
76203         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76204
76205         2006-03-19  Jim Meyering  <jim@meyering.net>
76206
76207         Work even in a chroot where d_ino values for entries in "/"
76208         don't match the stat.st_ino values for the same names.
76209         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76210         number, iterate through all entries again, using lstat instead.
76211         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76212         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76213
76214         * lib/getcwd.c (__getcwd): Clarify a comment.
76215         Use memcpy in place of a call to strcpy.
76216
76217         2006-03-12  Jim Meyering  <jim@meyering.net>
76218
76219         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76220         matches that of the current directory (which we're about to chdir ".."
76221         out of), then save the dev-ino of the parent, instead.
76222
76223         * lib/same-inode.h (SAME_INODE): New file/macro.
76224         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76225         Include "same-inode.h", instead.
76226         * lib/same.c: Likewise.
76227         * lib/cycle-check.h: Include "same-inode.h".
76228         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76229         * lib/cycle-check.c (SAME_INODE): Remove definition.
76230         * lib/root-dev-ino.h: Include "same-inode.h".
76231
76232         2006-03-11  Eric Blake  <ebb9@byu.net>
76233
76234         * lib/same.c (same_name): s/base_name/last_component/
76235         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76236         * lib/filenamecat.c (file_name_concat): Likewise.
76237
76238         2006-03-11  Eric Blake  <ebb9@byu.net>,
76239                     Paul Eggert  <eggert@cs.ucla.edu>
76240
76241         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76242         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76243         drive prefix.
76244         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76245         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76246         (last_component): New method.
76247         * lib/dirname.c (dir_len): Determine when drive letters need a
76248         subsequent slash.  Preserve // when it is special.
76249         (dir_name): Don't append dot when drive letter is absolute.
76250         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76251         * lib/basename.c (base_name): New semantics - malloc the result.
76252         Preserve // when it is special.  Preserve relative files that look
76253         like drive letters.
76254         (base_len): Preserve // when it is special.
76255         (last_component): New method, similar to old base_name semantics.
76256         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76257         base_name.  Strip redundant slashes from ///.
76258
76259 2006-07-03  Jim Meyering  <jim@meyering.net>
76260
76261         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76262         macro is used before the first cycle_check call.
76263
76264 2006-07-03  Eric Blake  <ebb9@byu.net>
76265
76266         * modules/dirname (Depends-on): Add xstrndup.
76267
76268 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76271         test cases, so that config.log is a bit easier to follow.
76272
76273 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76276         both are 64 bits, since this seems to be the tradition, and this
76277         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76278         we ever run into a host that prefers long long to long in this
76279         case, we'll need another configure-time test.  Problem reported by
76280         Jim Meyering.
76281
76282 2006-07-02  Eric Blake  <ebb9@byu.net>
76283
76284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76285
76286 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * modules/inttypes (Depends-on): No longer depends on stdint.
76289         * modules/stdint (Description): Say more about assumptions.
76290         Say that the fast types might differ.  Say macros are used.
76291         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76292         (Makefile.am): Revise list of substituted symbols to match
76293         new stdint.m4.
76294         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76295         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76296         * tests/test-stdint.c (verify_same_types)
76297         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76298         the code conforms to C99/C89.
76299         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76300         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76301
76302 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76303
76304         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76305         but fix a bug, by requiring at least 64 bits.
76306         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76307         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76308         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76309         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76310
76311         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76312         changes.  Make 2.59 a prerequisite.  Check and substitute for
76313         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76314         inttypes.h.  Do not use special include files; just use the
76315         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76316         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76317         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76318         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76319         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76320         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76321         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76322         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76323         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76324         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76325         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76326         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76327         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76328         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76329         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76330         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76331         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76332         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76333         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76334         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76335         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76336         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76337         not check for things that C99 does not require, e.g., int8_t.  If
76338         a test isn't needed unless <stdint.h> isn't working, and is
76339         unlikely to be needed for any other reason, then don't do it
76340         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76341         size_t, since we assume C89 freestanding at least.  Do not check
76342         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76343         the right thing even if the types are not defined.  Instead use:
76344         (gl_STDINT_TYPE_PROPERTIES): New macro.
76345         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76346         testing whether <sys/types.h> clashes, as Autoconf does this for
76347         us now.  All uses removed.
76348         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76349         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76350         (gl_CHECK_TYPE_SAME):
76351         Remove; no longer needed.
76352         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76353         exists, since we'll return 0 anyway in that case.
76354         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76355
76356 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76359         possible collision with system files.
76360         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76361         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76362         WCHAR_MIN and WCHAR_MAX in this case.
76363         (<stddef.h>): Do not include; no longer needed.
76364         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76365         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76366         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76367         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76368         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76369         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76370         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76371         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76372         !defined(__c99))]: Include in this case too, since it's harmless
76373         now.
76374         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76375         dangerous to do so.
76376         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76377         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76378         (_STDINT_MIN, _STDINT_MAX): New macros.
76379         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76380         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76381         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76382         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76383         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76384         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76385         macros, not typedefs; this simplifies things quite a bit.
76386         Use long int for all types narrower than int64_t.
76387         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76388         Define in terms of long long int or int64_t or long int,
76389         not int64_t or int32_t.  This saves some compile-time testing.
76390         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76391         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76392         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76393         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76394         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76395         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76396         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76397         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76398         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76399         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76400         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76401         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76402         undef any previous version and define our own version, for
76403         simplicity and consistency with the new macros for types.
76404         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76405         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76406         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76407         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76408         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76409         @WINT_T_SUFFIX@ to keep things simple here.
76410         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76411         Simplify by assuming typical 8/16/32/64 host, since we're
76412         already doing that elsewhere anyway.
76413         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76414         and assume long long int is 64 bits if available.  This
76415         speeds up 'configure'.
76416
76417 2006-07-01  Eric Blake  <ebb9@byu.net>
76418
76419         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76420         Reported by Andreas Buening.
76421
76422 2006-07-01  Eric Blake  <ebb9@byu.net>
76423
76424         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76425
76426 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76427
76428         * lib/getaddrinfo.c: fixed typo
76429
76430 2006-06-29  Jim Meyering  <jim@meyering.net>
76431
76432         * modules/strftime (Maintainer): Add my name, since with the
76433         FPRINTFTIME changes strftime.c has forked from glibc.
76434
76435 2006-06-29  Eric Blake  <ebb9@byu.net>
76436
76437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76438
76439 2006-06-29  Eric Blake  <ebb9@byu.net>
76440
76441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76442
76443 2006-06-29  Eric Blake  <ebb9@byu.net>
76444
76445         * lib/stat_.h: New file.
76446
76447 2006-06-29  Eric Blake  <ebb9@byu.net>
76448
76449         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76450         unused static function.
76451
76452 2006-06-29  Eric Blake  <ebb9@byu.net>
76453
76454         * doc/functions.texi (Function Portability): Document missing lstat
76455         on mingw.
76456
76457 2006-06-29  Eric Blake  <ebb9@byu.net>
76458
76459         * MODULES.html.sh: Add sys_stat.
76460         * modules/sys_stat: New module.
76461         * modules/mkstemp (Depends-on): Add sys_stat.
76462
76463 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76464
76465         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76466
76467 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76468
76469         * m4/c-bs-a.m4: Removed.
76470
76471 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76472
76473         * lib/strftime.c: Assume strftime() exists.
76474
76475 2006-06-29  Derek Price  <derek@ximbiot.com>
76476
76477         * modules/c-bs-a: Removed - \a is C89.
76478         * MODULES.html.sh: Remove c-bs-a.
76479
76480 2006-06-29  Bruno Haible  <bruno@clisp.org>
76481
76482         * modules/wcwidth (License): Change to LGPL.
76483
76484 2006-06-28  Simon Josefsson  <jas@extundo.com>
76485
76486         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76487         on _WIN32.
76488
76489         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76490         getnameinfo.
76491
76492 2006-06-28  Simon Josefsson  <jas@extundo.com>
76493
76494         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76495
76496 2006-06-28  Simon Josefsson  <jas@extundo.com>
76497
76498         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76499         functions there.  It will succeed on Windows XP, but on Windows
76500         2000 and (presumably) earlier, it will fail, and use the internal
76501         re-implementation.
76502         (use_win32_p): New function.
76503         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76504         Support AI_NUMERICSERV to disable getservbyname.
76505         (getnameinfo): New function, only supports
76506         NI_NUMERICHOST|NI_NUMERICSERV for now.
76507
76508         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76509         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76510         getnameinfo.
76511
76512 2006-06-28  Eric Blake  <ebb9@byu.net>
76513
76514         * modules/wcwidth: New file.
76515         * modules/mbchar (Depends-on): Add wcwidth.
76516         * modules/mbswidth (Depends-on): Add wcwidth.
76517         * MODULES.html.sh: Add wcwidth.
76518
76519 2006-06-28  Eric Blake  <ebb9@byu.net>
76520
76521         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76523
76524 2006-06-28  Eric Blake  <ebb9@byu.net>
76525
76526         * lib/xvasprintf.h: Fix comments.
76527
76528 2006-06-28  Eric Blake  <ebb9@byu.net>
76529
76530         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76531         * lib/mbswidth.c (wcwidth): Move from here...
76532         * lib/wcwidth.h: ...to this new file.
76533
76534 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76535
76536         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76537
76538         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76539         it's obsolete.
76540         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76541
76542 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76543
76544         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76545         Autoconf 2.60 says this stuff was obsolete.
76546
76547 2006-06-28  Bruno Haible  <bruno@clisp.org>
76548
76549         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76550
76551 2006-06-28  Bruno Haible  <bruno@clisp.org>
76552
76553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76554         gt_TYPE_WCHAR_T.
76555
76556 2006-06-28  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76559         declaration for wcwidth.
76560         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76561
76562 2006-06-28  Bruno Haible  <bruno@clisp.org>
76563
76564         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76565         (mkdir): Define using _mkdir.
76566
76567 2006-06-28  Bruno Haible  <bruno@clisp.org>
76568
76569         * lib/getaddrinfo.h: Fix POSIX URL.
76570         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76571         _WIN32.
76572         (use_win32_p): Make static.
76573         (getaddrinfo): Reject service name if it is empty or does not consist
76574         solely of decimal digits, or if its value is > 65535.
76575         (getnameinfo): Remove useless casts.
76576
76577 2006-06-27  Simon Josefsson  <jas@extundo.com>
76578
76579         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76580         Eggert and Martin Lambers.
76581
76582 2006-06-27  Simon Josefsson  <jas@extundo.com>
76583
76584         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76585         Eggert and Martin Lambers.
76586
76587 2006-06-27  Bruno Haible  <bruno@clisp.org>
76588
76589         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76590         result to 0, not to empty.
76591         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76592
76593 2006-06-27  Bruno Haible  <bruno@clisp.org>
76594
76595         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76596
76597 2006-06-26  Simon Josefsson  <jas@extundo.com>
76598
76599         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76600         present.
76601
76602 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76603
76604         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76605         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76606         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76607
76608 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76609
76610         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76611
76612 2006-06-26  Bruno Haible  <bruno@clisp.org>
76613
76614         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76615
76616 2006-06-26  Bruno Haible  <bruno@clisp.org>
76617
76618         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76619
76620 2006-06-26  Bruno Haible  <bruno@clisp.org>
76621
76622         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76623         SGI C compiler in pre-C99 mode.
76624         Suggested by Mark D. Baushke and Larry Jones.
76625
76626 2006-06-26  Bruno Haible  <bruno@clisp.org>
76627
76628         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76629         WCHAR_MAX.
76630         Reported by Mark D. Baushke and Larry Jones.
76631
76632 2006-06-26  Bruno Haible  <bruno@clisp.org>
76633
76634         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76635         in pre-C99 mode.
76636         Suggested by Mark D. Baushke and Larry Jones.
76637
76638 2006-06-23  Simon Josefsson  <jas@extundo.com>
76639             Bruno Haible  <bruno@clisp.org>
76640
76641         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76642         Emit mostlyclean-local rule.
76643         (func_emit_tests_Makefile_am): Likewise.
76644         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76645
76646 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76647
76648         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76649
76650 2006-06-23  Bruno Haible  <bruno@clisp.org>
76651
76652         * tests/test-stdint.c: Update to match ISO C 99 Technical
76653         Corrigendum 1.
76654
76655 2006-06-23  Bruno Haible  <bruno@clisp.org>
76656
76657         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76658
76659 2006-06-23  Bruno Haible  <bruno@clisp.org>
76660
76661         * lib/stdint_.h: Treat IRIX like OpenBSD.
76662
76663 2006-06-23  Bruno Haible  <bruno@clisp.org>
76664
76665         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76666         ISO C 99 Technical Corrigendum 1.
76667
76668 2006-06-22  Simon Josefsson  <jas@extundo.com>
76669
76670         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76671         MinGW.
76672
76673 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76676         needed.  Some compiler complained about some of them.  Problem reported
76677         by Larry Jones in
76678         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76679
76680 2006-06-21  Simon Josefsson  <jas@extundo.com>
76681
76682         * tests/test-getaddrinfo.c: New file.
76683
76684         * modules/getaddrinfo-tests: New file.
76685
76686         * MODULES.html.sh: Add inet_pton.
76687
76688         * modules/inet_pton: New file.
76689
76690 2006-06-21  Simon Josefsson  <jas@extundo.com>
76691
76692         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76693         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76694         of using the (limited) gnulib implementation on Windows XP.
76695
76696         * m4/inet_pton.m4: New file.
76697
76698 2006-06-21  Simon Josefsson  <jas@extundo.com>
76699
76700         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76701         variable.
76702
76703         * lib/socket_.h: Don't define WINVER.
76704
76705         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76706         slightly modified to work in gnulib.
76707
76708 2006-06-21  Simon Josefsson  <jas@extundo.com>
76709
76710         * doc/gnulib.texi (Windows sockets): Add.
76711
76712 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * lib/read-file.c (fread_file): Start with buffer allocation of
76715         0 bytes rather than 1 byte; this simplifies the code.
76716         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76717         code to free buffer and save/restore errno.
76718         (internal_read_file): Remove unused local.
76719
76720 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76723         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76724         Problem reported by Denis Excoffier in
76725         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76726
76727 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76728
76729         * modules/sys_socket, modules/socklen: Include sys/types since
76730         FreeBSD 4.x's sys/socket.h needs it.
76731
76732 2006-06-19  Simon Josefsson  <jas@extundo.com>
76733
76734         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76735
76736 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76739
76740 2006-06-19  Bruno Haible  <bruno@clisp.org>
76741
76742         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76743         and FULL_PATH_INTTYPES_H in angle brackets.
76744         Reported by Mark D. Baushke <mdb@gnu.org>.
76745
76746 2006-06-17  Eric Blake  <ebb9@byu.net>
76747
76748         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76749         errno.
76750
76751 2006-06-17  Bruno Haible  <bruno@clisp.org>
76752
76753         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76754         <sys/inttypes.h>.
76755
76756 2006-06-17  Bruno Haible  <bruno@clisp.org>
76757
76758         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76759         whether errno is declared. Assume <errno.h> declares errno.
76760
76761 2006-06-17  Bruno Haible  <bruno@clisp.org>
76762
76763         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76764
76765 2006-06-17  Bruno Haible  <bruno@clisp.org>
76766
76767         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76768         problem on Solaris 2.5.1.
76769
76770 2006-06-16  Eric Blake  <ebb9@byu.net>
76771
76772         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76773         * lib/unicodeio.c [!defined errno]: Likewise.
76774         * lib/strtol.c [!defined errno]: Likewise.
76775         * lib/strtod.c [!defined errno]: Likewise.
76776
76777 2006-06-15  Eric Blake  <ebb9@byu.net>
76778
76779         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76780
76781 2006-06-15  Eric Blake  <ebb9@byu.net>
76782
76783         * config/srclist.txt (ssize_t.m4): Lose sync.
76784
76785 2006-06-15  Bruno Haible  <bruno@clisp.org>
76786
76787         * modules/stdint (Files): Include m4/full-header-path.m4,
76788         m4/size_max.m4, m4/wchar_t.m4.
76789         (Makefile.am): Many more substitutions.
76790         * modules/stdint-tests: New file.
76791         * tests/test-stdint.c: New file.
76792
76793 2006-06-15  Bruno Haible  <bruno@clisp.org>
76794
76795         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76796         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76797         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76798         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76799         gl_CHECK_TYPE_SAME): New macros.
76800
76801 2006-06-15  Bruno Haible  <bruno@clisp.org>
76802
76803         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76804
76805 2006-06-15  Bruno Haible  <bruno@clisp.org>
76806
76807         * lib/stdint_.h: Rewritten to be fully auto-configured.
76808         Fixes bug on HP-UX/IA64.
76809
76810 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         * lib/getdate.y (__attribute__): Don't define if already defined.
76813         Problem reported by Larry Jones.
76814         * lib/utimens.c (__attribute__): Likewise.
76815
76816 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76819         reported by Andreas Schwab.
76820
76821 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76822             Bruno Haible  <bruno@clisp.org>
76823
76824         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76825         check for the declaration of strnlen and a run test that exposes the
76826         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76827         rpl_strndup.
76828
76829 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76830             Bruno Haible  <bruno@clisp.org>
76831
76832         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76833
76834 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76835
76836         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76837         compile test, for Tru64 4.0D.
76838
76839 2006-05-28  Karl Berry  <karl@gnu.org>
76840
76841         * config/srclist.txt (printf-args.c): lose sync.
76842
76843 2006-05-26  Martin Lambers  <marlam@marlam.de>
76844
76845         * lib/getpass.c: Updates the test for the native W32 API, and adds
76846         missing includes, thus fixing compilation warnings.
76847
76848 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76849
76850         * lib/exclude.c (exclude_fnmatch): New function.
76851         (excluded_file_name): Call exclude_fnmatch.
76852         * lib/exclude.h (excluded_file_name): New prototype
76853
76854 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76855
76856         * lib/tempname.c (small_open, large_open): New macros.
76857         (__open, __open64) [!_LIBC]: Remove.
76858         (__gen_tempname): Use small_open and large_open instead of __open
76859         and __open64.  This fixes a portability bug on HP-UX 11.11i
76860         reported by Simon Wing-Tang in
76861         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76862
76863 2006-05-24  Bruno Haible  <bruno@clisp.org>
76864
76865         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76866         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76867         Reported by Thorsten Maerz <torte@netztorte.de> via
76868         Aaron Stone <aaron@serendipity.cx>.
76869
76870 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76873         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76874         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76875         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76876         not really conditional on the cache.
76877         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76878
76879 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76882         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76883         (my_usleep): Don't mishandle maximum value.
76884
76885 2006-05-19  Jim Meyering  <jim@meyering.net>
76886
76887         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76888
76889 2006-05-17  Bruno Haible  <bruno@clisp.org>
76890
76891         Cygwin portability.
76892         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76893
76894 2006-05-17  Bruno Haible  <bruno@clisp.org>
76895
76896         * lib/stdint_.h: Fix recognition of Cygwin.
76897
76898 2006-05-15  Bruno Haible  <bruno@clisp.org>
76899
76900         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76901         on libtool patch by Ralf Wildenhues.
76902
76903 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76906         test for C99 conformance; (bool) 0.5 is an integer constant
76907         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76908         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76909
76910 2006-05-11  Simon Josefsson  <jas@extundo.com>
76911
76912         * m4/xvasprintf.m4: Fix obvious typo.
76913
76914 2006-05-11  Jim Meyering  <jim@meyering.net>
76915
76916         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76917         James Lemley.
76918
76919 2006-05-10  Simon Josefsson  <jas@extundo.com>
76920
76921         * lib/md4.c: Typo fix, update copyright years.
76922         (K1, K2): Don't use L because it turn computations into 64-bit on
76923         64-bit platforms.
76924
76925 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76928         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76929         unwanted sign propagation, e.g., on hosts with 64-bit int.
76930         There still are some problems with reeelly weird theoretical hosts
76931         (e.g., 33-bit int) but it's not worth worrying about now.
76932         * lib/sha1.c (rol): Likewise.
76933         (K1, K2, K3, K4): Remove unnecessary L suffix.
76934
76935 2006-05-10  Bruno Haible  <bruno@clisp.org>
76936
76937         * lib/des.c: Cast to avoid warnings.
76938
76939 2006-05-09  Bruno Haible  <bruno@clisp.org>
76940
76941         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76942         (Depends-on): Depend also on xsize, stdarg.
76943         (configure.ac): Add gl_XVASPRINTF.
76944
76945 2006-05-09  Bruno Haible  <bruno@clisp.org>
76946
76947         * m4/xvasprintf.m4: New file.
76948
76949 2006-05-09  Bruno Haible  <bruno@clisp.org>
76950
76951         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76952         (EOVERFLOW): Define fallback value.
76953         (xstrcat): New function.
76954         (xvasprintf): Recognize the special case of a string concatenation.
76955
76956 2006-05-08  Eric Blake  <ebb9@byu.net>
76957
76958         * gnulib-tool (func_version): Base copyright year on CVS date.
76959         (func_emit_copyright_notice): New function.
76960         (func_emit_lib_Makefile_am): Use it.
76961         (func_emit_tests_Makefile_am): Likewise.
76962         (func_import): Likewise.
76963
76964 2006-05-08  Bruno Haible  <bruno@clisp.org>
76965
76966         * modules/stdarg: New file.
76967         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76968
76969 2006-05-08  Bruno Haible  <bruno@clisp.org>
76970
76971         * m4/stdarg.m4: New file, from GNU gettext.
76972
76973 2006-05-08  Bruno Haible  <bruno@clisp.org>
76974
76975         * config/srclist.txt (build-aux/config.rpath): different from latest
76976         release.
76977
76978 2006-05-08  Bruno Haible  <bruno@clisp.org>
76979
76980         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76981
76982 2006-05-05  Jim Meyering  <jim@meyering.net>
76983
76984         * m4/warning.m4: New file, derived from bison's file by the same name.
76985
76986 2006-05-03  Bruno Haible  <bruno@clisp.org>
76987
76988         * lib/stdint_.h: Shorter URL.
76989         * lib/inttypes.h: Likewise.
76990
76991 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76992
76993         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76994
76995 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * lib/verify.h: Document the internals better.  Most of this change
76998         was written by Bruno Haible.
76999
77000 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         * doc/verify.texi: New file, partly based on a proposal by
77003         Bruno Haible.
77004
77005 2006-05-02  Bruno Haible  <bruno@clisp.org>
77006
77007         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77008         test from here...
77009         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77010
77011 2006-04-29  Bruno Haible  <bruno@clisp.org>
77012
77013         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77014         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77015
77016 2006-04-29  Bruno Haible  <bruno@clisp.org>
77017
77018         * gnulib-tool: Make --update option actually work.
77019
77020 2006-04-29  Bruno Haible  <bruno@clisp.org>
77021
77022         * doc/gcd.texi: New file.
77023         * doc/gnulib.texi: Include it.
77024
77025 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * lib/getdate.y (get_date): When adding relative date, start with the
77028         initial time, not with the result of the first mktime call.
77029
77030 2006-04-25  Bruno Haible  <bruno@clisp.org>
77031
77032         * gnulib-tool (func_import): Output the include directives in three
77033         blocks, sorted separately.
77034         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77035
77036 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77037
77038         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77039         to define main with arguments, for C++.  Reported by Eric Blake.
77040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77041         Prefer 'int main ()' to 'int main (void)', for C++.
77042         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77044         for 'main', for C99 and C++.
77045
77046 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77047
77048         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77049         Don't assume that exit status -1 is valid.
77050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77051         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77052         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77053         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77054         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77055         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77056         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77057         functions can be used without declaring them, or that you can
77058         exit with status -1.
77059         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77060
77061 2006-04-24  Karl Berry  <karl@gnu.org>
77062
77063         * config/srclist.txt (longdouble.m4): sync lost.
77064
77065 2006-04-24  Eric Blake  <ebb9@byu.net>
77066
77067         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77068
77069 2006-04-24  Bruno Haible  <bruno@clisp.org>
77070
77071         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77072         poll() implementation in AIX.
77073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77074
77075 2006-04-24  Bruno Haible  <bruno@clisp.org>
77076
77077         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77078         assigned exactly once.
77079
77080 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77081             Bruno Haible  <bruno@clisp.org>
77082
77083         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77084         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77085         for AM_CPPFLAGS.
77086
77087 2006-04-23  Bruno Haible  <bruno@clisp.org>
77088
77089         * modules/copy-file: Depend on unistd.
77090         * modules/execute: Likewise.
77091         * modules/fatal-signal: Likewise.
77092         * modules/findprog: Likewise.
77093         * modules/mkdtemp : Likewise.
77094         * modules/pipe: Likewise.
77095         * modules/wait-process: Likewise.
77096
77097 2006-04-23  Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77100         condition was already detected.
77101         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77102
77103 2006-04-23  Bruno Haible  <bruno@clisp.org>
77104
77105         * lib/copy-file.c: Include <unistd.h> unconditionally.
77106         * lib/execute.c: Likewise.
77107         * lib/fatal-signal.c: Likewise.
77108         * lib/findprog.c: Likewise.
77109         * lib/mkdtemp.c: Likewise.
77110         * lib/pipe.h: Likewise.
77111         * lib/pipe.c: Likewise.
77112         * lib/wait-process.h: Likewise.
77113
77114 2006-04-23  Bruno Haible  <bruno@clisp.org>
77115
77116         * gnulib-tool (func_usage): Fix --import description. Document
77117         --update.
77118         (func_import): Create temporary file in a temporary directory, if
77119         --dry-run is specified. Silence errors from 'grep' when there are no
77120         m4 files in $m4dir.
77121         (func_create_testdir): Silence errors from 'grep' when there are no
77122         m4 files in $m4dir.
77123         Reported by Karl Berry <karl@freefriends.org>.
77124
77125 2006-04-20  Bruno Haible  <bruno@clisp.org>
77126
77127         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77128         one argument, so that the code will be portable to Autoconf 2.60.
77129         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77130         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77131         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77132
77133 2006-04-19  Derek Price  <derek@ximbiot.com>
77134             Eric Blake  <ebb9@byu.net>
77135
77136         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77137         rather than "/full/path.h".  Update comment to match.  Shorten &
77138         generalize m4_translit call via AS_TR_CPP.
77139
77140 2006-04-19  Derek Price  <derek@ximbiot.com>
77141             Eric Blake  <ebb9@byu.net>
77142
77143         * lib/inttypes.h: Correct grammar in comment.
77144
77145 2006-04-18  Derek Price  <derek@ximbiot.com>
77146             Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * modules/inttypes: New file.
77149         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77150
77151 2006-04-18  Derek Price  <derek@ximbiot.com>
77152             Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77155         New files.
77156
77157 2006-04-18  Derek Price  <derek@ximbiot.com>
77158             Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * lib/inttypes.h: New file.
77161         * lib/strtoimax.c: Assume <inttypes.h>.
77162
77163 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77166         isn't mounted.  Problem reported by Kir Kolyshkin.
77167
77168 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77169
77170         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77171         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77172         Derek R. Price.
77173         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77174         implementation.
77175
77176 2006-04-12  Eric Blake  <ebb9@byu.net>
77177
77178         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77179         is now done automatically by the corresponding Autoconf macro.
77180
77181 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77182
77183         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77184         time_r.h.
77185
77186 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         Merge regex changes from libc, removing some of our
77189         POSIX-conformance changes that were rejected and redoing them in a
77190         less-intrusive way.
77191
77192         * lib/regcomp.c (re_compile_internal, init_dfa):
77193         Length arg is now size_t, not Idx.  All uses changed.
77194         (peek_token): Forward decl now says internal_function.
77195         (__re_error_msgid, __re_error_msgid_idx):
77196         Now static rather than extern with attribute_hidden.
77197         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77198         For some reason libc prefers K&R style defns for external functions.
77199         (regerror) [!defined _LIBC]: Likewise.
77200         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77201         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77202         (build_range_exp, build_collating_symbol):
77203         Use K&R-style defn.
77204         (re_compile_fastmap): Use '\0' to memset, not 0.
77205         (utf8_sb_map): Make the calculations more obvious.
77206         (init_dfa, parse_bracket_exp, build_charclass_op):
77207         Call calloc and cast result, as glibc does.
77208         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77209         (build_range_exp, build_collating_symbol):
77210         Now internal functions.
77211
77212         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77213
77214         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77215         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77216         Don't depend on VMS; depend on __VMS instead, for POSIX
77217         namespace cleanness.
77218         (regoff_t): Define to ssize_t, not long int.
77219
77220         Remove the REG_ macros named below.  Instead, make the old names
77221         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77222         __USE_GNU_REGEX.
77223         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77224         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77225         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77226         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77227         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77228         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77229         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77230         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77231         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77232         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77233         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77234         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77235         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77236         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77237         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77238         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77239         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77240         (REG_NREGS):
77241         Remove.  All uses replaced by the old RE_* names.
77242         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77243         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77244         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77245         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77246         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77247         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77248         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77249         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77250         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77251         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77252         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77253         Don't bother having these macros be independent of each others'
77254         values, since they no longer exist in the POSIX name space.
77255
77256         Rename the following member names back to their old names,
77257         unless !__USE_GNU_REGEX.  All uses changed back.
77258         (buffer): Renamed from re_buffer.
77259         (allocated): Renamed from re_allocated.
77260         (used): Renamed from re_used.
77261         (syntax): Renamed from re_syntax.
77262         (fastmap): Renamed from re_fastmap.
77263         (translate): Renamed from re_translate.
77264         (can_be_null): Renamed from re_can_be_null.
77265         (regs_allocated): Renamed from re_regs_allocated.
77266         (fastmap_accurate): Renamed from re_fastmap_accurate.
77267         (no_sub): Renamed from re_no_sub.
77268         (not_bol): Renamed from re_not_bol.
77269         (not_eol): Renamed from re_not_eol.
77270         (newline_anchor): Renamed from re_newline_anchor.
77271         (num_regs): Renamed from rm_num_regs.
77272         (start): Renamed from rm_start.
77273         (end): Renamed from rm_end.
77274
77275         (free_state): Move up a bit.
77276
77277         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77278         #define to be empty.
77279         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77280         when that is what is intended.
77281         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77282         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77283         (MAX): New macro.
77284         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77285         All uses changed back to re_malloc, etc.  It's now the caller's
77286         responsibility to check for overflow; all callers changed.
77287         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77288         (re_x2nrealloc): Remove.
77289         (free_state): Remove decl.
77290
77291         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77292         (re_set_registers, re_exec):
77293         Use K&R-style defn.
77294
77295         2006-01-31  Roland McGrath  <roland@redhat.com>
77296
77297         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77298         Reported by Mike Frysinger <vapier@gentoo.org>.
77299
77300         2006-01-15  Andreas Jaeger  <aj@suse.de>
77301
77302         [BZ #1950]
77303         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77304         build_wcs_upper_buffer change.
77305         (build_wcs_upper_buffer): Change return type.
77306
77307         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77308
77309         * lib/regex_internal.h: Include <stdint.h> if available.
77310
77311         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77312
77313         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77314
77315         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77316
77317         * lib/regcomp.c: Adjust for changed secondary hash function.
77318
77319         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77320
77321         * lib/regex.h: Pretty printing.
77322         Clean up namespace a bit.
77323
77324         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77325
77326         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77327         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77328
77329         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77330                     Ulrich Drepper  <drepper@redhat.com>
77331
77332         [BZ #1302]
77333         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77334         changed.
77335         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77336
77337         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77338
77339         [BZ #281]
77340         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77341         * lib/regcomp.c: Remove unnecessary uses of
77342         unsigned RE_TRANSLATE_TYPE.
77343         * lib/regex_internal.h: Likewise.
77344         * lib/regex_internal.c: Likewise.
77345         * lib/regexec.c: Likewise.
77346         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77347
77348         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77349
77350         * lib/regexec.c (find_recover_state): Remove unnecessary
77351         initialization.
77352         (transit_state_bkref): Make DFA a const pointer.
77353         (get_subexp): Likewise.
77354         (check_arrival): Likewise.
77355         (update_cur_sifted_state): Likewise.
77356         (re_search_internal): Likewise.
77357         (prune_impossible_nodes): Likewise.
77358         (acquire_init_state_context): Likewise.
77359         (proceed_next_node): Likewise.
77360         (set_regs): Likewise.
77361         (free_fail_stack_return): Likewise.
77362         (check_arrival_expand_ecl): Mark DFA parameter as const.
77363         (check_arrival_expand_ecl_sub): Likewise.
77364         (check_subexp_limits): Likewise.
77365         (sub_epsilon_src_nodes):  Likewise.
77366         (add_epsilon_src_nodes):  Likewise.
77367         (merge_state_array): Likewise.
77368         (update_regs): Likewise.
77369         (build_trtable): Likewise.
77370         (sift_states_backward): Mark MCTX parameter as const.
77371         (build_sifted_states): Likewise.
77372         (update_cur_sifted_state): Likewise.
77373         (sift_states_mkref): Likewise.
77374         (check_arrival_expand_ecl): Mark eclosure as const.
77375         (check_dst_limits_calc_pos_1): Likewise.
77376         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77377         pointer.
77378
77379         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77380
77381         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77382         (transit_state_sb): Likewise.
77383         (transit_state_mb): Likewise.
77384         (sift_states_iter_mb): Likewise.
77385         (check_arrival_add_next_nodes): Likewise.
77386         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77387         [_LIBC] (re_search_2_stub): Use mempcpy.
77388
77389         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77390         mbrtowc for very simple UTF-8 case.
77391
77392         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77393         a pointer-to-const.
77394         (re_acquire_state_context): Likewise.
77395         * lib/regex_internal.h: Adjust prototypes.
77396
77397         * lib/regex.c: Prevent using C++ compilers.
77398
77399         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77400         (re_acquire_state_context): Likewise.
77401
77402 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77403
77404         * modules/regex (Depends-on): Add ssize_t.
77405
77406 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77407
77408         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77409         translation table.
77410
77411 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77412
77413         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77414
77415 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77416             Bruno Haible  <bruno@clisp.org>
77417
77418         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77419         <sys/types.h> and <inttypes.h>.
77420
77421 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77422
77423         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77424         `__error_t_defined', so argp.h will not typedef the former.
77425
77426 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77427
77428         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77429         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77430         glibc names.  Even if glibc is changed to conform to POSIX, the
77431         traditional names will be available anyway, since regex depends on
77432         the extensions module.  Also, fix a longstanding typo in the
77433         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77434         reported by Emanuele Giaquinta.  Also, change sense of cached
77435         variable, so that the message makes sense.
77436
77437 2006-03-24  Simon Josefsson  <jas@extundo.com>
77438
77439         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77440         including some doc fixes.
77441         (base64_encode_alloc): Fix +1 bug on allocation failures.
77442
77443 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77444
77445         * lib/base64.c (base64_encode): Do not read past end of array with
77446         unsanitized input on systems with CHAR_BIT > 8.
77447
77448 2006-03-24  Eric Blake  <ebb9@byu.net>
77449
77450         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77451
77452 2006-03-22  Karl Berry  <karl@gnu.org>
77453
77454         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77455         * config/srclistvars.sh (COREUTILS): new var.
77456
77457 2006-03-17  Jim Meyering  <jim@meyering.net>
77458
77459         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77460         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77461
77462 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77463
77464         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77465         no longer needs it.  Instead, check that regoff_t is as least
77466         as wide as ptrdiff_t.
77467
77468         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77469         so that our regex.h stays compatible with the installed regex.
77470         This is helpful for installers who configure --without-included-regex.
77471         Problem reported by Emanuele Giaquinta.
77472
77473 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77474
77475         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77476         Typedef to long int, not to off_, as POSIX will likely change
77477         in that direction.
77478
77479 2006-03-15  Eric Blake  <ebb9@byu.net>
77480
77481         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77482
77483 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77484
77485         * lib/argp-help.c (validate_uparams): Fix typo
77486         * lib/argp-parse.c (argp_default_options): Consistently begin help
77487         messages with a lowercase letter.
77488
77489 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77490
77491         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77492         overrun buffers and shouldn't be used (much as gets shouldn't be
77493         used).
77494         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77495
77496 2006-03-08  Simon Josefsson  <jas@extundo.com>
77497
77498         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77499         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77500
77501 2006-03-08  Simon Josefsson  <jas@extundo.com>
77502
77503         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77504         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77505
77506 2006-03-08  Simon Josefsson  <jas@extundo.com>
77507
77508         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77509         signal that configure disabled the device.
77510
77511 2006-03-08  Simon Josefsson  <jas@extundo.com>
77512
77513         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77514         languages.
77515
77516 2006-03-07  Simon Josefsson  <jas@extundo.com>
77517
77518         * modules/getopt (Depends-on): Add unistd.
77519
77520         * modules/unistd: New file.
77521
77522 2006-03-07  Simon Josefsson  <jas@extundo.com>
77523
77524         * modules/gc-random: New file.
77525
77526 2006-03-07  Simon Josefsson  <jas@extundo.com>
77527
77528         * m4/unistd_h.m4: New file.
77529
77530 2006-03-07  Simon Josefsson  <jas@extundo.com>
77531
77532         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77533         test to be side-effect free by storing the result in the cache
77534         variable gl_cv_lib_readline, and moving the assignment of
77535         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77536         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77537
77538 2006-03-07  Simon Josefsson  <jas@extundo.com>
77539
77540         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77541         error on missing devices (the functions will return an error).
77542
77543         * m4/gc.m4: Move random stuff to gc-random.m4
77544
77545 2006-03-07  Simon Josefsson  <jas@extundo.com>
77546
77547         * lib/unistd_.h: New file.
77548
77549 2006-03-07  Simon Josefsson  <jas@extundo.com>
77550
77551         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77552
77553 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77554
77555         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77556         Problem reported by Juan Manuel Guerrero.
77557
77558 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77561         the unistd module.
77562         * lib/getlogin_r.c: Likewise.
77563         * lib/getlogin_r.h: Likewise.
77564         * lib/glob.c: Likewise.
77565         * lib/pagealign_alloc.c: Likewise.
77566         * lib/unistd_.h: Remove; no longer needed.
77567
77568 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77571         Add unistd.
77572         * modules/c-stack (Depends-on): Add unistd.
77573         * modules/getlogin_r: Likewise.
77574         * modules/glob: Likewise.
77575         * modules/pagealign_alloc: Likewise.
77576         * modules/unistd (Files): Remove lib/unistd_.h.
77577         (EXTRA_DIST): Remove.
77578         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77579         need unistd_.h.
77580         (MOSTLYCLEANFILES): Remove unistd.h-t.
77581
77582 2006-03-03  Simon Josefsson  <jas@extundo.com>
77583
77584         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77585
77586 2006-03-03  Simon Josefsson  <jas@extundo.com>
77587
77588         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77589         libidn and bison.
77590
77591 2006-03-03  Simon Josefsson  <jas@extundo.com>
77592
77593         * build-aux/maint.mk: Add indent target.
77594
77595 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77596
77597         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77598         our replacement poll.h in any case, to avoid a differing
77599         declaration from a system header.  Seen on AIX.
77600
77601 2006-03-01  Simon Josefsson  <jas@extundo.com>
77602
77603         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77604         <kasal@ucw.cz>.
77605
77606 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * modules/gettime (Depends-on): Add extensions module.
77609         * modules/nanosleep (Depends-on): Likewise.
77610         * modules/settime (Depends-on): Likewise.
77611
77612 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77613
77614         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77615         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77616         pedantically.
77617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77618         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77619
77620         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77621         not "==".  Reported by Ralf Wildenhues.
77622
77623 2006-03-01  Karl Berry  <karl@gnu.org>
77624
77625         * doc/Copyright/request-*: new files, synced from gnuorg.
77626
77627 2006-03-01  Karl Berry  <karl@gnu.org>
77628
77629         * config/srclist.txt (Copyright/*): new entries.
77630
77631 2006-02-28  Simon Josefsson  <jas@extundo.com>
77632
77633         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77634
77635 2006-02-27  Simon Josefsson  <jas@extundo.com>
77636
77637         * lib/base64.h: Indent #define's.  From Jim Meyering
77638         <jim@meyering.net>.
77639
77640 2006-02-27  Jim Meyering  <jim@meyering.net>
77641
77642         Revert the change of 2006-02-24, so these files can continue
77643         to be sync'd from gettext.
77644         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77645         of `config.h'.
77646
77647 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * modules/intprops: New file.
77650         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77651         Add intprops.
77652         * modules/getloadavg (Files): Remove lib/intprops.h.
77653         (Depends-on): Add intprops.
77654         * modules/human: Likewise.
77655         * modules/inttostr: Likewise.
77656         * modules/openat: Likewise.
77657         * modules/sig2str: Likewise.
77658         * modules/userspec: Likewise.
77659         * modules/utimecmp: Likewise.
77660         * modules/xnanosleep: Likewise.
77661         * modules/xstrtol: Likewise.
77662
77663 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77664
77665         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77666         * modules/lock-tests (TESTS): Use $(EXEEXT).
77667         * modules/tls-tests: Likewise.
77668         * modules/argp-tests: Likewise.
77669         (check_PROGRAMS): New var, replacing...
77670         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77671
77672 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77673
77674         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77675         `config.h'.
77676
77677 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77680
77681 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77682
77683         Sync from coreutils.
77684         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77685         gl_CHDIR_SAFER.
77686
77687 2006-02-22  Jim Meyering  <jim@meyering.net>
77688
77689         Sync from coreutils.
77690         * m4/chdir-safer.m4: New file.
77691
77692 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77695         AT_FDCWD exceeds INT_MAX.
77696         * lib/openat.h (AT_FDCWD): Likewise.
77697
77698 2006-02-17  Eric Blake  <address@hidden>
77699
77700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77701
77702 2006-02-16  Simon Josefsson  <jas@extundo.com>
77703
77704         * modules/getaddrinfo (Depends-on): Add sys_socket.
77705
77706 2006-02-15  Simon Josefsson  <jas@extundo.com>
77707
77708         * build-aux/maint.mk: Add dsyntax-check rule.
77709
77710 2006-02-15  Eric Blake  <ebb9@byu.net>
77711
77712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77713         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77714         'present but cannot compile' warnings on cygwin.
77715         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77716         use ws2tcpip.h if sys/socket.h works.
77717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77718         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77719
77720 2006-02-14  Simon Josefsson  <jas@extundo.com>
77721
77722         * modules/maintainer-makefile (Files): Rename.
77723
77724         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77725         and (the local) Makefile.cfg to maint-cfg.mk.
77726
77727         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77728         to the latter.
77729
77730         * modules/maintainer-makefile: New module.
77731
77732         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77733         severaly stripped to make it possible to build it up from scratch
77734         with reliable tests.
77735
77736         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77737         fixes to permit overriding the default actions when configure and
77738         makefile are not available.
77739
77740 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         Sync from coreutils.
77743         * modules/lstat (Depends-on): Don't depend on xalloc.
77744         (License): Change from GPL to LGPL, since this is now simply a
77745         replacement for a libc function.
77746
77747 2006-02-14  Jim Meyering  <jim@meyering.net>
77748
77749         Sync from coreutils.
77750
77751         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77752         failure on deficient systems, and simplify gnulib lgpl dependencies.
77753         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77754         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77755
77756         * lib/xalloc-die.c: Remove unused definition of N_.
77757
77758 2006-02-14  Jim Meyering  <jim@meyering.net>
77759
77760         Sync from coreutils.
77761         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77762         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77763         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77764         double-quote uses of that variable, to accommodate the rare case in
77765         which getmntent is available in none of the libraries checked.  This
77766         happens at least on FreeBSD 5.0.
77767
77768 2006-02-13  Simon Josefsson  <jas@extundo.com>
77769
77770         * gnulib-tool (Usage): Fix --import, from
77771         karl@freefriends.org (Karl Berry).
77772
77773 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77774
77775         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77776
77777 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77778
77779         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77780         "autoupdate" on 2005-12-12.
77781
77782 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * modules/closeout (Depends-on): Remove atexit.
77785
77786 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77789         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77790
77791 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77794         __EXTENSIONS__ if this causes compilation to fail.  Problem
77795         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77796         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77797
77798 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77799
77800         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77801         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77802         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77803         All uses changed.
77804
77805 2006-01-26  Simon Josefsson  <jas@extundo.com>
77806
77807         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77808         prototype is visible on mingw32.
77809
77810         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77811         for mingw32.
77812
77813         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77814         mingw32).
77815
77816 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77817
77818         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77819         attempt to open for write; this always fails, at least on POSIX
77820         hosts.  This reinstates the 2006-01-09 change, which was
77821         inadvertently removed.
77822
77823 2006-01-26  Bruno Haible  <bruno@clisp.org>
77824
77825         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77826         Reported by Paul Eggert.
77827
77828 2006-01-26  Bruno Haible  <bruno@clisp.org>
77829             Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         * lib/stdbool_.h (_Bool)
77832         [(! (defined __cplusplus || defined __BEOS__)
77833           && !defined __GNUC__
77834           && !(defined __HP_cc || defined __xlc__
77835                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77836                || defined __sgi))]:
77837         #define to signed char in these cases too; this simplifies
77838         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77839         etc., separately) and makes it more conservative.
77840
77841 2006-01-25  Simon Josefsson  <jas@extundo.com>
77842
77843         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77844         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77845         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77846
77847 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77848
77849         * lib/argp-namefrob.h: Bugfix. Remove stray #
77850
77851 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77854         so that we test the test.
77855         Check for yet another HP-UX cc bug involving *bool |= bool.
77856
77857 2006-01-25  Karl Berry  <karl@gnu.org>
77858
77859         * config/srclist.txt (vasnprintf.c): sync lost.
77860
77861 2006-01-25  Jim Meyering  <jim@meyering.net>
77862
77863         Sync from the stable (b5) branch of coreutils:
77864
77865         * lib/fts.c (fts_children): Don't let close() clobber errno from
77866         failed fchdir().
77867
77868         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77869         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77870         a dangling symlink.  That can also happen at least for ELOOP.
77871         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77872         FYI, this bug predates the inclusion of fts.c in coreutils.
77873
77874         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77875         in their own block, so pre-c99 compilers don't object.
77876
77877         Avoid the double-free (first in fts_read, second in fts_close) that
77878         would occur when an `active' directory is made inaccessible (e.g.,
77879         via chmod a-x) during a traversal.
77880         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77881         before returning.  Reproduce this failure by
77882         mkdir -p a/b; cd a; chmod a-x . b
77883         Reported by Stavros Passas.
77884
77885 2006-01-25  Jim Meyering  <jim@meyering.net>
77886
77887         * lib/fileblocks.c: Remove more useless parentheses.
77888         * lib/readutmp.h: Likewise.
77889
77890 2006-01-25  Bruno Haible  <bruno@clisp.org>
77891
77892         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77893         warnings.
77894         Reported by Paul Eggert.
77895
77896 2006-01-25  Bruno Haible  <bruno@clisp.org>
77897
77898         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77899         rid of a trap command. For Solaris sh.
77900         Reported by Mark D. Baushke <mdb@gnu.org>.
77901
77902 2006-01-24  Simon Josefsson  <jas@extundo.com>
77903
77904         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77905         Bruno.
77906
77907 2006-01-24  Karl Berry  <karl@gnu.org>
77908
77909         * config/srclist.txt (argp-namefrob.h): sync lost.
77910
77911 2006-01-24  Jim Meyering  <jim@meyering.net>
77912
77913         * modules/openat (Files): Add lib/intprops.h.
77914         From Mark D. Baushke.
77915
77916 2006-01-24  Jim Meyering  <jim@meyering.net>
77917
77918         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77919         Reported by Mark D. Baushke.
77920
77921 2006-01-24  Jim Meyering  <jim@meyering.net>
77922
77923         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77924
77925 2006-01-24  Bruno Haible  <bruno@clisp.org>
77926
77927         * modules/strnlen (Maintainer): Change from glibc to all.
77928
77929 2006-01-24  Bruno Haible  <bruno@clisp.org>
77930
77931         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77932         Patch by Paul Eggert.
77933
77934 2006-01-24  Bruno Haible  <bruno@clisp.org>
77935
77936         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77937         already has it.
77938         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77939         2005-11-26.
77940
77941         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77942         'signed char' to avoid problems with the built-in _Bool type.
77943         Reported by Paul Eggert on 2005-11-26.
77944
77945 2006-01-24  Bruno Haible  <bruno@clisp.org>
77946
77947         * gnulib-tool (func_import): Avoid constructing complicated sed
77948         expressions inside backquote.
77949         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77950
77951 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77952
77953         These changes imported from libc.
77954         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77955         test and two separate function calls.
77956         * lib/strndup.c (__strndup): Add libc_hidden_def.
77957
77958 2006-01-23  Simon Josefsson  <jas@extundo.com>
77959
77960         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77961         Remove the test_*_SOURCES variable: automake infers it by default.
77962         * modules/tls-tests: Likewise.
77963
77964 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77965
77966         Work around porting bugs reported by Dieter in
77967         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77968         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77969         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77970         Include "getopt.h" first, to check interface.
77971         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77972         !HAVE_DECL_GETENV.
77973         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77974         (__strndup): Revert to K&R-style function dfns, the glibc style.
77975         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77976         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77977         Include strnlen.h first, to get prototype properly.
77978         (strnlen): Renamed from __strnlen.
77979         Remove weak alias.
77980
77981 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77984
77985 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77986
77987         * config/srclist.txt: Adjust to reflect glibc reorganization.
77988         This affects only comments.
77989
77990 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77991
77992          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77993          Reported by Bruce Korb <bkorb@gnu.org>.
77994
77995 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77998         to pacify gcc -Wswitch-default.
77999
78000 2006-01-22  Bruno Haible  <bruno@clisp.org>
78001
78002         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78003         temporary buffer for sprintf, take into account the precision also
78004         for 'd', 'i', 'u', 'o', 'x', 'X'.
78005
78006 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78007
78008         * modules/argp-tests: New module
78009         * tests/test-argp.c: New file
78010         * tests/test-argp-2.sh: New file
78011
78012 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78013
78014         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78015         (__argp_base_name): Removed
78016         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78017         typo.
78018         (__argp_base_name): Provide macro definition or extern declaration
78019         depending on the configuration
78020
78021 2006-01-20  Simon Josefsson  <jas@extundo.com>
78022
78023         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78024
78025 2006-01-20  Simon Josefsson  <jas@extundo.com>
78026
78027         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78028
78029 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78030
78031         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78032         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78033         Suggested by Bruno Haible.
78034
78035 2006-01-20  Karl Berry  <karl@gnu.org>
78036
78037         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78038         until changes propagate, I guess.
78039
78040 2006-01-19  Simon Josefsson  <jas@extundo.com>
78041
78042         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78043
78044 2006-01-19  Simon Josefsson  <jas@extundo.com>
78045
78046         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78047
78048 2006-01-19  Simon Josefsson  <jas@extundo.com>
78049
78050         * gnulib-tool: Set check_PROGRAMS.
78051
78052         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78053         modules/des-tests, modules/gc-arcfour-tests,
78054         modules/gc-arctwo-tests, modules/gc-des-tests,
78055         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78056         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78057         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78058         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78059         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78060         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78061         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78062         test_*_SOURCES.
78063
78064 2006-01-18  Simon Josefsson  <jas@extundo.com>
78065
78066         * modules/socklen (Depends-on): Depend on sys_socket.
78067
78068 2006-01-18  Simon Josefsson  <jas@extundo.com>
78069
78070         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78071         modules/des-tests, modules/gc-arcfour-tests,
78072         modules/gc-arctwo-tests, modules/gc-des-tests,
78073         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78074         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78075         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78076         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78077         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78078         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78079         $(EXEEXT) to automake TESTS variable, for mingw32.
78080
78081 2006-01-17  Simon Josefsson  <jas@extundo.com>
78082
78083         * modules/socklen (Include): Need sys/socket.h.
78084
78085 2006-01-17  Bruno Haible  <bruno@clisp.org>
78086
78087         * modules/ssize_t (Include): Add <sys/types.h>.
78088
78089 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78090
78091         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78092         it's not portable and it doesn't work with cross-compiles.
78093         Problem reported by Bruno Haible.  Fix missing-$ typo in
78094         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78095         -zignore from being used with Sun's C compiler.
78096
78097 2006-01-12  Simon Josefsson  <jas@extundo.com>
78098
78099         * lib/base64.c: Fix warning, reported by Bruno Haible
78100         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78101
78102 2006-01-12  Bruno Haible  <bruno@clisp.org>
78103
78104         * modules/ldd: New file.
78105         * build-aux/ldd.sh.in: New file.
78106         * MODULES.html.sh (Support for building libraries and executables): Add
78107         ldd.
78108
78109 2006-01-12  Bruno Haible  <bruno@clisp.org>
78110
78111         * m4/ldd.m4: New file.
78112
78113 2006-01-12  Bruno Haible  <bruno@clisp.org>
78114
78115         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78116         endless loop while replacing $auxdir with build-aux.
78117
78118 2006-01-11  Simon Josefsson  <jas@extundo.com>
78119
78120         * lib/stdint_.h (SIZE_MAX): Add missing (.
78121
78122 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         Sync from coreutils.
78125         * lib/md5.c: Fix commentary typos.
78126         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78127         * lib/md5.h (__attribute__): Remove; unused.
78128         * lib/sha1.c: Fix commentary to match md5 better.
78129         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78130         so that we don't need to worry about alignment.  All uses changed.
78131         This merges the 2005-10-28 md5 change into sha1.
78132
78133 2006-01-11  Jim Meyering  <jim@meyering.net>
78134
78135         Sync from coreutils.
78136         * lib/md5.c (OP): Fix spacing.
78137
78138 2006-01-11  Bruno Haible  <bruno@clisp.org>
78139
78140         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78141         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78142         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78143
78144 2006-01-11  Bruno Haible  <bruno@clisp.org>
78145
78146         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78147         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78148         the "early" section as well.
78149
78150 2006-01-11  Bruno Haible  <bruno@clisp.org>
78151
78152         Avoid "ar: no archive members specified" error on MacOS X.
78153         * gnulib-tool (func_modules_add_dummy): New function.
78154         (func_import, func_create_testdir): Invoke it.
78155
78156 2006-01-11  Bruno Haible  <bruno@clisp.org>
78157
78158         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78159         with $auxdir in AC_CONFIG_FILES statements.
78160
78161 2006-01-11  Bruno Haible  <bruno@clisp.org>
78162
78163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78164         Initialize also noinst_HEADERS to empty.
78165
78166 2006-01-11  Bruno Haible  <bruno@clisp.org>
78167
78168         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78169         variables.
78170         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78171         autoreconf.
78172
78173 2006-01-11  Bruno Haible  <bruno@clisp.org>
78174
78175         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78176         overridable by the user.
78177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78178
78179 2006-01-10  Simon Josefsson  <jas@extundo.com>
78180
78181         * modules/sys_socket: New file.
78182
78183 2006-01-10  Simon Josefsson  <jas@extundo.com>
78184
78185         * m4/sys_socket_h.m4: New file.
78186
78187 2006-01-10  Simon Josefsson  <jas@extundo.com>
78188
78189         * lib/socket_.h: New file.
78190
78191 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * modules/readutmp (Maintainer): Add myself.
78194
78195 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78198         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78199         People who are still concerned with buggy memcmp implementations
78200         can invoke gl_FUNC_MEMCMP themselves.
78201
78202 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * lib/regex_internal.h (BITSET_WORD_BITS):
78205         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78206         preprocessor mishandles large unsigned values as if they were signed.
78207         Problem reported by Claudio Fontana in
78208         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78209
78210 2006-01-10  Jim Meyering  <jim@meyering.net>
78211
78212         Avoid the double-free (first in fts_read, second in fts_close) that
78213         would occur when an `active' directory is made inaccessible (e.g.,
78214         via chmod a-x) during a traversal.
78215         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78216         before returning.  Reproduce this failure by
78217         mkdir -p a/b; cd a; chmod a-x . b
78218         Reported by Stavros Passas.
78219
78220         Sync from coreutils.
78221         * lib/sha1.c: Tweak grammar in a comment.
78222
78223 2006-01-10  Jim Meyering  <jim@meyering.net>
78224
78225         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78226         Patch by Joerg Sonnenberger.
78227
78228 2006-01-10  Bruno Haible  <bruno@clisp.org>
78229
78230         * modules/readutmp: Depend on module free.
78231         * modules/strtok_r: Depend on module restrict.
78232
78233 2006-01-10  Bruno Haible  <bruno@clisp.org>
78234
78235         * modules/gettext (configure.ac): Add an invocation of
78236         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78237
78238 2006-01-10  Bruno Haible  <bruno@clisp.org>
78239
78240         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78241         Reported by Werner Lemberg <wl@gnu.org>.
78242
78243 2006-01-10  Bruno Haible  <bruno@clisp.org>
78244
78245         * lib/localcharset.c: Update from GNU gettext.
78246
78247 2006-01-10  Bruno Haible  <bruno@clisp.org>
78248
78249         * lib/argp.h (__const): Remove macro. Use const instead.
78250         * lib/argp-fmtstream.h (__const): Likewise.
78251         * lib/glob_.h (__const): Remove macro.
78252         * lib/glob-libc.h: Use const instead of __const.
78253
78254 2006-01-10  Bruno Haible  <bruno@clisp.org>
78255
78256         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78257         variable.
78258         Needed to avoid an automake error regarding the 'gettext' module.
78259
78260 2006-01-09  Simon Josefsson  <jas@extundo.com>
78261
78262         * modules/inet_ntop (Depends-on): Add restrict.
78263
78264 2006-01-09  Simon Josefsson  <jas@extundo.com>
78265
78266         * modules/gc-rijndael-tests (License): Put under LGPL.
78267
78268         * modules/gc-des-tests (License): Likewise.
78269
78270         * modules/gc-arcfour-tests (License): Likewise.
78271
78272         * modules/gc-arctwo-tests (License): Likewise.
78273
78274         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78275
78276         * modules/gc-hmac-sha1-tests (Files): Likewise.
78277
78278         * modules/gc-hmac-md5-tests (License): Likewise.
78279
78280         * modules/gc-sha1-tests (License): Likewise.
78281
78282         * modules/gc-md5-tests (License): Likewise.
78283
78284         * modules/gc-md4-tests (License): Likewise.
78285
78286         * modules/gc-md2-tests (License): Likewise.
78287
78288         * modules/gc-tests (License): Likewise.
78289
78290         * modules/des-tests (License): Likewise.
78291
78292         * modules/md4-tests (License): Likewise.
78293
78294         * modules/md2-tests (License): Likewise.
78295
78296 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78297
78298         Sync from coreutils:
78299
78300         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78301         * modules/lib-ignore: New file.
78302         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78303         chdir-safer.m4, lchmod.m4.
78304         * modules/openat: Add mkdirat.c, openat-priv.h.
78305
78306 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         Sync from coreutils.
78309         * m4/lib-ignore.m4: New file.
78310         * m4/lchmod.m4: New file.
78311
78312 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78313
78314         Sync from coreutils.
78315         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78316         for write access: POSIX says that must fail.
78317         * lib/fts.c (diropen): Likewise.
78318         * lib/save-cwd.c (save_cwd): Likewise.
78319         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78320         well, for minor improvements on hosts that lack O_DIRECTORY.
78321         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78322         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78323         Fall back on chown if open failed with EACCES.
78324
78325         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78326         Report an error at compile-time if only a 1-second nominal clock
78327         resolution is found.
78328
78329         * lib/lchmod.h: New file.
78330         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78331         (make_dir_parents): Use lchown rather than chown, and
78332         lchmod rather than chmod.
78333
78334         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78335         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78336         "proc" reported by n0dalus.
78337
78338         * lib/mountlist.c: Include <limits.h>.
78339         (dev_from_mount_options)
78340         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78341         New function.  It no longer assumes "dev=" has the System V meaning
78342         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78343         (read_file_system_list)
78344         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78345         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78346         dev= in that case.
78347
78348         * lib/posixtm.h (PDS_PRE_2000): New macro.
78349         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78350         allow_century.  All usages changed.  Reject dates outside the range
78351         1969-1999 if PDS_PRE_2000 is used.
78352
78353 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         Sync from coreutils.
78356         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78357         (Time of day items): Mention the possibility of leap seconds.
78358         Problem reported by Dr. David Alan Gilbert.
78359
78360 2006-01-09  Jim Meyering  <jim@meyering.net>
78361
78362         Sync from coreutils.
78363
78364         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78365
78366         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78367
78368         * lib/modechange.c (mode_compile): Reject an invalid mode string
78369         that starts with an octal digit.  From Andreas Gruenbacher.
78370
78371         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78372         and dup to open_safer and dup_safer, respectively.
78373         (openat_permissive): Fix typo in comment.
78374
78375         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78376         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78377         (_): Remove; no longer needed.
78378         (openat): Renamed from rpl_openat; no need for rpl_openat
78379         since openat.h renames openat for us.
78380         Replace most of the body with a call to openat_permissive,
78381         to avoid duplicate code.
78382         Port to (probably hypothetical) environments were mode_t is
78383         wider than int.
78384         (openat_permissive): Require mode arg, so that we can check
78385         types better.  Put it just after flags.  Change cwd failure
78386         indicator from pointer-to-bool to pointer-to-errno-value.
78387         All callers changed.
78388         Invoke openat_save_fail and/or openat_restore_fail if
78389         cwd_errno is null, so that openat can call us.
78390         (openat_permissive, fdopendir, fstatat, unlinkat):
78391         Simplify errno handling to avoid some duplicate code,
78392         as it's OK to set errno on success.
78393         * lib/openat.h: Revamp code so that function macros depend on
78394         __OPENAT_PREFIX only, not also on AT_FDCWD.
78395         (openat_ro): Remove.  Caller changed to use openat_permissive.
78396         (openat_permissive): Now a macro, if not a function.
78397         (openat_restore_fail, openat_save_fail): Now always functions,
78398         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78399
78400         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78401         and openat.c.
78402         * lib/mkdirat.c: Include openat-priv.h.
78403         Remove definitions of macros defined therein.
78404         * lib/openat.c: Likewise.
78405
78406         * lib/mkdirat.c (mkdirat): New file and function.
78407         * lib/openat.h (mkdirat): Declare.
78408
78409         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78410
78411         * lib/openat.h (openat_permissive): Declare.
78412         (openat_ro): Define.
78413
78414         * lib/openat.c (EXPECTED_ERRNO): New macro.
78415         (openat_permissive): New function -- used in remove.c rewrite.
78416         (all functions): Set errno just before returning, only if there
78417         was an actual failure.
78418         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78419
78420         Emulate openat-family functions using Linux's procfs, if possible.
78421         Idea and some code based on Ulrich Drepper's glibc changes.
78422
78423         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78424         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78425         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78426         before falling back on save_cwd and restore_cwd.
78427         (fdopendir, fstatat, unlinkat): Likewise.
78428
78429         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78430         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78431
78432         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78433         as second argument to va_arg.  Otherwise, some versions of gcc
78434         warn that `if this code is reached, the program will abort'.
78435
78436 2006-01-09  Jim Meyering  <jim@meyering.net>
78437
78438         Sync from coreutils.
78439         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78440         Require openat-priv.h.
78441
78442 2006-01-09  Bruno Haible  <bruno@clisp.org>
78443
78444         * modules/strnlen (Include): Use strnlen.h.
78445
78446 2006-01-09  Bruno Haible  <bruno@clisp.org>
78447
78448         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78449
78450 2006-01-09  Bruno Haible  <bruno@clisp.org>
78451
78452         * lib/sysexit_.h (EX_OK): New macro.
78453         Suggested by Martin Lambers <marlam@marlam.de>.
78454
78455 2006-01-09  Bruno Haible  <bruno@clisp.org>
78456
78457         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78458         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78459
78460 2006-01-09  Bruno Haible  <bruno@clisp.org>
78461
78462         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78463         numbers.
78464
78465 2006-01-09  Bruno Haible  <bruno@clisp.org>
78466
78467         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78468         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78469         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78470         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78471
78472 2006-01-09  Bruno Haible  <bruno@clisp.org>
78473
78474         * build-aux/javacomp.sh.in: New file, moved from lib/.
78475         * modules/javacomp-script (Files): Update.
78476         (configure.ac): Add AC_CONFIG_FILES invocation.
78477         (EXTRA_DIST): Remove variable.
78478
78479         * build-aux/javaexec.sh.in: New file, moved from lib/.
78480         * modules/javaexec (Files): Update.
78481         (configure.ac): Add AC_CONFIG_FILES invocation.
78482         (EXTRA_DIST): Remove javaexec.sh.in.
78483
78484         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78485         * modules/csharpcomp-script (Files): Update.
78486         (configure.ac): Add AC_CONFIG_FILES invocation.
78487         (EXTRA_DIST): Remove variable.
78488
78489         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78490         * modules/csharpexec (Files): Update.
78491         (configure.ac): Add AC_CONFIG_FILES invocation.
78492         (EXTRA_DIST): Remove csharpexec.sh.in.
78493
78494 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78495
78496         Sync from coreutils.
78497
78498         Add POSIX ACL support
78499         * lib/acl.h (copy_acl, set_acl): Add declarations.
78500         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78501         systems other than Linux.
78502         (chmod_or_fchmod): New function: use fchmod when possible,
78503         and chmod otherwise.
78504         (file_has_acl): Add a POSIX ACL implementation, with a
78505         Linux-specific subcase.
78506         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78507         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78508         acls are unsupported.
78509         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78510         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78511         are unsupported.
78512
78513 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78514
78515         Sync from coreutils.
78516         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78517
78518 2006-01-07  Bruno Haible  <bruno@clisp.org>
78519
78520         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78521         gl_EARLY.
78522
78523 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78526         Problem reported for Mingw by Mark Junker.
78527
78528 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78529
78530         * README: Gnulib normally doesn't generate a tarball.
78531
78532 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78533
78534         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78535         long int, not int, for nanosecond counts, so that people who are
78536         used to POSIX struct timespec won't be surprised.  Reported by Jim
78537         Meyering.
78538
78539 2005-12-28  Bruno Haible  <bruno@clisp.org>
78540
78541         * build-aux/config.rpath: Update from GNU gettext.
78542
78543 2005-12-16  Jim Meyering  <jim@meyering.net>
78544
78545         * modules/fprintftime: New module.
78546         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78547
78548 2005-12-16  Jim Meyering  <jim@meyering.net>
78549
78550         * m4/fprintftime.m4: New file.
78551
78552 2005-12-16  Jim Meyering  <jim@meyering.net>
78553
78554         * lib/fprintftime.c, lib/fprintftime.h: New files.
78555
78556 2005-12-15  Simon Josefsson  <jas@extundo.com>
78557
78558         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78559         new m4/socklen.m4.
78560
78561 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78562
78563         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78564         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78565
78566 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78567
78568         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78569         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78570         struct uparams is valid. Fall back to the default values if it is
78571         not.
78572
78573 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78574
78575         * modules/argp (Files): Add argp-pin.c
78576         (Depends-on): dirname
78577         (lib_SOURCES): Add argp-pin.c
78578
78579 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78580
78581         * m4/argp.m4:  Check if program_invocation_name and
78582         program_invocation_short_name are declared and define appropriate
78583         macros if they are not.
78584
78585 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78586
78587         * lib/argp-help.c (__argp_base_name): New function
78588         (__argp_short_program_name): Rewrite using __argp_base_name
78589         * lib/argp-namefrob.h: Define program_invocation_name and
78590         program_invocation_short_name if requested
78591         (__argp_base_name): Add prototype
78592         * lib/argp-parse.c (argp_def): Use gettext wrappers
78593         (argp_default_parser): Use __argp_base_name
78594         * lib/argp-pin.c: New file. Defines program_invocation_name and
78595         program_invocation_short_name on systems that lack them.
78596
78597 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78598
78599         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78600         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78601         porting problem reported by Georg Schwarz in
78602         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78603
78604 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78607         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78608         porting problem reported by Georg Schwarz in
78609         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78610
78611 2005-12-05  Bruno Haible  <bruno@clisp.org>
78612
78613         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78614         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78615         Reported by Mark Junker <mjscod@gmx.de>.
78616
78617 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78620         Use implementation from Albert Chin, with some
78621         comments/corrections by Stepan Kasal and myself.
78622
78623 2005-12-02  Bruno Haible  <bruno@clisp.org>
78624
78625         * gnulib-tool (func_import): Accept GPLed build tool modules when
78626         --lgpl is given.
78627         * modules/csharpcomp-script: New file.
78628         * modules/csharpcomp: Depend on it.
78629         * modules/javacomp-script: New file.
78630         * modules/javacomp: Depend on it.
78631         Suggested by Simon Josefsson.
78632
78633 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78636         statement, to work around an HP-UX 10.20 compiler bug reported by
78637         Peter O'Gorman.
78638
78639 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78640
78641         * modules/savedir (Depends-on): Add openat.
78642
78643 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78646         (uintmax_t) [defined uintmax_t]: Do not declare.
78647         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78648         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78649         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78650         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78651         sake of portability to weird hosts that C allows (though we don't
78652         know of any practical examples).
78653
78654         * lib/savedir.h (fdsavedir): New decl.
78655         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78656         contains most of the former guts of savedir.
78657         (savedir): Use savedirstream.
78658         Include "openat.h".
78659
78660 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * modules/obstack (Files): Add m4/ulonglong.m4.
78663         Problem reported by Davide Angelocola.
78664
78665 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78668         coreutils no longer futzes with rounding modes.
78669
78670 2005-11-14  Jim Meyering  <jim@meyering.net>
78671
78672         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78673         replacement of mkstemp.
78674
78675 2005-11-10  Simon Josefsson  <jas@extundo.com>
78676
78677         * lib/readline.c: Remove EOL.
78678
78679 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * modules/gethrxtime (Depends-on): Add gettime.
78682
78683 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78686         or gettimeofday; no longer needed.
78687
78688 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78691         time business.
78692         (gethrxtime) [! (HAVE_NANOUPTIME
78693         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78694         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78695         our own approximation.
78696
78697 2005-11-08  Eric Blake  <ebb9@byu.net>
78698
78699         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78700
78701 2005-11-08  Eric Blake  <ebb9@byu.net>
78702
78703         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78704
78705 2005-11-04  Bruno Haible  <bruno@clisp.org>
78706
78707         * gnulib-tool: Implement --update mode.
78708
78709 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         Fix porting problem reported by Theodoros V. Kalamatianos.
78712         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78713         Don't assume that futimes failing means we must fail.
78714
78715 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78718         variables to suggest the intended function of the PATH_MAX check.
78719
78720 2005-10-30  Kean Johnston  <jkj@sco.com>
78721
78722         Trivial changes to support SCO systems.
78723         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78724         as PATH_MAX.
78725         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78726         where __ptr is null when no I/O is pending.
78727
78728 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78731         leave errno alone.  Problem reported by Dmitry V. Levin.
78732
78733 2005-10-28  Simon Josefsson  <jas@extundo.com>
78734
78735         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78736         Test more.
78737
78738         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78739
78740         * modules/md2, modules/md2-tests: New files.
78741
78742 2005-10-28  Simon Josefsson  <jas@extundo.com>
78743
78744         * m4/inet_ntop.m4: More tests.
78745
78746         * m4/gc-md2.m4, md2.m4: New file.
78747
78748 2005-10-28  Simon Josefsson  <jas@extundo.com>
78749
78750         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78751         "restrict" keywords, as per POSIX.  Protect the function
78752         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78753         Don't use K&R prototypes.  Check the sprintf return values.
78754         Re-define EAFNOSUPPORT if not present.  Indent.
78755
78756         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78757         suggested by Bruno Haible <bruno@clisp.org>.
78758
78759         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78760
78761         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78762
78763         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78764         libgcrypt).
78765
78766         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78767
78768         * lib/md2.h, lib/md2.c: New files.
78769
78770 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78773         errno alone.  Problem reported by Frederic Jolliton.
78774
78775 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * modules/verify (License): Change from GPL to LGPL.  This is a
78778         tiny module and there are apparently near-equivalents that are
78779         under the BSD license.
78780
78781 2005-10-24  Simon Josefsson  <jas@extundo.com>
78782
78783         * modules/sha1: Relicense to LGPL.
78784
78785 2005-10-24  Simon Josefsson  <jas@extundo.com>
78786
78787         * lib/md4.h: Shrink buffer size, now that we changed the type.
78788
78789 2005-10-23  Simon Josefsson  <jas@extundo.com>
78790
78791         * gnulib-tool (func_import): Fix --tests-base.
78792
78793 2005-10-22  Simon Josefsson  <jas@extundo.com>
78794
78795         * modules/arcfour (Depends-on): Need stdint.
78796
78797 2005-10-22  Simon Josefsson  <jas@extundo.com>
78798
78799         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78800         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78801
78802 2005-10-22  Simon Josefsson  <jas@extundo.com>
78803
78804         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78805         suggested by Bruno Haible <bruno@clisp.org>.
78806
78807 2005-10-22  Simon Josefsson  <jas@extundo.com>
78808
78809         * lib/crc.h: Include stddef.h, for size_t.
78810
78811 2005-10-22  Simon Josefsson  <jas@extundo.com>
78812
78813         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78814         arcfour_context struct (simplify test vector testing in GNU
78815         Shishi).
78816
78817 2005-10-21  Simon Josefsson  <jas@extundo.com>
78818
78819         * modules/des, modules/des-tests: New files.
78820
78821         * modules/gc-des, modules/gc-des-tests: New files.
78822
78823         * tests/test-des.c, tests/test-gc-des.c: New file.
78824
78825 2005-10-21  Simon Josefsson  <jas@extundo.com>
78826
78827         * modules/arctwo, modules/arctwo-tests: New files.
78828
78829         * tests/test-arctwo.c: New file.
78830
78831         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78832
78833         * tests/test-gc-arctwo.c: New file.
78834
78835 2005-10-21  Simon Josefsson  <jas@extundo.com>
78836
78837         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78838         Bruno Haible <bruno@clisp.org>.
78839
78840         * m4/gc-des.m4: New file.
78841
78842 2005-10-21  Simon Josefsson  <jas@extundo.com>
78843
78844         * m4/arctwo.m4: New file.
78845
78846         * m4/gc-arctwo.m4: New file.
78847
78848 2005-10-21  Simon Josefsson  <jas@extundo.com>
78849
78850         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78851         block.
78852
78853 2005-10-21  Simon Josefsson  <jas@extundo.com>
78854
78855         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78856         <bruno@clisp.org>.
78857
78858         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78859
78860         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78861         Bruno Haible <bruno@clisp.org>.
78862
78863         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78864         <bruno@clisp.org>.
78865
78866 2005-10-21  Simon Josefsson  <jas@extundo.com>
78867
78868         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78869
78870 2005-10-21  Simon Josefsson  <jas@extundo.com>
78871
78872         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78873
78874 2005-10-21  Simon Josefsson  <jas@extundo.com>
78875
78876         * lib/des.h, lib/des.c: New files.
78877
78878         * lib/gc-gnulib.c: Support DES.c
78879
78880 2005-10-21  Simon Josefsson  <jas@extundo.com>
78881
78882         * lib/arctwo.h, lib/arctwo.c: New files.
78883
78884         * lib/gc-gnulib.c: Support ARCTWO.
78885
78886 2005-10-21  Simon Josefsson  <jas@extundo.com>
78887
78888         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78889         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78890
78891 2005-10-21  Simon Josefsson  <jas@extundo.com>
78892
78893         * gnulib-tool (func_import, func_create_testdir): Define automake
78894         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78895         Makefile.am snippet),
78896         suggested by Bruno Haible <bruno@clisp.org>.
78897
78898         * modules/gc (Makefile.am): Use it.
78899
78900 2005-10-21  Bruno Haible  <bruno@clisp.org>
78901
78902         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78903         patch.
78904
78905 2005-10-19  Simon Josefsson  <jas@extundo.com>
78906
78907         * tests/test-gc-rijndael.c: New file.
78908
78909         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78910
78911 2005-10-19  Simon Josefsson  <jas@extundo.com>
78912
78913         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78914         interface too.
78915
78916 2005-10-19  Simon Josefsson  <jas@extundo.com>
78917
78918         * tests/test-gc-arcfour.c: New file.
78919
78920         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78921
78922 2005-10-19  Simon Josefsson  <jas@extundo.com>
78923
78924         * modules/gc-md4, modules/gc-md4-tests: New file.
78925
78926         * tests/test-gc-md4.c: New file.
78927
78928 2005-10-19  Simon Josefsson  <jas@extundo.com>
78929
78930         * m4/gc-md4.m4: New file.
78931
78932 2005-10-19  Simon Josefsson  <jas@extundo.com>
78933
78934         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78935         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78936         <kasal@ucw.cz>.
78937
78938 2005-10-19  Simon Josefsson  <jas@extundo.com>
78939
78940         * m4/gc-arcfour.m4: New file.
78941
78942         * m4/gc-rijndael.m4: New file.
78943
78944 2005-10-19  Simon Josefsson  <jas@extundo.com>
78945
78946         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78947
78948 2005-10-19  Simon Josefsson  <jas@extundo.com>
78949
78950         * lib/gc-gnulib.c: Support ARCFOUR.
78951
78952 2005-10-19  Simon Josefsson  <jas@extundo.com>
78953
78954         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78955         support.
78956
78957         * lib/gc.h: Add ECB enum type.
78958
78959         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78960
78961 2005-10-18  Simon Josefsson  <jas@extundo.com>
78962
78963         * tests/test-md5.c: New file.
78964
78965         * modules/md5-tests: New file.
78966
78967 2005-10-18  Simon Josefsson  <jas@extundo.com>
78968
78969         * tests/test-md4.c: New file.
78970
78971         * modules/md4, modules/md4-tests: New files.
78972
78973 2005-10-18  Simon Josefsson  <jas@extundo.com>
78974
78975         * m4/md4.m4: New file.
78976
78977 2005-10-18  Simon Josefsson  <jas@extundo.com>
78978
78979         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78980
78981 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78982
78983         * gnulib-tool (func_create_testdir): Omit the second check whether
78984         BUILT_SOURCES in nonempty.
78985
78986 2005-10-17  Simon Josefsson  <jas@extundo.com>
78987
78988         * tests/test-rijndael.c: New file.
78989
78990 2005-10-17  Simon Josefsson  <jas@extundo.com>
78991
78992         * modules/sha1: Depend on stdint instead of md5.
78993
78994         * modules/md5: Depend on stdint, remove uint32_t.
78995
78996 2005-10-17  Simon Josefsson  <jas@extundo.com>
78997
78998         * modules/gc-sha1-tests: New file.
78999
79000         * tests/test-gc-sha1.c: New file.
79001
79002 2005-10-17  Simon Josefsson  <jas@extundo.com>
79003
79004         * m4/md5.m4: Remove call to uint32_t.m4.
79005
79006 2005-10-17  Simon Josefsson  <jas@extundo.com>
79007
79008         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79009
79010         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79011         md5.h.
79012
79013         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79014
79015         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79016
79017 2005-10-17  Simon Josefsson  <jas@extundo.com>
79018
79019         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79020
79021 2005-10-17  Simon Josefsson  <jas@extundo.com>
79022
79023         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79024
79025 2005-10-17  Simon Josefsson  <jas@extundo.com>
79026
79027         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79028
79029         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79030
79031 2005-10-17  Bruno Haible  <bruno@clisp.org>
79032
79033         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79034         that it can also be used in a test.
79035
79036 2005-10-16  Bruno Haible  <bruno@clisp.org>
79037
79038         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79039         TESTS_ENVIRONMENT, so that individual tests can augment it.
79040
79041         * gnulib-tool (func_create_testdir): Use an intermediate target for
79042         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79043         macros, like $(ALLOCA_H), which cannot be passed through the command
79044         line.
79045
79046 2005-10-15  Simon Josefsson  <jas@extundo.com>
79047
79048         * modules/rijndael-tests: New file.
79049
79050         * modules/rijndael: New file.
79051
79052 2005-10-15  Simon Josefsson  <jas@extundo.com>
79053
79054         * m4/rijndael.m4: New file.
79055
79056 2005-10-15  Simon Josefsson  <jas@extundo.com>
79057
79058         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79059
79060         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79061
79062 2005-10-14  Simon Josefsson  <jas@extundo.com>
79063
79064         * tests/test-arcfour.c: New file.
79065
79066         * modules/arcfour, modules/arcfour-tests: New files.
79067
79068 2005-10-14  Simon Josefsson  <jas@extundo.com>
79069
79070         * m4/arcfour.m4: New file.
79071
79072 2005-10-14  Simon Josefsson  <jas@extundo.com>
79073
79074         * lib/arcfour.h, lib/arcfour.c: New files.
79075
79076 2005-10-14  Roland McGrath  <roland@redhat.com>
79077
79078         Import from libc.  [BZ #1331]
79079         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79080         macro argument.
79081         Reported by Matej Vela <vela@debian.org>.
79082
79083 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79086         include <wchar.h>; no longer needed.
79087
79088 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79091
79092 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79093         and  Ulrich Drepper  <drepper@redhat.com>
79094
79095         Import from libc.
79096         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79097         instead of inline stream orientation test and two separate
79098         function calls.  Pay no attention to USE_IN_LIBIO.
79099
79100 2005-10-13  Simon Josefsson  <jas@extundo.com>
79101
79102         * modules/gc-hmac-md5-tests: New file.
79103
79104         * tests/test-gc-hmac-sha1.c: New file.
79105
79106         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79107
79108         * modules/gc-hmac-md5-tests: New file.
79109
79110         * tests/test-gc-md5.c: New file.
79111
79112         * modules/gc-md5-tests: New file.
79113
79114 2005-10-13  Simon Josefsson  <jas@extundo.com>
79115
79116         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79117         Move memory allocation outside of loop.
79118
79119 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79122         intermediate directory is in a read-only file system.  Problem
79123         reported by Eric Blake.
79124
79125 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79126
79127         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79128
79129 2005-10-12  Simon Josefsson  <jas@extundo.com>
79130
79131         * tests/test-hmac-sha1.c: New file.
79132
79133         * modules/hmac-sha1-tests: New file.
79134
79135         * modules/hmac-sha1: New file.
79136
79137 2005-10-12  Simon Josefsson  <jas@extundo.com>
79138
79139         * modules/gc-sha1: New file.
79140
79141 2005-10-12  Simon Josefsson  <jas@extundo.com>
79142
79143         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79144
79145         * tests/test-gc-pbkdf2-sha1.c: New file.
79146
79147 2005-10-12  Simon Josefsson  <jas@extundo.com>
79148
79149         * modules/gc-md5, modules/gc-hmac-md5: New files.
79150
79151         * modules/gc (Files): Remove md5, memxor and hmac files.
79152
79153 2005-10-12  Simon Josefsson  <jas@extundo.com>
79154
79155         * m4/gc-pbkdf2-sha1.m4: New file.
79156
79157         * m4/gc-hmac-sha1.m4: New file.
79158
79159         * m4/gc-sha1: New file.
79160
79161         * m4/hmac-sha1.m4: New file.
79162
79163 2005-10-12  Simon Josefsson  <jas@extundo.com>
79164
79165         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79166
79167         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79168
79169 2005-10-12  Simon Josefsson  <jas@extundo.com>
79170
79171         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79172         suggested by Bruno Haible <bruno@clisp.org>.
79173
79174 2005-10-12  Simon Josefsson  <jas@extundo.com>
79175
79176         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79177
79178 2005-10-12  Simon Josefsson  <jas@extundo.com>
79179
79180         * lib/gc-pbkdf2-sha1.c: New file.
79181
79182         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79183
79184 2005-10-12  Simon Josefsson  <jas@extundo.com>
79185
79186         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79187
79188         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79189
79190 2005-10-12  Simon Josefsson  <jas@extundo.com>
79191
79192         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79193         GC_USE_HMAC_MD5, respectively.
79194
79195         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79196         (gc_md5): Fix typo.
79197
79198         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79199
79200         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79201
79202         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79203
79204 2005-10-12  Bruno Haible  <bruno@clisp.org>
79205
79206         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79207         Reported by Stepan Kasal <kasal@ucw.cz>.
79208
79209 2005-10-11  Simon Josefsson  <jas@extundo.com>
79210
79211         * tests/test-crc.c: New file.
79212
79213         * modules/crc, modules/crc-tests: New files.
79214
79215 2005-10-11  Simon Josefsson  <jas@extundo.com>
79216
79217         * m4/crc.m4: New file.
79218
79219 2005-10-11  Simon Josefsson  <jas@extundo.com>
79220
79221         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79222
79223         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79224
79225         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79226
79227 2005-10-11  Simon Josefsson  <jas@extundo.com>
79228
79229         * lib/crc.h, lib/crc.c: New files.
79230
79231         * lib/gc.h (gc_hash_buffer): Add doc.
79232
79233 2005-10-11  Bruno Haible  <bruno@clisp.org>
79234
79235         * modules/c-strcasestr: New file.
79236         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79237
79238 2005-10-11  Bruno Haible  <bruno@clisp.org>
79239
79240         * modules/c-strcase: New file.
79241         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79242
79243 2005-10-11  Bruno Haible  <bruno@clisp.org>
79244
79245         * lib/strcasecmp.c: Include limits.h.
79246         (strcasecmp): Avoid integer overflow on exotic platforms.
79247         * lib/strncasecmp.c: Include limits.h.
79248         (strncasecmp): Avoid integer overflow on exotic platforms.
79249         Reported by Paul Eggert.
79250
79251 2005-10-11  Bruno Haible  <bruno@clisp.org>
79252
79253         * lib/c-strcasestr.h: New file, from GNU gettext.
79254         * lib/c-strcasestr.c: New file, from GNU gettext.
79255
79256 2005-10-11  Bruno Haible  <bruno@clisp.org>
79257
79258         * lib/c-strcase.h: New file, from GNU gettext.
79259         * lib/c-strcasecmp.c: New file, from GNU gettext.
79260         * lib/c-strncasecmp.c: New file, from GNU gettext.
79261
79262 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         * modules/mempcpy (License): GPL -> LGPL.
79265         * modules/strchrnul (License): Likewise.
79266         * modules/sysexits (License): Likewise.
79267
79268 2005-10-08  Simon Josefsson  <jas@extundo.com>
79269
79270         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79271
79272 2005-10-07  Simon Josefsson  <jas@extundo.com>
79273
79274         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79275
79276 2005-10-06  Simon Josefsson  <jas@extundo.com>
79277
79278         * tests/test-hmac-md5.c: New file.
79279
79280         * modules/hmac-md5-tests: New file.
79281
79282         * modules/hmac-md5: New file.
79283
79284 2005-10-06  Simon Josefsson  <jas@extundo.com>
79285
79286         * m4/hmac-md5.m4: New file.
79287
79288         * m4/memxor.m4: Require gl_C_RESTRICT.
79289
79290 2005-10-06  Simon Josefsson  <jas@extundo.com>
79291
79292         * lib/memxor.c (memxor): Avoid casts and warnings.
79293
79294 2005-10-06  Simon Josefsson  <jas@extundo.com>
79295
79296         * lib/hmac-md5.c: New file.
79297
79298         * lib/hmac.h: New file.
79299
79300 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79303         promotes to int, not unsigned int, to catch the AIX 5.3
79304         compiler bug.
79305
79306 2005-10-05  Simon Josefsson  <jas@extundo.com>
79307
79308         * modules/memxor: New file.
79309
79310         * modules/iconv (Files): Move config.rpath to havelib, it is used
79311         there.
79312
79313         * modules/havelib (Files): Add config.rpath.
79314
79315 2005-10-05  Simon Josefsson  <jas@extundo.com>
79316
79317         * m4/memxor.m4: New file.
79318
79319 2005-10-05  Simon Josefsson  <jas@extundo.com>
79320
79321         * lib/memxor.c (memxor): Fix compiler error.
79322
79323         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79324         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79325
79326         * lib/memxor.h, lib/memxor.c: New files.
79327
79328         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79329         we assume all systems have it, suggested by Jim Meyering
79330         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79331         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79332         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79333         same reasons.
79334
79335 2005-10-05  Simon Josefsson  <jas@extundo.com>
79336
79337         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79338
79339 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79342         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79343         needed, since the source code now assumes these .h files.
79344
79345 2005-10-05  Derek Price  <derek@ximbiot.com>
79346
79347         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79348
79349 2005-10-05  Bruno Haible  <bruno@clisp.org>
79350
79351         * modules/stdint (License): Change to LGPL.
79352
79353 2005-10-04  Simon Josefsson  <jas@extundo.com>
79354
79355         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79356         D. Baushke" <mdb@gnu.org>.
79357
79358 2005-10-04  Bruno Haible  <bruno@clisp.org>
79359
79360         * lib/verify.h (verify_true): Provide alternative definition for C++.
79361
79362 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79363
79364         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79365         (SSIZE_MAX): New macro, if not already defined.
79366         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79367         than 2 GiB.
79368
79369 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         Sync from coreutils.
79372         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79373         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79374         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79375         ULLONG_MAX doesn't work with 2.7.2.1.
79376
79377 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79380         From Ben Pfaff.
79381
79382         * modules/exclude (Depends-on): Depend on verify.
79383         * modules/strtoimax (Depends-on): Likewise.
79384         * modules/utimecmp (Depends-on): Likewise.
79385
79386 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * lib/exclude.c: Include verify.h.
79389         (verify): Remove.  All callers changed to use verify.h's version.
79390         * lib/strtoimax.c: Likewise.
79391         * lib/utimecmp.c: Likewis.e
79392
79393         Sync from coreutils.
79394         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79395         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79396         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79397         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79398         bother returning ENOSYS if settimeofday or stime fails; just let
79399         them return whatever errno they want to return.
79400         * lib/utimens.c: Include unistd.h, for dup2.
79401         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79402         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79403
79404 2005-10-02  Jim Meyering  <jim@meyering.net>
79405
79406         Sync from coreutils.
79407         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79408         from glibc-2.2.5 that fails for read-only files.
79409
79410 2005-10-02  Jim Meyering  <jim@meyering.net>
79411
79412         Sync from coreutils.
79413         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79414         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79415         `#if HAVE_CONFIG_H'.
79416         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79417         Remove AT_FDCWD test.
79418         Do not consume the fd unless successful.
79419         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79420         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79421         block, so that we don't even try to compile it if settimeofday is
79422         available.  This works around a compilation failure on OSF1 V5.1,
79423         due to stime requiring a `long int*' while tv_sec is `int'.
79424
79425 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79426
79427         Sync from coreutils.
79428         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79429         against `yes', rather than just testing for nonempty.
79430
79431 2005-10-01  Simon Josefsson  <jas@extundo.com>
79432
79433         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79434         and Darwin.
79435
79436         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79437         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79438         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79439         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79440         Check if struct addrinfo is declared.
79441
79442 2005-10-01  Simon Josefsson  <jas@extundo.com>
79443
79444         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79445         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79446         AI_* and EAI_* definitions.  Protect function declarations.
79447
79448 2005-10-01  Jim Meyering  <jim@meyering.net>
79449
79450         Sync from coreutils.
79451
79452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79453         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79454         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79456         in the inet and nsl libraries.  Required on Solaris 5.7.
79457
79458 2005-10-01  Jim Meyering  <jim@meyering.net>
79459
79460         Sync from coreutils.
79461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79462         in the inet and nsl libraries.  Required on Solaris 5.7.
79463
79464 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79465
79466         * lib/getdelim.c (getdelim): Remove unused variables.
79467
79468 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79471         so that the code works even with ancient cpp.  Portability problem
79472         with GCC 2.7.2.1 reported by Thomas M.Ott.
79473
79474 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * modules/regex (Depends-on): Add strcase.
79477
79478         * modules/gethostname (Licence): Change from GPL to LGPL, since
79479         gethostname.c is a trivial implementation of a standard library
79480         function.
79481         * modules/poll (License): Change from GPL to LGPL, since it's
79482         derived from LGPL code.
79483
79484 2005-09-27  Jim Meyering  <jim@meyering.net>
79485
79486         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79487         HAVE_CONFIG_H.
79488
79489         * lib/intprops.h (signed_type_or_expr__): Define.
79490         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79491         for unsigned types.
79492
79493 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * lib/verify.h (verify_expr): Remove, replacing with:
79496         (verify_true): New macro that returns true instead of void.
79497         (verify_type__): Remove.
79498         (verify): Use verify_true rather than verify_type__.
79499
79500 2005-09-26  Bruno Haible  <bruno@clisp.org>
79501
79502         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79503         is necessary.
79504         (lib_SOURCES): Remove mbchar.c.
79505         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79506         (Files): Add m4/mbrtowc.m4.
79507         * modules/mbiter: Likewise.
79508         * modules/mbuiter: Likewise.
79509
79510 2005-09-26  Bruno Haible  <bruno@clisp.org>
79511
79512         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79513         compile mbchar.c if they are not both present.
79514         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79515         * m4/mbiter.m4 (gl_MBITER): Likewise.
79516         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79517         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79518         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79519
79520 2005-09-25  Jim Meyering  <jim@meyering.net>
79521
79522         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79523         also uses socklen_t.
79524
79525 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79526
79527         * lib/utimens.c (ENOSYS): Define if not already defined.
79528         (futimens): Support having a null PATH if the file descriptor
79529         is nonnegative.
79530
79531         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79532         Remove.
79533         (__attribute): Define to empty unless GCC 3.1 or later.
79534         This works around a core dump on OpenBSD 3.4, which has GCC
79535         2.95.3, which dumps core when given __attribute__(()).  It also
79536         simplifies other tests, since we really don't want to bother with
79537         worrying about which ancient version of GCC supported what.
79538         Original problem reported by Yoann Vandoorselaere, with part of
79539         the fix suggested by Derek Price.
79540
79541 2005-09-24  Jim Meyering  <jim@meyering.net>
79542
79543         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79544         so we can once again use a positive bitfield width of 1 -- now we
79545         don't have to explain why we were using a bitfield width of 2.
79546
79547 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79550         and similarly for the other external symbols.  Problem reported
79551         by James Gallager.
79552
79553         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79554         bug reported by Jim Meyering.
79555
79556         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79557         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79558         not needed, since socklen is a prerequisite module.
79559
79560 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79563         Problem reported by Eric Blake.
79564         (getaddrinfo): Initialize se so that it's not garbage.
79565         Redo internal storage allocation so that it doesn't make unportable
79566         assumptions about alignment.
79567         Fix a memory leak.
79568
79569         * lib/utimens.c (futimens): Use futimesat if available.
79570         Prefer it to futimes since it doesn't have the futimes bug.
79571
79572         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79573         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79574         Instead, declare a function that returns a pointer to an array,
79575         and use verify_type__ to declare the size of the array.
79576         Problem and germ of a solution reported by Bruno Haible.
79577         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79578         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79579
79580 2005-09-23  Jim Meyering  <jim@meyering.net>
79581
79582         Sync from coreutils.
79583         Correct build failure (socklen_t not defined) on at least
79584         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79585         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79586
79587 2005-09-23  Jim Meyering  <jim@meyering.net>
79588
79589         * modules/getaddrinfo (Depends-on): Add socklen.
79590
79591 2005-09-23  Bruno Haible  <bruno@clisp.org>
79592
79593         * tests/test-verify.c: New file.
79594
79595 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79596
79597         Sync from coreutils.
79598
79599         * modules/argmatch (Depends-on): Add verify.
79600         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79601         unistd-safer.
79602         * modules/save-cwd (Depends-on): Likewise.
79603
79604         * modules/openat (Files): Add lib/openat-die.c.
79605         (Depends-on): Remove error, exitfail.
79606         Add dirname.
79607
79608         * modules/verify: New file.
79609         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79610         with "verify" module.
79611
79612 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         Sync from coreutils.
79615
79616         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79617         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79618         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79619         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79620         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79621         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79622         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79623         Don't bother checking for string.h, stdlib.h, unistd.h.
79624         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79625         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79626         module's job.
79627         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79628         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79629
79630         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79631         (gl_GETDATE): Use it.
79632
79633         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79634
79635 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79636
79637         Sync from coreutils.
79638
79639         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79640         stat-time.h.
79641         * lib/argmatch.h: Include verify.h
79642         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79643         (ARGMATCH_ASSERT): Remove; unused.
79644         * lib/canonicalize.c: Assume STDC_HEADERS.
79645         * lib/exclude.c: Include "strcase.h".
79646         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79647         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79648         and stdio-safer.h.
79649         (getusershell): Call fopen, not fopen_safer.
79650         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79651         Do not include unistd-safer.h.
79652         (save_cwd): Don't call fd_safer; no longer needed
79653         now that we include fcntl--.h.
79654
79655         * lib/getdate.y (relative_time): New type.
79656         (RELATIVE_TIME_0): New constant.
79657         (parser_control): Use relative_time instead of doing it ourselves.
79658         (%union): Add new relative_time rel member.
79659         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79660         Now typeless.
79661         (relunit, relunit_snumber): Now of type rel.
79662         (zone, rel, relunit, get_date): Adjust to above changes.
79663
79664         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79665         Do not include unistd-safer.h.
79666         (getloadavg): Don't call fd_safer; no longer needed
79667         now that we include fcntl--.h.
79668
79669         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79670         (make_dir_parents): Treat ENOSYS like EEXIST.
79671
79672         Improve quality of diagnostics on restore_cwd failure.
79673         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79674         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79675         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79676         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79677         each time through the loop.  Do not diagnose restore_cwd failure;
79678         that is the caller's job (and perhaps the caller does not care).
79679
79680         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79681         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79682         If the file already exists but is not a directory, don't bother
79683         to try to make its parents.
79684         Close potential file descriptor leak if we can't chdir("/") (!).
79685         Don't always return true if chdir($PWD) fails; return true only
79686         if the requested action was done successfully (except for the
79687         chdir($PWD)).
79688         Don't log final directory unless we actually made it.
79689         Refactor to avoid duplicate code to fix up permissions.
79690         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79691
79692         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79693         to make it a bit faster and (I hope) clearer.
79694         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79695         Fix bug in formats like %2N.
79696
79697         * lib/verify.h: New file.
79698
79699 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79700
79701         Sync from coreutils.
79702         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79703
79704 2005-09-22  Jim Meyering  <jim@meyering.net>
79705
79706         Sync from coreutils.
79707
79708         * m4/lstat.m4 (gl_FUNC_LSTAT):
79709         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79710         Remove obsolete comment.
79711         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79712         * m4/xstrtod.m4: Likewise.
79713
79714         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79715
79716 2005-09-22  Jim Meyering  <jim@meyering.net>
79717
79718         Sync from coreutils.
79719
79720         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79721
79722         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79723         the .tm_year member, since otherwise gcc-4.0 would now warn about
79724         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79725
79726         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79727         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79728
79729         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79730         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79731         when run in a time zone for which daylight savings time is in effect
79732         for the starting date.
79733
79734         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79735         stop us from restricting permissions of just-created absolute-named
79736         directories.
79737         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79738         to restore initial working directory.
79739         * lib/mkdir-p.c (make_dir_parents): New parameter:
79740         different_working_dir, to tell caller if/when we change the working
79741         directory and are unable to return to the initial one.
79742         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79743         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79744         `return false'.  This fixes a bug introduced on 2004-07-30.
79745
79746         * lib/openat.c (fdopendir): Be sure to close the supplied
79747         file descriptor before returning.  This makes our replacement
79748         implementation a little closer to Solaris's, where fdopendir
79749         ties the file descriptor to the returned DIR* pointer.
79750         * lib/openat.c (unlinkat): New function.
79751         * lib/openat.h (unlinkat): Add prototype.
79752         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79753         (openat_restore_fail): Rename from openat_restore_die.
79754         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79755
79756         Provide an alternative to exiting immediately upon save_cwd or
79757         restore_cwd failure.  Now, an application can arrange e.g.,
79758         to perform a longjump in that case.
79759         * lib/openat.c: Include dirname.h.
79760         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79761         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79762         and openat_restore_die rather than calling error directly.
79763         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79764
79765         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79766         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79767         define.
79768
79769         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79770         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79771                             int utc, int nanoseconds);
79772         Background:
79773         date should not have to allocate a megabyte of virtual memory to
79774         handle a format argument like +%1048575T.  When implemented with
79775         strftime, it must allocate such a buffer, use strftime to fill it
79776         in, print it, then free it.
79777         With fprintftime, it simply prints everything and exits.
79778         With no need for memory allocation, that's one fewer way to fail.
79779         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79780         optional field width, not before, so we accept %9:z, not %:9z.
79781         (my_strftime): Be sure to use L_('x') for literals.
79782
79783         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79784         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79785         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79786         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79787         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79788         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79789         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79790         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79791         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79792         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79793         * lib/xgethostname.c, lib/xreadlink.c:
79794         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79795
79796         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79797         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79798         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79799         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79800         and don't include <sys/file.h>).
79801
79802 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79803
79804         Sync from coreutils.
79805
79806         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79807         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79808         [!LDAV_DONE]: Avoid unused variable warning.
79809
79810 2005-09-21  Bruno Haible  <bruno@clisp.org>
79811
79812         * lib/unicodeio.h (unicode_to_mb): New declaration.
79813
79814 2005-09-20  Derek Price  <derek@ximbiot.com>
79815
79816         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79817         getaddrinfo.h.
79818
79819 2005-09-20  Bruno Haible  <bruno@clisp.org>
79820
79821         * gnulib-tool: Remove trailing slashes from the values specified for
79822         --source-base, --m4-base, --tests-base, --aux-dir.
79823         Suggested by Simon Josefsson <jas@extundo.com>.
79824
79825 2005-09-20  Bruno Haible  <bruno@clisp.org>
79826
79827         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79828         func_modules_to_filelist, func_import, func_create_testdir): Make all
79829         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79830         change when gnulib-tool is invoked in a different locale.
79831
79832 2005-09-19  Simon Josefsson  <jas@extundo.com>
79833
79834         * m4/socklen.m4: Fix typo.
79835
79836 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79837
79838         Use a consistent style for including <config.h>.
79839         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79840         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79841         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79842         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79843         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79844         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79845         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79846         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79847         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79848         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79849         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79850         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79851         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79852         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79853         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79854         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79855         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79856         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79857         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79858         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79859         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79860         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79861         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79862         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79863         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79864         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79865         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79866         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79867         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79868         lib/xstrtoumax.c, lib/yesno.c:
79869         Standardize inclusion of config.h.
79870         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79871         lib/inttostr.h:  Removed inclusion of config.h from header files.
79872         * lib/inttostr.c:  Adjusted in-tree users.
79873         * lib/timespec.h: Remove superfluous warning to include config.h.
79874         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79875         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79876         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79877         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79878         config.h with HAVE_CONFIG_H.
79879
79880 2005-09-19  Jim Meyering  <jim@meyering.net>
79881
79882         * modules/pathmax (License): Change to LGPL.
79883
79884 2005-09-19  Derek Price  <derek@ximbiot.com>
79885
79886         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79887
79888 2005-09-19  Bruno Haible  <bruno@clisp.org>
79889
79890         * gnulib-tool (import): Provide default for --tests-base.
79891
79892 2005-09-19  Bruno Haible  <bruno@clisp.org>
79893
79894         * doc/quote.texi: New file, extracted from gnulib.texi.
79895         * doc/ctime.texi: New file, extracted from gnulib.texi.
79896         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79897         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79898         * doc/gnulib.texi: Include them.
79899
79900 2005-09-18  Bruno Haible  <bruno@clisp.org>
79901
79902         Portability fix.
79903         * gnulib-tool (func_readlink): New function.
79904         (func_ln_if_changed): Use it.
79905
79906 2005-09-18  Bruno Haible  <bruno@clisp.org>
79907
79908         * gnulib-tool: Support --with-tests also with --import.
79909         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79910         (func_import): Use variables $testsbase and $inctests. Emit a
79911         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79912         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79913         SUBDIRS += $testsdir.
79914         (func_create_testdir): Update.
79915
79916 2005-09-18  Bruno Haible  <bruno@clisp.org>
79917
79918         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79919         instead of $dry_run.
79920         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79921         (func_ln_if_changed): Don't handle dry-run here.
79922         (func_import): In dry-run mode, detect more precisely which actions
79923         would be performed, and don't use "...ing" verbs.
79924
79925 2005-09-18  Bruno Haible  <bruno@clisp.org>
79926
79927         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79928         (func_import): Use join on two temporary files instead of three nested
79929         loops, in order to determine which files are new or old.
79930
79931 2005-09-18  Bruno Haible  <bruno@clisp.org>
79932
79933         * gnulib-tool (func_import): Comment out code that spits out the
79934         new files with --dry-run.
79935
79936 2005-09-18  Bruno Haible  <bruno@clisp.org>
79937
79938         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79939
79940 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         * lib/stat-time.h: New file.
79943         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79944         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79945         in a different way.
79946         (timespec_cmp): New function.
79947         * lib/utimecmp.c: Include stat-time.h.
79948         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79949         members exist, not on the obsolescent ST_MTIM_NSEC.
79950         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79951
79952 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79955
79956 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79957
79958         * MODULES.html.sh (File system functions): Add stat-time.
79959         * modules/stat-time: New file.
79960         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79961         is now done in a different way, by the stat-time module.
79962         * modules/utimecmp (Depends-on): Add stat-time.
79963
79964 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * m4/st_mtim.m4: Remove.  Superseded by...
79967         * m4/stat-time.m4: New file.
79968         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79969         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79970
79971 2005-09-15  Derek Price  <derek@ximbiot.com>
79972
79973         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79974
79975 2005-09-15  Derek Price  <derek@ximbiot.com>
79976
79977         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79978         * lib/regex_internal.c: Ditto, using this...
79979         (__GNUC_PREREQ): ...new macro.
79980         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79981         using...
79982         (__GNUC_PREREQ): ...this new macro.
79983
79984         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79985
79986 2005-09-15  Derek Price  <derek@ximbiot.com>
79987             Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79990         changes, consolidating in...
79991         * lib/regex_internal.h: ...this file.
79992
79993 2005-09-13  Jim Meyering  <jim@meyering.net>
79994
79995         * lib/canon-host.c: Filter through gnu indent and reword comments
79996         slightly.
79997         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79998
79999 2005-09-13  Derek Price  <derek@ximbiot.com>
80000
80001         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80002         failure.
80003         Reported by Jim Meyering  <jim@meyering.net>.
80004
80005 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80006
80007         * lib/base64.c: Typo.
80008         (base64_encode): Put b64str in initialized data section.
80009
80010 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         Merge glibc and coreutils changes into gnulib, plus a few
80013         extra fixes.
80014         * lib/md5.c: Use #error rather than a string.
80015         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80016         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80017         (__attribute__): Define to empty for non recent-GCC.
80018         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80019         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80020         Renamed from their non-__ counterparts, with new macros replacing
80021         them if not _LIBC.  Add __THROW attribute.
80022         (rol): Remove.
80023         (struct md5_ctx): Align buffer if using GCC.
80024         * lib/sha1.h (struct sha1_ctx): Likewise.
80025         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80026         The old name was backwards.
80027         (NOTSWAP): Remove; not used.
80028         (rol): New macro, moved here from md5.h.
80029         (sha1_process_block): Remove a FIXME that doesn't make sense.
80030
80031 2005-09-12  Derek Price  <derek@ximbiot.com>
80032
80033         Return usable errors from canon-host.
80034         * lib/canon-host.h: New file.
80035         * lib/canon-host.c (canon_host): Wrap...
80036         (canon_host_r): ...this new function, which now relies exclusively on
80037         getaddrinfo.
80038         (ch_strerror): New function.
80039         (last_cherror): New global.
80040         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80041         interface.
80042         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80043         void *.
80044         (freeaddrinfo): Free ai->ai_canonname when set.
80045
80046 2005-09-12  Derek Price  <derek@ximbiot.com>
80047
80048         Make canon-host require getaddrinfo.
80049         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80050         AC_LIBSOURCE canon-host.h.  Call...
80051         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80052         gl_GETADDRINFO.
80053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80054
80055 2005-09-12  Derek Price  <derek@ximbiot.com>
80056
80057         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80058         LGPL.
80059         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80060
80061 2005-09-12  Derek Price  <derek@ximbiot.com>
80062
80063         * lib/gai_strerror.c: Include config.h when available.  Include
80064         getaddrinfo.h before other headers to test interface.
80065         Reported by Larry Jones <lawrence.jones@ugs.com>.
80066
80067 2005-09-12  Derek Price  <derek@ximbiot.com>
80068             Paul Eggert  <eggert@cs.ucla.edu>
80069
80070         * modules/glob (Files): Add glob-libc.h.
80071
80072 2005-09-12  Derek Price  <derek@ximbiot.com>
80073             Paul Eggert  <eggert@cs.ucla.edu>
80074
80075         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80076         glob_.h, glob-libc.h.
80077         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80078
80079 2005-09-12  Derek Price  <derek@ximbiot.com>
80080             Paul Eggert  <eggert@cs.ucla.edu>
80081
80082         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80083         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80084         protecting things that should be done only in gnulib contexts.
80085         * lib/glob_.h: New file, containing only the glob things needed for
80086         gnulib.
80087         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80088         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80089         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80090         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80091         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80092         and to respect the namespace rules better.
80093
80094 2005-09-08  Simon Josefsson  <jas@extundo.com>
80095
80096         * modules/socklen: New file.
80097
80098 2005-09-08  Simon Josefsson  <jas@extundo.com>
80099
80100         * m4/socklen.m4: New file.
80101
80102 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * modules/utimens (Files): Add m4/utimbuf.m4, since
80105         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80106         Reported by Sergey Poznyakoff.
80107
80108 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80109
80110         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80111         definitions, since that's the preferred style in glibc.
80112         Fix a minor spacing issue, and update copyright notice to match
80113         glibc's.
80114
80115 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80118
80119 2005-09-06  Simon Josefsson  <jas@extundo.com>
80120
80121         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80122         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80123
80124 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80125
80126         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80127         warning.
80128
80129 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80130
80131         * config/srclist.txt: Add glibc bug 1302.
80132
80133 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80134
80135         Change bitset word type from unsigned int to unsigned long int,
80136         as this has better performance on typical 64-bit hosts.
80137         Port bitset code to hosts with unusual word sizes.
80138         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80139         (build_collating_symbol):
80140         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80141         argument is a bitset.  This is merely a style issue, but it makes
80142         it clearer that an entire array is expected.
80143         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80144         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80145         Port to the case where bitset_word is not the same as unsigned int.
80146         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80147         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80148         Likewise.
80149         * lib/regexec.c (check_dst_limits_calc_pos_1,
80150         check_subexp_matching_top):
80151         (build_trtable, group_nodes_into_DFAstates):
80152         Likewise.
80153         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80154         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80155         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80156         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80157         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80158         * lib/regcomp.c (optimize_subexps, lower_subexp):
80159         Work even if bitset_word has holes in its bitwise representation.
80160         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80161         * lib/regexec.c (check_dst_limits_calc_pos_1,
80162         check_subexp_matching_top):
80163         Likewise.
80164         * lib/regex_internal.c (re_string_reconstruct):
80165         Don't assume UCHAR_MAX == 255.
80166         * lib/regex_internal.h (bitset_set_all): Likewise.
80167         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80168         All uses changed.
80169         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80170         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80171         All uses changed.
80172         (BITSET_WORD_MAX): New macro.
80173         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80174         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80175         (bitset_empty, bitset_copy):
80176         Prefer sizeof (bitset) to multiplying it out ourselves.
80177         (bitset_not_merge): Remove; unused.
80178         (bitset_contain): Return bool, not unsigned int with one bit on.
80179         All callers changed.
80180         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80181         alignment than re_node_set; do this by defining a new internal
80182         type struct dests_alloc and using it to allocate memory.
80183
80184 2005-09-05  Bruno Haible  <bruno@clisp.org>
80185
80186         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80187         links.
80188
80189 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80190
80191         * modules/size_max (Makefile.am): Add size_max.h
80192
80193 2005-09-04  Derek Price  <derek@ximbiot.com>
80194
80195         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80196
80197 2005-09-03  Simon Josefsson  <jas@extundo.com>
80198
80199         * gnulib-tool: Fix typo.
80200
80201 2005-09-03  Simon Josefsson  <jas@extundo.com>
80202
80203         * config/srclist.txt: Add glibc bug 1293.
80204
80205 2005-09-03  Derek Price  <derek@ximbiot.com>
80206
80207         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80208         From Larry Jones <lawrence.jones@ugs.com>.
80209
80210 2005-09-02  Simon Josefsson  <jas@extundo.com>
80211
80212         * modules/socklen: New file.
80213
80214 2005-09-02  Simon Josefsson  <jas@extundo.com>
80215
80216         * modules/havelib: New module.
80217
80218         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80219         Use havelib.
80220
80221 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80222
80223         Check for arithmetic overflow when calculating sizes, to prevent
80224         some buffer-overflow issues.  These patches are conservative, in the
80225         sense that when I couldn't determine whether an overflow was possible,
80226         I inserted a run-time check.
80227         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80228         macros.
80229         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80230         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80231         (re_xnrealloc, re_x2nrealloc): New inline functions.
80232         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80233         parse_bracket_exp):
80234         (build_equiv_class, build_charclass): Check for arithmetic overflow
80235         in size expression calculations.
80236         * lib/regex_internal.c (re_string_realloc_buffers):
80237         (build_wcs_upper_buffer, re_node_set_add_intersect):
80238         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80239         (re_dfa_add_node, register_state): Likewise.
80240         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80241         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80242         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80243         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80244
80245 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80246
80247         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80248         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80249
80250 2005-09-02  Bruno Haible  <bruno@clisp.org>
80251
80252         Support for lib vs. lib64 distinction on biarch platforms.
80253         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80254         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80255         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80256
80257 2005-09-02  Bruno Haible  <bruno@clisp.org>
80258
80259         * gnulib-tool (import): In the other first-use case, provide defaults
80260         as well.
80261
80262 2005-09-02  Bruno Haible  <bruno@clisp.org>
80263
80264         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80265         patches not yet found in the latest gettext release.
80266
80267 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80270         to avoid a collision with bits/local_lim.h in glibc.
80271         All uses changed.  Problem reported by Dmitry V. Levin in
80272         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80273
80274         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80275         bugs in int versus size_t comparisons.
80276         (re_string_context_at): Fix bug where the code assumed that
80277         Idx is signed.
80278
80279         Use bool where appropriate.
80280         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80281         All callers changed.
80282         (calc_eclosure_iter): Likewise, for ROOT arg.
80283         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80284         (build_charclass_op): Likewise, for NON_MATCH arg.
80285         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80286         (re_string_construct_common): Likewise, for ICASE arg.
80287         * lib/regexec.c (re_search_2_stub, re_search_stub):
80288         Likewise, for RET_LEN arg.
80289         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80290         (set_regs): Likewise, for FL_BACKTRACK arg.
80291         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80292         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80293         (calc_eclosure_iter, parse_bracket_exp):
80294         Use bool for internal variables that are booleans.
80295         * lib/regexec.c (re_search_internal, check_matching,
80296         proceed_next_node):
80297         (set_regs, build_sifted_states, sift_states_bkref):
80298         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80299         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80300         (find_collation_sequence_value):
80301         Likewise.
80302         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80303         (re_node_set_compare):
80304         Return bool, not int. All callers changed.
80305         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80306         (build_trtable, check_node_accept): Likewise.
80307         * lib/regex_internal.h: Include stdbool.h.
80308
80309         Fix bugs uncovered when converting to bool.
80310         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80311         failure instead of charging ahead blindly.
80312         * lib/regex_internal.c (register_state): Likewise.
80313         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80314         for freeing internal storage.
80315         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80316         bitset pieces used as boolean, to avoid undefined behavior
80317         on hosts that do int overflow checking.
80318
80319 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80320
80321         * config/srclist.txt: Add glibc bugs 1285-1287.
80322
80323 2005-09-01  Jim Meyering  <jim@meyering.net>
80324
80325         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80326         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80327         Require gl_STAT_MACROS, too.
80328
80329 2005-09-01  Bruno Haible  <bruno@clisp.org>
80330
80331         * gnulib-tool (import): In the first-use case, provide defaults.
80332
80333 2005-09-01  Bruno Haible  <bruno@clisp.org>
80334
80335         * gnulib-tool (func_import): Remove the .tmp files.
80336
80337 2005-09-01  Bruno Haible  <bruno@clisp.org>
80338
80339         * gnulib-tool (func_import): Fix handling of symbolic links.
80340
80341 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80344         old glibc regex code mishandles strings longer than 2**31 bytes.
80345         This patch fixes this when the regex code is used in gnulib
80346         (i.e., outside glibc).
80347
80348         This patch should not affect the use of the regex code inside
80349         glibc.  No doubt this problem also needs to be handled for glibc
80350         as well, but the result will be an incompatible change to the
80351         glibc ABI, and the old ABI will have to be supported too.  That
80352         can be the the subject for another patch.
80353
80354         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80355         governing whether the rest of this patch is active.  By default,
80356         the macro is disabled and the patch has no effect.
80357         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80358         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80359         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80360         (re_match_2, re_set_registers): Use the new types.
80361         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80362         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80363         New macros.
80364         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80365         (re_string_context_at, bin_tree_t, re_dfastate_t):
80366         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80367         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80368         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80369         (re_string_char_size_at, re_string_wchar_at):
80370         (re_string_elem_size_at):
80371         Use the new types and macros to port to 64-bit hosts.
80372         Use unsigned types for internal values, so that the code
80373         mostly works even for arrays larger than SSIZE_MAX.
80374         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80375         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80376         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80377         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80378         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80379         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80380         (calc_inveclosure, parse_dup_op, build_range_exp):
80381         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80382         (fetch_number, create_token_tree, mark_opt_subexp):
80383         Likewise.
80384         * lib/regex_internal.c (re_string_construct_common,
80385         create_ci_newstate):
80386         (create_cd_newstate, re_string_allocate, re_string_construct):
80387         (re_string_realloc_buffers, build_wcs_upper_buffer):
80388         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80389         (re_string_reconstruct, re_string_peek_byte_case):
80390         (re_string_fetch_byte_case, re_string_context_at):
80391         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80392         (re_node_set_init_copy, re_node_set_add_intersect):
80393         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80394         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80395         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80396         (re_acquire_state, re_acquire_state_context, register_state):
80397         Likewise.
80398         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80399         search_cur_bkref_entry):
80400         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80401         (re_search_internal, re_search_2_stub, re_search_stub)
80402         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80403         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80404         (update_cur_sifted_state, check_dst_limits):
80405         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80406         (check_subexp_limits, sift_states_bkref, merge_state_array):
80407         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80408         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80409         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80410         (expand_bkref_cache, check_node_accept_bytes):
80411         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80412         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80413         (acquire_init_state_context, check_halt_node_context):
80414         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80415         (sift_states_backward, clean_state_log_if_needed):
80416         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80417         (find_recover_state, transit_state_sb, transit_state_mb):
80418         (transit_state_bkref, build_trtable, match_ctx_clean):
80419         Likewise.
80420         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80421         to work around an assumption that REG_MISSING is negative.
80422
80423         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80424         (seek_collating_symbol_entry) [defined _LIBC]:
80425         (lookup_collation_sequence_value) [defined _LIBC]:
80426         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80427         Use prototypes rather than old-style function definitions.
80428         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80429         (transit_state_sb) [0]:
80430         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80431
80432         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80433         rm_eo.
80434
80435         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80436         (optimize_subexps, lower_subexp):
80437         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80438         since the signed shift might overflow.  Use 1u<<31 instead.
80439         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80440         Likewise.
80441         * lib/regexec.c (check_dst_limits_calc_pos_1,
80442         check_subexp_matching_top): Likewise.
80443
80444         * lib/regcomp.c (optimize_subexps, lower_subexp):
80445         Use CHAR_BIT rather than 8, for clarity.
80446         * lib/regexec.c (check_dst_limits_calc_pos_1):
80447         (check_subexp_matching_top): Likewise.
80448         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80449         have to worry about portability issues when shifting it left.
80450         Remove no-longer-needed test for table_size > 0.
80451         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80452         in a word, as the resulting behavior is undefined.
80453         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80454         in one case, a <= should have been an <, and in another case the
80455         whole test was missing.
80456         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80457         the standard name CHAR_BIT.
80458         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80459         this is not true on one's complement and signed-magnitude hosts.
80460
80461         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80462         next_last_offset.
80463         (struct re_dfa_t): Remove unused member states_alloc.
80464         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80465
80466 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80469         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80470         and large-file glibc and in 32-bit large-file Solaris.
80471
80472 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80473
80474         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80475         lengths fit in regoff_t; this isn't true if regoff_t is the same
80476         width as size_t.
80477         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80478         (= START + RANGE) instead of RANGE.  This avoids overflow
80479         problems when regoff_t is the same width as size_t.
80480         All callers changed.
80481         (re_search_2_stub): Check for overflow when adding the
80482         sizes of the two strings.
80483         (re_search_stub): Check for overflow when adding START
80484         to RANGE; if it occurs, substitute the extreme value.
80485
80486 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80489
80490 2005-08-31  Jim Meyering  <jim@meyering.net>
80491
80492         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80493         a pointer-to-const.
80494         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80495         (register_state): Likewise.
80496         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80497         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80498         (group_nodes_into_DFAstates): Likewise.
80499
80500 2005-08-31  Jim Meyering  <jim@meyering.net>
80501
80502         * check-module: Add a FIXME comment.
80503
80504 2005-08-31  Eric Blake  <ebb9@byu.net>
80505
80506         * modules/unistd-safer (Files): Add unistd--.h.
80507         * modules/stdio-safer (Files): Add stdio--.h.
80508
80509 2005-08-31  Derek Price  <derek@ximbiot.com>
80510
80511         * lib/getdelim.c (getdelim): Return EOF on EOF.
80512         Reported by Larry Jones <lawrence.jones@ugs.com>.
80513
80514 2005-08-31  Bruno Haible  <bruno@clisp.org>
80515
80516         Avoid unnecessary diffs in the generated lib/Makefile.am.
80517         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80518         the generated files.
80519         (func_import): Don't set cmd.
80520
80521 2005-08-31  Bruno Haible  <bruno@clisp.org>
80522
80523         * lib/strstr.c: Include <stddef.h>, for NULL.
80524         * lib/strcasestr.c: Likewise.
80525         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80526
80527 2005-08-31  Bruno Haible  <bruno@clisp.org>
80528
80529         * gnulib-tool: New option --macro-prefix.
80530         (func_import): Use macro_prefix.
80531         (import): Handle option --macro-prefix.
80532
80533 2005-08-31  Bruno Haible  <bruno@clisp.org>
80534
80535         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80536         Also use new variables cached_lgpl, cached_libtool.
80537
80538 2005-08-31  Bruno Haible  <bruno@clisp.org>
80539
80540         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80541         always instantiating them.
80542
80543 2005-08-31  Bruno Haible  <bruno@clisp.org>
80544
80545         * gnulib-tool (func_import): Read the previous cached settings
80546         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80547         earlier added by gnulib but are now dropped. Warn when a gnulib file
80548         overwrites a non-gnulib file.
80549
80550 2005-08-31  Bruno Haible  <bruno@clisp.org>
80551
80552         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80553         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80554         projects that don't keep autogenerated files in CVS. Put into
80555         actioncmd only the specified modules, not the transitive closure.
80556
80557 2005-08-31  Bruno Haible  <bruno@clisp.org>
80558
80559         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80560         Create directories that shall be filled.
80561         (import): Don't look for gl_* macros in configure.ac. Recurse across
80562         all directories containing a gnulib-cache.m4 files, if meaningful.
80563
80564 2005-08-31  Bruno Haible  <bruno@clisp.org>
80565
80566         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80567         (import): Set seen_libtool when we see gl_LIBTOOL.
80568
80569 2005-08-31  Bruno Haible  <bruno@clisp.org>
80570
80571         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80572         declaration macro definitions from generated gnulib.m4.
80573
80574 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80575
80576         * lib/iconvme.h: Add prototype for iconv_alloc.
80577
80578 2005-08-29  Simon Josefsson  <jas@extundo.com>
80579
80580         * lib/iconvme.c: Fix errno.
80581
80582 2005-08-29  Bruno Haible  <bruno@clisp.org>
80583
80584         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80585         that it works when the directory contains spaces.
80586
80587 2005-08-29  Bruno Haible  <bruno@clisp.org>
80588
80589         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80590
80591 2005-08-29  Bruno Haible  <bruno@clisp.org>
80592
80593         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80594         Emit more advice.
80595
80596 2005-08-29  Bruno Haible  <bruno@clisp.org>
80597         and Stepan Kasal  <kasal@ucw.cz>
80598
80599         * check-module: If more parameters are given, check each of them
80600         separately; add more exceptions, as noted by Jim Meyering.
80601         (check_module): New procedure.
80602         (%exempt_header): Now contains all exceptions.
80603
80604 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80605
80606         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80607
80608 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80609
80610         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80611
80612 2005-08-28  Bruno Haible  <bruno@clisp.org>
80613
80614         * m4/gnulib-tool.m4: New file.
80615
80616 2005-08-27  Jim Meyering  <jim@meyering.net>
80617
80618         * modules/unistd-safer (Files): Add pipe-safer.c.
80619         * modules/fcntl-safer (Files): Add creat-safer.c.
80620
80621 2005-08-27  Jim Meyering  <jim@meyering.net>
80622
80623         * m4/stdlib-safer.m4: New file.  From coreutils.
80624         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80625         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80626         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80627         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80628         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80629
80630 2005-08-27  Jim Meyering  <jim@meyering.net>
80631
80632         * lib/fopen-safer.c: Merge minor changes from coreutils.
80633         * lib/dup-safer.c: Likewise.
80634         * lib/fd-safer.c: Likewise.
80635
80636         Merge from coreutils.
80637         * lib/stdio--.h: New file.
80638         * lib/stdlib--.h: New file.
80639         * lib/mkstemp-safer.c: New file.
80640
80641         GNU tar needs these.
80642         * lib/pipe-safer.c: New file.
80643         * lib/creat-safer.c: New file.
80644         * lib/fcntl--.h (creat): Define to creat_safer.
80645         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80646         * lib/unistd--.h (pipe): Define to pipe_safer.
80647         * lib/unistd-safer.h: Declare pipe_safer.
80648
80649 2005-08-26  Simon Josefsson  <jas@extundo.com>
80650
80651         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80652         Haible <bruno@clisp.org>.
80653
80654 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         * lib/regex_internal.h: Remove all references to
80657         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80658         or better.
80659         (bitset_not, bitset_merge, bitset_not_merge):
80660         (bitset_mask, re_string_allocate, re_string_construct):
80661         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80662         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80663         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80664         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80665         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80666         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80667         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80668         (re_acquire_state_context):
80669         Remove unnecessary forward decls.
80670         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80671         Put __attribute at function definition,
80672         now that the function decl has been removed.
80673         * lib/regex_internal.c (re_string_peek_byte_case):
80674         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80675         Likewise.
80676
80677 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80678
80679         * m4/regex.m4: Add AC_PREREQ(2.50).
80680         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80681
80682 2005-08-25  Simon Josefsson  <jas@extundo.com>
80683
80684         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80685         __fsetlocking.
80686
80687 2005-08-25  Simon Josefsson  <jas@extundo.com>
80688
80689         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80690         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80691         GLIBC specific code.
80692
80693 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80694
80695         Make regex safe for g++.  This fixes one real bug (an "err"
80696         that should have been "*err").  g++ problem reported by
80697         Sam Steingold.
80698         * lib/regex_internal.h (re_calloc): New macro, consistent with
80699         re_malloc etc.  All callers of calloc changed to use re_calloc.
80700         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80701         not int.  All callers changed.
80702         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80703         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80704         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80705         (find_recover_state): Change "err" to "*err"; this fixes what
80706         appears to be a real bug.
80707         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80708         versus int.
80709
80710 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * modules/regex (Depends-on): Add malloc, since the code
80713         assumes that !malloc(0) means failure.
80714
80715 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80716
80717         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80718
80719         alloca modernization/simplification for regex.
80720         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80721         needs to be at the start of the file, and can be moved into
80722         regex_internal.h and simplified.
80723         * lib/regex_internal.h: Include <alloca.h>.
80724         (__libc_use_alloca) [!defined _LIBC]: New macro.
80725         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80726         now works outside glibc.
80727
80728 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         * config/srclist.txt: Add glibc bugs 1241, 1245.
80731
80732 2005-08-25  Jim Meyering  <jim@meyering.net>
80733
80734         * lib/open-safer.c: Include <config.h>.
80735         Otherwise, we'd lose LARGEFILE support in any file using
80736         e.g. "fcntl--.h"
80737
80738 2005-08-25  Bruno Haible  <bruno@clisp.org>
80739
80740         * m4/minmax.m4: Require autoconf 2.52.
80741         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80742         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80743         alternatives of translit over the alphabet.
80744         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80745
80746 2005-08-24  Simon Josefsson  <jas@extundo.com>
80747
80748         * tests/test-getpass.c: New file.
80749
80750 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80753         for GNU regex features.
80754
80755 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80756
80757         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80758         * lib/regex.h (regerror): Likewise.
80759
80760         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80761         requires this.  (The code never needed it.)
80762
80763         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80764         All uses of recently-renamed identifiers changed to use the new,
80765         POSIX-compliant names.  The code will build and run just fine
80766         without these changes, but it's better to eat our own dog food
80767         and use the standard-conforming names.
80768
80769         * lib/regex.h: Fix a multitude of POSIX name space violations.
80770         These changes have an effect only for programs that define
80771         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80772         do not change anything for programs compiled in the normal way.
80773         Also, there is no effect on the ABI.
80774
80775         (_REGEX_SOURCE): New macro.
80776         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80777         defined and _GNU_SOURCE is not; this fixes a name space violation.
80778
80779         Rename the following macros to obey POSIX requirements.
80780         The old names are still visible as macros if _REGEX_SOURCE is defined.
80781         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80782         RE_BACKSLASH_ESCAPE_IN_LISTS.
80783         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80784         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80785         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80786         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80787         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80788         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80789         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80790         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80791         (REG_INTERVALS): renamed from RE_INTERVALS.
80792         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80793         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80794         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80795         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80796         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80797         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80798         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80799         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80800         RE_UNMATCHED_RIGHT_PAREN_ORD.
80801         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80802         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80803         (REG_DEBUG): renamed from RE_DEBUG.
80804         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80805         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80806         unusual, since we can't clash with the POSIX REG_ICASE.
80807         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80808         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80809         (REG_NO_SUB): renamed from RE_NO_SUB.
80810         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80811         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80812         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80813         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80814         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80815         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80816         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80817         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80818         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80819         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80820         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80821         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80822         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80823         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80824         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80825         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80826         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80827         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80828         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80829         (REG_FIXED): Renamed from REGS_FIXED.
80830         (REG_NREGS): Renamed from RE_NREGS.
80831
80832         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80833         of other REG_* macros, since POSIX says the user is allowed to
80834         #undef these macros selectively.
80835
80836         (reg_errcode_t): Update comment stating what other tables need
80837         to be consistent.
80838
80839         Rename the following enum values to obey POSIX requirements.
80840         The old names are still visible as macros.
80841         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80842         is not defined, since GNU is supposed to be a superset of POSIX as
80843         much as possible, and since we want reg_errcode_t to be a signed
80844         type for implementation consistency.
80845         (_REG_NOERROR): Renamed from REG_NOERROR.
80846         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80847         (_REG_BADPAT): Renamed from REG_BADPAT.
80848         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80849         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80850         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80851         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80852         (_REG_EBRACK): Renamed from REG_EBRACK.
80853         (_REG_EPAREN): Renamed from REG_EPAREN.
80854         (_REG_EBRACE): Renamed from REG_EBRACE.
80855         (_REG_BADBR): Renamed from REG_BADBR.
80856         (_REG_ERANGE): Renamed from REG_ERANGE.
80857         (_REG_ESPACE): Renamed from REG_ESPACE.
80858         (_REG_BADRPT): Renamed from REG_BADRPT.
80859         (_REG_EEND): Renamed from REG_EEND.
80860         (_REG_ESIZE): Renamed from REG_ESIZE.
80861         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80862         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80863         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80864         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80865         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80866
80867         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80868         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80869         changed.  But support the old name if the new one is not defined
80870         and if _REGEX_SOURCE.
80871
80872         Change the following member names in struct re_pattern_buffer.
80873         The old names are still supported if !_REGEX_SOURCE.
80874         The new names are always supported, regardless of _REGEX_SOURCE.
80875         (re_buffer): Renamed from buffer.
80876         (re_allocated): Renamed from allocated.
80877         (re_used): Renamed from used.
80878         (re_syntax): Renamed from syntax.
80879         (re_fastmap): Renamed from fastmap.
80880         (re_translate): Renamed from translate.
80881         (re_can_be_null): Renamed from can_be_null.
80882         (re_regs_allocated): Renamed from regs_allocated.
80883         (re_fastmap_accurate): Renamed from fastmap_accurate.
80884         (re_no_sub): Renamed from no_sub.
80885         (re_not_bol): Renamed from not_bol.
80886         (re_not_eol): Renamed from not_eol.
80887         (re_newline_anchor): Renamed from newline_anchor.
80888
80889         Change the following member names in struct re_registers.
80890         The old names are still supported if !_REGEX_SOURCE.
80891         The new names are always supported, regardless of _REGEX_SOURCE.
80892         (rm_num_regs): Renamed from num_regs.
80893         (rm_start): Renamed from start.
80894         (rm_end): Renamed from end.
80895
80896         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80897         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80898         Prepend __ to parameter names.
80899
80900         Undo yesterday's changes.
80901
80902 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80903
80904         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80905         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80906         lib/regex.c.
80907
80908 2005-08-24  Jim Meyering  <jim@meyering.net>
80909
80910         Sync from coreutils.
80911         * m4/fcntl-safer.m4: New file.
80912
80913         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80914         and object files for this module.
80915
80916 2005-08-24  Jim Meyering  <jim@meyering.net>
80917
80918         Sync from coreutils.
80919         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80920
80921 2005-08-24  Jim Meyering  <jim@meyering.net>
80922
80923         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80924         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80925
80926 2005-08-24  Jim Meyering  <jim@meyering.net>
80927
80928         * modules/fcntl-safer: New module.
80929         * modules/fts (Depends-on): Add fcntl-safer.
80930         * MODULES.html.sh (File descriptor based Input/Output):
80931         Add fcntl-safer.
80932
80933 2005-08-24  Bruno Haible  <bruno@clisp.org>
80934
80935         Support for unit test modules.
80936         * modules/README: Mention tests modules.
80937         * modules/TEMPLATE-TESTS: New file.
80938         * gnulib-tool: New options --extract-tests-module, --with-tests and
80939         --tests-base (unused for the moment).
80940         (testsbase, inctests): New variables.
80941         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80942         (func_verify_module): Exclude TEMPLATE-TESTS.
80943         (func_verify_nontests_module, func_verify_tests_module): New functions.
80944         (func_get_dependencies): Add implicit dependency for tests modules.
80945         (func_get_tests_module): New function.
80946         (func_modules_transitive_closure): When --with-tests was specified,
80947         include the unit tests as well, unless explicitly avoided.
80948         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80949         (func_emit_tests_Makefile_am): New function.
80950         (func_create_testdir): When --with-tests was specified, emit a
80951         tests/ directory.
80952         * MODULES.html.sh (Future developments): Update.
80953
80954 2005-08-24  Bruno Haible  <bruno@clisp.org>
80955
80956         * modules/tls-tests: New file.
80957         * tests/test-tls.c: New file, from GNU gettext.
80958
80959 2005-08-24  Bruno Haible  <bruno@clisp.org>
80960
80961         * modules/lock-tests: New file.
80962         * tests/test-lock.c: New file, from GNU gettext.
80963
80964 2005-08-24  Bruno Haible  <bruno@clisp.org>
80965
80966         * lib/lock.h: Add multiple inclusion guard.
80967         * lib/tls.h: Add multiple inclusion guard.
80968
80969 2005-08-24  Bruno Haible  <bruno@clisp.org>
80970
80971         * gnulib-tool: Add support for the --aux-dir option to
80972         --create-testdir, --create-megatestdir, --test, --megatest.
80973         (func_create_testdir, func_create_megatestdir): Optionally emit a
80974         AC_CONFIG_AUX_DIR directive.
80975         (create-testdir, create-megatestdir, test, megatest): Provide a
80976         default value for $auxdir.
80977
80978 2005-08-24  Bruno Haible  <bruno@clisp.org>
80979
80980         * gnulib-tool (import): Use compound statement instead of subshell
80981         where possible.
80982
80983 2005-08-24  Bruno Haible  <bruno@clisp.org>
80984
80985         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80986
80987 2005-08-24  Bruno Haible  <bruno@clisp.org>
80988
80989         * gnulib-tool (func_version): Update.
80990
80991 2005-08-24  Bruno Haible  <bruno@clisp.org>
80992
80993         * gnulib-tool (func_import, func_create_testdir,
80994         func_create_megatestdir): Quote all autoconf macro arguments.
80995
80996 2005-08-24  Bruno Haible  <bruno@clisp.org>
80997
80998         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80999         option --force, because --force causes the aclocal.m4 of each
81000         subdirectory to be newer than the corresponding config.h.in.
81001
81002 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81003
81004         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81005         All contents moved to gl_REGEX.
81006         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81007         assume that it does.
81008
81009 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81010
81011         * lib/regex.h (REG_NOSYS)
81012         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81013         Define, since POSIX requires it as of 2001.
81014         (_REG_ENOSYS)
81015         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81016         New private symbol, used to keep the enum signed in all cases.
81017         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81018         Youngman in
81019         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81020
81021         * lib/regex_internal.c (re_string_skip_chars, register_state):
81022         (calc_state_hash):
81023         Remove forward decls; no longer needed now that we use prototypes.
81024         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81025         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81026         (clean_state_log_if_needed): Likewise.
81027
81028 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         * config/srclist.txt: Add glibc bugs 1231-1233.
81031
81032 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81033
81034         Fix problems reported by Sam Steingold in
81035         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81036         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81037         assumed that reg_errcode_t is a signed type, which is not
81038         necessarily true if _XOPEN_SOURCE is not defined.
81039         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81040         since some compilers warn about it otherwise.
81041
81042 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81043
81044         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81045         (init_word_char, create_initial_state, duplicate_node_closure):
81046         (fetch_token, peek_token_bracket, build_range_exp):
81047         (build_collating_symbol): Remove forward decls; no longer needed
81048         now that we use prototypes.
81049
81050         * lib/regcomp.c:
81051         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81052         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81053         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81054         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81055         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81056         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81057         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81058         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81059         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81060         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81061         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81062         (build_charclass, build_charclass_op, fetch_number, create_tree):
81063         (create_token_tree, mark_opt_subexp, duplicate_tree):
81064         Use prototypes rather than old-style definitions.
81065
81066         * lib/regex_internal.c:
81067         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81068         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81069         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81070         (re_string_reconstruct, re_string_peek_byte_case):
81071         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81072         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81073         (re_node_set_init_copy, re_node_set_add_intersect):
81074         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81075         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81076         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81077         (re_acquire_state, re_acquire_state_context, register_state):
81078         (create_ci_newstate, create_cd_newstate, free_state):
81079         Likewise.
81080         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81081         re_search_2):
81082         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81083         (re_search_internal, prune_impossible_nodes):
81084         (acquire_init_state_context, check_matching, static):
81085         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81086         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81087         (update_regs, sift_states_backward, build_sifted_states):
81088         (clean_state_log_if_needed, merge_state_array):
81089         (update_cur_sifted_state, add_epsilon_src_nodes):
81090         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81091         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81092         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81093         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81094         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81095         (check_arrival, check_arrival_add_next_nodes):
81096         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81097         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81098         (check_node_accept_bytes, check_node_accept, extend_buffers):
81099         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81100         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81101         (sift_ctx_init):
81102         Likewise.
81103
81104         * lib/regex_internal.h:
81105         (re_string_allocate, re_string_construct, re_string_reconstruct):
81106         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81107         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81108         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81109         (re_string_context_at, re_string_peek_byte_case):
81110         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81111         is defined, since we now use prototypes always.
81112
81113         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81114         C89 or better.  All uses removed.
81115
81116 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81117
81118         * config/srclist.txt: Add glibc bugs 1220-1227.
81119
81120 2005-08-20  Jim Meyering  <jim@meyering.net>
81121
81122         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81123         of unused local, dfa.
81124
81125 2005-08-20  Bruno Haible  <bruno@clisp.org>
81126
81127         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81128
81129 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81130
81131         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81132         (re_node_set_insert_last, re_dfa_add_node):
81133         Rename local variables to avoid GCC shadowing warnings.
81134
81135 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81138         [defined lint]: Suppress bogus uninitialized-variable warnings.
81139
81140         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81141         and let the caller return REG_ESPACE if out of space.  This
81142         removes an uninitialied-variable warning with GCC 4.0.1, and also
81143         avoids taking the address of a local variable.  All callers
81144         changed.
81145
81146 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81147
81148         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81149         $LIBCSRC/posix/regexec.c.
81150         Add glibc bug 1217 for regcomp.c.
81151
81152 2005-08-19  Jim Meyering  <jim@meyering.net>
81153
81154         * lib/regexec.c (proceed_next_node): Redo local variables to
81155         avoid GCC shadowing warnings.
81156
81157 2005-08-18  Bruno Haible  <bruno@clisp.org>
81158
81159         * lib/strstr.c (strstr): Fix return value in multibyte case.
81160         * lib/strcasestr.c (strcasestr): Likewise.
81161
81162 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81163
81164         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81165
81166 2005-08-17  Jim Meyering  <jim@meyering.net>
81167
81168         Make the %s format (seconds since the epoch) work for a negative
81169         number and when used with a zero-padded field width, e.g. %015s.
81170
81171         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81172         label so that it precedes the code to set `digits'.  Otherwise,
81173         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81174         print `00-22'.  Now, it prints `-0022', as it should.
81175
81176 2005-08-17  Bruno Haible  <bruno@clisp.org>
81177
81178         * modules/strstr (Files): Add m4/mbrtowc.m4.
81179         (Depends-on): Add mbuiter.
81180
81181 2005-08-17  Bruno Haible  <bruno@clisp.org>
81182
81183         * modules/strcasestr: New file.
81184         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81185         strcasestr.
81186
81187 2005-08-17  Bruno Haible  <bruno@clisp.org>
81188
81189         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81190
81191 2005-08-17  Bruno Haible  <bruno@clisp.org>
81192
81193         * modules/mbuiter: New file.
81194         * MODULES.html.sh (Extended multibyte and wide character utilities):
81195         Add mbuiter.
81196
81197 2005-08-17  Bruno Haible  <bruno@clisp.org>
81198
81199         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81200         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81201
81202 2005-08-17  Bruno Haible  <bruno@clisp.org>
81203
81204         * m4/strcasestr.m4: New file.
81205
81206 2005-08-17  Bruno Haible  <bruno@clisp.org>
81207
81208         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81209         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81210
81211 2005-08-17  Bruno Haible  <bruno@clisp.org>
81212
81213         * lib/strcasestr.h: New file.
81214         * lib/strcasestr.c: New file.
81215
81216 2005-08-17  Bruno Haible  <bruno@clisp.org>
81217
81218         * lib/strcasecmp.c: Use mbuiter.h.
81219
81220 2005-08-17  Bruno Haible  <bruno@clisp.org>
81221
81222         * lib/mbuiter.h: New file.
81223
81224 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81225
81226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81227         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81228         and gl_GETOPT are both invoked via different paths (as happens
81229         with GNU tar CVS because it uses both argp and getopt), the former
81230         wins.
81231
81232 2005-08-16  Bruno Haible  <bruno@clisp.org>
81233
81234         * modules/tls: New file.
81235         * MODULES.html.sh (Multithreading): Add tls.
81236
81237 2005-08-16  Bruno Haible  <bruno@clisp.org>
81238
81239         * modules/strnlen1: New file.
81240         * MODULES.html.sh (String handling): Add strnlen1.
81241
81242 2005-08-16  Bruno Haible  <bruno@clisp.org>
81243
81244         * modules/strcase (Files): Add m4/mbrtowc.m4.
81245         (Depends-on): Add strnlen1, mbchar.
81246
81247 2005-08-16  Bruno Haible  <bruno@clisp.org>
81248
81249         * modules/mbiter: New file.
81250         * MODULES.html.sh (Extended multibyte and wide character utilities):
81251         Add mbiter.
81252
81253 2005-08-16  Bruno Haible  <bruno@clisp.org>
81254
81255         * modules/mbfile: New file.
81256         * MODULES.html.sh (Extended multibyte and wide character utilities):
81257         Add mbfile.
81258
81259 2005-08-16  Bruno Haible  <bruno@clisp.org>
81260
81261         * modules/mbchar: New file.
81262         * MODULES.html.sh (Extended multibyte and wide character utilities):
81263         New section.
81264
81265 2005-08-16  Bruno Haible  <bruno@clisp.org>
81266
81267         * m4/tls.m4: New file, from GNU gettext.
81268
81269 2005-08-16  Bruno Haible  <bruno@clisp.org>
81270
81271         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81272         always.
81273         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81274
81275 2005-08-16  Bruno Haible  <bruno@clisp.org>
81276
81277         * m4/mbiter.m4: New file.
81278
81279 2005-08-16  Bruno Haible  <bruno@clisp.org>
81280
81281         * m4/mbfile.m4: New file.
81282
81283 2005-08-16  Bruno Haible  <bruno@clisp.org>
81284
81285         * m4/mbchar.m4: New file.
81286
81287 2005-08-16  Bruno Haible  <bruno@clisp.org>
81288
81289         * lib/tls.h: New file, from GNU gettext.
81290         * lib/tls.c: New file, from GNU gettext.
81291
81292 2005-08-16  Bruno Haible  <bruno@clisp.org>
81293
81294         * lib/strnlen1.h: New file.
81295         * lib/strnlen1.c: New file.
81296
81297 2005-08-16  Bruno Haible  <bruno@clisp.org>
81298
81299         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81300         (mbi_init): Update.
81301         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81302         NUL byte, not after it.
81303
81304 2005-08-16  Bruno Haible  <bruno@clisp.org>
81305
81306         * lib/strcase.h (strcasecmp): Add note in comments.
81307         * lib/strncasecmp.c: Use code from strcasecmp.c.
81308         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81309         (strcasecmp): Work correctly in multibyte locales.
81310
81311 2005-08-16  Bruno Haible  <bruno@clisp.org>
81312
81313         * lib/mbiter.h: New file.
81314
81315 2005-08-16  Bruno Haible  <bruno@clisp.org>
81316
81317         * lib/mbfile.h: New file.
81318
81319 2005-08-16  Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/mbchar.h: New file.
81322         * lib/mbchar.c: New file.
81323
81324 2005-08-16  Bruno Haible  <bruno@clisp.org>
81325
81326         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81327         the valid ones. Makes the comparison operations transitive:
81328         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81329         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81330
81331 2005-08-15  Simon Josefsson  <jas@extundo.com>
81332
81333         * modules/ssize_t (License): Change to 'unlimited'.
81334
81335         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81336
81337 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81338
81339         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81340         Add comments for each pending glibc patch.
81341
81342 2005-08-15  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81345         __cplusplus is defined.
81346
81347 2005-08-14  Jim Meyering  <jim@meyering.net>
81348
81349         Sync from coreutils.
81350
81351         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81352         Use the hash-table-based cycle-detection code not just when
81353         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81354         Reported by James Youngman in
81355         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81356         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81357         FTS_TIGHT_CYCLE_CHECK.
81358         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81359         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81360         once again.
81361         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81362         * lib/fts.c (fd_safer): Remove decl.
81363         Include fcntl--.h rather than unistd-safer.h
81364         (fts_safe_changedir): Don't call fd_safer; no longer needed
81365         now that we include fcntl--.h.
81366
81367 2005-08-12  Simon Josefsson  <jas@extundo.com>
81368
81369         * modules/getndelim2: Use ssize_t module.
81370         * modules/getnline: Likewise.
81371         * modules/safe-read: Likewise.
81372         * modules/xreadlink: Likewise.
81373
81374         * modules/ssize_t: New file.
81375
81376 2005-08-12  Simon Josefsson  <jas@extundo.com>
81377
81378         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81379
81380 2005-08-12  Simon Josefsson  <jas@extundo.com>
81381
81382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81383         ssize_t.
81384
81385 2005-08-12  Simon Josefsson  <jas@extundo.com>
81386
81387         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81388         readline, getdelim and check_version.
81389         (Support for systems lacking ISO C 99: Sizes of integer types):
81390         Add size_max.
81391
81392 2005-08-12  Bruno Haible  <bruno@clisp.org>
81393
81394         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81395
81396 2005-08-11  Simon Josefsson  <jas@extundo.com>
81397
81398         * modules/readline: New file.
81399
81400         * modules/strnlen (Files): Add strnlen.h.
81401
81402 2005-08-11  Simon Josefsson  <jas@extundo.com>
81403
81404         * m4/readline.m4: New file.
81405
81406 2005-08-11  Simon Josefsson  <jas@extundo.com>
81407
81408         * lib/readline.h, readline.c: New file.
81409
81410 2005-08-11  Simon Josefsson  <jas@extundo.com>
81411
81412         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81413         gl_AVOID.
81414
81415 2005-08-11  Bruno Haible  <bruno@clisp.org>
81416
81417         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81418
81419 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81420
81421         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81422
81423 2005-08-10  Simon Josefsson  <jas@extundo.com>
81424
81425         * tests/test-iconvme.c: New file.
81426
81427 2005-08-10  Simon Josefsson  <jas@extundo.com>
81428
81429         * m4/strnlen.m4: New file.
81430
81431         * m4/strndup.m4: Don't check for strnlen declaration, done in
81432         strnlen.m4.
81433
81434 2005-08-10  Simon Josefsson  <jas@extundo.com>
81435
81436         * lib/strndup.c: Use strnlen.h.
81437
81438         * lib/strnlen.h: New file.
81439
81440 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81441
81442         * README: Typos.
81443
81444 2005-08-02  Simon Josefsson  <jas@extundo.com>
81445
81446         * modules/readline: New file.
81447
81448 2005-08-02  Simon Josefsson  <jas@extundo.com>
81449
81450         * modules/getdelim: New file.
81451
81452         * modules/getline: Rewrite, don't use getndelim2.
81453
81454 2005-08-02  Simon Josefsson  <jas@extundo.com>
81455
81456         * m4/getline.m4: Separate out getdelim stuff into separate module.
81457
81458         * m4/getdelim.m4: New file.
81459
81460 2005-08-02  Simon Josefsson  <jas@extundo.com>
81461
81462         * lib/getline.h, getline.c: Rewrite.
81463
81464         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81465
81466 2005-07-31  Bruno Haible  <bruno@clisp.org>
81467
81468         * lib/lock.h (gl_lock_initializer): New macro.
81469         (gl_lock_define_initialized): Use it.
81470         (gl_rwlock_initializer): New macro.
81471         (gl_rwlock_define_initialized): Use it.
81472         (gl_recursive_lock_initializer): New macro.
81473         (gl_recursive_lock_define_initialized): Use it.
81474
81475 2005-07-30  Karl Berry  <karl@gnu.org>
81476
81477         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81478         Report from Ben Pfaff, regarding getopt.
81479
81480 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81481
81482         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81483         normal way.
81484         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81485         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81486         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81487         (gl_GETOPT): Use the new macros.  Most of the implementation
81488         is moved to the new macros.  This is for programs like Emacs
81489         that don't want all the functionality of gl_GETOPT.
81490
81491 2005-07-26  Bruno Haible  <bruno@clisp.org>
81492
81493         * m4/lock.m4: Update from GNU gettext.
81494
81495 2005-07-26  Bruno Haible  <bruno@clisp.org>
81496
81497         * lib/lock.h: Update from GNU gettext.
81498         * lib/lock.c: Update from GNU gettext.
81499
81500 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81501
81502         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81503         obsolescent AC_TRY_RUN.  Include the default includes files, for
81504         'exit'.
81505
81506 2005-07-24  Bruno Haible  <bruno@clisp.org>
81507
81508         * modules/visibility: New file.
81509         * MODULES.html.sh (Misc): Add visibility.
81510
81511 2005-07-24  Bruno Haible  <bruno@clisp.org>
81512
81513         * m4/visibility.m4: New file.
81514
81515 2005-07-24  Bruno Haible  <bruno@clisp.org>
81516
81517         * doc/visibility.texi: New file.
81518
81519 2005-07-22  Bruno Haible  <bruno@clisp.org>
81520
81521         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81522         $(ALLOCA_H), redundant through BUILT_SOURCES.
81523         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81524         redundant through BUILT_SOURCES.
81525         * modules/byteswap (Makefile.am): Remove explicit dependency on
81526         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81527         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81528         $(FNMATCH_H), redundant through BUILT_SOURCES.
81529         * modules/getopt (Makefile.am): Remove explicit dependency on
81530         $(GETOPT_H), redundant through BUILT_SOURCES.
81531         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81532         redundant through BUILT_SOURCES.
81533         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81534         redundant through BUILT_SOURCES.
81535         * modules/stdbool (Makefile.am): Remove explicit dependency on
81536         $(STDBOOL_H), redundant through BUILT_SOURCES.
81537         * modules/stdint (Makefile.am): Remove explicit dependency on
81538         $(STDINT_H), redundant through BUILT_SOURCES.
81539         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81540         Remove explicit dependency on $(SYSEXITS_H).
81541         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81542
81543 2005-07-18  Simon Josefsson  <jas@extundo.com>
81544
81545         * lib/check-version.c (check_version): Accept identical versions too.
81546
81547 2005-07-18  Bruno Haible  <bruno@clisp.org>
81548
81549         * modules/lock: New file.
81550         * MODULES.html.sh (Multithreading): New section.
81551
81552 2005-07-18  Bruno Haible  <bruno@clisp.org>
81553
81554         * m4/lock.m4: New file, from GNU gettext.
81555
81556 2005-07-18  Bruno Haible  <bruno@clisp.org>
81557
81558         * lib/lock.h: New file, from GNU gettext.
81559         * lib/lock.c: New file, from GNU gettext.
81560
81561 2005-07-18  Bruno Haible  <bruno@clisp.org>
81562
81563         * lib/lock.h (gl_once_t): New type.
81564         (gl_once_define, gl_once): New macros.
81565         * lib/lock.c (fresh_once): New variable.
81566         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81567         functions.
81568
81569 2005-07-16  Simon Josefsson  <jas@extundo.com>
81570
81571         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81572         workaround, suggested by Bruno.
81573
81574 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81575
81576         * modules/xalloc (Depends-on): Add xalloc-die.
81577         * modules/xvasprintf (Depends-on): Add xalloc-die.
81578
81579 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81580
81581         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81582         with a minor change.
81583
81584 2005-07-15  Bruno Haible  <bruno@clisp.org>
81585
81586         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81587         When using lib/poll.c, define poll as rpl_poll.
81588
81589 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * modules/argp (Depends-on): Remove unlocked-io.
81592
81593 2005-07-14  Derek Price  <derek@ximbiot.com>
81594
81595         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81596         for glob symlink bug.
81597
81598 2005-07-14  Bruno Haible  <bruno@clisp.org>
81599
81600         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81601         Instead, test for *_unlocked function declarations directly.
81602
81603 2005-07-11  Simon Josefsson  <jas@extundo.com>
81604
81605         * modules/size_max: New file.
81606
81607         * modules/xsize: Depend on size_max module for size_max.m4.
81608
81609 2005-07-11  Simon Josefsson  <jas@extundo.com>
81610
81611         * lib/size_max.h: New file.
81612
81613 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81614
81615         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81616         copyright symbol and the year.
81617         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81618         (version_etc_va): Use parameterized copyright notice.
81619         Reword to conform to the current GNU coding standards.
81620
81621 2005-07-11  Karl Berry  <karl@gnu.org>
81622
81623         * doc/gnulib.texi (Quoting): new node.
81624         (Initial import): more info, from Patrice.
81625
81626 2005-07-11  Bruno Haible  <bruno@clisp.org>
81627
81628         * gnulib-tool (func_usage): Document option --avoid.
81629         (Command line options): Handle --avoid.
81630         (func_acceptable): New function.
81631         (func_modules_transitive_closure): Use it.
81632
81633 2005-07-11  Bruno Haible  <bruno@clisp.org>
81634
81635         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81636         Reported by Jim Meyering.
81637
81638 2005-07-10  Bruno Haible  <bruno@clisp.org>
81639
81640         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81641         Needed when size_t is smaller than 'unsigned int'.
81642         Reported by Paul Eggert.
81643
81644 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81645
81646         * modules/argp (Depends-on): Add unlocked-io
81647
81648 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81649
81650         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81651         block of defines.
81652
81653 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81654
81655         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81656         fix now.
81657
81658 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81659         and Paul Eggert  <eggert@cs.ucla.edu>
81660
81661         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81662         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81663
81664 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81665
81666         * modules/regex (Files): Add lib/regex_internal.c,
81667         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81668         (Depends-on): Add extensions.
81669         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81670
81671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81674         pathconf.
81675         * m4/same.m4 (gl_SAME): Likewise.
81676         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81677
81678         * m4/regex.m4: Adjust to new libc regex implementation.
81679         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81680         all the .c and .h parts of (the new) regex.
81681         Quote the m4 stuff better.
81682         Check for RE_ICASE bug of old gnulib.
81683         Check for REG_STARTEND of recent libc.
81684         Rename local variables from jm_* to gl_*.
81685         Quote operand of "test -f".
81686         Say "recent enough" version of libc, not "version 2".
81687         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81688         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81689         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81690         Remove check for btowc, isascii.
81691         Require AM_LANGINFO_CODESET.
81692
81693 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81694
81695         * lib/regex.c, regex.h: Sync from libc.
81696         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81697         * lib/regexec.c:
81698         New files, synced from libc, except that regex_internal.h
81699         currently has a small porting fix.
81700
81701 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81702
81703         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81704         regex_internal.c, regexec.c.
81705         Add regex_internal.h too, but as a comment, since the libc version
81706         is currently broken in gnulib mode.
81707
81708 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81709
81710         Support programs like Emacs that use gnulib but not gettext.
81711         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81712         * modules/gettext-h: New file.
81713         * modules/gettext (Files): Remove lib/gettext.h.
81714         (Depends-on): Add gettext-h.
81715         (Makefile.am): Remove lib_SOURCES.
81716         * modules/argmatch, modules/c-stack, modules/closeout:
81717         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81718         * modules/execute, modules/file-type, modules/getaddrinfo:
81719         * modules/getopt, modules/human, modules/javacomp:
81720         * modules/javaexec, modules/mkdir-p, modules/obstack:
81721         * modules/openat, modules/pagealign_alloc, modules/pipe:
81722         * modules/quotearg, modules/regex, modules/rpmatch:
81723         * modules/unicodeio, modules/userspec, modules/version-etc:
81724         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81725         * modules/xsetenv:
81726         Depend on gettext-h, not gettext.
81727
81728 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * gnulib-tool (func_import): Add support for 'public domain' license.
81731         * modules/alloca, modules/atexit, modules/memmove:
81732         Now public domain, not GPL.
81733         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81734         * modules/realloc, modules/strerror, modules/strtod:
81735         Now LGPL, not GPL.
81736
81737 2005-07-05  Bruno Haible  <bruno@clisp.org>
81738
81739         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81740         autoconf CVS. Needed for mingw.
81741
81742 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81743
81744         Remove the dependency of the strftime module on the tzset module.
81745         * modules/strftime (Depends-on): Remove dependency on tzset.
81746
81747 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         Remove the dependency of the strftime module on the tzset module.
81750         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81751         gl_FUNC_TZSET_CLOBBER.
81752
81753 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81754
81755         Remove the dependency of the strftime module on the tzset module.
81756         * lib/strftime.c (my_strftime)
81757         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81758         Copy the input structure, to work around some of the bug with
81759         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81760         Solaris releases, you should also use the tzset module, but we won't
81761         require it as a dependency any more since we don't want LGPLed code
81762         to depend on GPLed code.
81763
81764 2005-07-02  Jim Meyering  <jim@meyering.net>
81765
81766         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81767         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81768         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81769         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81770
81771 2005-07-02  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81774
81775 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81776
81777         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81778         declares only 'struct timespec;' (!).
81779
81780 2005-07-01  Jim Meyering  <jim@meyering.net>
81781
81782         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81783         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81784         * lib/save-cwd.c, tempname.c:
81785         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81786         and don't include <sys/file.h>).
81787
81788 2005-06-29  Jim Meyering  <jim@meyering.net>
81789
81790         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81791         type name.  Use the variable name instead.
81792         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81793         Likewise.
81794
81795 2005-06-28  Simon Josefsson  <jas@extundo.com>
81796
81797         * modules/check-version (Files): Add check-version.m4.
81798
81799 2005-06-28  Simon Josefsson  <jas@extundo.com>
81800
81801         * m4/check-version.m4: New file, suggested by Jim Meyering
81802         <jim@meyering.net>.
81803
81804 2005-06-28  Simon Josefsson  <jas@extundo.com>
81805
81806         * lib/check-version.h, lib/check-version.c: New files.
81807
81808 2005-06-28  Simon Josefsson  <jas@extundo.com>
81809
81810         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81811         collision with global variable.  Better indentation.  Don't
81812         increment buffer pointer beyond buffer end.  Based on comments
81813         from Paul Eggert <eggert@cs.ucla.edu>.
81814
81815         * lib/base64.h: Indent.
81816
81817 2005-06-28  Simon Josefsson  <jas@extundo.com>
81818
81819         * doc/gnulib.texi (Library version handling): New section.
81820
81821 2005-06-28  Jim Meyering  <jim@meyering.net>
81822
81823         * check-module (find_included_lib_files): Hard-code another
81824         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81825         but modules/fts-lgpl (correctly) does not list those files.
81826
81827         * modules/canonicalize (Files): Add lib/pathmax.h.
81828
81829 2005-06-25  Simon Josefsson  <jas@extundo.com>
81830
81831         * modules/check-version: New file.
81832
81833 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81834
81835         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81836         initializer of struct addrinfo, as an indication that we don't
81837         care how many members the structure has.
81838
81839 2005-06-24  Derek Price  <derek@ximbiot.com>
81840         and Bruno Haible  <bruno@clisp.org>
81841
81842         Remove stat module & update lstat.
81843         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81844         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81845         * m4/stat.m4: Remove this file.
81846
81847 2005-06-24  Derek Price  <derek@ximbiot.com>
81848         and Bruno Haible  <bruno@clisp.org>
81849
81850         Remove stat module & update lstat.
81851         * lib/stat.c: Remove this file...
81852         (slash_aware_lstat): ...moving this content and its support...
81853         * lib/lstat.c (rpl_lstat): ...into here.
81854         * lib/lstat.h: New file.
81855
81856 2005-06-24  Derek Price  <derek@ximbiot.com>
81857         and Bruno Haible  <bruno@clisp.org>
81858
81859         Remove stat module & update lstat.
81860         * config/srclist.txt (libc sources): Remove stat.
81861
81862 2005-06-24  Derek Price  <derek@ximbiot.com>
81863         and Bruno Haible  <bruno@clisp.org>
81864
81865         Remove stat module & update lstat.
81866         * MODULES.html.sh (stat): Remove.
81867         * MODULES.html: Regenerated.
81868         * modules/lstat (Description): Correct function name.
81869         (Files): Add "lstat.h".
81870         (Depends-on): Remove stat, add xalloc, stat-macros.
81871         * modules/stat: Remove this file.
81872         (Include): Add "lstat.h", remove <sys/stat.h>.
81873
81874 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81875
81876         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81877         (ranged_convert): Don't save conversion in a temporary struct.
81878         This causes a warning with GCC 4.0.0, and anyway in the typical
81879         case it's not worth the extra 100 bytes or so of code.
81880         (ranged_convert, __mktime_internal): When calling a function via a
81881         pointer P, use P () rather than (*P) (), as we now assume C89 or
81882         better.
81883
81884 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81885
81886         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81887         "who -r" failed to give output.  Problem reported by Tim Waugh.
81888
81889         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81890         (xcalloc): Use it to avoid needless tests.
81891         Problem reported by Jim Meyering.
81892
81893 2005-06-20  Derek Price  <derek@ximbiot.com>
81894
81895         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81896         unnecessary for Autoconfs > 2.59c.
81897
81898 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81899
81900         * lib/argp.h (__option_is_short): Check upper limit of
81901         __key. Isprint() requires its argument to have the value
81902         of an unsigned char or EOF.
81903
81904 2005-06-16  Jim Meyering  <jim@meyering.net>
81905
81906         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81907         when either N or S is zero.
81908
81909 2005-06-16  Derek Price  <derek@ximbiot.com>
81910
81911         * m4/bison.m4: Declare YACC & YFLAGS precious.
81912
81913 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81914
81915         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81916         multibyte string or pattern, fall back on unibyte matching.
81917         Problem reported by James Youngman.
81918
81919 2005-06-08  Bruno Haible  <bruno@clisp.org>
81920
81921         * modules/csharpcomp: New file.
81922         * MODULES.html.sh (C#): Add csharpcomp.
81923
81924 2005-06-08  Bruno Haible  <bruno@clisp.org>
81925
81926         * m4/csharpcomp.m4: New file, from GNU gettext.
81927
81928 2005-06-08  Bruno Haible  <bruno@clisp.org>
81929
81930         * lib/csharpcomp.h: New file, from GNU gettext.
81931         * lib/csharpcomp.c: New file, from GNU gettext.
81932         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81933
81934 2005-06-08  Bruno Haible  <bruno@clisp.org>
81935
81936         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81937         warning on mingw.
81938
81939 2005-06-07  Derek Price  <derek@ximbiot.com>
81940
81941         Sync from CVS.
81942         * lib/glob_.h: Indent nested #ifdef.
81943
81944 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81945
81946         Sync from coreutils.
81947         Use "file name" when talking about file names, instead of "filename"
81948         or "path", as per the GNU coding standards.
81949         * lib/mkdir-p.c: Renamed from makepath.c.
81950         (make_dir_parents): Renamed from make_path.  All callers changed.
81951         * lib/mkdir-p.h: Likewise.  All includers changed.
81952         * lib/filenamecat.c: Renamed from path-concat.c.
81953         (file_name_concat): Renamed from path_concat.  All callers changed.
81954         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81955         * lib/filenamecat.h: Likewise.  All includers changed.
81956         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81957         in comments or local variable names.
81958         * lib/basename.c: Likewise.
81959         * lib/canonicalize.c, canonicalize.h: Likewise.
81960         * lib/dirname.c, dirname.h: Likewise.
81961         * lib/euidaccess.c: Likewise.
81962         * lib/exclude.c: Likewise
81963         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81964         * lib/fsusage.c, fsuage.h: Likewise.
81965         * lib/fts.c, fts_.h: Likewise.
81966         * lib/getcwd.c: Likewise.
81967         * lib/getloadavg.c: Likewise.
81968         * lib/mkstemp.c: Likewise.
81969         * lib/mountlist.c, mountlist.h: Likewise.
81970         * lib/openat.c, openat.h: Likewise.
81971         * lib/readlink-stub.c: Likewise.
81972         * lib/readutmp.c, readutmp.h: Likewise.
81973         * lib/rename.c: Likewise.
81974         * lib/rmdir.c: Likewise.
81975         * lib/same.c: Likewise.
81976         * lib/savedir.c: Likewise.
81977         * lib/stripslash.c: Likewise.
81978         * lib/tempname.c: Likewise.
81979         * lib/xreadlink.c: Likewise.
81980         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81981         All uses changed.
81982         * lib/exclude.h: Likewise.
81983
81984         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81985         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81986         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81987         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81988         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81989         files have been getting away with it for years (MORE/BSD 4.3
81990         is extinct now).
81991         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81992         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81993
81994         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81995         Define to 256, not 255, as per modern POSIX.
81996
81997 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81998
81999         Sync from coreutils.
82000         Use "file name" when talking about file names, instead of "filename"
82001         or "path", as per the GNU coding standards.
82002         * MODULES.html.sh: mkdir-p renamed from makepath.
82003         filenamecat renamed from path-concat.
82004         * modules/filenamecat: Renamed from modules/path-concat.
82005         (Files): filenamecat.h and filenamecat.c renamed from
82006         path-concat.h and path-concat.c.
82007         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82008         (Include): filenamecat.h, not path-concat.h.
82009         * modules/mkdir-p: Renamed from modules/makepath.
82010         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82011         makepath.c.
82012         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82013         (Include): mkdir-p.h, not makepath.h.
82014
82015 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82016
82017         Sync from coreutils.
82018         * m4/mkdir-p.m4: Renamed from makepath.m4.
82019         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82020         Rename files from makepath.c to mkdir-p.c, and from
82021         makepath.h to mkdir-p.h.
82022         * m4/filenamecat.m4: Renamed from path-concat.m4.
82023         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82024         Rename files from path-concat.c to filenamecat.c,
82025         and from path-concat.h to filenamecat.h.
82026         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82027         "file name" in local variables or comments.
82028         * m4/rename.m4: Likewise.
82029
82030 2005-06-01  Bruno Haible  <bruno@clisp.org>
82031
82032         * modules/csharpexec: New file.
82033         * MODULES.html.sh (C#): New section.
82034
82035 2005-06-01  Bruno Haible  <bruno@clisp.org>
82036
82037         * m4/csharp.m4: New file, from GNU gettext.
82038         * m4/csharpexec.m4: New file, from GNU gettext.
82039
82040 2005-06-01  Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/csharpexec.h: New file, from GNU gettext.
82043         * lib/csharpexec.c: New file, from GNU gettext.
82044         * lib/csharpexec.sh.in: New file, from GNU gettext.
82045
82046 2005-05-31  Derek Price  <derek@ximbiot.com>
82047             Paul Eggert  <eggert@cs.ucla.edu>
82048
82049         Sync from cvs.
82050         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82051
82052 2005-05-31  Derek Price  <derek@ximbiot.com>
82053             Paul Eggert  <eggert@cs.ucla.edu>
82054
82055         Sync from cvs.
82056         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82057
82058 2005-05-29  Derek Price  <derek@ximbiot.com>
82059
82060         * config/srclist.txt (glob_.h, glob.c): Add these files.
82061
82062 2005-05-29  Derek Price  <derek@ximbiot.com>
82063
82064         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82065         * modules/glob: New file.
82066         * modules/getlogin_r: Add link to POSIX spec in description.
82067
82068 2005-05-29  Derek Price  <derek@ximbiot.com>
82069             Paul Eggert  <eggert@cs.ucla.edu>
82070
82071         * m4/glob.m4: New file.
82072
82073 2005-05-29  Derek Price  <derek@ximbiot.com>
82074             Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         * lib/glob_.h, lib/glob.c: New files.
82077
82078 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82079
82080         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82081         * modules/fts-lgpl (Depends-on): Remove gettext.
82082
82083 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82084
82085         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82086         and don't require gt_INTTYPES_PRI.
82087
82088 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82089
82090         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82091
82092         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82093         the configuration hassle isn't worth it.
82094         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82095         (LONGEST_MODIFIER, PRIuMAX): Remove.
82096
82097 2005-05-27  Bruno Haible  <bruno@clisp.org>
82098
82099         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82100
82101 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82102
82103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82104         _POSIX_PTHREAD_SEMANTICS for Solaris.
82105
82106 2005-05-25  Derek Price  <derek@ximbiot.com>
82107
82108         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82109
82110 2005-05-25  Derek Price  <derek@ximbiot.com>
82111             Paul Eggert  <eggert@cs.ucla.edu>
82112
82113         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82114         * lib/getlogin_r.c, getlogin_r.h: New files.
82115
82116 2005-05-25  Bruno Haible  <bruno@clisp.org>
82117             Derek Price  <derek@ximbiot.com>
82118
82119         * lib/getlogin_r.h: Simplify API documentation.
82120
82121 2005-05-23  Derek Price  <derek@ximbiot.com>
82122
82123         * modules/minmax (Files): Add m4/minmax.m4.
82124         (configure.ac): Add gl_MINMAX.
82125
82126 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82127
82128         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82129         so that unistd-safer.h (GPL'ed code) need not be included.
82130
82131 2005-05-22  Bruno Haible  <bruno@clisp.org>
82132
82133         * m4/minmax.m4: New file.
82134         Based on a patch by Derek Price <derek@ximbiot.com>.
82135
82136 2005-05-22  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82139         (INT64_MIN): Fix definition.
82140         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82141
82142         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82143         NEED_SIGNED_INT_TYPES.
82144
82145         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82146         HAVE_SYSTEM_INTTYPES.
82147
82148 2005-05-22  Bruno Haible  <bruno@clisp.org>
82149
82150         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82151         Also include <sys/param.h> if it defines MIN, MAX.
82152         Based on a patch by Derek Price <derek@ximbiot.com>.
82153
82154 2005-05-21  Jim Meyering  <jim@meyering.net>
82155
82156         * modules/fts (Files): Add m4/inttypes-pri.m4.
82157         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82158
82159 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82160
82161         New fts module.
82162         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82163         (setup_dir, free_dir): New functions.
82164         (enter_dir, leave_dir): Define trivial
82165         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82166         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82167         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82168         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82169         Move to fts-cycle.c.
82170         (fts_open): Use setup_dir.
82171         (fts_close): Use free_dir.
82172         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82173         This adds a label and some gotos, but the alternatives were messier.
82174         Check for memory allocation failure when entering a dir.
82175         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82176         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82177         (FTS): New member fts_cycle, that is a union that contains the
82178         old active_dir_ht and cycle_state.  All uses changed to mention
82179         fts_cycle.ht and fts_cycle.state.
82180         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82181         fts.c, with the following changes:
82182         (setup_dir, free_dir): New functions.
82183         (enter_dir): Now returns bool.  Return true if successful, false
82184         if memory exhausted.  All callers changed.
82185         Do not bother partly cleaning up on
82186         memory allocation failure; that is free_dir's job.
82187         However, free ad if hash_insert fails, to avoid memory leak.
82188         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82189         fts->fts_options to see which union member to use.
82190
82191 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82192
82193         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82194         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82195
82196 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82197
82198         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82199
82200 2005-05-20  Jim Meyering  <jim@meyering.net>
82201
82202         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82203         Now a macro, to pacify GCC.
82204
82205 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82206
82207         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82208         of -1.
82209
82210 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82211
82212         * lib/chown.c (rpl_chown): Return -1 on failure.
82213
82214 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82215
82216         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82217         Don't check for stddef.h.
82218         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82219         don't use its results.
82220         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82221         since we include them unconditionally.  Don't require
82222         AM_STDBOOL_H, since stdbool is a prerequisite.
82223         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82224         since we assume C89 or better.
82225         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82226         as we don't use their results.
82227         Don't check for fchdir, memmove, memset, strrchr, as we use
82228         them unconditionally.
82229         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82230         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82231
82232 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82233
82234         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82235         Include <stddef.h> unconditionally, since we assume C89 now.
82236         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82237         * lib/fts.c: Include fts_.h first, to check interface.
82238         Do not include intprops.h; no longer needed.
82239         Include cycle-check.h and hash.h, since fts_.h no longer does.
82240         Remove unnecessary casts of closedir to void.
82241         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82242         decide whether to decrement nlinks.
82243         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82244         (FTS): Use struct hash_table * instead of Hash_table, so that
82245         we no longer need to include hash.h here.
82246
82247 2005-05-18  Jim Meyering  <jim@meyering.net>
82248
82249         * modules/dirfd (License): Change to LGPL.  Most of the code
82250         is already in the public domain.
82251
82252 2005-05-18  Jim Meyering  <jim@meyering.net>
82253
82254         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82255         Reported by Yoann Vandoorselaere.
82256
82257 2005-05-17  Jim Meyering  <jim@meyering.net>
82258
82259         * m4/fts.m4: New file, from coreutils.
82260
82261 2005-05-17  Jim Meyering  <jim@meyering.net>
82262
82263         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82264
82265 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82266
82267         Sync from coreutils.
82268         * m4/unlinkdir.m4: New file.
82269
82270 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82271
82272         Sync from coreutils.
82273         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82274         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82275         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82276         White space changes only.
82277         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82278         special.
82279         * lib/yesno.c: Include getline.h, not ctype.h.
82280         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82281         Use getline to remove arbitrary restriction on response length.
82282
82283 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * config/srclist-update: Spell out "Street" in FSF postal
82286         mail address; this is the style the FSF seems to prefer.
82287
82288         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82289         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82290         this updates FSF postal mail address.
82291
82292         Sync from coreutils.
82293         * modules/unlinkdir: New file.
82294         * modules/yesno (Depends-on): Add getline.
82295         * MODULES.html.sh (File system functions): Add unlinkdir.
82296
82297 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82298
82299         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82300         lib/strsep.h:
82301         Change the initial comment to refer to GPL, not LGPL.
82302         gnulib-tool will change it to LGPL as needed.
82303
82304         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82305         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82306         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82307         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82308         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82309         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82310         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82311         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82312         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82313         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82314         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82315         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82316         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82317         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82318         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82319         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82320         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82321         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82322         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82323         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82324         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82325         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82326         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82327         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82328         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82329         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82330         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82331         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82332         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82333         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82334         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82335         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82336         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82337         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82338         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82339         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82340         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82341         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82342         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82343         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82344         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82345         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82346         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82347         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82348         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82349         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82350         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82351         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82352         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82353         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82354         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82355         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82356         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82357         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82358         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82359         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82360         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82361         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82362         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82363         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82364         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82365         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82366         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82367         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82368         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82369         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82370         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82371         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82372         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82373         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82374         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82375         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82376         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82377         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82378         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82379         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82380         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82381         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82382         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82383         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82384         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82385         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82386         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82387         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82388         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82389         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82390         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82391         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82392         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82393         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82394         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82395         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82396         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82397         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82398         lib/yesno.c, lib/yesno.h:
82399         Update FSF postal mail address.
82400
82401 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82402
82403         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82404         tests/test-memmem.c, tests/test-stpncpy.c:
82405         Update FSF postal mail address.
82406
82407 2005-05-13  Bruno Haible  <bruno@clisp.org>
82408
82409         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82410         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82411         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82412         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82413         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82414         Add support for 64-bit integers in the MSVC compiler.
82415
82416 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82417
82418         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82419
82420 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82421
82422         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82423
82424 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82425
82426         * doc/getdate.texi (General date syntax): Don't say that date
82427         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82428         Problem reported by Nic Ferrier.
82429
82430 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82431
82432         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82433         specified in ai_socktype. Fix invalid ai_protocol
82434         check. ai_protocol is usually set to 0 or depending on
82435         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82436         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82437         ai_socktype / ai_protocol in the returned addrinfo structure.
82438
82439 2005-05-10  Simon Josefsson  <jas@extundo.com>
82440
82441         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82442         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82443
82444 2005-05-10  Karl Berry  <karl@gnu.org>
82445
82446         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82447         (from http://www.gnu.org/licenses).
82448         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82449         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82450         fdl.texi suffices.
82451
82452 2005-05-10  Karl Berry  <karl@gnu.org>
82453
82454         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82455         (COPYING.DOC): remove.
82456
82457         * config/srclist-update: new FSF address.
82458
82459 2005-05-10  Derek Price  <derek@ximbiot.com>
82460
82461         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82462         possible.
82463
82464 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82465             Bruno Haible  <bruno@clisp.org>
82466
82467         * modules/inet_ntop: New file.
82468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82469         inet_ntop.
82470
82471 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82472             Bruno Haible  <bruno@clisp.org>
82473
82474         * m4/inet_ntop.m4: New file.
82475
82476 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82477             Bruno Haible  <bruno@clisp.org>
82478
82479         * lib/inet_ntop.h: New file.
82480         * lib/inet_ntop.c: New file, from glibc with modifications.
82481
82482 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82483
82484         * modules/time_r (License): Change to LGPL.
82485         * modules/extensions (License): Change to LGPL.  Actually,
82486         the license is more permissive than that, but currently gnulib-tool
82487         doesn't know how to handle more-permissive licenses.
82488
82489         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82490         Problem reported by Dave Love.
82491
82492 2005-05-08  Jim Meyering  <jim@meyering.net>
82493
82494         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82495         blank.
82496
82497 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82498
82499         * modules/argmatch (Depends-on): Add stdbool.
82500         * modules/backupfile (Depends-on): Likewise.
82501         * modules/chdir-long (Depends-on): Likewise.
82502         * modules/closeout (Depends-on): Likewise.
82503         * modules/cycle-check (Depends-on): Likewise.
82504         * modules/dirname (Depends-on): Likewise.
82505         * modules/fnmatch (Depends-on): Likewise.
82506         * modules/fsusage (Depends-on): Likewise.
82507         * modules/fwriteerror (Depends-on): Likewise.
82508         * modules/getcwd (Depends-on): Likewise.
82509         * modules/getloadavg (Depends-on): Likewise.
82510         * modules/hard-locale (Depends-on): Likewise.
82511         * modules/makepath (Depends-on): Likewise.
82512         * modules/mountlist (Depends-on): Likewise.
82513         * modules/nanosleep (Depends-on): Likewise.
82514         * modules/posixtm (Depends-on): Likewise.
82515         * modules/quotearg (Depends-on): Likewise.
82516         * modules/readtokens (Depends-on): Likewise.
82517         * modules/readtokens0 (Depends-on): Likewise.
82518         * modules/readutmp (Depends-on): Likewise.
82519         * modules/save-cwd (Depends-on): Likewise.
82520         * modules/strftime (Depends-on): Likewise.
82521         * modules/userspec (Depends-on): Likewise.
82522         * modules/utimecmp (Depends-on): Likewise.
82523         * modules/xgetcwd (Depends-on): Likewise.
82524         * modules/xnanosleep (Depends-on): Likewise.
82525         * modules/xstrtod (Depends-on): Likewise.
82526         * modules/yesno (Depends-on): Likewise.
82527
82528 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82529
82530         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82531         needless checks.
82532
82533 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82534
82535         Merge from coreutils.  Among other things,
82536         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82537         * lib/fd-safer.c: New file.
82538         * lib/fcntl-safer.h, open-safer.c: Remove.
82539         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82540         * lib/dup-safer.c: Include unistd-safer.h first.
82541         Don't include errno.h.
82542         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82543         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82544         * lib/file-type.c: Rely on file-type.h change.
82545         * lib/getloadavg.c: Include unistd-safer.h.
82546         (getloadavg): Use safer open.
82547         * lib/getusershell.c: Include "stdio-safer.h".
82548         (getusershell): Use safer fopen.
82549         * lib/long-options.c (long_options): Use NULL rather than 0.
82550         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82551         'free'.
82552         * lib/modechange.c: Likewise.
82553         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82554         (MODE_DONE): New constant.
82555         (struct mode_change): Remove 'next' member.
82556         (make_node_op_equals): New function; like the old one of the
82557         same name, except it allocates an array.
82558         (mode_compile, mode_create_from_ref): Use it.
82559         (mode_compile): Allocate result as an array, not a linked list.
82560         Parse octal string ourself, so that we catch mistakes like "+0".
82561         (mode_adjust): Arg is an array, not a linked list.
82562         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82563         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82564         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82565         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82566         Remove.  This is now stat-macros.h's job.
82567         (talloc): Remove.  All callers replaced by xalloc, so that
82568         our invokers don't have to worry about reporting memory failures.
82569         (make_node_op_equals): Remove.
82570         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82571         New constants.
82572         (struct mode_change): Moved here from modechange.h.
82573         (mode_append_entry): Remove.
82574         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82575         apps to have incorrect behavior.  Use simpler algorithm for head
82576         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82577         Detect more invalid usages rather than having somewhat-random behavior.
82578         Don't insert an "a=" action, as that leads to incorrect behavior.
82579         (mode_compile, mode_create_from_ref): Return NULL on error instead
82580         of an enum, since now there's only one way to have an error.  All
82581         callers changed.
82582         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82583         at the correct time.  Simplify calculation of "+u" and its ilk.
82584         Don't mishandle "+X".
82585         (mode_free): Remove "register" and localize decls.
82586         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82587         (struct mode_change): Move to modechange.c; callers don't
82588         need to see this stuff.
82589         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82590         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82591         (mode_change, mode_adjust): Reflect the new signatures noted above.
82592         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82593         that might redefine system include files.
82594         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82595         (my_usleep): Use NULL rather than (void *) 0.
82596         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82597         Use siginterrupt to specify that system calls should be interrupted.
82598         (rpl_nanosleep): Move initialization of suspended closer to call of
82599         my_usleep.
82600         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82601         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82602         (desirable_utmp_entry): New function.
82603         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82604         using x2nrealloc, to simplify logic.
82605         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82606         size calculation.  Do not assume utmp file is a regular file.
82607         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82608         (READ_UTMP_CHECK_PIDS): New constant.
82609         * lib/save-cwd.c: Include unistd-safer.h.
82610         (save_cwd): Use fd_safer.
82611         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82612         [!_LIBC] Include "stat-macros.h" instead.
82613         * lib/unistd-safer.h (fd_safer): New decl.
82614
82615 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82616
82617         * modules/getloadavg (Depends-on): Add unistd-safer.
82618         * modules/getusershell (Depends-on): Add stdio-safer.
82619         * modules/lstat (Depends-on): Remove xalloc.
82620         * modules/mkstemp (Depends-on): Add stat-macros.
82621         * modules/modechange (Depends-on): Remove xstrtol.
82622         Add stat-macros, xalloc.
82623         * modules/save-cwd (Depends-on): Add unistd-safer.
82624         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82625         * modules/unistd-safer (Files): Add lib/fd-safer.c
82626         (Makefile.am): Remove lib_SOURCES.
82627
82628         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82629         Remove fcntl-safer; unistd-safer supersedes it.
82630
82631 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82632
82633         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82634         AC_HEADER_STAT.
82635         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82636         (gl_PREREQ_CHOWN): Remove.
82637         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82638         it.  Don't require AC_HEADER_STAT.
82639         (gl_PREREQ_LSTAT): Remove.
82640         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82641         Don't require AC_HEADER_STAT.
82642         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82643         (gl_PREREQ_RMDIR): Remove.
82644         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82645         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82646         the stat-macros module a prerequisite.
82647         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82648         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82649         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82650         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82651         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82652         variable names.
82653         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82654         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82655         variable prefixes.
82656         * m4/fcntl-safer.m4: Remove.
82657         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82658         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82659         Invoke gl_PREREQ_FD_SAFER.
82660         (gl_PREREQ_FD_SAFER): New macro.
82661         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82662         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82663         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82664         Remove duplicate call to AC_LIBOBJ(readutmp).
82665         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82666
82667         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82668         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82669
82670 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82671
82672         * MODULES.html.sh (Misc): Add byteswap.
82673
82674 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82675
82676         * modules/getcwd (Depends-on): Add extensions.
82677         * modules/openat (Depends-on): Likewise.
82678
82679 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82680
82681         * modules/byteswap: New file.
82682
82683 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82684
82685         * m4/byteswap.m4: New file.
82686
82687 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82688
82689         * lib/byteswap_.h: New file.
82690
82691 2005-04-25  Karl Berry  <karl@gnu.org>
82692
82693         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82694
82695 2005-04-25  Albert Chin  <china@thewrittenword.com>
82696
82697         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82698         Toolkit C bug.
82699
82700 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82701
82702         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82703         (func_ln_if_changed): Remove forcibly for no error message
82704         in case file does not exist.
82705
82706 2005-04-19  Simon Josefsson  <jas@extundo.com>
82707
82708         * gnulib-tool (Options): Make --symlink mean --symbolic.
82709
82710 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82711
82712         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82713
82714 2005-04-16  Simon Josefsson  <jas@extundo.com>
82715
82716         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82717
82718 2005-04-15  Simon Josefsson  <jas@extundo.com>
82719
82720         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82721
82722 2005-04-15  Simon Josefsson  <jas@extundo.com>
82723
82724         * gnulib-tool: Rename --symlink to --symbolic.
82725
82726 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82727
82728         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82729         symbolic links to files instead of copying/moving.  Add --aux-dir,
82730         specifying directory relative --dir where auxiliary build tools
82731         are placed.
82732
82733 2005-04-14  Bruno Haible  <bruno@clisp.org>
82734
82735         * modules/allocsa (License): Change to LGPL.
82736         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82737
82738 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82739
82740         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82741         that "UTC +1 second" continues to work.  Problem reported
82742         by Dmitry V. Levin.
82743         (relunit_snumber): New rule.
82744         (relunit): Use it.
82745
82746 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82747
82748         * lib/getdate.y (universal_time_zone_table): New constant.
82749         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82750         universal_time_zone_table.
82751         (lookup_zone): Prefer universal_time_zone_table to
82752         local_time_zone_table, so that "GMT" time stamps are allowed in
82753         London during the summer.  Problem reported by Ian Abbott.
82754
82755 2005-04-12  Jim Meyering  <jim@meyering.net>
82756
82757         * lib/human.c (humblock): Set *options even when returning due to
82758         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82759         warning from gcc-4.
82760
82761 2005-04-09  Jim Meyering  <jim@meyering.net>
82762
82763         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82764         -Wuninitialized: initialize tm0.tm_year.
82765
82766 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82767
82768         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82769         count, since there's no maximum.  All uses changed.
82770         Add member dsts_seen.
82771         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82772         not being INT_MAX.
82773         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82774         Use pc_rels_seen to decide whther a date is absolute.
82775
82776         * lib/getdate.y (number): Don't overwrite year.
82777         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82778         check.
82779
82780 2005-04-02  Simon Josefsson  <jas@extundo.com>
82781
82782         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82783         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82784
82785 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82786
82787         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82788         where no absolute path name can be longer than PATH_MAX.
82789
82790 2005-03-27  Jim Meyering  <jim@meyering.net>
82791
82792         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82793
82794 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82797         "one's complement" -> "ones' complement" in comment, as per Knuth.
82798         "value of type" -> "type or expression" in comment.
82799         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82800
82801 2005-03-26  Jim Meyering  <jim@meyering.net>
82802
82803         Comment nits.
82804         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82805         Correct typos: s/or/of/.
82806
82807 2005-03-26  Jim Meyering  <jim@meyering.net>
82808
82809         * modules/check-include-files: Move to ../ and rename to...
82810         * check-module: ...this.
82811
82812 2005-03-25  Jim Meyering  <jim@meyering.net>
82813
82814         * modules/xvasprintf (Files): Add xalloc.h.
82815
82816 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82817
82818         * modules/gettext (Files): config/config.rpath ->
82819         build-aux/config.rpath
82820         * modules/iconv (Files): Likewise.
82821         Problem reported by Oskar Liljeblad.
82822
82823 2005-03-23  Jim Meyering  <jim@meyering.net>
82824
82825         * modules/check-include-files: New script to check for
82826         missing dependencies, multiple includes, etc.
82827
82828         * modules/c-strtold (Depends-on): Add xalloc.
82829         * modules/c-strtod (Depends-on): Add xalloc.
82830         * modules/hash (Depends-on): Add xalloc.
82831         (Files): Remove lib/xalloc.h.
82832
82833         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82834         * modules/userspec (Files): Add lib/inttostr.h.
82835
82836 2005-03-23  Jim Meyering  <jim@meyering.net>
82837
82838         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82839
82840 2005-03-22  Jim Meyering  <jim@meyering.net>
82841
82842         * modules/stat-macros: New module.
82843         * modules/canonicalize, modules/euidaccess, modules/file-type,
82844         * modules/filemode, modules/lchown, modules/makepath,
82845         * modules/rmdir, modules/stat: Depend on new stat-macros module
82846         rather than listing lib/stat-macros.h manually.
82847         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82848
82849 2005-03-22  Jim Meyering  <jim@meyering.net>
82850
82851         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82852
82853 2005-03-22  Bruno Haible  <bruno@clisp.org>
82854
82855         * config/srclist.txt: Replace target directory 'config' with
82856         'build-aux'.
82857         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82858         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82859         ../build-aux/.
82860
82861 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82862
82863         * modules/chdir-long (Depends-on): Add mempcpy.
82864
82865         * modules/acl, modules/backupfile, modules/c-strtod,
82866         modules/c-strtold, modules/canon-host, modules/canonicalize,
82867         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82868         modules/exclude, modules/exitfail, modules/file-type,
82869         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82870         modules/getdate, modules/getline, modules/getpagesize,
82871         modules/getpass, modules/getugroups, modules/group-member,
82872         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82873         modules/inttostr, modules/long-options, modules/makepath,
82874         modules/md5, modules/memcasecmp, modules/memcoll,
82875         modules/modechange, modules/mountlist, modules/path-concat,
82876         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82877         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82878         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82879         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82880         modules/strftime, modules/strndup, modules/strverscmp,
82881         modules/timespec, modules/unlocked-io, modules/userspec,
82882         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82883         modules/yesno:
82884         Remove lib_SOURCES line from Makefile.am section, as this is now
82885         done automatically by the corresponding Autoconf macro.
82886
82887 2005-03-21  Jim Meyering  <jim@meyering.net>
82888
82889         Changes imported from coreutils.
82890
82891         * lib/cycle-check.c: Don't include xalloc.h.
82892
82893         * lib/path-concat.c: Don't include assert.h.
82894         (path_concat): Remove assertion that would have triggered
82895         for ABASE starting with more than one slash.
82896         Reported by Andreas Schwab.
82897
82898         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82899         properly when ABASE is an absolute file name.
82900         Correct the description of this function.
82901         Include <assert.h>.
82902         Add an assertion and a test driver.
82903         This fixes a bug introduced on 2004-07-02.
82904         Andreas Schwab reported the resulting failure of cp --parents:
82905         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82906
82907 2005-03-21  Jim Meyering  <jim@meyering.net>
82908
82909         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82910         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82911
82912 2005-03-21  Jim Meyering  <jim@meyering.net>
82913         and  Paul Eggert  <eggert@cs.ucla.edu>
82914
82915         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82916         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82917         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82918         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82919         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82920         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82921         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82922         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82923         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82924         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82925         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82926         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82927         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82928         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82929         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82930         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82931         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82932         for these modules.
82933
82934 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82935
82936         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82937         (which shouldn't happen), generate nothing instead of returning 0
82938         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82939
82940 2005-03-16  Bruno Haible  <bruno@clisp.org>
82941
82942         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82943         HAVE_LONGLONG_64BIT.
82944
82945 2005-03-16  Bruno Haible  <bruno@clisp.org>
82946
82947         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82948         HAVE_LONGLONG_64BIT.
82949
82950 2005-03-16  Bruno Haible  <bruno@clisp.org>
82951
82952         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82953         HAVE_LONGLONG_64BIT.
82954
82955 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82958         reliably distinguish strftime failure from empty output on POSIX
82959         hosts.
82960
82961 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82962
82963         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82964         (iconv_string): Don't guess a size-zero buffer, as that might cause
82965         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82966         result would be 'too large', where 'too large' is (heuristically)
82967         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82968         overflow concerns.  This will prevent some unwanted malloc failures
82969         when the inputs are very large.
82970
82971 2005-03-15  Karl Berry  <karl@gnu.org>
82972
82973         * config/srclist.txt (config.rpath): from gettext.
82974         * config/config.rpath: update.
82975
82976 2005-03-15  Bruno Haible  <bruno@clisp.org>
82977
82978         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82979         to 'negate'.
82980
82981         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82982         variable.
82983
82984         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82985         results.
82986
82987 2005-03-14  Simon Josefsson  <jas@extundo.com>
82988
82989         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82990         <fx@gnu.org>.
82991
82992 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82993
82994         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82995         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82996         intprops.h.
82997         * lib/strtol.c: Likewise.
82998
82999 2005-03-14  Jim Meyering  <jim@meyering.net>
83000
83001         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83002         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83003         to be nonzero so that we (and caller) can detect the difference
83004         between a valid zero-length expansion and an error return, even
83005         when the underlying strftime fails before writing anything into
83006         that location.
83007
83008 2005-03-14  Bruno Haible  <bruno@clisp.org>
83009
83010         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83011         Update from GNU gettext 0.14.3.
83012
83013 2005-03-10  Jim Meyering  <jim@meyering.net>
83014
83015         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83016
83017 2005-03-10  Jim Meyering  <jim@meyering.net>
83018
83019         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83020         so that this module works on systems without fchdir.
83021
83022 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83023
83024         Factor int-properties macros into a single file, except for
83025         glibc-related files.
83026         * lib/intprops.h: New file.
83027         * lib/getloadavg.c: Include it instead of limits.h.
83028         (INT_STRLEN_BOUND): Remove.
83029         * lib/human.c: Include intprops.h.
83030         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83031         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83032         302/1000.
83033         * lib/inttostr.h: Include intprops.h instead of limits.h.
83034         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83035         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83036         for consistency with intprops.h.
83037         (time_t_is_integer, twos_complement_arithmetic): Use them.
83038         * lib/sig2str.h: Include <signal.h>, intprops.h.
83039         (INT_STRLEN_BOUND): Remove.
83040         * lib/strftime.c (TYPE_SIGNED): Remove.
83041         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83042         * lib/strtol.c: Adjust comments to match intprops.h.
83043         * lib/userspec.c: Include intprops.h.
83044         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83045         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83046         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83047         instead of rolling our own expressions.
83048         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83049
83050         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83051         instead of int.
83052         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83053         the right thing even if adding 1900 would overflow.  Similarly
83054         for tm_mon + 1 and tm_yday + 1.
83055         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83056         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83057         (DO_SIGNED_NUMBER): New macro.
83058         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83059
83060 2005-03-07  Bruno Haible  <bruno@clisp.org>
83061
83062         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83063
83064 2005-03-07  Bruno Haible  <bruno@clisp.org>
83065
83066         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83067
83068 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83069
83070         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83071         (func_import): Only replace files via --import when they have actually
83072         changed.
83073
83074 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83075
83076         * m4/mmap-anon.m4: New file.
83077         * m4/pagealign_alloc.m4: New file.
83078
83079 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83080             Bruno Haible  <bruno@clisp.org>
83081
83082         * modules/pagealign_alloc: New file.
83083         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83084
83085 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83086             Bruno Haible  <bruno@clisp.org>
83087
83088         * lib/pagealign_alloc.h: New file.
83089         * lib/pagealign_alloc.c: New file.
83090
83091 2005-03-03  Bruno Haible  <bruno@clisp.org>
83092
83093         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83094         Use an all-permissive copyright notice, recommended by RMS.
83095
83096 2005-03-02  Bruno Haible  <bruno@clisp.org>
83097
83098         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83099         of AIX, the replacement has to be done only after <string.h> is
83100         included, therefore not in config.h. stpncpy.h does the replacement,
83101         and stpncpy.c uses it.
83102
83103 2005-03-02  Bruno Haible  <bruno@clisp.org>
83104
83105         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83106         stpncpy.c uses it.
83107
83108 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83109
83110         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83111         The workaround isn't strictly needed for POSIX conformance, and
83112         it's too much of a pain to configure and maintain.  We'll ask
83113         people to fix their kernels instead.
83114         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83115         (NANOSLEEP_BUG_WORKAROUND): Remove.
83116         (xnanosleep): Remove the workaround.
83117
83118 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83119
83120         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83121         Reported by Derek Price.
83122         (Include): Add "timespec.h".
83123
83124         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83125
83126 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83127
83128         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83129         to detect nanosleep bug.
83130
83131 2005-03-01  Bruno Haible  <bruno@clisp.org>
83132
83133         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83134
83135 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         * modules/gethrxtime: New file.
83138         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83139         (Depends-on): Add gethrxtime.
83140         (configure.ac): Add gl_XNANOSLEEP.
83141         (Makefile.am): Remove lib_SOURCES line.
83142
83143 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83144
83145         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83146         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83147
83148 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83149
83150         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83151         * lib/timespec.h (gettime): Return void, since it always
83152         succeeds now.  All uses changed.
83153         * lib/gettime.c (gettime): Likewise.
83154         [HAVE_NANOTIME]: Prefer nanotime.
83155         Assume gettimeofday succeeds, as POSIX requires.
83156         Assime time () succeeds, since other code already does.
83157         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83158         (timespec_subtract): Remove.
83159         (NANOSLEEP_BUG_WORKAROUND): New constant.
83160         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83161         things considerably.  Use it only on GNU/Linux hosts, since the
83162         workaround shouldn't be needed elsewhere.
83163
83164 2005-02-24  Bruno Haible  <bruno@clisp.org>
83165
83166         * modules/gettext (Files): Add m4/glibc2.m4.
83167
83168 2005-02-24  Bruno Haible  <bruno@clisp.org>
83169
83170         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83171         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83172         * m4/progtest.m4:
83173         Update from GNU gettext 0.14.2.
83174         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83175
83176 2005-02-24  Bruno Haible  <bruno@clisp.org>
83177
83178         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83179         * lib/config.charset: Update from GNU gettext 0.14.2.
83180
83181 2005-02-24  Bruno Haible  <bruno@clisp.org>
83182
83183         * lib/gettext.h: Update from GNU gettext 0.14.2.
83184
83185 2005-02-23  Simon Josefsson  <jas@extundo.com>
83186
83187         * m4/iconvme.m4: New file.
83188
83189 2005-02-23  Jim Meyering  <jim@meyering.net>
83190
83191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83192         change.
83193         Thanks to Bruno Haible for catching it.
83194
83195 2005-02-22  Simon Josefsson  <jas@extundo.com>
83196
83197         * modules/iconvme: New file.
83198
83199         * MODULES.html.sh: Add iconvme.
83200
83201 2005-02-22  Simon Josefsson  <jas@extundo.com>
83202
83203         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83204
83205 2005-02-22  Simon Josefsson  <jas@extundo.com>
83206
83207         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83208
83209 2005-02-22  Jim Meyering  <jim@meyering.net>
83210
83211         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83212         s/ifndef/ifdef/.
83213
83214 2005-02-20  Neil Conway  <neilc@samurai.com>
83215
83216         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83217         returned by OSX/Darwin if the specified buffer is not large
83218         enough for the hostname.
83219
83220 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83221
83222         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83223         pass it to _help, otherwise the latter coredumps trying to
83224         dereference state.root_argp.
83225
83226 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         * modules/chdir-long (Depends-on): Add memrchr.
83229         * modules/memrchr (Files): Add lib/memrchr.h.
83230         (Include): "memrchr.h".
83231
83232 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83233
83234         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83235
83236 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * lib/memrchr.h: New file.
83239         * lib/chdir-long.c: Include it.
83240         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83241         Don't bother including stddef.h.
83242
83243 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83244
83245         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83246         inclusion.
83247         Include <sys/types.h>, for dev_t.
83248         (ME_DUMMY, ME_REMOTE): Move from here....
83249         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83250         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83251         Dmitry V. Levin.
83252         Include mountlist.h first, to test the interface.
83253
83254 2005-01-29  Bruno Haible  <bruno@clisp.org>
83255
83256         * lib/progname.c (program_name): Initialize.
83257         Needed when linking statically on MacOS X.
83258
83259 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         Sync from coreutils.
83262         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83263         (Depends-on): Add c-strtod.
83264         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83265
83266 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83267
83268         Sync from coreutils.
83269         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83270
83271         Remove files that are specific to coreutils.
83272         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83273
83274 2005-01-28  Bruno Haible  <bruno@clisp.org>
83275
83276         * modules/javacomp: New file.
83277         * MODULES.html.sh (Java): Add javacomp.
83278
83279 2005-01-28  Bruno Haible  <bruno@clisp.org>
83280
83281         * m4/javacomp.m4: New file, from GNU gettext.
83282
83283 2005-01-28  Bruno Haible  <bruno@clisp.org>
83284
83285         * lib/javacomp.sh.in: New file, from GNU gettext.
83286         * lib/javacomp.h: New file, from GNU gettext.
83287         * lib/javacomp.c: New file, from GNU gettext.
83288
83289 2005-01-26  Simon Josefsson  <jas@extundo.com>
83290
83291         * lib/gai_strerror.c: Use GPL in header.
83292
83293 2005-01-26  Bruno Haible  <bruno@clisp.org>
83294
83295         * modules/javaexec: New file.
83296         * MODULES.html.sh (Java): Add javaexec.
83297
83298 2005-01-26  Bruno Haible  <bruno@clisp.org>
83299
83300         * m4/javaexec.m4: New file, from GNU gettext.
83301
83302 2005-01-26  Bruno Haible  <bruno@clisp.org>
83303
83304         * lib/javaexec.sh.in: New file, from GNU gettext.
83305         * lib/javaexec.h: New file, from GNU gettext.
83306         * lib/javaexec.c: New file, from GNU gettext.
83307
83308 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83309
83310         * modules/lchown (Depends-on): Remove lchown.h
83311
83312 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83313
83314         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83315         must be defined if the header file was not found, in order
83316         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83317
83318 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83319
83320         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83321         initializers for struct pentry_state.
83322         (__argp_error): Check return value of __asprintf
83323         (__argp_failure): Translate error message
83324
83325         * lib/argp-parse.c: Removed braces around the expansion of N_()
83326
83327 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83328
83329         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83330         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83331         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83332         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83333         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83334         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83335         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83336         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83337         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83338         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83339         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83340         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83341         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83342         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83343         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83344         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83345         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83346         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83347         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83348         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83349         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83350         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83351         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83352         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83353         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83354         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83355         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83356         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83357         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83358         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83359         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83360         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83361         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83362         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83363         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83364         Use an all-permissive copyright notice, recommended by RMS.
83365
83366 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83367
83368         * modules/chdir-long (Depends-on): Remove mempcpy.
83369
83370 2005-01-21  Jim Meyering  <jim@meyering.net>
83371
83372         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83373         same value as for Solaris 9.
83374
83375         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83376         component length.  This included changing the parameter to be
83377         of type `char *' rather than `char const *'.
83378         * lib/chdir-long.h (chdir_long): Update prototype.
83379
83380         * lib/openat.c (fdopendir, fstatat): New functions.
83381         * lib/openat.h: Include headers required for use of DIR and struct
83382         stat.
83383         [AT_SYMLINK_NOFOLLOW]: Define.
83384         (fdopendir, fstatat): Add prototypes.
83385
83386 2005-01-21  Bruno Haible  <bruno@clisp.org>
83387
83388         * modules/classpath: New file.
83389         * MODULES.html.sh (Java): Add classpath.
83390
83391 2005-01-21  Bruno Haible  <bruno@clisp.org>
83392
83393         * lib/classpath.h: New file, from GNU gettext.
83394         * lib/classpath.c: New file, from GNU gettext.
83395
83396 2005-01-20  Simon Josefsson  <jas@extundo.com>
83397
83398         * modules/version-etc-fsf: New file.
83399
83400 2005-01-20  Simon Josefsson  <jas@extundo.com>
83401
83402         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83403         * lib/version-etc.c: Remove version_etc_copyright.
83404         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83405         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83406
83407 2005-01-20  Simon Josefsson  <jas@extundo.com>
83408
83409         * lib/base64.h (isbase64): Add.
83410
83411         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83412         using a unsigned prototype, don't inline.
83413         (base64_decode): Use it.
83414
83415 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83416
83417         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83418         it.
83419
83420 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83421
83422         * lib/save-cwd.c (save_cwd): Remove code to support the case
83423         where fchdir is missing or flaky.
83424
83425 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83426
83427         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83428
83429 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83430
83431         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83432         AC_LIBSOURCES now does this.
83433         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83434         with new ullong_max module.
83435
83436 2005-01-19  Bruno Haible  <bruno@clisp.org>
83437
83438         * modules/sh-quote: New file.
83439         * MODULES.html.sh (Executing programs): Add sh-quote.
83440
83441 2005-01-19  Bruno Haible  <bruno@clisp.org>
83442
83443         * lib/sh-quote.h: New file, from GNU gettext.
83444         * lib/sh-quote.c: New file, from GNU gettext.
83445
83446 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83447
83448         Merge from coreutils.
83449         * m4/ullong_max.m4: New file.
83450         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83451         (gl_MACROS): Assume localeconv exists.
83452
83453 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83454
83455         Merge changes from coreutils, as described below in several
83456         changelogs dated today.
83457
83458         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83459         (O_DIRECTORY): Remove; not needed here, since "." must be
83460         a directory.  All uses removed.
83461         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83462         universal on Suns, and we also need to test for IRIX.
83463         Revamp code to use 'if' rather than '#if'.
83464         Avoid unnecessary comparison of cwd->desc to 0.
83465
83466         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83467         for known valid error numbers rather than observed invalid ones.
83468
83469 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83470
83471         * modules/ullong_max: New file.
83472
83473         * modules/chdir-long, modules/openat: New files.
83474         * modules/save-cwd (Depends-on): Depend on chdir-long.
83475         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83476
83477 2005-01-18  Jim Meyering  <jim@meyering.net>
83478
83479         Merge from coreutils.
83480         * m4/chdir-long.m4, m4/openat.m4: New files.
83481         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83482         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83483         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83484         is sane and DOES follow symlinks.  Besides, testing 20 different
83485         systems found no broken chown implementations.
83486         Prompted by a change in rsync's copy of this macro.
83487         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83488
83489         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83490
83491         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83492         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83493         NULL-means-set-to-current-time semantics.
83494         Remove temporary file immediately, rather than waiting
83495         for configure's at-exit trap code to do it.
83496
83497 2005-01-18  Jim Meyering  <jim@meyering.net>
83498
83499         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83500
83501         * lib/utimens.c (futimens): Account for the fact that futimes
83502         can also fail with errno == ENOSYS or errno == ENOENT.
83503         Patch from Dmitry V. Levin.
83504
83505         Change the name of the robust chdir function from chdir to chdir_long.
83506         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83507         (restore_cwd): Use chdir_long, not chdir.
83508         * lib/chdir-long.c: Renamed from chdir.c.
83509         * lib/chdir-long.h: Renamed from chdir.h.
83510         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83511         Hurd.
83512
83513 2005-01-18  Bruno Haible  <bruno@clisp.org>
83514
83515         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83516         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83517         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83518         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83519         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83520         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83521         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83522         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83523         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83524         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83525         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83526         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83527         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83528         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83529         Use an all-permissive copyright notice, recommended by RMS.
83530
83531 2005-01-18  Bob Proulx  <bob@proulx.com>
83532
83533         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83534         simplify offsetof() macro construct to avoid compile failure with
83535         native HP-UX 11.0 ANSI C compiler.
83536
83537 2005-01-17  Bruno Haible  <bruno@clisp.org>
83538
83539         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83540         redundant because stpncpy.m4 takes care of it.
83541
83542 2005-01-17  Bruno Haible  <bruno@clisp.org>
83543
83544         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83545
83546 2005-01-17  Bruno Haible  <bruno@clisp.org>
83547
83548         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83549         used.
83550
83551 2005-01-17  Bruno Haible  <bruno@clisp.org>
83552
83553         * lib/fwriteerror.h (fwriteerror): Change specification to include
83554         fclose.
83555         * lib/fwriteerror.c: Include <stdbool.h>.
83556         (fwriteerror): At the end, close the file stream. Record whether
83557         stdout was already closed.
83558
83559 2005-01-17  Bruno Haible  <bruno@clisp.org>
83560
83561         * lib/execute.c (environ): Declare if needed.
83562         * lib/pipe.c (environ): Likewise.
83563         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83564
83565 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83566
83567         * modules/argp: Depend on vsnprintf
83568
83569 2005-01-10  Jim Meyering  <jim@meyering.net>
83570
83571         * modules/closeout (Depends-on): Add atexit.
83572
83573 2005-01-06  Bruno Haible  <bruno@clisp.org>
83574
83575         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83576
83577 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83578
83579         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83580         definitions to be after all include files, to avoid collisions.
83581         Problem reported by Bob Proulx.
83582
83583 2005-01-04  Jim Meyering  <jim@meyering.net>
83584
83585         Changes imported from coreutils.
83586         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83587         as the mkstemp template, use a temporary directory and an
83588         8.3-friendly template to avoid trouble on systems like DJGPP.
83589         Reported by Juan M. Guerrero via Stepan Kasal.
83590         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83591         close. Remove the temporary directory right away, rather than waiting
83592         for configure's at-exit trap code to do it.
83593         Suggestion from Stepan Kasal.
83594
83595 2005-01-01  Simon Josefsson  <jas@extundo.com>
83596
83597         * gnulib-tool: Print #include directives when --import'ing.
83598
83599 2004-12-28  Simon Josefsson  <jas@extundo.com>
83600
83601         * tests/test-base64.c: Include required header files.  Remove
83602         unused variables.
83603
83604 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83605
83606         * modules/error (Depends-on): Remove gettext.
83607
83608 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83609
83610         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83611         not needed.  This removes a dependency on the gettext module.
83612         [defined _LIBC]: Do not include <libintl.h>; not needed.
83613
83614 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83615
83616         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83617         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83618
83619 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83620
83621         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83622         HAVE_DECL_STRTOLD.
83623
83624 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83625
83626         * modules/getdate (Depends-on): Remove alloca-opt.
83627
83628 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83629
83630         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83631
83632 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         * lib/argp-parse.c: Include <stddef.h>.
83635         (alignof, alignto): New macros.
83636         (parser_init): Don't assume that void * is aligned sufficiently
83637         for struct option.
83638
83639         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83640         need to extend the stack.
83641         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83642         large.
83643
83644 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83645
83646         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83647
83648 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83651         (2004-10-24) change.  Apparently this was a false alarm.
83652
83653         * modules/getdate: Depend on alloca-opt, not alloca.
83654
83655 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83656
83657         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83658         Remove now-obsolete comment about AIX.
83659         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83660         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83661         (YYMAXDEPTH): New macro.
83662
83663 2004-12-18  Simon Josefsson  <jas@extundo.com>
83664
83665         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83666
83667 2004-12-18  Bruno Haible  <bruno@clisp.org>
83668
83669         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83670
83671 2004-12-18  Bruno Haible  <bruno@clisp.org>
83672
83673         * lib/fatal-signal.c (fatal_signals): Make non-const.
83674         (init_fatal_signals): New function.
83675         (uninstall_handlers, install_handlers): Ignore signals that were set to
83676         SIG_IGN.
83677         (at_fatal_signal): Call init_fatal_signals.
83678         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83679         SIG_IGN.
83680         Reported by Paul Eggert.
83681
83682 2004-12-18  Bruno Haible  <bruno@clisp.org>
83683
83684         * doc/alloca.texi: New file.
83685         * doc/alloca-opt.texi: New file.
83686
83687 2004-12-17  Jim Meyering  <jim@meyering.net>
83688
83689         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83690         Otherwise, install-sh could exit with improper exit status when
83691         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83692
83693 2004-12-16  Simon Josefsson  <jas@extundo.com>
83694
83695         * tests/test-base64.c: Add license.
83696
83697 2004-12-15  Stepan Kasal  <address@hidden>
83698
83699         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83700
83701 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83702
83703         * modules/getcwd (Files): Add m4/d-ino.m4.
83704         Suggested by Mark D. Baushke.
83705
83706 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83707
83708         * lib/getdate.y (textint): New member "negative".
83709         (time_zone_hhmm): New function.
83710         Expect 14 shift-reduce conflicts, not 13.
83711         (o_colon_minutes): New rule.
83712         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83713         (yylex): Set the "negative" member of signed numbers.
83714
83715 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         * doc/getdate.texi (Time of day items, Time zone items):
83718         Describe new formats +00:00, UTC+00:00.
83719
83720 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83721
83722         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83723         spurious "-l"s.  Problem reported by Stepan Kasal.
83724
83725 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83726
83727         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83728         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83729
83730 2004-12-04  Simon Josefsson  <jas@extundo.com>
83731
83732         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83733         Vandoorselaere <yoann@prelude-ids.org>.
83734
83735 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83736
83737         Changes imported from coreutils.
83738         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83739         exist.
83740         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83741
83742 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         Changes imported from coreutils.
83745         * lib/hard-locale.c: Assume <locale.h> exists.
83746         Include "strdup.h".
83747         (GLIBC_VERSION): New macro.
83748         (hard_locale): Assume setlocale exists.
83749         Rewrite to avoid #ifdef.
83750         Use strdup rather than malloc + strcpy.
83751         * lib/human.c: Assume <locale.h> exists.
83752         (human_readable): Assume localeconv exists.
83753
83754 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83755
83756         * modules/hard-locale (Depends-on): Add strdup.
83757
83758 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83759
83760         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83761         convert T2, not T.  (Imported from libc.)
83762
83763 2004-11-30  Simon Josefsson  <jas@extundo.com>
83764
83765         * modules/restrict (License): Change to LGPL.
83766
83767 2004-11-30  Simon Josefsson  <jas@extundo.com>
83768
83769         * m4/restrict.m4: Add copyright and copying conditions.
83770
83771 2004-11-30  Simon Josefsson  <jas@extundo.com>
83772
83773         * m4/base64.m4: New file.
83774
83775 2004-11-30  Simon Josefsson  <jas@extundo.com>
83776
83777         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83778         base64.
83779
83780         * tests/test-base64.c: New file.
83781
83782         * modules/base64: New file.
83783
83784 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83787         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83788
83789         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83790
83791 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83792
83793         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83794         (__getcwd.c): Don't restore errno; glibc doesn't.
83795         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83796         first, falling back to our code only if its results look suspicious.
83797         Ensure that the resulting buffer is only as large as necessary.
83798
83799         * lib/readutmp.c: Include readutmp.h first.
83800         Include <errno.h>, since readutmp.h no longer does that.
83801         * lib/readutmp.h: Don't include <errno.h>,
83802         <sys/param.h>, <time.h>; not needed to establish interface.
83803         (errno): Remove decl.
83804         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83805         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83806         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83807
83808 2004-11-28  Simon Josefsson  <jas@extundo.com>
83809
83810         * lib/base64.h, base64.c: New file.
83811
83812 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83813
83814         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83815
83816 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83817
83818         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83819         (Depends-on): Remove pathmax, same.  Add mempcpy.
83820         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83821         (Makefile.am): Append getcwd.h to lib_SOURCES.
83822         (Include): Add getcwd.h.
83823         (Maintainer): Change from Jim Meyering to "all, glibc",
83824         since getdate now uses intended-for-glibc code.
83825         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83826         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83827
83828 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83829
83830         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83831         HP's ANSI C compiler.
83832         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83833         Declaring int functions causes warnings on some modern systems and
83834         shouldn't be needed to compile on ancient ones.
83835         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83836         defined.
83837
83838         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83839         with the following changes.
83840         (__set_errno): Parenthesize properly.
83841         Include <stdbool.h>.
83842         (MIN, MAX, MATCHING_INO): New macros.
83843         (__getcwd): Define with prototype, not K&R form.
83844         Use heuristics to allocate default buffer on stack if possible.
83845         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83846         behavior, and to avoid the PATH_MAX limit when computing
83847         ../../../../...
83848         Use MATCHING_INO to compare inode number to file.
83849         Check for arithmetic overflow in size calculations.
83850         Fix bug in reallocation of dot array that caused getcwd to fail
83851         on directories nested deeper than 75.
83852         Be more careful about saving errno on error.
83853         Do not use realloc; use only free+malloc, as this is a bit
83854         more flexible and avoids a needless copy operation.
83855         Do not inspect st_dev and st_ino for symbolic links; POSIX
83856         doesn't specify the latter.
83857         Check for closedir errors.
83858         Avoid needless casts.
83859         Use "#ifdef weak_alias" around weak_alias, to be like other
83860         glibc code.
83861         The following changes to getcwd.c have effect only when used in
83862         gnulib; they have no effect inside glibc proper.
83863         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83864         as alloca isn't used.
83865         (alloca, __alloca): Likewise.
83866         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83867         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83868         unconditionally, as gnulib assumes C89 or better.
83869         Do not include <sys/param.h>.
83870         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83871         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83872         better.
83873         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83874         Include <dirent.h> in a way that is compatible with modern Autoconf.
83875         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83876         New macros, if not already defined.
83877         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83878         Use "_LIBC", not "defined _LIBC", for consistency.
83879         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83880         a mempcpy module.
83881         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83882         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83883         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83884         credit only to Jim Meyering and adjust the copyright dates.
83885         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83886         <stdlib.h>, <unistd.h>, "pathmax.h".
83887         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83888         (INITIAL_BUFFER_SIZE): Remove.
83889         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83890
83891 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83892
83893         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83894         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83895         Use the _ONCE methods, for efficiency.
83896         Check for fcntl.h.  In test program, include <errno.h>
83897         and <fcntl.h> if available.  Remove old K&R cruft from
83898         test program.  Check for common errors in GNU/Linux,
83899         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83900         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83901         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83902         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83903         name accordingly.
83904         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83905         accommodate new getcwd.c.
83906         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83907         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83908         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83909         that's all we need now.
83910
83911 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83912
83913         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83914         argp-parse.c depends on getopt internals, that means we should
83915         always use our getopt, to be on the safe side.
83916         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83917         order not to spoil the result of an eventual previous invocation
83918         of gl_GETOPT_SUBSTITUTE.
83919
83920 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83921
83922         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83923         redefinition warnings. To avoid them, include the defines
83924         in `#if !defined __need_getopt ... #endif'. The only place
83925         where __getopt_argv_const is used is in definitions
83926         of getopt_long and getopt_long_only below, which are as well
83927         protected by `#ifndef __need_getopt'.
83928         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83929         __need_getopt after including <stdio.h> and <unistd.h> These
83930         headers might have defined it.
83931
83932 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83933
83934         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83935
83936 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83937
83938         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83939         (futimens): New function, which uses futimes if available.
83940         (futimens, utimens): Support timespec==NULL, with same semantics
83941         as utime and utimens.
83942         * lib/utimens.h (futimens): New decl.
83943
83944 2004-11-23  Jim Meyering  <jim@meyering.net>
83945
83946         * lib/getopt_.h: Remove trailing blanks.
83947
83948 2004-11-23  Jim Meyering  <jim@meyering.net>
83949
83950         * lib/__fpending.c: Add comment.
83951
83952 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83953
83954         * modules/canonicalize (Depends-on): Add xreadlink.
83955         Problem reported by James Youngman.
83956
83957 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83958
83959         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83960         New macros.
83961         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83962         optopt): Use them instead of invoking ## directly; otherwise, the
83963         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83964
83965 2004-11-19  Bruno Haible  <bruno@clisp.org>
83966
83967         * lib/strtok_r.c: Move comments from here...
83968         * lib/strtok_r.h: ... to here.
83969
83970 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83973         implementations that mishandle size_t overflow.
83974
83975 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83978         might fail.  Problem reported by Yoann Vandoorselaere.
83979         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83980         implementations that mishandle size_t overflow.
83981
83982 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83983
83984         * modules/canon-host (Depends-on): Add strdup.
83985
83986 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83987
83988         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83989
83990 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         * lib/canon-host.c: Include "strdup.h".
83993         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83994         Use strdup instead of malloc/strcpy to duplicate strings.
83995
83996         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83997         (human_space_before_unit): New constant.
83998         * lib/human.c (human_readable): Support it.
83999
84000         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84001         (xgetcwd): Set errno correctly when failing.
84002         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84003         the failure is actually due to a PATH_MAX problem.
84004
84005         Further getopt changes to make it more likely that glibc will
84006         buy the changes back.
84007         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84008         (getopt): Use it, so to preserve glibc semantic
84009         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84010         when compiling for libc.
84011         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84012         (getopt_long, getopt_long_only): Use it.
84013
84014         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84015         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84016         (getopt): Argv is now char * const *, as per standard.
84017         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84018         not char *__getopt_argv_const *.
84019         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84020         _getopt_long_only_r): Likewise.
84021         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84022         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84023         _getopt_long_r, _getopt_long_only_r): Likewise.
84024         * lib/getopt_.h (__getopt_argv_const): Remove.
84025         (getopt): Argv is now char * const *, as per standard.
84026
84027         * lib/getdate.y (tORDINAL): New token.
84028         (day, relunit): Allow it for relative times.
84029         (relative_time_table): Use tORDINAL for ordinals.
84030
84031 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84032
84033         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84034         Document that "second" isn't allowed as an ordinal number.
84035
84036 2004-11-16  Jim Meyering  <jim@meyering.net>
84037
84038         * modules/closeout (Depends-on): Add fpending.
84039
84040 2004-11-15  Jim Meyering  <jim@meyering.net>
84041
84042         * lib/closeout.c: Include "__fpending.h" once again.
84043         Include <stdbool.h>.
84044         (close_stdout): Don't fail just because stdout was closed initially,
84045         since some programs don't write to stdout in the normal course of
84046         operation (other than --version and --help), and we don't want this
84047         function to make e.g. `touch file >&-' fail.
84048         But do fail if it was closed and someone has tried to write to it.
84049         E.g., `printf foo >&-' must fail.
84050
84051 2004-11-13  Jim Meyering  <jim@meyering.net>
84052
84053         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84054
84055 2004-11-12  Simon Josefsson  <jas@extundo.com>
84056
84057         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84058         small doc fix is still pending.
84059
84060 2004-11-11  Simon Josefsson  <jas@extundo.com>
84061
84062         * modules/strtok_r: New file.
84063
84064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84065         strtok_r.
84066
84067 2004-11-11  Simon Josefsson  <jas@extundo.com>
84068
84069         * m4/strtok_r.m4: New file.
84070
84071         * m4/getopt.m4: Replace opterr.
84072
84073 2004-11-11  Simon Josefsson  <jas@extundo.com>
84074
84075         * lib/strtok_r.h, strtok_r.c: New file.
84076
84077 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84078
84079         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84080         of replacing opterr, getopt, etc.  This should handle the
84081         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84082
84083 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84084
84085         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84086         we can stop lying to compilers about the constness of argv when we
84087         are compiled outside glibc.
84088         (getopt, getopt_long, getopt_long_only): Use it.
84089         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84090         _getopt_internal, getopt): Likewise.
84091         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84092         _getopt_long_only_r): Likewise.
84093         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84094         _getopt_long_r, _getopt_long_only_r): Likewise.
84095
84096         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84097         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84098         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84099         the other external symbols.
84100         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84101         declaration, since the above renaming now works around collisions.
84102
84103 2004-11-11  Jim Meyering  <jim@meyering.net>
84104
84105         * lib/linebreak.c: Remove trailing blanks.
84106         * lib/alloca_.h: Likewise.
84107         * lib/acosl.c: Likewise.
84108         * lib/euidaccess.c: Likewise.
84109         * lib/allocsa.h: Likewise.
84110
84111 2004-11-10  Simon Josefsson  <jas@extundo.com>
84112
84113         * m4/getaddrinfo.m4: New file.
84114
84115 2004-11-10  Simon Josefsson  <jas@extundo.com>
84116
84117         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84118
84119 2004-11-10  Simon Josefsson  <jas@extundo.com>
84120
84121         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84122         getaddrinfo.
84123
84124         * modules/getaddrinfo: New file.
84125
84126 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84127
84128         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84129
84130 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84131
84132         * lib/mktime.c (SHR): New macro, which is a portable
84133         substitute for >> that should work even on Crays.
84134         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84135         Problem reported by Mark D. Baushke in
84136         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84137         * lib/getdate.y (SHR): Likewise.
84138         (tm_diff): Use it.
84139         * lib/strftime.c (SHR): Likewise.
84140         (tm_diff): Use it.
84141         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84142         quote_these_too, so that right shifts are well defined.  All uses
84143         changed.
84144
84145 2004-11-10  Jim Meyering  <jim@meyering.net>
84146
84147         Ensure that no close failure goes unreported.
84148         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84149         return early when it seems there's nothing to flush.
84150         Don't include __fpending.h.
84151
84152 2004-11-10  Jim Meyering  <jim@meyering.net>
84153
84154         * modules/closeout (Depends-on): Remove fpending.
84155
84156 2004-11-10  Jim Meyering  <jim@meyering.net>
84157
84158         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84159
84160 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84161
84162         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84163         gl_FUNC_STRFTIME.
84164         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84165         and AC_REQUIRE when possible, to avoid duplicate checks.
84166         Check for <wchar.h>.
84167
84168 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84169
84170         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84171
84172 2004-11-09  Bruno Haible  <bruno@clisp.org>
84173
84174         * m4/sockpfaf.m4: New file.
84175
84176 2004-11-05  Bruno Haible  <bruno@clisp.org>
84177
84178         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84179         Reported by Mark D. Baushke <mdb@cvshome.org>.
84180
84181 2004-11-04  Bruno Haible  <bruno@clisp.org>
84182
84183         2004-09-11  Bruno Haible  <bruno@clisp.org>
84184                 * allocsa.valgrind: New file.
84185         2004-02-06  Bruno Haible  <bruno@clisp.org>
84186                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84187                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84188                 Reported by Christopher Seip <chris.seip@hp.com>.
84189
84190 2004-11-04  Bruno Haible  <bruno@clisp.org>
84191
84192         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84193         (Makefile.am): Distribute it.
84194
84195 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84198         with errno == ERANGE if the buffer is too small.
84199         Problem reported by Mark D. Baushke.
84200
84201 2004-11-03  Albert Chin  <china@thewrittenword.com>
84202             Paul Eggert  <eggert@cs.ucla.edu>
84203
84204         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84205         equivalent, substitute $ac_type for equivalent type rather than
84206         blindly using uint32_t *always* which won't work if uint32_t is not
84207         available.  Define _UINT32_T to work around typedef of uint32_t if
84208         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84209         2.5.1.
84210
84211 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84212
84213         * m4/jm-macros.m4: Sync from coreutils.
84214         (gl_MACROS): Check for mbrlen, for pathchk.
84215         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84216
84217 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84218
84219         * lib/xreadlink.c (MAXSIZE): New macro.
84220         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84221         size does not exceed MAXSIZE.  Avoid cast.
84222         As suggested by Mark D. Baushke in
84223         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84224         if readlink fails with buffer size just under MAXSIZE, try again
84225         with MAXSIZE.
84226
84227 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84230
84231 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84232         and  Paul Eggert  <eggert@cs.ucla.edu>
84233
84234         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84235         (get_date): Overparenthesize to avoid GCC warning.
84236
84237 2004-11-02  Bruno Haible  <bruno@clisp.org>
84238
84239         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84240         returns void.
84241
84242 2004-11-02  Bruno Haible  <bruno@clisp.org>
84243
84244         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84245         function returns void.
84246
84247 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84248
84249         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84250         fflush_unlocked, flockfile, funlockfile, funlockfile,
84251         fputs_unlocked, putc_unlocked.
84252
84253 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84254
84255         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84256         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84257         already declared.
84258
84259 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84260
84261         * modules/getdate (Files): Add doc/getdate.texi.
84262         (Depends-on): Add setenv, xalloc.
84263
84264 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84265
84266         * lib/getdate.y: Add support for TZ="foo" within a date string.
84267         Fix some bugs near time_t boundaries.  Reject dates with
84268         out-of-range components, e.g., "Sept 31".
84269         Include <stdlib.h>, "setenv.h", "xalloc.h".
84270         (ISDIGIT_LOCALE): Remove; unused.
84271         Note that the TZ and time functions used here are not reentrant.
84272         (mktime_ok, get_tz): New functions.
84273         (TZBUFSIZE): New constant.
84274         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84275         This requires that we sometimes generate our own TZ="XXX..." setting.
84276
84277 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84278
84279         * doc/getdate.texi: New file, from coreutils with modifications for
84280         the new TZ parsing.
84281
84282 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84283
84284         * lib/mktime.c (not_equal_tm): Remove redundant check.
84285
84286 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * modules/regex (lib_SOURCES): Add regex.c.
84289         Reported by James Youngman in
84290         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84291
84292 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84293
84294         * lib/getdate.y: Use Bison 1.875 features, and some minor
84295         code cleanups.  This change does not affect semantics.
84296         Don't include <stdlib.h>; no longer needed.
84297         Don't include unlocked-io.h; only the "#if TEST" code uses
84298         stdio, and performance isn't crucial there.
84299         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84300         Bison 1.875 features as described below.
84301         All uses of "PC." replaced by "pc->".
84302         (YYSTYPE): Add a forward declaration.
84303         (yylex, yyerror): Use full prototypes in forward decls.
84304         Use "%pure-parser" rather than obsolescent "%pure_parser".
84305         Use %parse-param and %lex-param instead of obsolescent
84306         YYPARSE_PARAM and YYLEX_PARAM.
84307         (meridian_table, month_and_day_table, time_units_table,
84308         relative_time_table, time_zone_table, military_table,
84309         lookup_zone, lookup_word, get_date):
84310         Use NULL instead of 0 where appropriate.
84311         (to_hour): Avoid abort (), to avoid a dependency on
84312         stdlib.h.
84313         (yyerror, yylex): Now accepts parser_control * arg.
84314         (main) [TEST]: Use '\0' rather than 0 for char.
84315
84316 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84319
84320 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84323         It's now the caller's responsibility to handle the case where
84324         !HAVE_GETPAGESIZE && !defined getpagesize.
84325
84326         * lib/mktime.c (leapyear): Arg is long int, not int.
84327
84328 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84331
84332 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84333
84334         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84335         missing.  Problem reported by James Youngman.
84336
84337 2004-10-16  Simon Josefsson  <jas@extundo.com>
84338
84339         * gnulib-tool: Fix comments.  Fix parse problem.
84340         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84341
84342 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84345         implementation of getopt_long.  Problem reported by Alexander Taler in:
84346         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84347
84348 2004-10-15  Bruno Haible  <bruno@clisp.org>
84349
84350         * gnulib-tool: Untabify. Initialize supplied_libname.
84351         (func_usage): More homogenous output.
84352         (func_modules_transitive_closure, func_modules_to_filelist,
84353         func_emit_lib_Makefile_am): New functions.
84354         (func_import): New function, extracted from big case statement. Use
84355         func_get_license, func_modules_transitive_closure,
84356         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84357         opt_lgpl. Don't use test -a, as it's not portable.
84358         (func_create_testdir): Use func_modules_transitive_closure,
84359         func_modules_to_filelist, func_emit_lib_Makefile_am.
84360
84361 2004-10-15  Bruno Haible  <bruno@clisp.org>
84362
84363         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84364
84365 2004-10-15  Bruno Haible  <bruno@clisp.org>
84366
84367         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84368         the portions belonging to each module.
84369         Suggested by Derek Robert Price <derek@ximbiot.com>.
84370
84371 2004-10-12  Simon Josefsson  <jas@extundo.com>
84372
84373         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84374         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84375         to real functions.
84376
84377 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84378
84379         * modules/vsnprintf: New file.
84380
84381 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84382
84383         * m4/vsnprintf.m4: New file.
84384
84385 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84386
84387         * lib/vsnprintf.h: New file.
84388         * lib/vsnprintf.c: New file.
84389
84390 2004-10-11  Bruno Haible  <bruno@clisp.org>
84391
84392         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84393         vsnprintf.
84394
84395 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84396
84397         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84398
84399 2004-10-07  Bruno Haible  <bruno@clisp.org>
84400
84401         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84402         fits into the provided buffer.
84403
84404 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84405
84406         * lib/diacrit.c, diacrit.h: Add GPL notice.
84407
84408         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84409         notice.
84410         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84411         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84412         This avoids a potential constant-folding bug.
84413
84414 2004-10-05  Bruno Haible  <bruno@clisp.org>
84415
84416         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84417         for the declaration of strsep.
84418
84419 2004-10-05  Bruno Haible  <bruno@clisp.org>
84420
84421         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84422
84423 2004-10-04  Simon Josefsson  <jas@extundo.com>
84424
84425         * modules/memmem: New file.
84426         * tests/test-memmem.c: New file.
84427         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84428
84429 2004-10-04  Simon Josefsson  <jas@extundo.com>
84430
84431         * m4/memmem.m4: New file.
84432
84433 2004-10-04  Simon Josefsson  <jas@extundo.com>
84434
84435         * lib/memmem.h: New file.
84436         * lib/memmem.c: New file, taken from glibc.
84437
84438 2004-10-04  Simon Josefsson  <jas@extundo.com>
84439
84440         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84441         '#ifdef USE_UNLOCKED_IO'.
84442
84443 2004-10-04  Simon Josefsson  <jas@extundo.com>
84444
84445         * config/srclist.txt: Add memmem from glibc.
84446
84447 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84450
84451         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84452         modules/exclude, modules/getdate, modules/getline,
84453         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84454         modules/getusershell, modules/linebuffer, modules/md5,
84455         modules/mountlist, modules/posixtm, modules/readtokens,
84456         modules/readutmp, modules/regex, modules/sha1,
84457         modules/version-etc, modules/yesno:
84458         Remove dependency on unlocked-io.
84459
84460 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84461
84462         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84463
84464         * m4/unlocked-io.m4: Add copyright notice.
84465         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84466
84467 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84468
84469         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84470         * lib/xmalloc.c (xmemdup): Likewise.
84471         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84472         XFREE): Remove these long-obsolescent macros.
84473         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84474         * lib/xstrdup.c: Remove.
84475
84476         * lib/regex.c (re_comp): Cast gettext return value to char *,
84477         Problem reported by Martin Neitzel via Mark D. Baushke.
84478
84479 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84480
84481         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84482         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84483         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84484         regex.c, sha1.c, version-etc.c, yesno.c:
84485         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84486         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84487         the includer's responsibility.
84488
84489         Sync from coreutils.
84490
84491         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84492         points to the start of a string, as the C Standard says the
84493         resulting behavior is undefined.
84494
84495         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84496         simple -> simple_backups, numbered_existing ->
84497         numbered_existing_backups, numbered -> numbered_backups
84498         to avoid shadowing problems.  All uses changed.
84499         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84500         * lib/backupfile.c (check_extension, numbered_backup):
84501         Rename locals to avoid shadowing 'basename'.
84502         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84503         once.
84504
84505         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84506         * lib/.cvsignore: Add getopt.h.
84507
84508 2004-10-04  Bruno Haible  <bruno@clisp.org>
84509
84510         * modules/README: New file.
84511         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84512         not a module.
84513
84514 2004-10-02  Jim Meyering  <jim@meyering.net>
84515
84516         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84517
84518 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84519
84520         * modules/strsep: New file.
84521
84522 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84523
84524         * m4/strsep.m4: New file.
84525
84526 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84527
84528         * lib/strsep.h: New file.
84529         * lib/strsep.c: New file.
84530
84531 2004-10-01  Simon Josefsson  <jas@extundo.com>
84532
84533         * lib/snprintf.c (snprintf): Handle size==0.
84534
84535 2004-10-01  Simon Josefsson  <jas@extundo.com>
84536             Bruno Haible  <bruno@clisp.org>
84537
84538         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84539         (snprintf): Declare 'args'.
84540
84541 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84542
84543         * lib/snprintf.c: Remove comments as to why each header is needed.
84544
84545 2004-10-01  Bruno Haible  <bruno@clisp.org>
84546
84547         * MODULES.html.sh: Add strsep.
84548
84549 2004-09-30  Simon Josefsson  <jas@extundo.com>
84550
84551         * modules/snprintf: New file.
84552
84553 2004-09-30  Simon Josefsson  <jas@extundo.com>
84554
84555         * m4/snprintf.m4: New file.
84556
84557 2004-09-30  Simon Josefsson  <jas@extundo.com>
84558
84559         * lib/snprintf.h, lib/snprintf.c: New files.
84560
84561 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84562
84563         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84564         (hol_entry_help): Never translate an empty string.
84565         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84566         * lib/argp.h (OPTION_NO_TRANS): New option.
84567
84568 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * modules/argp (Maintainer): Replace Simon Josefsson
84571         by Sergey Poznyakoff.
84572
84573 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84574
84575         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84576         changes merged back into glibc.
84577
84578 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84579
84580         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84581
84582 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84583
84584         * lib/xvasprintf.c: Include xalloc.h.
84585         (xvasprintf): Use xalloc_die, not xmalloc_die.
84586
84587 2004-09-29  Bruno Haible  <bruno@clisp.org>
84588
84589         * modules/alloca-opt: New file, derived from modules/alloca.
84590         * modules/allocsa: Depend on alloca-opt instead of alloca.
84591         * modules/setenv: Likewise.
84592         * modules/vasnprintf: Likewise.
84593         * MODULES.html.sh: Add alloca-opt.
84594
84595 2004-09-28  Simon Josefsson  <jas@extundo.com>
84596
84597         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84598         LGPL, and to replace license template from GPL to LGPL.
84599
84600 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84601
84602         * modules/dummy: Change license to LGPL.
84603
84604 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84607
84608 2004-09-24  Simon Josefsson  <jas@extundo.com>
84609
84610         * modules/minmax (License): Change from GPL to LGPL.
84611
84612 2004-09-23  Simon Josefsson  <jas@extundo.com>
84613
84614         * gnulib-tool (--import): Typo.
84615
84616 2004-09-23  Simon Josefsson  <jas@extundo.com>
84617
84618         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84619
84620 2004-09-22  Bruno Haible  <bruno@clisp.org>
84621
84622         * modules/*: Add 'License' field.
84623         * gnulib-tool: Accept --extract-license option.
84624         (func_get_license): New function.
84625
84626 2004-09-21  Bruno Haible  <bruno@clisp.org>
84627
84628         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84629         Reported by Simon Josefsson.
84630
84631 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84634         gl_AC_TYPE_LONG_LONG.
84635
84636 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84637
84638         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84639
84640 2004-09-18  Simon Josefsson  <jas@extundo.com>
84641         and  Paul Eggert  <eggert@cs.ucla.edu>
84642
84643         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84644         calls with autoreconf.  Define GL_LIB.
84645
84646 2004-09-14  Karl Berry  <karl@gnu.org>
84647
84648         * config/srclist.txt: unsync setenv.c, sigh.
84649
84650 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84651
84652         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84653         Problem reported by Bruno Haible in:
84654         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84655
84656 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84657
84658         * config/srclist.txt: Comment out argp-pvh.c.
84659
84660 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84661
84662         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84663         in case some system header has #define'd it.  Problem reported by
84664         Soeren D. Schulze in
84665         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84666
84667 2004-09-09  Karl Berry  <karl@gnu.org>
84668
84669         * regex.[ch]: delete from the root.  These were supposed to be
84670                 synced with emacs cvs, but this has not happened for about
84671                 a year, and anyway nothing else uses emacs regex.[ch].
84672                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84673                 lib/regex[.ch] is untouched.
84674
84675 2004-09-09  Bruno Haible  <bruno@clisp.org>
84676
84677         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84678
84679 2004-09-09  Bruno Haible  <bruno@clisp.org>
84680
84681         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84682         modifications.
84683         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84684
84685 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84686
84687         * modules/xvasprintf: New file.
84688         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84689
84690 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84691
84692         * lib/xvasprintf.h: New file.
84693         * lib/xvasprintf.c: New file.
84694         * lib/xasprintf.c: New file.
84695
84696 2004-09-08  Bruno Haible  <bruno@clisp.org>
84697
84698         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84699
84700 2004-09-08  Bruno Haible  <bruno@clisp.org>
84701
84702         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84703         length is > INT_MAX.
84704         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84705         more.
84706
84707 2004-09-08  Bruno Haible  <bruno@clisp.org>
84708
84709         * lib/stdint_.h: New file, taken from GNU clisp.
84710
84711 2004-09-08  Bruno Haible  <bruno@clisp.org>
84712             Oskar Liljeblad  <oskar@osk.mine.nu>
84713
84714         * modules/stdint: New file.
84715         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84716
84717 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84718
84719         Import from coreutils.
84720         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84721         strings on unbounded length.  alloca's performance benefits aren't
84722         that important here.
84723         (V_STRDUP): Remove.
84724         (parse_with_separator): New function, with most of the internals
84725         of the old parse_user_spec.  Allow user to omit both user and group,
84726         for compatibility with FreeBSD.
84727         Clone only the user name, not the entire spec.
84728         Do not set *uid, *gid unless entirely successful.
84729         Avoid memory leak in some failing cases.
84730         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84731         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84732         (parse_user_spec): Rewrite to use parse_with_separator.
84733
84734 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84735
84736         * modules/userspec: Don't depend on alloca.
84737
84738 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84739
84740         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84741
84742 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84745         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84746         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84747
84748 2004-08-16  Simon Josefsson  <jas@extundo.com>
84749
84750         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84751         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84752         Add --dry-run for --import.
84753         Let user provided command line parameters override configure.ac
84754         settings.
84755
84756 2004-08-12  Simon Josefsson  <jas@extundo.com>
84757
84758         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84759         as discussed with Paul Eggert in threads rooted at
84760         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84761         and
84762         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84763         Before, the test was empty, and relied on ELIDE_CODE in source
84764         code.)
84765         (gl_PREREQ_GETOPT): New macro.
84766         (gl_GETOPT): Use them.
84767
84768 2004-08-12  Simon Josefsson  <jas@extundo.com>
84769
84770         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84771         * lib/getopt_.h: Renamed from getopt.h.
84772
84773 2004-08-12  Simon Josefsson  <jas@extundo.com>
84774
84775         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84776         Change default library name from libfoo to libgnu.
84777         Now, if you have a configure.ac that says:
84778                 gl_SOURCE_BASE(gl)
84779                 gl_M4_BASE(gl/m4)
84780                 gl_MODULES(error getopt etcetera)
84781                 gl_INIT
84782         you can import all you need by running:
84783                 ../gnulib/gnulib-tool --import
84784
84785         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84786         (Makefile.am): Rewrite, use logic from argz.
84787         (Include): Use <getopt.h> instead of "getopt.h".
84788
84789 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84790
84791         * modules/argp (Files): Add m4/unlocked-io.m4.
84792         (Depends-on): Add extensions.
84793
84794 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84795
84796         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84797         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84798         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84799         Check for program_invocation_name, program_invocation_short_name,
84800         flockfile, funlockfile, features.h, _getopt_long_only_r.
84801
84802 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84803
84804         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84805         its complicated substitute.
84806         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84807         and program_invocation_name.
84808         (__argp_basename) [!_LIBC]: Remove; the only use was
84809         replaced by its body.
84810         (__argp_short_program_name): Change condition from
84811         !defined __argp_short_program_name to
84812         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84813         to match argp-namefrob.h.
84814         (__argp_failure): Don't assume strerror_r returns char *.
84815         * lib/argp-parse.c (N_): Define unconditionally.
84816         (argp_default_options): Fill out initializers with 0 to avoid
84817         gcc warnings.
84818
84819 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84822         getopt1.c.
84823
84824 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84825
84826         Merge from coreutils.
84827
84828         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84829
84830         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84831         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84832
84833 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84834
84835         Merge from coreutils.
84836
84837         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84838         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84839         for Reliant Unix 5.43.
84840
84841         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84842         (union fooround): Use uintmax_t, not long int.
84843         The rest is a merge from libc:
84844         [defined _LIBC]: Include <shlib-compat.h>.
84845         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84846
84847         * lib/settime.c (settime): Recode to avoid warning with
84848         Sun Forte C 6U2.
84849
84850         * lib/strverscmp.c: Convert to UTF-8.
84851
84852 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84853
84854         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84855         m4/uintmax_t.m4.
84856
84857 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84858
84859         * modules/xalloc-die: New file.
84860         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84861
84862         * modules/md5 (Files): Add m4/uint32_t.m4.
84863         * modules/sha1: Renamed from modules/sha.
84864         (Files):
84865         Rename lib/sha.h to lib/sha1.h.
84866         Rename lib/sha.c to lib/sha1.c.
84867         Rename m4/sha.m4 to m4/sha1.m4.
84868         (lib_SOURCES): Likewise.
84869         (configure.ac): Rename gl_SHA to gl_SHA1.
84870         (Include): sha.h -> sha1.h.
84871
84872 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84873
84874         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84875         * m4/sha1.m4: Renamed from sha.m4.
84876         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84877
84878 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         * lib/obstack.h (obstack_empty_p):
84881         Don't assume that chunk->contents is suitably aligned.
84882         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84883         Likewise. Problem reported by Benno in
84884         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84885
84886         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84887         readable.  This could be improved further but it'd take some work.
84888
84889 2004-08-08  Simon Josefsson  <jas@extundo.com>
84890
84891         * modules/xgethostname (Depends-on): Remove exit and error (not
84892         used).
84893
84894         * modules/getpass-gnu: Add getpass.h.
84895         (Depends-on): Add stdbool.
84896         * modules/getpass: Add getpass.h.
84897
84898 2004-08-08  Simon Josefsson  <jas@extundo.com>
84899
84900         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84901         Check getpass declaration.
84902
84903 2004-08-08  Simon Josefsson  <jas@extundo.com>
84904
84905         * lib/xgethostname.c: Don't include error.h (not used).
84906
84907         * lib/getpass.h: Add.
84908         * lib/getpass.c: Include getpass.h first.
84909
84910 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/xalloc-die.c: New file.
84913         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84914         All uses removed.
84915         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84916         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84917         xalloc-die.c.
84918         (_, N_, xalloc_die): Move to xalloc-die.c.
84919         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84920         so that we needn't mess with xalloc_msg_memory_exhausted.
84921
84922         * lib/sha1.h: Renamed from sha.h.
84923         (SHA1_H): Renamed from _SHA_H.
84924         (sha1_ctx): Renamed from sha_ctx.
84925         (sha1_init_ctx): Renamed from sha_init_ctx.
84926         (sha1_process_block): Renamed from sha_process_block.
84927         (sha1_process_bytes): Renamed from sha_process_bytes.
84928         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84929         (sha1_read_ctx): Renamed from sha_read_ctx.
84930         (sha1_stream): Renamed from sha_stream.
84931         (sha1_buffer): Renamed from sha_buffer.
84932         * lib/sha1.c: Likewise; renamed from sha.c.
84933         Do not include <sys/types.h>.
84934         Include <stddef.h> rather than <stdlib.h>.
84935
84936 2004-08-08  Bruno Haible  <bruno@clisp.org>
84937
84938         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84939         FILESYSTEM_PREFIX_LEN.
84940         * lib/progreloc.c: Likewise.
84941         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84942
84943 2004-08-06  Simon Josefsson  <jas@extundo.com>
84944
84945         * modules/progname (Depends-on): Don't depend on stdbool.
84946
84947 2004-08-06  Simon Josefsson  <jas@extundo.com>
84948
84949         * modules/getsubopt: New file.
84950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84951         getsubopt.
84952
84953 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84954
84955         More merge from coreutils.
84956
84957         * m4/utimens.m4, m4/utimecmp.m4: New files.
84958         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84959         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84960         prereq.m4, sha.m4: Import changes from coreutils.
84961
84962 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84963
84964         More merge from coreutils.
84965         * modules/raise, modules/readtokens0, modules/utimens:
84966         * modules/utimecmp, module/xnanosleep: New files.
84967         * modules/strftime: Add lib/strftime.h.
84968         Change include from <time.h> to "strftime.h".
84969         * modules/yesno: Add lib/yesno.h.
84970         * modules/backupfile: Remove lib/addext.c.
84971         * modules/euidaccess: Add stat-macros.h.
84972         * modules/canonicalize, modules/euidaccess,
84973         modules/filemode, modules/lchown, modules/makepath,
84974         modules/rmdir, modules/stat: Likewise.
84975
84976 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         Merge from tar.
84979         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84980         SIZE_MAX is a valid preprocessor constant.
84981         (__argp_basename): Change from "#ifndef _LIBC"
84982         to "#ifndef __argp_short_program_name", so that
84983         we don't compile these functions for tar.
84984
84985         More merges from coreutils.
84986         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84987         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84988         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84989         * lib/addext.c: Remove; no longer needed.
84990         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84991         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84992         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84993         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84994         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84995         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84996         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84997         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84998         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84999         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85000         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85001         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85002         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85003         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85004         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85005         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85006         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85007         Import changes from coreutils.
85008
85009 2004-08-05  Simon Josefsson  <jas@extundo.com>
85010
85011         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85012
85013 2004-08-05  Simon Josefsson  <jas@extundo.com>
85014
85015         * m4/getsubopt.m4: New file.
85016
85017 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85018
85019         Merge from coreutils.
85020
85021         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85022         * m4/getcwd-path-max.m4: New files.
85023
85024         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85025         FILESYSTEM_PREFIX_LEN ->
85026         FILE_SYSTEM_PREFIX_LEN.
85027         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85028         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85029         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85030         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85031
85032         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85033         prerequisite modules now handle the DOS stuff.
85034         Don't check for unistd.h.
85035
85036 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85037
85038         Merge from coreutils.
85039
85040         * lib/.gdb-history: Remove; this doesn't belong here.
85041
85042         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85043         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85044         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85045         * lib/getcwd.c: New files.
85046
85047         * lib/dirname.h: Include <stdbool.h>.
85048         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85049         for consistency with POSIX terminology.  All uses changed.
85050         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85051         (strip_trailing_slashes): Use bool for booleans.
85052         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85053
85054         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85055         sometimes returns a positive errno value even when it succeeds.
85056         (print_errno_message) [!LIBC]: Fall back on strerror if
85057         __strerror_r fails.
85058
85059         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85060         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85061         (longest_relative_suffix): New function.
85062         (path_concat): Use it.  Assume first argument is not NULL.
85063         Port to DOS.  Omit redundant separators.
85064         Report an error instead of returning NULL.
85065         Use mempcpy instead of memcpy.
85066         (xpath_concat): Remove: not declared or used.
85067
85068         * lib/same.h: Include <stdbool.h>
85069         (same_name): Return bool, not int.
85070         * lib/same.c (same_name): Likewise.
85071         (errno): Don't declare; we assume C89 or better now.
85072
85073         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85074         if not already defined.
85075
85076         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85077         * lib/dup-safer.c (errno): Likewise.
85078
85079 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85080
85081         Merge from coreutils.
85082         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85083         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85084         * modules/path-concat: Don't depend on strdup.
85085
85086 2004-08-03  Simon Josefsson  <jas@extundo.com>
85087
85088         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85089         * lib/progname.h: Don't include stdbool.h.
85090
85091 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85092
85093         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85094         * MODULES.html.sh (func_all_modules): Remove fatal.
85095
85096 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85097
85098         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85099
85100 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85101
85102         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85103         working.
85104
85105 2004-08-02  Simon Josefsson  <jas@extundo.com>
85106
85107         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85108         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85109         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85110
85111 2004-08-01  Simon Josefsson  <jas@extundo.com>
85112
85113         * lib/xgetdomainname.c: Include stdlib.h, for free().
85114
85115 2004-07-19  Bruno Haible  <bruno@clisp.org>
85116
85117         * MODULES.html.sh (func_all_modules): Add dummy.
85118
85119 2004-07-16  Simon Josefsson  <jas@extundo.com>
85120
85121         * modules/dummy: New file.
85122
85123 2004-07-16  Simon Josefsson  <jas@extundo.com>
85124
85125         * lib/dummy.c: New file.
85126
85127 2004-07-16  Bruno Haible  <bruno@clisp.org>
85128
85129         * lib/backupfile.h: Add extern "C" for C++.
85130         * lib/closeout.h: Likewise.
85131         * lib/copy-file.h: Likewise.
85132         * lib/findprog.h: Likewise.
85133         * lib/full-write.h: Likewise.
85134         * lib/pathname.h: Likewise.
85135         * lib/progname.h: Likewise.
85136         * lib/stpcpy.h: Likewise.
85137         * lib/stpncpy.h: Likewise.
85138         * lib/strcase.h: Likewise.
85139         * lib/strstr.h: Likewise.
85140         * lib/xalloc.h: Likewise.
85141
85142         * lib/mbswidth.h: Add extern "C" for C++.
85143         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85144
85145 2004-07-13  Robert Millan  <robertmh@gnu.org>
85146
85147         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85148
85149 2004-07-09  Simon Josefsson  <jas@extundo.com>
85150
85151         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85152         failed without this.)
85153
85154 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85155
85156         * modules/chown (Files): Add lib/fchown-stub.c, since
85157         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85158
85159 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85160
85161         * lib/fchown-stub.c: New file.
85162
85163 2004-06-24  Jim Meyering  <jim@meyering.net>
85164
85165         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85166
85167 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85168
85169         * modules/argz: Omit "#include".
85170
85171         * MODULES.html.sh (func_all_modules): Add calloc, to match
85172         2004-06-01 addition of calloc module.
85173
85174 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85175
85176         * m4/argz.m4: New file, which is autoupdated from libtool.
85177
85178 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85181         libtool.
85182
85183 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * config/srclist-update: Don't insist on "USA." before the
85186         close-comment, as libtool omits the period and puts the */ on a
85187         separate line.
85188         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85189         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85190
85191 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85192
85193         * modules/argz: New file.
85194         * MODULES.html.sh (func_all_modules): Add argz.
85195
85196 2004-06-12  Jim Meyering  <jim@meyering.net>
85197         and  Paul Eggert  <eggert@cs.ucla.edu>
85198
85199         * modules/hash (Files): Add lib/xalloc.h.
85200         * modules/pipe (Depends-on): Add wait-process.
85201         * modules/stat (Depends-on): Add xalloc.
85202         * modules/userspec (Files): Add lib/userspec.h.
85203         * modules/xstrto
85204
85205         Upgrade from gettext-0.13.
85206         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85207         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85208         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85209
85210 2004-06-10  Jim Meyering  <jim@meyering.net>
85211
85212         * lib/calloc.c: New file.
85213
85214 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85215
85216         * lib/getdate.y (yylex): Allow space between sign and number.
85217         Problem reported by Dan Jacobson.
85218
85219 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85220
85221         Merge from coreutils CVS.
85222
85223         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85224         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85225         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85226         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85227         xstrtol.m4: Fix copyright date and/or serial number.
85228
85229         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85230         See if we need an fchown replacement.
85231         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85232         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85233         and use the replacement function if we detect either defect.
85234
85235         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85236         gl_UTIMECMP.
85237
85238 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85239         and  Jim Meyering  <jim@meyering.net>
85240
85241         Merge from coreutils CVS.
85242
85243         * lib/stat-macros.h: New file, with contents from file-type.h
85244         and coreutils' system.h.
85245         * lib/file-type.c: Include "stat-macros.h".
85246         * lib/file-type.h (file_type): Move all macro definitions to new file,
85247         stat-macros.h.
85248
85249         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85250         Wrap old code with this conditional.
85251         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85252         function that does not dereference symlinks.
85253         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85254
85255         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85256         dependency problems.
85257         (xreadlink): Accept new arg SIZE, for efficiency.
85258         All decls and uses changed.
85259         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85260
85261         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85262         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85263
85264         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85265         sysexits.h.
85266
85267 2004-06-01  Jim Meyering  <jim@meyering.net>
85268
85269         * m4/calloc.m4: New file.
85270
85271 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85272
85273         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85274         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85275         Also, fix a typo in a diagnostic.
85276
85277 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85278
85279         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85280         or AC_FUNC_REALLOC.
85281
85282 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85283
85284         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85285         macros to be defined.
85286         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85287         the allocator returns NULL because the requested size is zero.
85288
85289 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85290
85291         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85292         var.  Add comment explaining why libc still defines it.  This
85293         merges the following patch from glibc:
85294         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85295
85296 2004-05-20  Andreas Schwab  <schwab@suse.de>
85297
85298         * m4/free.m4: Replace free if it not known to work, not the other
85299         way round.
85300
85301 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85302
85303         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85304         present in glibc since revision 1.1 of this file.
85305         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85306         obstack_alignment_mask, obstack_alloc, obstack_base,
85307         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85308         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85309         obstack_grow0, obstack_init, obstack_int_grow,
85310         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85311         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85312         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85313         nonexistent functions.
85314
85315 2004-05-18  Karl Berry  <karl@gnu.org>
85316
85317         * config/srclist.txt: break link for vasnprintf.c.
85318
85319 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85320
85321         Port obstack to the AS/400, where pointers are 16 bytes wide and
85322         you cannot cast an integer to a valid pointer.  This patch is
85323         currently waiting to be integrated into glibc; see
85324         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85325
85326         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85327         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85328         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85329         (struct obstack): temp member is now a union of a pointer and
85330         an integer, instead of an integer.  All integer uses changed.
85331         This does not affect the physical layout of struct obstack,
85332         except on hosts (like the AS/400) where the size or alignment of
85333         void * is greater than that of ptrdiff_t.
85334         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85335         __STDC__)]: Store temporary in pointer member of union, not
85336         integer member.
85337         * lib/obstack.c: Include <stddef.h>, for offsetof.
85338         (struct fooalign): Remove; it doesn't need a name.
85339         (union fooround): Change double to long double, and add void *.
85340         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85341         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85342         not a macro.  Hence the values are always int; so remove all
85343         casts-to-int in uses.
85344
85345 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85346
85347         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85348         we can get this patch merged into glibc.
85349
85350 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85351             Paul Eggert  <eggert@cs.ucla.edu>
85352
85353         * m4/argp: Depend on alloca.
85354
85355 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85356             Paul Eggert  <eggert@cs.ucla.edu>
85357
85358         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85359         freecoding.
85360
85361 2004-05-17  Bruno Haible  <bruno@clisp.org>
85362
85363         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85364         precision that consists of a '.' followed by an empty digit string.
85365         Patch by Tor Lillqvist <tml@iki.fi>.
85366
85367 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85370         for backward compatibility with older code.  We need our own
85371         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85372         it under some other name, and our alloca.h will define it.
85373
85374 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85375             Derek Price  <derek@ximbiot.com>
85376
85377         * lib/alloca.c: Include <alloca.h>, to get our interface.
85378         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85379         include <alloca.h> first.  Use C89 prototype for alloca; this
85380         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85381         Use #elif for simplicity, since we can assume C89 now.
85382         Don't try to source the system alloca.h since it will not be found
85383         and to prevent recursively including its replacement.
85384         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85385         * lib/regex.c: Likewise.
85386
85387 2004-05-16  Derek Price  <derek@ximbiot.com>
85388             Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         getline cleanup.  This changes the getndelim2 API: both order of
85391         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85392         no delimiter).
85393
85394         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85395         interface does that.
85396         (getline): Always use getdelim, so that we don't have two
85397         copies of this code.
85398         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85399         if available.
85400         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85401         (GETNDELIM2_MAXIMUM): New macro.
85402         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85403         instead of the old practice of delim2==0.  All callers changed.
85404         Return -1 on overflow, instead of returning junk.
85405         Do not set *linesize unless allocation succeeds.
85406         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85407         that we include sys/types.h.
85408         * lib/getnline.h: Likewise.
85409         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85410         (getndelim2): Reorder arguments.
85411         * lib/getnline.c (getnline, getndelim):
85412         Don't discard the NMAX argument.
85413         (getnline): Invoke getndelim, to avoid code duplication.
85414         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85415         of (size_t) -1 by callers of the getnline family.
85416
85417 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85418
85419         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85420         Check for gettimeofday.
85421         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85422         Check for settimeofday, stime.
85423
85424 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85425
85426         * lib/nanosleep.c (suspended): Change its type from int to
85427         sig_atomic_t volatile.
85428         (first_call): Make it private to rpl_nanosleep, and have it
85429         be zero initially as that's a bit faster.
85430         (my_usleep): Round up fractional times instead of truncating them,
85431         as this is the usual meaning for 'sleep'.
85432
85433         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85434         doesn't work.
85435         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85436         (ENOSYS): Define if not defined.
85437         (settime): Fall back on stime if it exists and settimeofday fails.
85438         But don't bother with fallbacks if a method fails with errno == EPERM.
85439
85440 2004-05-11  Jim Meyering  <jim@meyering.net>
85441
85442         Prior to this change, the save_cwd caller required read access to the
85443         current directory on most systems (ones with the fchdir function).
85444
85445         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85446         fails, try write-only, and finally, resort to using xgetcwd.
85447
85448 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85449
85450         * lib/obstack.c, obstack.h: Import changes from libc.
85451
85452 2004-04-28  Bruno Haible  <bruno@clisp.org>
85453
85454         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85455         also implicitly appends .exe to executables.
85456         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85457         accepts Windows pathnames.
85458         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85459         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85460         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85461         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85462         Reported by Derek Robert Price <derek@ximbiot.com>.
85463
85464 2004-04-21  Karl Berry  <karl@gnu.org>
85465
85466         * config/srclist.txt (localcharset.c): break sync.
85467
85468 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85469
85470         * m4/host-os.m4: Add a copyright notice.
85471
85472 2004-04-20  Jim Meyering  <jim@meyering.net>
85473
85474         Change UTILS_ to gl_ in AC_DEFINE'd names.
85475         Change utils_- and jm_-prefixed variables, too.
85476         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85477         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85478         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85479
85480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85481         Don't emit trailing blanks.
85482         Also rename jm_-prefixed variables to have gl_ prefix.
85483
85484         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85485         Also rename jm_-prefixed variables to have gl_ prefix.
85486
85487         * m4/jm-macros.m4: Reflect the renamings.
85488         * m4/prereq.m4: Likewise.
85489
85490 2004-04-20  Jim Meyering  <jim@meyering.net>
85491
85492         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85493         memory.
85494
85495 2004-04-20  Jim Meyering  <jim@meyering.net>
85496             Bruno Haible  <bruno@clisp.org>
85497
85498         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85499         memory when realloc fails.
85500
85501 2004-04-19  Jim Meyering  <jim@meyering.net>
85502
85503         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85504         now that readutmp.c may call `free (0)'.
85505
85506 2004-04-19  Bruno Haible  <bruno@clisp.org>
85507
85508         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85509         * m4/inttypes_h.m4: Likewise.
85510         * m4/stdint_h.m4: Likewise.
85511         * m4/intmax_t.m4: Likewise.
85512         * m4/uintmax_t.m4: Likewise.
85513
85514 2004-04-18  Jim Meyering  <jim@meyering.net>
85515
85516         * m4/prereq.m4: Don't forbid jm_ prefix.
85517
85518         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85519         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85520         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85521         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85522         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85523         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85524         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85525         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85526         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85527         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85528         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85529         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85530         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85531         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85532         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85533         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85534         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85535         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85536         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85537
85538 2004-04-18  Jim Meyering  <jim@meyering.net>
85539
85540         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85541         failure, don't leak memory and do call END_UTMP_ENT.
85542
85543 2004-04-16  Jim Meyering  <jim@meyering.net>
85544
85545         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85546         coreutils' stat program.
85547         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85548
85549 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85550
85551         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85552         C89.
85553         (CHAR_BIT): Remove, since we assume C89.
85554         Include <stdint.h> if available, as per current Autoconf CVS advice.
85555
85556 2004-03-31  Jim Meyering  <jim@meyering.net>
85557
85558         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85559         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85560         * m4/xalloc.m4: Likewise.
85561
85562 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85563
85564         Merge from coreutils.
85565
85566         * m4/inttostr.m4: New file.
85567         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85568         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85569         Require gl_CLOCK_TIME.
85570         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85571
85572 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85573
85574         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85575         not bool, to be more consistent with Unix conventions.
85576         Suggested by Bruno Haible.
85577
85578         Merge from coreutils.
85579
85580         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85581         * lib/umaxtostr.c: New files.
85582
85583         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85584         the usual <time.h> dance.
85585         (get_date): Change signature to support fractional time stamps.
85586         All callers changed.
85587         * lib/getdate.y: Include "getdate.h" first, as we can now
85588         assume C89 and don't need to worry about 'const'.
85589         Similarly, include "unlocked-io.h" near start, not in middle.
85590         Include <limits.h>.
85591         (textint.value): Use long int rather than int.
85592         (textint.digits): Use size_t rather than int.
85593         (BILLION, LOG10_BILLION): New constants.
85594         (parser_control): New member rel_ns.  Members day_ordinal,
85595         time_zone, month, day, hour, minutes, rel_year, rel_month,
85596         rel_day, rel_hour, rel_minutes, rel_seconds
85597         are now long int, not int.  Member seconds is now struct timespec,
85598         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85599         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85600         not int.
85601         (%union.intval): Now long int, not int.
85602         New member timespec.
85603         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85604         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85605         (spec): Now is a timespec or an item list.
85606         (timespec, items): New nonterminals.
85607         (time, rel, relunit, number, get_date):
85608         Add support for fractional seconds.
85609         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85610         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85611         (to_hour): First arg is now long int, not int.
85612         (to_year): Returns long int, not int.
85613         Don't treat year -70 like 70.
85614         (tm_diff): Returns long int, not int.
85615         (lookup_word): Use bool instead of int when appropriate.
85616         (yylex): Use size_t for count, not int.
85617         Detect overflow when parsing large integer constants.
85618         Add support for fractions.
85619         (get_date): Make pointers 'const' if possible.
85620         Use more-portable code to detect integer overflow.
85621         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85622         Don't use ctime; it's not reliable if the year has >4 digits.
85623
85624         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85625         This is for compatibility with BSD.
85626
85627         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85628         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85629         From coreutils' system.h.
85630
85631         * lib/userspec.c: Don't include "posixver.h".
85632         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85633         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85634         compatible extension.  Simplify code by removing a boolean int
85635         that was always nonzero if a string was nonnull.
85636
85637 2004-03-30  Jim Meyering  <jim@meyering.net>
85638
85639         Merge from coreutils.
85640
85641         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85642         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85643         on some systems one must include <grp.h> before it.
85644         Reported by Christian Krackowizer.
85645
85646 2004-03-30  Jim Meyering  <jim@meyering.net>
85647
85648         Merge from coreutils.
85649
85650         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85651
85652         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85653         an empty input stream.
85654
85655         * lib/readtokens.c: Include <stdbool.h>.
85656         (readtoken): Use `size_t' rather than int/long.
85657         All callers adjusted.
85658         Use `bool' rather than `int' where appropriate.
85659         Use memset rather than an explicit loop.
85660         Use x2nrealloc rather than xrealloc.
85661         Allow the use of `\0' as a delimiter.
85662         (readtokens): Likewise.
85663         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85664
85665 2004-03-30  Jim Meyering  <jim@meyering.net>
85666
85667         * m4/realloc.m4: Remove file, since now it does no more than
85668         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85669         the `configure.ac' section of module/realloc.
85670         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85671
85672 2004-03-30  Bruno Haible  <bruno@clisp.org>
85673
85674         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85675         nonnull.
85676
85677 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85678
85679         Merge changes to getloadavg.c from coreutils and Emacs.
85680
85681         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85682         Define to an expression, not to the empty string.
85683         Include cloexec.h and xalloc.h.
85684         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85685         Use set_cloexec_flag rather than rolling our own.
85686         * lib/cloexec.c, lib/cloexec.h: New files.
85687
85688 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85689
85690         * m4/cloexec.m4: New file.
85691
85692 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85693
85694         * lib/getopt.h: Sync with libc CVS.
85695
85696 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85697             Bruno Haible  <bruno@clisp.org>
85698
85699         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85700         mbswidth.
85701
85702 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85703             Bruno Haible  <bruno@clisp.org>
85704
85705         * lib/mbswidth.h: Include <wchar.h> only if
85706         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85707         <wchar.h>.
85708         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85709
85710 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85711
85712         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85713         Sync with libc CVS.
85714         * lib/getopt_int.h: New file, also synced from libc.
85715
85716 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85717
85718         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85719         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85720         Bring back getopt.c, getopt.h, getopt1.c.
85721
85722 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85723
85724         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85725         All uses changed.  Check for sa_sigaction member; this fixes
85726         a bug first reported by Jason Andrade in
85727         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85728
85729 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85730
85731         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85732         '#if' expressions.  Unlike the code it replaces, it does not
85733         depend on (defined _SC_PAGESIZE).  However, it does depend on
85734         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85735         first reported by Jason Andrade in
85736         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85737
85738 2004-02-25  Simon Josefsson  <jas@extundo.com>
85739
85740         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85741
85742 2004-02-25  Simon Josefsson  <jas@extundo.com>
85743
85744         * lib/strdup.h: New file.
85745         * lib/strdup.c: Include it.
85746         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85747         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85748
85749 2004-02-23  Karl Berry  <karl@gnu.org>
85750
85751         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85752         (from fencepost.gnu.org:/gd/gnuorg).
85753
85754 2004-02-23  Karl Berry  <karl@gnu.org>
85755
85756         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85757         * config/srclist.txt: add maintain/standards documents.
85758
85759 2004-02-18  Bruno Haible  <bruno@clisp.org>
85760
85761         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85762         Reported by Derek Robert Price <derek@ximbiot.com>.
85763
85764 2004-02-16  Karl Berry  <karl@gnu.org>
85765
85766         * config/mkinstalldirs, install-sh: update from automake.
85767
85768 2004-02-06  Karl Berry  <karl@gnu.org>
85769
85770         * m4/po.m4: update from gettext 0.14.1.
85771
85772 2004-02-06  Karl Berry  <karl@gnu.org>
85773
85774         * lib/config.charset: update from gettext 0.14.1.
85775
85776 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85777
85778         Add comments and code, prompted by suggestions from Bruno Haible
85779         for sh-quote.
85780         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85781         describing the enum quoting_style values.
85782         * lib/quotearg.c (quotearg_alloc): New function.
85783         (quotearg_buffer_restyled): Treat lone { and } as special.
85784         Treat = as special.  Work around bug with older shells
85785         that "see" a '\' that is really the 2nd byte of a multibyte char.
85786         Quote empty string with shell_quoting_style.
85787
85788 2004-02-03  Bruno Haible  <bruno@clisp.org>
85789
85790         * m4/pipe.m4: New file, from GNU gettext.
85791
85792 2004-02-03  Bruno Haible  <bruno@clisp.org>
85793
85794         * lib/pipe.h: New file, from GNU gettext.
85795         * lib/pipe.c: New file, from GNU gettext.
85796
85797 2004-01-27  Bruno Haible  <bruno@clisp.org>
85798
85799         * m4/execute.m4: New file, from GNU gettext.
85800
85801 2004-01-27  Bruno Haible  <bruno@clisp.org>
85802
85803         * lib/execute.h: New file, from GNU gettext.
85804         * lib/execute.c: New file, from GNU gettext.
85805         * lib/w32spawn.h: New file, from GNU gettext.
85806
85807 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85808
85809         Merge from diffutils.
85810
85811         * lib/file-type.c (file_type): Add typed memory objects.
85812         * lib/file-type.h (S_TYPEISTMO): New macro.
85813
85814         * lib/c-stack.h (c_stack_action): Remove argv argument.
85815         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85816         (die): Don't calculate message unless segv_action returns.
85817         (get_stack_location, min_address_from_argv, max_address_from_argv,
85818         volatile stack_base, volatile_stack_size): Remove.
85819         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85820         that every segmentation violation is a stack overflow.  (Ouch!)
85821         See Debian bug 136249 (still outstanding) for more info about why
85822         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85823
85824 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85825
85826         Exit-status fix from coreutils.
85827
85828         Use exit_failure consistently in place of EXIT_FAILURE,
85829         so that program exit statuses are consistent on failure.
85830
85831         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85832         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85833         * lib/argmatch.h: Comment fix to match the above.
85834         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85835         Now a macro referring to exit_failure, instead of a separate
85836         variable.  Include "exitfail.h" to get it.
85837         * lib/xstrtol.h: Include "exitfail.h".
85838         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85839
85840         * lib/long-options.c (parse_long_options): Use prototype
85841         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85842         for clarity.
85843
85844 2004-01-21  Jim Meyering  <jim@meyering.net>
85845
85846         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85847         so as not to conflict with a different-sized __mktime_internal
85848         function in GNU libc.
85849         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85850         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85851
85852 2004-01-20  Karl Berry  <karl@gnu.org>
85853
85854         * config/config.guess: update from config.
85855
85856         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85857
85858 2004-01-20  Bruno Haible  <bruno@clisp.org>
85859
85860         Safer stack allocation.
85861         * lib/setenv.c: Include allocsa.h.
85862         (alloca): Remove fallback definition.
85863         (freea): Remove macro.
85864         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85865         instead of freea.
85866
85867 2004-01-20  Bruno Haible  <bruno@clisp.org>
85868
85869         * m4/eealloc.m4: New file, from GNU gettext.
85870
85871 2004-01-20  Bruno Haible  <bruno@clisp.org>
85872
85873         * m4/allocsa.m4: New file, from GNU gettext.
85874
85875 2004-01-20  Bruno Haible  <bruno@clisp.org>
85876
85877         * lib/xallocsa.h: New file, from GNU gettext.
85878         * lib/xallocsa.c: New file, from GNU gettext.
85879
85880 2004-01-20  Bruno Haible  <bruno@clisp.org>
85881
85882         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85883
85884 2004-01-20  Bruno Haible  <bruno@clisp.org>
85885
85886         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85887         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85888         specially.
85889
85890 2004-01-20  Bruno Haible  <bruno@clisp.org>
85891
85892         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85893         patch.
85894
85895 2004-01-20  Bruno Haible  <bruno@clisp.org>
85896
85897         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85898
85899 2004-01-20  Bruno Haible  <bruno@clisp.org>
85900
85901         * lib/eealloc.h: New file.
85902
85903 2004-01-20  Bruno Haible  <bruno@clisp.org>
85904
85905         * lib/binary-io.h: Avoid warnings on Cygwin.
85906
85907 2004-01-20  Bruno Haible  <bruno@clisp.org>
85908
85909         * lib/allocsa.h: New file, from GNU gettext.
85910         * lib/allocsa.c: New file, from GNU gettext.
85911
85912 2004-01-18  Karl Berry  <karl@gnu.org>
85913
85914         * doc/gpl.texi, doc/lgpl.texi: new files.
85915
85916 2004-01-18  Karl Berry  <karl@gnu.org>
85917
85918         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85919         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85920
85921 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85922
85923         Merge from coreutils.
85924
85925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85926         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85927         (gl_DEFAULT_POSIX2_VERSION): Move
85928         the documentation from 'configure' into 'config.hin',
85929         so that 'configure --help' isn't burdened by it and
85930         we don't have to worry about its formatting there.
85931         Reword the documentation so that it's more succinct
85932         and can be run together into a single paragraph.
85933         * m4/same.m4 (gl_SAME): Check for pathconf.
85934
85935 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85936
85937         Merge from coreutils.
85938
85939         * lib/posixver.c: Include posixver.h.
85940
85941         * lib/same.c: Include <stdbool.h>, <limits.h>.
85942         (_POSIX_NAME_MAX): Define if not defined.
85943         (MIN): New macro.
85944         (same_name): If file names are silently truncated, report
85945         that the file names are the same if they are the same after
85946         the silent truncation.
85947
85948         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85949         conversion function.
85950         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85951         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85952         longer needed.
85953
85954 2004-01-15  Jim Meyering  <jim@meyering.net>
85955
85956         Merge from coreutils.
85957
85958         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85959         if no library is required.
85960         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85961         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85962         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85963         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85964         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85965         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85966         value, $ac_cv_search_crypt, if it's "none required".
85967         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85968         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85969         not gl_FUNC_GETLOADAVG.
85970         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85971         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85972
85973 2004-01-15  Jim Meyering  <jim@meyering.net>
85974
85975         Merge from coreutils.
85976
85977         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85978         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85979         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85980
85981         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85982         optional configure-time default.
85983
85984         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85985
85986         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85987
85988 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85989
85990         Merge from coreutils.
85991
85992         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85993         value, $ac_cv_search_nanosleep, if it's "none required".
85994
85995 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85996
85997         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85998         with like-named macro in fnmatch.c.
85999         (EXT): Use an internal constant instead.
86000
86001         Merge fnmatch patches from glibc.
86002         * lib/fnmatch.c (mbsinit): Remove define.
86003         Add libc_hidden_ver (__fnmatch, fnmatch).
86004         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86005         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86006
86007 2004-01-14  Karl Berry  <karl@gnu.org>
86008
86009         * config/install-sh: update from automake.
86010
86011 2004-01-13  Karl Berry  <karl@gnu.org>
86012
86013         * config/install-sh: update from automake.
86014
86015 2004-01-09  Karl Berry  <karl@gnu.org>
86016
86017         * config/install-sh: update from automake.
86018
86019 2004-01-05  Karl Berry  <karl@gnu.org>
86020
86021         * config/config.{sub,guess}: update from config.
86022
86023 2003-12-31  Karl Berry  <karl@gnu.org>
86024
86025         * config/depcomp: update from automake.
86026
86027 2003-12-14  Karl Berry  <karl@gnu.org>
86028
86029         * lib/config.charset: update from gettext-runtime.
86030
86031 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86032
86033         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86034         Bug reported by Alfred M. Szmidt.
86035
86036 2003-12-03  Bruno Haible  <bruno@clisp.org>
86037
86038         * m4/gettext.m4: Upgrade from gettext-0.13.
86039         * m4/po.m4: Upgrade from gettext-0.13.
86040         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86041         * m4/intmax.m4: New file, from gettext-0.13.
86042         * m4/printf-posix.m4: New file, from gettext-0.13.
86043
86044 2003-11-29  Karl Berry  <karl@gnu.org>
86045
86046         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86047
86048 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86049             Bruno Haible  <bruno@clisp.org>
86050
86051         * lib/printf-parse.h: Don't include sys/types.h.
86052         (ARG_NONE): New macro.
86053         (char_directive): Change type of *arg_index fields to size_t.
86054         * lib/printf-parse.c: Don't include sys/types.h.
86055         (SSIZE_MAX): Remove macro.
86056         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86057         Remove unnecessary overflow check.
86058         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86059         fields.
86060
86061 2003-11-25  Bruno Haible  <bruno@clisp.org>
86062
86063         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86064
86065 2003-11-25  Bruno Haible  <bruno@clisp.org>
86066
86067         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86068         gt_TYPE_SSIZE_T.
86069
86070 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86071
86072         * modules/alloca: Remove dependency on xalloc.
86073
86074 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86075
86076         * lib/alloca.c: Remove dependency on xalloc module.
86077         (xalloc_die): Remove.
86078         (memory_full) [!defined emacs]: New macro.
86079         [!defined emacs]: Don't include xalloc.h.
86080         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86081         address arithmetic overflows.  Change datatypes a bit to avoid
86082         unnecessary casts.
86083
86084 2003-11-22  Jim Meyering  <jim@meyering.net>
86085
86086         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86087         s/size/size_t/.
86088
86089 2003-11-21  Karl Berry  <karl@gnu.org>
86090
86091         * config/config.{sub,guess}: update from config.
86092
86093 2003-11-18  Karl Berry  <karl@gnu.org>
86094
86095         * config/config.{sub,guess}: update from config.
86096
86097         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86098
86099 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86100
86101         * README: Mention that S+T cannot overflow if S is the size of
86102         an existing object and T is sufficiently small.
86103
86104 2003-11-17  Jim Meyering  <jim@meyering.net>
86105
86106         On systems without utime and without a utimes function capable of
86107         dealing with a NULL struct utimbuf* argument, this utime replacement
86108         could -- in unusual circumstances -- leak a file descriptor.
86109         * lib/utime.c: Include <unistd.h> and <errno.h>.
86110         (utime_null): Be sure to close `fd' and to preserve errno.
86111         Reported by Geoff Collyer via Arnold Robbins.
86112
86113 2003-11-17  Bruno Haible  <bruno@clisp.org>
86114
86115         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86116         (Depends-on): Add xsize.
86117
86118 2003-11-17  Bruno Haible  <bruno@clisp.org>
86119
86120         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86121
86122 2003-11-17  Bruno Haible  <bruno@clisp.org>
86123
86124         * lib/vasnprintf.c (alloca): Remove fallback definition.
86125         (freea): Remove definition.
86126         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86127         Reported by Paul Eggert.
86128
86129 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86130             Bruno Haible  <bruno@clisp.org>
86131
86132         Protect against address arithmetic overflow.
86133         * lib/printf-args.h: Include stddef.h.
86134         (arguments): Change type of field 'count' to size_t.
86135         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86136         'unsigned int' where appropriate.
86137         * lib/printf-parse.h: Include sys/types.h.
86138         (char_directive): Change type of *arg_index fields to ssize_t.
86139         (char_directives): Change type of fields 'count', max_*_length to
86140         size_t.
86141         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86142         (SSIZE_MAX): Define fallback value.
86143         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86144         instead of 'int' where appropriate. Check a_allocated, d_allocated
86145         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86146         * lib/vasnprintf.c: Include xsize.h.
86147         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86148         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86149         overflow. Avoid wraparound when converting a width or precision from
86150         decimal to binary.
86151
86152 2003-11-16  Bruno Haible  <bruno@clisp.org>
86153
86154         Update from GNU gettext.
86155         * lib/printf-parse.c: Generalize to it can be compiled for wide
86156         strings.
86157         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86158         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86159         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86160         SNPRINTF): New macros.
86161         Don't include <alloca.h> if the file is used inside libintl.
86162         (local_wcslen): New function, for Solaris 2.5.1.
86163         (VASNPRINTF): Use it instead of wcslen.
86164
86165 2003-11-16  Bruno Haible  <bruno@clisp.org>
86166
86167         * lib/xsize.h (xmax): New function.
86168         (xsum, xsum3, xsum4): Declare as "pure" functions.
86169
86170 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86171
86172         * modules/xalloc (Files): Undo latest change, since xalloc.h
86173         no longer needs SIZE_MAX or PTRDIFF_MAX.
86174
86175 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86176
86177         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86178         gl_PTRDIFF_MAX.
86179
86180 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86181
86182         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86183         "return", to pacify some unknown compiler.  Problem reported
86184         by Joerg Schilling.
86185
86186 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86187
86188         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86189         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86190         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86191         heuristic is just as accurate as far as we know, and it removes a
86192         dependency on size_max.m4 and ptrdiff_max.m4.
86193
86194 2003-11-11  Bruno Haible  <bruno@clisp.org>
86195
86196         * modules/xsize (Files): Add m4/size_max.m4.
86197         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86198
86199 2003-11-11  Bruno Haible  <bruno@clisp.org>
86200
86201         * m4/size_max.m4: New file.
86202         * m4/ptrdiff_max.m4: New file.
86203         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86204         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86205         (gl_XALLOC): Invoke it.
86206
86207 2003-11-11  Bruno Haible  <bruno@clisp.org>
86208
86209         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86210         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86211         defined.
86212
86213 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86214
86215         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86216         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86217         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86218         From Bruno Haible.
86219         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86220         not (size_t) -1, since it's defined here.
86221
86222 2003-11-09  Karl Berry  <karl@gnu.org>
86223
86224         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86225
86226 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86227
86228         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86229         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86230         Reject sizes of exactly SIZE_MAX bytes.
86231         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86232         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86233
86234 2003-11-05  Bruno Haible  <bruno@clisp.org>
86235
86236         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86237         SIZE_MAX defined in <limits.h> on Solaris.
86238
86239 2003-11-04  Jim Meyering  <jim@meyering.net>
86240
86241         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86242         variable names, rather than @VAR@.
86243         * modules/poll: Likewise.
86244
86245 2003-11-04  Bruno Haible  <bruno@clisp.org>
86246
86247         * modules/xsize: New file.
86248         * modules/linebreak: Depend on xsize.
86249         * MODULES.html.sh (func_all_modules): Add xsize.
86250
86251 2003-11-04  Bruno Haible  <bruno@clisp.org>
86252
86253         * m4/xsize.m4: New file.
86254
86255 2003-11-04  Bruno Haible  <bruno@clisp.org>
86256
86257         * lib/xsize.h: New file.
86258         * lib/linebreak.c: Include xsize.h.
86259         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86260         argument for overflow.
86261         Suggested by Paul Eggert.
86262
86263 2003-11-03  Karl Berry  <karl@gnu.org>
86264
86265         * config/config.{guess,sub}: update from config.
86266
86267 2003-11-03  Jim Meyering  <jim@meyering.net>
86268
86269         * modules/userspec (lib_SOURCES): Add userspec.h.
86270         (Include): Add "userspec.h".
86271         Improve description.
86272
86273 2003-11-03  Jim Meyering  <jim@meyering.net>
86274
86275         * lib/userspec.c: Include "userspec.h".
86276         * lib/userspec.h: New file.
86277
86278 2003-11-03  Bruno Haible  <bruno@clisp.org>
86279
86280         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86281
86282 2003-11-03  Bruno Haible  <bruno@clisp.org>
86283
86284         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86285         available, to avoid (extremely rare) race condition.
86286         Suggested by Paul Eggert.
86287
86288 2003-11-02  Karl Berry  <karl@gnu.org>
86289
86290         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86291
86292 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86293
86294         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86295         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86296         (read_filesystem_list): Set and use me_type_malloced.
86297         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86298         whatever the type happens to be), for brevity and consistency.
86299         Check for size calculation overflow on Alphas running OSF/1.
86300
86301 2003-10-31  Jim Meyering  <jim@meyering.net>
86302
86303         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86304
86305         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86306
86307 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86308             Bruno Haible  <bruno@clisp.org>
86309
86310         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86311         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86312
86313 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86314
86315         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86316         netbsd*-gnu*.  Suggested by Robert Millan.
86317
86318 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86319
86320         * modules/group-member: Depend on stdbool.
86321
86322 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86323
86324         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86325
86326 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86327
86328         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86329         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86330         after the 'gnu' in these cases.  This fixes some bugs in the
86331         previous change, and is based on suggestions by Robert Millan.
86332
86333 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86336         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86337         no longer needed.
86338         * lib/quotearg.c (quotearg_n_options): Use it.
86339         * lib/group-member.c: Include <stdbool.h>.
86340         (free_group_info): Arg is now const *; don't free arg.
86341         (get_group_info): Now returns bool and accepts struct group_info *,
86342         rather than returning a malloc'ed struct group_info *.
86343         All uses changed.  Check for overflow in internal size calculation.
86344
86345         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86346         rather than xmalloc/xrealloc.
86347         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86348         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86349         conformance bug: the old code used a pointer after freeing the
86350         storage that it addressed.
86351         * lib/hash.c (hash_initialize): Simplify the code by using
86352         xalloc_oversized rather than doing it by hand.
86353         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86354         the buffer preserved.  Use free and xmalloc instead.
86355         * lib/quotearg.c (quotearg_n_options): Likewise.
86356         Use a simpler test for size overflow.  Don't use xalloc_oversized
86357         because unsigned int might be wider than size_t (!); this suggests
86358         that we should switch from unsigned int to size_t for slot numbers.
86359
86360 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86361
86362         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86363         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86364         NetBSD kernels.  Requested by Richard Stallman.
86365
86366 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86367
86368         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86369         to allocate the returned structure.  Do not allocate a subarray,
86370         as x2nrealloc will do that.
86371         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86372         instead of xnrealloc.
86373         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86374
86375 2003-10-27  Bruno Haible  <bruno@clisp.org>
86376
86377         * lib/stdbool_.h: Better support for BeOS.
86378
86379 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86380
86381         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86382         now uses inline.
86383
86384 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86385
86386         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86387         callers that want to do their own size-overflow checking.  Include
86388         <stdbool.h>, since xalloc_oversized returns bool.
86389         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86390         to use xalloc_oversized.
86391
86392         Add two functions x2realloc, x2nrealloc, for programs that grow
86393         arrays dynamically by doubling their sizes.
86394         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86395         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86396         New functions.
86397
86398         Port to C99 semantics for 'inline' of external functions.
86399         Bug reported by Bruno Haible.
86400         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86401         with the old contents of xnmalloc.
86402         (xnmalloc, xmalloc): Use it.
86403         (xnrealloc_inline): New static inline function,
86404         with the old contents of xnrealloc.
86405         (xnrealloc, xrealloc): Use it.
86406
86407         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86408         that.
86409
86410 2003-10-26  Karl Berry  <karl@gnu.org>
86411
86412         * config/srclist.txt (COPYING.DOC): no longer available from
86413         /gd/gnuorg; don't know where the ultimate source is.
86414
86415 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86416
86417         Fix several address-calculation bugs in the hash modules,
86418         plus some minor code cleanup.
86419
86420         * lib/hash.h: Include <stdbool.h>, for bool.
86421         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86422         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86423         hash_get_n_entries, hash_get_max_bucket_length,
86424         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86425         hash_rehash): Use size_t rather than unsigned.
86426         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86427         hash_get_n_buckets_used, hash_get_n_entries,
86428         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86429         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86430         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86431         Likewise.
86432         (SIZE_MAX): Define if not defined.
86433         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86434         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86435         hash_print):
86436         Use const * when possible.
86437         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86438         (check_tuning): Fix bug: if tuning parameters were very close to
86439         0 or 1, rounding errors could have caused subscript violations.
86440         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86441         (hash_initialize): Add 'fail:' label
86442         to free table and return NULL, and use it to simplify code.
86443         Use calloc rather than clearing the storage ourself.
86444         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86445         buffer size calculations.
86446         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86447         Include <stddef.h>, for size_t.
86448         * lib/hash-pjw.c (hash_pjw): Likewise.
86449         Switch to method described by Bruno Haible.
86450         Include <limits.h>, for CHAR_BIT.
86451         (SIZE_BITS): New macro.
86452
86453 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86454
86455         * m4/getline.m4 (AM_FUNC_GETLINE):
86456         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86457         hosts.  Problem reported by Derek Robert Price in
86458         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86459         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86460         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86461
86462 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86463
86464         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86465         ceiling the allocation at NMAX bytes rather than silently
86466         discarding input bytes before NMAX is reached.  This makes
86467         a difference only if NMAX exceeds SIZE_MAX / 2.
86468
86469         * lib/obstack.c: Merge from glibc.
86470         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86471         Add libc_hidden_def (_obstack_newchunk).
86472         (_obstack_free) [! defined _LIBC]: Remove.
86473         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86474         a clone of the function body.
86475         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86476         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86477
86478         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86479         glibc.
86480         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86481         arg to memcpy.
86482
86483         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86484         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86485         Don't use lvalue casts, as GCC plans to remove support for them
86486         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86487         was also present in the non-GCC version, indicating that this
86488         code had always been buggy and had never been widely used.
86489         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86490         Use the fast variant of each macro, rather than copying the
86491         definiens of the fast variant; that way, we'll be more likely to
86492         catch future bugs in the fast variants.
86493
86494 2003-10-20  Bruno Haible  <bruno@clisp.org>
86495
86496         * modules/wait-process: New file.
86497         * MODULES.html.sh (func_all_modules): Add wait-process.
86498
86499 2003-10-20  Bruno Haible  <bruno@clisp.org>
86500
86501         * m4/wait-process.m4: New file.
86502
86503 2003-10-20  Bruno Haible  <bruno@clisp.org>
86504
86505         * lib/wait-process.h: New file, from GNU gettext.
86506         * lib/wait-process.c: New file, from GNU gettext.
86507
86508 2003-10-19  Jim Meyering  <jim@meyering.net>
86509
86510         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86511         HPUX 10.20.
86512
86513 2003-10-18  Karl Berry  <karl@gnu.org>
86514
86515         * config/config.guess: update from config.
86516
86517 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86518
86519         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86520         (getgroups): First arg is int, not size_t.
86521         Don't let 'free' mangle errno.
86522
86523 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86524
86525         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86526
86527 2003-10-16  Karl Berry  <karl@gnu.org>
86528
86529         * config/config.{guess,sub}: update from config.
86530
86531 2003-10-16  Jim Meyering  <jim@meyering.net>
86532
86533         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86534         memcpy.
86535
86536 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86537
86538         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86539         (SIZE_MAX): Remove.
86540         (new_exclude, add_exclude_file): Initial size no longer needs to
86541         be a power of 2.
86542         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86543         our own address arithmetic overflow checking.
86544
86545         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86546         (fnmatch): Do not alloca more than 2000 wide characters;
86547         instead, use malloc for large buffers.
86548         Check for address arithmetic overflow, and return -1
86549         with errno set to ENOMEM in that case.
86550         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86551         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86552         instead, return -1.  Check for address arithmetic overflow.
86553
86554 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86555
86556         Handle invalid suffixes and overflow independently, so that
86557         callers can treat them independently as needed.  Fix some bugs in
86558         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86559         suffix for a human-readable blocksize.  The major caller-visible
86560         change is the addition of a new
86561         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86562         that both overflow and suffix chars were found.
86563
86564         * lib/human.c (humblock): Don't check separately for invalid suffix
86565         char; that is xstrtoumax's job (now that its bug is fixed).
86566         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86567         INTMAX_MAX]: New macros.
86568         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86569         TYPE_MAXIMUM): New macros.
86570         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86571         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86572         if overflow occurs, as it's what __strtol does and it's more useful
86573         in practice.
86574         (__xstrtol): If __strtol reports some error other than ERANGE,
86575         reflect it to the caller as LONGINT_INVALID.  If it reports
86576         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86577         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86578         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86579         value.
86580         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86581         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86582         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86583         [defined UINTMAX_MAX]: New macros.
86584
86585 2003-10-14  Bruno Haible  <bruno@clisp.org>
86586
86587         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86588
86589 2003-10-14  Bruno Haible  <bruno@clisp.org>
86590
86591         * m4/sig_atomic_t: New file, from GNU gettext.
86592         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86593
86594 2003-10-14  Bruno Haible  <bruno@clisp.org>
86595
86596         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86597         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86598         Also use volatile where needed.
86599
86600 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86601
86602         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86603         Change maintainer from Bruno Haible to 'all'.
86604
86605 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86606
86607         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86608
86609 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86610
86611         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86612         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86613         and define in terms of the other primitives.
86614         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86615         (SIZE_MAX): Define if not already defined.
86616         (array_size_overflow): New function.
86617         (xalloc_die): Abort instead of exiting if 'error' returns.
86618         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86619         (xmalloc, xrealloc): Use them.
86620         (xcalloc): Check for address arithmetic overflow.
86621         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86622         a bit faster than strcpy.
86623
86624 2003-10-10  Simon Josefsson  <jas@extundo.com>
86625
86626         * modules/argp (Depends-on): Add restrict and strcase.
86627
86628 2003-10-10  Simon Josefsson  <jas@extundo.com>
86629
86630         * m4/argp.m4: Add AC_C_INLINE.
86631
86632 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86633
86634         Merge getpass from libc, plus a few fixes.
86635
86636         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86637         Include <stdbool.h>.
86638         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86639         __fsetlocking to empty.
86640         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86641         do include <bits/libc-lock.h>.
86642         Do not include <fcntl.h>; not needed.
86643         [_LIBC]: Include <wchar.h>.
86644         (NOTCANCEL_MODE): New macro.
86645         (flockfile, funlockfile) [_LIBC]: New macros.
86646         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86647         [!_LIBC]: New macros.
86648         (call_fclose): New function.
86649         (getpass): Use it.  Save tty stream separately; this simplifies the
86650         code and makes it more reliable if stdin happens to equal stdout.
86651         Invoke __fsetlocking on tty.
86652         Handle thread cancellation if needed.
86653         Namespace cleanup (use __tcgetattr, __getline).
86654         Use bool for Booleans.
86655         [USE_IN_LIBIO]: Handle wide streams.
86656         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86657         stream might go where.
86658
86659         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86660         doesn't have to include <stdio.h> before us.
86661         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86662         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86663         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86664         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86665         if not declared, so that we can use getpass.c code from libc without
86666         rewriting it.
86667         (flockfile, ftrylockfile, funlockfile): New macros.
86668
86669 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86670
86671         * modules/getpass: Depend on stdbool.
86672
86673 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86674
86675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86676
86677 2003-10-07  Karl Berry  <karl@gnu.org>
86678
86679         * config/config.{guess,sub}: update from config.
86680
86681 2003-10-06  Jim Meyering  <jim@meyering.net>
86682             Bruno Haible  <bruno@clisp.org>
86683
86684         This lets translators provide better translations for the
86685         "Written by ..." part of --version output.
86686         * lib/version-etc.h: Include stdarg.h.
86687         (version_etc_copyright): Declare as readonly.
86688         (version_etc): Make this function variadic with a NULL-terminated list
86689         of author name strings.
86690         (version_etc_va): New declaration.
86691         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86692         (version_etc_copyright): Declare as readonly.
86693         (version_etc_va): New function. Provide a different translatable string
86694         for each possible number of authors < 10. Abbreviate when there are 10
86695         authors or more.
86696         (version_etc): Make this function variadic. Call version_etc_va.
86697         Suggestion from Gary V. Vaughan.
86698
86699         * lib/long-options.h (parse_long_options): Change prototype: the
86700         authors string is moved to the end and becomes variadic.
86701         * lib/long-options.c: Include stdarg.h.
86702         (parse_long_options): Make this function variadic, too.
86703         Call version_etc_va, not version_etc.
86704
86705 2003-10-06  Bruno Haible  <bruno@clisp.org>
86706
86707         * modules/version-etc-2: Remove file.
86708         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86709
86710 2003-10-06  Bruno Haible  <bruno@clisp.org>
86711
86712         * modules/fatal-signal: New file.
86713         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86714
86715 2003-10-06  Bruno Haible  <bruno@clisp.org>
86716
86717         * m4/fatal-signal.m4: New file.
86718         * m4/signalblocking.m4: New file, from GNU gettext.
86719
86720 2003-10-06  Bruno Haible  <bruno@clisp.org>
86721
86722         * lib/version-etc-2.h: Remove file.
86723         * lib/version-etc-2.c: Remove file.
86724
86725 2003-10-06  Bruno Haible  <bruno@clisp.org>
86726
86727         * lib/fatal-signal.h: New file, from GNU gettext.
86728         * lib/fatal-signal.c: New file, from GNU gettext.
86729
86730 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86731
86732         * README: Rework advice for preventing empty .o files.
86733         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86734         not <sys/types.h>.
86735
86736 2003-10-04  Karl Berry  <karl@gnu.org>
86737
86738         * lib/argp*: update from libc.
86739
86740 2003-10-04  Karl Berry  <karl@gnu.org>
86741
86742         * config/config.{guess,sub}: update from config.
86743
86744 2003-10-02  Bruno Haible  <bruno@clisp.org>
86745
86746         * modules/lchown (Include): Add lchown.h.
86747         * modules/time_r (Include): Use "..." syntax.
86748         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86749
86750 2003-10-01  Simon Josefsson  <jas@extundo.com>
86751
86752         * MODULES.html.sh (func_all_modules): Move gethostname from section
86753         'based on' to section 'lacking' POSIX:2001.
86754
86755 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86756
86757         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86758         to output mode on the same stream.
86759
86760 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86761
86762         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86763         Fix arg typo in previous patch.
86764
86765 2003-09-28  Jim Meyering  <jim@meyering.net>
86766
86767         * lib/error.c: Correct cpp indentation.
86768
86769 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86770
86771         * modules/free: New file.
86772
86773 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86774
86775         * m4/free.m4: New file.
86776
86777 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86778
86779         * lib/minmax.h (MIN, MAX)
86780         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86781         Omit the special code that used __typeof__, since we worry that
86782         it could be more trouble than it's worth.  See:
86783         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86784         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86785
86786         * lib/free.c: New file.
86787
86788 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86789
86790         Trivial fixes to Makefile.am parts of module listings.
86791         * modules/strstr: Append strstr.h to lib_SOURCES.
86792         * modules/strcase: Likewise, for strcase.h.
86793
86794 2003-09-27  Karl Berry  <karl@gnu.org>
86795
86796         * config/mkinstalldirs: update from automake.
86797
86798 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86799
86800         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86801         (error_tail): Do not loop, reallocating temporary buffer, since
86802         the output cannot contain more wide characters than the input
86803         contains bytes, the size must be big enough already.  This avoids
86804         one potential size overflow calculation.  Check for size overflow
86805         when calculating temporary buffer size.  Free temporary buffer
86806         when done, if it was allocated with malloc; this plugs a memory
86807         leak.  Remove casts from void * to pointers, that are no longer
86808         needed now that we're assuming C89 or better.
86809
86810         Merge error changes from glibc.
86811
86812         * lib/error.c, error.h: Update copyright notice header to match glibc.
86813         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86814         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86815         Disable cancellation while printing error.
86816         * lib/error.h: Prepend __ to parameter names.
86817
86818 2003-09-26  Jim Meyering  <jim@meyering.net>
86819
86820         * lib/error.c (error_tail): Move some declarations
86821         into inner scope where the local variables are used.
86822
86823 2003-09-26  Bruno Haible  <bruno@clisp.org>
86824
86825         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86826         stpncpy().
86827         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86828
86829 2003-09-26  Bruno Haible  <bruno@clisp.org>
86830
86831         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86832         (stpncpy): Define as alias for gnu_stpncpy.
86833         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86834
86835 2003-09-25  Simon Josefsson  <jas@extundo.com>
86836
86837         * lib/xgetdomainname.h: New file.
86838         * lib/xgetdomainname.c: New file.
86839
86840 2003-09-25  Simon Josefsson  <jas@extundo.com>
86841             Bruno Haible  <bruno@clisp.org>
86842
86843         * modules/getdomainname: New file.
86844         * modules/xgetdomainname: New file.
86845         * MODULES.html.sh (func_all_modules): Add getdomainname,
86846         xgetdomainname.
86847
86848 2003-09-25  Simon Josefsson  <jas@extundo.com>
86849             Bruno Haible  <bruno@clisp.org>
86850
86851         * m4/getdomainname.m4: New file.
86852
86853 2003-09-25  Simon Josefsson  <jas@extundo.com>
86854             Bruno Haible  <bruno@clisp.org>
86855
86856         * lib/getdomainname.h: New file.
86857         * lib/getdomainname.c: New file.
86858
86859 2003-09-25  Karl Berry  <karl@gnu.org>
86860
86861         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86862
86863 2003-09-25  Karl Berry  <karl@gnu.org>
86864
86865         * config/install-sh: update from automake.
86866
86867 2003-09-25  Bruno Haible  <bruno@clisp.org>
86868
86869         * modules/version-etc-2: New file, from modules/version-etc with
86870         modifications.
86871         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86872
86873 2003-09-25  Bruno Haible  <bruno@clisp.org>
86874
86875         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86876         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86877
86878 2003-09-24  Simon Josefsson  <jas@extundo.com>
86879
86880         * modules/xgethostname: Add xgethostname.h.
86881
86882 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86883
86884         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86885         the buffer associated with the argument.  Bug reported by
86886         Simon Josefsson.
86887
86888 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86889
86890         * README: Document assumptions that 'int' is at least 32 bits
86891         wide, that integer arithmetic is 2's complement without overflow,
86892         that there are no holes in integer values, that adding sizes of
86893         two nonoverlapping objects can't overflow, and that all-bits-zero
86894         yields scalar zero.  Fix spelling and capitalization typos.
86895
86896 2003-09-19  Karl Berry  <karl@gnu.org>
86897
86898         * lib/argp.h: update from libc.
86899
86900 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86901
86902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86903         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86904         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86905
86906 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86907
86908         * gnulib-tool: Use "test -h", not "test -L", for portability
86909         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86910         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86911         (sed_extract_prog): Issue s commands one-by-one, rather than
86912         using \| in one s command.
86913
86914 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86915
86916         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86917         input error, instead of returning NULL the next time we are called
86918         (and therefore losing track of errno).
86919
86920 2003-09-16  Bruno Haible  <bruno@clisp.org>
86921
86922         * gnulib-tool (func_create_testdir): Warn about duplicated
86923         dependencies.
86924
86925 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86926
86927         * modules/argmatch, modules/fatal, modules/obstack,
86928         modules/xalloc, modules/xgethostname: Sort dependencies by
86929         importance, not alphabetically.
86930
86931 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86932
86933         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86934         fails, so that the caller gets the proper errno.
86935
86936         * lib/readutmp.c (read_utmp): Likewise.
86937         Check for fstat error.  Close stream and free storage
86938         when failing.
86939
86940 2003-09-14  Karl Berry  <karl@gnu.org>
86941
86942         * config/srclist.txt (strdup.c): disable for c89 changes.
86943
86944 2003-09-14  Jim Meyering  <jim@meyering.net>
86945
86946         * lib/getloadavg.c: Correct cpp indentation.
86947         * lib/strdup.c: Likewise.
86948         * lib/vasnprintf.c: Likewise.
86949
86950 2003-09-14  Bruno Haible  <bruno@clisp.org>
86951
86952         * modules/fwriteerror: New file.
86953         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86954
86955 2003-09-14  Bruno Haible  <bruno@clisp.org>
86956
86957         * lib/fwriteerror.h: New file.
86958         * lib/fwriteerror.c: New file.
86959
86960 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86961
86962         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86963         modules/xgethostname, modules/xalloc: Depend on exit.
86964
86965 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86966
86967         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86968
86969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86970         and AC_MINIX, too, so that their extensions are available.
86971
86972         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86973         This macro has been superseded by gl_BACKUPFILE.
86974
86975         More patches to assume C89 or better.
86976
86977         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86978
86979         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86980         unconditionally.
86981         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86982         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86983         Include <string.h>, <stdlib.h> unconditionally.
86984         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86985         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86986         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86987         headers or for string.h.
86988         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86989         or strtoul.
86990
86991         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86992         headers.
86993         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86994         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86995         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86996         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86997         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86998         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86999         memcpy, memset.
87000         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87001         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87002         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87003         strtol.
87004         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87005         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87006         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87007         strtoul.
87008
87009 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87010
87011         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87012         * lib/obstack.c [!defined _LIBC]: Likewise.
87013         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87014         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87015         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87016
87017         More changes to assume C89 or better.
87018
87019         * lib/error.c (error_tail): Assume vprintf.
87020
87021         * lib/argmatch.c (getenv): Remove decl.
87022         * lib/progreloc.c (get_full_program_name): Define via prototype.
87023         * lib/setenv.c (clearenv): Likewise.
87024         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87025         needed.
87026         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87027         (malloc, memcpy): Remove decls.
87028         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87029         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87030         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87031         (memcpy): Remove macro.
87032         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87033         (__P): Remove.  All uses removed.
87034         (PTR): Remove.  All uses changed to void *.
87035         (CHAR_BIT, NULL): Remove.
87036         (spaces, zeros, memset_space, memset_zero)
87037         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87038         Remove.
87039         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87040         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87041         Define with prototype.
87042         Remove now-unnecessary prototype decl.
87043         (extra_args_spec): Assume ANSI C.  All uses changed.
87044         (extra_args_spec_iso): Remove.
87045         (my_strftime, emacs_strftimeu): Define via prototype.
87046         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87047         unconditionally.
87048         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87049         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87050         (strtoul, strtol): Remove decls.
87051         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87052         LONG_MAX): Remove.
87053         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87054         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87055         (LOCALE_PARAM_PROTO): New macro.
87056         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87057         (INTERNAL (strtol), strtol): Define with a prototype.
87058         (PARAMS): Remove.  All uses removed.
87059         * lib/tempname.c: Include <string.h> unconditionally.
87060         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87061         * lib/xgethostname.c (main): Define with a prototype.
87062         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87063         Include <stdlib.h> unconditionally.
87064         (calloc, malloc, realloc, free): Remove decls.
87065         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87066         Include <stdlib.h> unconditionally.  Sort include file names.
87067         (strtod): Remove.
87068         (xstrtod): Define with a prototype.
87069         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87070         (strtol, strtoul): Remove decls.
87071
87072 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87073
87074         More patches to assume C89 or better.
87075         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87076         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87077         string.h, memchr, STDC_HEADERS.
87078
87079 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87080
87081         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87082         Include <stdlib.h>, <string.h> unconditionally.
87083         Remove now-unnecessary cast to char *.
87084         * lib/strnlen.c: Include <string.h> unconditionally.
87085         * lib/yesno.c (yesno): Define with a prototype.
87086
87087 2003-09-11  Bruno Haible  <bruno@clisp.org>
87088
87089         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87090
87091 2003-09-10  Jim Meyering  <jim@meyering.net>
87092
87093         * lib/error.c: Correct indentation of cpp directives.
87094
87095 2003-09-10  Bruno Haible  <bruno@clisp.org>
87096
87097         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87098         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87099         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87100         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87101         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87102         <stdlib.h> and <string.h> checks.
87103         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87104         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87105
87106 2003-09-10  Bruno Haible  <bruno@clisp.org>
87107
87108         * lib/strcspn.c: Include <string.h> unconditionally.
87109         * lib/strpbrk.c: Include <string.h> unconditionally.
87110         * lib/strstr.c: Include <string.h> unconditionally.
87111         * lib/unicodeio.c: Include <string.h> unconditionally.
87112         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87113         * lib/unsetenv.c: Likewise.
87114         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87115         * lib/yesno.c: Include <stdlib.h> unconditionally.
87116         (rpmatch): Add prototype.
87117
87118 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87119
87120         More patches to assume C89 or better.
87121         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87122         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87123         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87124         or for string.h.
87125         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87126         stdlib.h.
87127         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87128         C headers.
87129         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87130         string.h.
87131         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87132         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87133         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87134         or for string.h.
87135         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87136         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87137         C headers.
87138         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87139         memcpy.
87140         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87141         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87142         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87143         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87144         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87145         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87146         string.h, free.
87147         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87148         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87149         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87150         C headers, or for string.h.
87151         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87152         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87153         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87154         headers, memory.h, stdlib.h, string.h, strings.h.
87155         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87156         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87157         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87158         strchr.
87159         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87160         headers, memory.h, string.h.
87161         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87162         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87163         free.
87164         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87165         headers.
87166         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87167         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87168         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87169         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87170         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87171
87172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87173
87174         More K&R removal.
87175
87176         * lib/acosl.c (main): Use a prototype.
87177         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87178         tanl.c: Likewise.
87179
87180         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87181
87182         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87183         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87184         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87185         with a prototype.
87186         * lib/getopt.c (const): Remove macro.
87187         Include <string.h> unconditionally.
87188         (my_index): Remove; all uses changed to strchr.
87189         (strlen): Remove decl.
87190         (exchange): Remove forward decl; no longer needed.
87191         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87192         Define with prototype.
87193         * lib/getopt1.c (const): Remove macro.
87194         (getopt_long, getopt_long_only, main): Define with prototype.
87195
87196         * lib/getugroups.c: Include <string.h> unconditionally.
87197
87198         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87199         (getusershell, setusershell, endusershell, readname, main):
87200         Define with prototypes.
87201
87202         * lib/group-member.c: Include group-member.h first.
87203         Include <stdlib.h> unconditionally.
87204
87205         * lib/hard-locale.c: Include hard-locale.h first.
87206         Include <stdlib.h>, <string.h> unconditionally.
87207
87208         * lib/hash.c (free, malloc): Remove decls.
87209         Include <stdlib.h> unconditionally.
87210
87211         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87212         (getenv): Do not declare.
87213
87214         * lib/idcache.c: Include <string.h> unconditionally.
87215
87216         * lib/long-options.c: Include long-options.h first, to test interface.
87217         Include <stdlib.h> unconditionally.
87218
87219         * lib/makepath.c: Include makepath.h first, to test interface.
87220         Include <stdlib.h> and <string.h> unconditionally.
87221
87222         * lib/linebuffer.c: Include <stdlib.h>.
87223         (free): Remove decl.
87224
87225         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87226         stddef.h. rpl_malloc returns void *, not char *.
87227         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87228         prototype.
87229
87230         * lib/md5.h: Include <limits.h> unconditionally.
87231         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87232         (__P): Remove; all uses removed.
87233         * lib/md5.c: Include "md5.h" first.
87234         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87235         md5_buffer, md5_process_bytes, md5_process_block):
87236         Define with prototypes.
87237         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87238         * lib/sha.c: Include "sha.h" first.
87239         Include <stdlib.h>, <string.h> unconditionally.
87240
87241         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87242         * lib/memcmp.c (__ptr_t): Likewise.
87243         * lib/memrchr.c (__ptr_t): Likewise.
87244         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87245         Include <string.h> unconditionally.
87246         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87247         * lib/memchr.c: Include <stdlib.h> unconditionally.
87248         * lib/memchr.c (LONG_MAX): Remove.
87249         * lib/memrchr.c (LONG_MAX): Likewise.
87250         * lib/memchr.c (__memchr): Define via a prototype.
87251         * lib/memrchr.c (__memrchr): Likewise.
87252         * lib/memcmp.c (__P): Remove, and remove all uses.
87253         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87254         Remove forward decls; no longer needed.
87255         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87256         Use types required by C89 in prototype.
87257
87258         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87259         * lib/savedir.c: Likewise.
87260         * lib/mkdir.c (free): Remove decl.
87261         * lib/rmdir.c (rmdir): Define with a prototype.
87262         * lib/savedir.c: Include savedir.h first, to test interface.
87263
87264         * lib/mktime.c (STDC_HEADERS): Remove.
87265         Include <stdlib.h>, <string.h> unconditionally.
87266
87267         * lib/modechange.c: Include <stdlib.h> unconditionally.
87268         (malloc): Remove decl.
87269
87270         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87271         (free): Remove decl.
87272
87273         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87274         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87275         (This type really should be intptr_t, but that's a C99ism.)
87276         (_obstack_memcpy): Remove: all uses changed to memcpy.
87277         Include <string.h> unconditionally.
87278         (struct obstack): Assume __STDC__ for types of members
87279         chunkfun, freefun, extra_arg.
87280         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87281         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87282         obstack_begin, obstack_specify_allocation,
87283         obstack_specify_allocation_with_arg, obstack_chunkfun,
87284         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87285         Remove unprototyped decls and the macros that use them.
87286         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87287         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87288         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87289         (defined __STDC__ && __STDC__)]:
87290         Remove nonprototyped code.
87291         Include <stdlib.h> unconditionally.
87292         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87293         _obstack_allocated_p, _obstack_free, obstack_free,
87294         _obstack_memory_used, print_and_abort):
87295         Define using prototypes.
87296         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87297         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87298         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87299         obstack_next_free, obstack_object_size, obstack_room) [0]:
87300         Remove unused, unprototyped code.
87301
87302         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87303
87304         * lib/physmem.c (physmem_total, physmem_available, main): Define
87305         with prototypes.
87306
87307         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87308         (main): Define with a prototype.
87309
87310         * lib/posixver.c (getenv): Remove decl.
87311
87312         * lib/putenv.c (malloc): Returns void *, not char *.
87313         Include <string.h> unconditionally.
87314         (strchr, memcpy, NULL): Do not define.
87315
87316         * lib/readtokens.c: Include readtokens.h first, to test interface.
87317         Include <stdlib.h>, <string.h> unconditionally.
87318         (init_tokenbuffer): Define with a prototype.
87319
87320         * lib/regex.c (PARAMS): Remove.  All uses removed.
87321         All uses of _RE_ARGS removed, too.
87322         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87323         unconditionally.
87324         (bzero): Assume memset exists.
87325         (memcmp, memcpy, NULL): Remove.
87326         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87327         char, or assignments to local vars of type signed char.
87328         (init_syntax_once, PREFIX(extract_number_and_incr),
87329         PREFIX(print_partial_compiled_pattern),
87330         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87331         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87332         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87333         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87334         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87335         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87336         wcs_compile_range, byte_compile_range, truncate_wchar,
87337         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87338         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87339         count_mbs_length, wcs_re_match_2_internal,
87340         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87341         PREFIX(alt_match_null_string_p),
87342         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87343         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87344         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87345         now-unnecessary declaration, if any.
87346         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87347         regcomp, regexec):
87348         Remove now-unnecessary casts among pointer types.
87349         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87350
87351         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87352         (free): Remove decl.
87353
87354         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87355
87356         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87357         (free): Remove decl.
87358
87359         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87360         * lib/xgetcwd.c: Likewise.
87361
87362         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87363         (free): Remove decl.
87364
87365         * lib/strchrnul.c (strchrnul): Define with a prototype.
87366         Fix bug: c_in was not converted to char before searching.
87367
87368         The following changes are not K&R related:
87369
87370         * lib/group-member.h: Include <sys/types.h>, so that this file is
87371         self-contained.
87372         * lib/makepath.h: Likewise.
87373
87374         * lib/getusershell.c (readname, default_index, line_size, readname):
87375         Use size_t, not int, for sizes.
87376         (readname): If the size overflows, report an error instead of
87377         looping forever.
87378
87379 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87380
87381         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87382         libc.
87383
87384 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87385
87386         * README: New section: portability guidelines.
87387
87388 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87389
87390         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87391         C89 spec.
87392
87393 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87394
87395         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87396
87397 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87398
87399         Assume C89 or better; remove K&R cruft.
87400         A few of these changes were first proposed by Derek Robert Price
87401         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87402
87403         * lib/addext.c: Include <string.h> unconditionally.
87404         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87405         Don't declare getenv or malloc.
87406
87407         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87408         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87409         (NULL): Remove.
87410         (find_stack_direction, alloca): Use prototypes.
87411
87412         * lib/atexit.c (atexit): Define using a prototype.
87413
87414         * lib/basename.c, dirname.c, stripslash.c:
87415         Include <string.h> unconditionally.
87416
87417         * lib/bcopy.c: Include <stddef.h>.
87418         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87419
87420         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87421
87422         * lib/error.h (error, error_at_line, error_print_progname)
87423         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87424         * lib/error.c: Include error.h first, to check interface.
87425         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87426         (VA_START): Remove; all uses changeed to va_start.
87427         (exit, strerror): Remove decls.
87428         (error_print_progname): Prototype uncondionally.
87429         Don't include <errno.h>; no longer needed.
87430         (private_strerror): Remove.
87431         (error_tail): Always define.
87432         (error, error_at_line): Assume C89 or better; always use prototypes.
87433         * lib/fatal.c: Include "fatal.h" first, to test interface.
87434         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87435         (VA_START): Remove; all uses changed to va_start.
87436         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87437         this case.
87438         (exit): Remove decl.
87439         (fatal): Prototype unconditionally.  Assume va_start works.
87440         Abort at end, to pacify gcc.
87441
87442         * lib/euidaccess.c (main): Define with a prototype.
87443
87444         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87445
87446         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87447
87448         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87449         prototypes.
87450         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87451         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87452         (getenv): Remove decl.
87453         (fnmatch): Define using a prototype.
87454         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87455         (FCT): Define using a prototype.
87456
87457         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87458
87459         * lib/gethostname.c: Include <stddef.h>.
87460         (gethostname): Define with prototype.  Length is size_t, not int.
87461
87462 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87463
87464         Assume C89 or better; remove K&R cruft.
87465         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87466         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87467         string.h, getenv, malloc.
87468         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87469         headers.
87470         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87471         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87472         do not check for strerror.
87473         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87474         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87475         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87476         do not check for doprnt or vprintf.
87477         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87478         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87479
87480 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87481
87482         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87483         getversion.c should have been removed then, but was accidentally
87484         preserved.
87485
87486         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87487         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87488
87489 2003-09-08  Karl Berry  <karl@gnu.org>
87490
87491         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87492                 config, forget about prep.
87493
87494         * config/depcomp, missing: update from automake.
87495
87496 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87497
87498         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87499         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87500
87501 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87502
87503         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87504         copy_tm_result.  Bug reported by Simon Josefsson in
87505         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87506
87507 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87508
87509         * m4/time_r.m4: New file.
87510         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87511         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87512         is. Check for timegm declaration.
87513         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87514         Do not check for gmtime_r.
87515         Replace mktime if __mktime_internal does not exist and if mktime
87516         hasn't been replaced already.
87517
87518 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87519
87520         * lib/time_r.c, lib/time_r.h: New files.
87521
87522         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87523         __localtime_r.
87524         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87525         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87526
87527         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87528         __gmtime_r.
87529         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87530         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87531         Include <time_r.h>.
87532
87533         * lib/timegm.c: Switch to glibc implementation, with the following
87534         changes:
87535         [defined HAVE_CONFIG_H]: Include <config.h>.
87536         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87537         (__mktime_internal) [!defined _LIBC]: New decl.
87538         (__gmtime_r) [!defined _LIBC]: New macro and function.
87539         (timegm): Use a prototype, since gnulib assumes C89.
87540         Do not bother declaring tmp to be const, as it's not really usefu.
87541         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87542         (timegm): Declare only if HAVE_DECL_TIMEGM.
87543
87544 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87545
87546         * MODULES.html.sh (func_all_modules): Add time_r.
87547         * modules/time_r: New file.
87548         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87549         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87550
87551 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87552
87553         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87554         Bug reported by Lute Kamstra in
87555         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87556
87557         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87558         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87559         course with correspondingly smaller numbers for tomorrow and
87560         yesterday.  From Tadayoshi Funaba.  Originally installed into
87561         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87562         coreutils merge?).
87563
87564 2003-08-31  Simon Josefsson  <jas@extundo.com>
87565
87566         * modules/timegm: New file.
87567         * MODULES.html.sh (func_all_modules): Add timegm.
87568
87569 2003-08-31  Simon Josefsson  <jas@extundo.com>
87570
87571         * m4/timegm.m4: New file.
87572
87573 2003-08-31  Simon Josefsson  <jas@extundo.com>
87574
87575         * lib/timegm.h: New file.
87576         * lib/timegm.c: New file.  Based on
87577         wget-1.8.2/src/http.c:mktime_from_utc.
87578
87579 2003-08-31  Karl Berry  <karl@gnu.org>
87580
87581         * lib/argp.h: update from libc.
87582
87583 2003-08-28  Bruno Haible  <bruno@clisp.org>
87584
87585         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87586         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87587         followed by '#define fnmatch fnmatch_posix' gives an error.
87588
87589 2003-08-28  Bruno Haible  <bruno@clisp.org>
87590
87591         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87592         warning on QNX, which defines O_BINARY to 000000.
87593
87594 2003-08-27  Jim Meyering  <jim@meyering.net>
87595
87596         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87597         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87598         would fail after 32.  Reported by Danny Levinson.  Details here:
87599         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87600
87601 2003-08-24  Bruno Haible  <bruno@clisp.org>
87602
87603         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87604         MSVC7 <stdio.h> is included later.
87605
87606 2003-08-22  Simon Josefsson  <jas@extundo.com>
87607
87608         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87609
87610 2003-08-20  Karl Berry  <karl@gnu.org>
87611
87612         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87613
87614 2003-08-20  Bruno Haible  <bruno@clisp.org>
87615
87616         * modules/progname: New file.
87617         * MODULES.html.sh (func_all_modules): Add progname.
87618
87619 2003-08-20  Bruno Haible  <bruno@clisp.org>
87620
87621         * lib/progname.h: New file, from GNU gettext.
87622         * lib/progname.c: New file, from GNU gettext.
87623         * lib/progreloc.c: New file, from GNU gettext.
87624
87625 2003-08-19  Jim Meyering  <jim@meyering.net>
87626
87627         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87628         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87629
87630 2003-08-19  Bruno Haible  <bruno@clisp.org>
87631
87632         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87633         more.
87634
87635 2003-08-19  Bruno Haible  <bruno@clisp.org>
87636
87637         * lib/xstrdup.c: Assume <string.h> exists.
87638
87639 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87640
87641         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87642         in makefile rules.
87643
87644 2003-08-18  Jim Meyering  <jim@meyering.net>
87645
87646         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87647         * m4/lib-ld.m4: Likewise.
87648
87649 2003-08-18  Jim Meyering  <jim@meyering.net>
87650
87651         * lib/setenv.h: Indent nested cpp directive.
87652         * lib/vasnprintf.c: Remove trailing blanks.
87653
87654 2003-08-17  Simon Josefsson  <jas@extundo.com>
87655
87656         * modules/xstrndup: New file.
87657         * MODULES.html.sh (func_all_modules): Add xstrndup.
87658
87659 2003-08-17  Simon Josefsson  <jas@extundo.com>
87660
87661         * modules/argp: Fix autoconf macro name. Add more dependencies.
87662
87663 2003-08-17  Simon Josefsson  <jas@extundo.com>
87664
87665         * m4/xstrndup.m4: New file.
87666
87667 2003-08-17  Simon Josefsson  <jas@extundo.com>
87668
87669         * m4/argp.m4: New file.
87670
87671 2003-08-17  Simon Josefsson  <jas@extundo.com>
87672             Bruno Haible  <bruno@clisp.org>
87673
87674         * lib/xstrndup.h: New file.
87675         * lib/xstrndup.c: New file.
87676
87677 2003-08-17  Bruno Haible  <bruno@clisp.org>
87678
87679         * modules/strndup (Files, Include): Add lib/strndup.h.
87680
87681 2003-08-17  Bruno Haible  <bruno@clisp.org>
87682
87683         * modules/euidaccess (Files): Add lib/euidaccess.h.
87684
87685 2003-08-17  Bruno Haible  <bruno@clisp.org>
87686
87687         * lib/strndup.h: New file.
87688
87689 2003-08-17  Bruno Haible  <bruno@clisp.org>
87690
87691         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87692         like AC_GNU_SOURCE.
87693         * modules/extensions (configure.ac): Comment out the invocation of
87694         gl_USE_SYSTEM_EXTENSIONS.
87695
87696 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87697
87698         Merges from coreutils, etc.
87699         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87700         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87701         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87702         fixing a typo.
87703         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87704         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87705
87706 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87707
87708         Document merge from coreutils.
87709         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87710         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87711         * modules/utime: Add m4/utimes-null.m4.
87712
87713 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87714
87715         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87716         space, undoing this 2003-08-12 change:
87717         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87718
87719 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87720
87721         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87722         strtoul.c from libc, undoing this 2003-08-12 change:
87723         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87724
87725 2003-08-16  Jim Meyering  <jim@meyering.net>
87726
87727         Merges from coreutils.
87728         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87729         prefix.  Adjust cache variables similarly.  Create 500 rather than
87730         just 300 files, to exercise bug on Darwin6.5, too.
87731         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87732         $missing_dir.
87733         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87734         AM_SYS_POSIX_TERMIOS.
87735         Reported by mkc@mathdogs.com.
87736         Also change use of $am_cv_sys_posix_termios
87737         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87738         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87739         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87740         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87741         in /proc/mounts until it finds one with matching device number.  This
87742         is unnecessary when the FILE argument *is* a mount point.  No stat call
87743         is necessary in that case.  So, disable the statvfs-testing code on
87744         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87745         as RedHat bug# 84846.
87746         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87747         to 1MB, so as not to render systems with no stack size limit (e.g.,
87748         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87749         Include <unistd.h>.  On some systems,
87750         it is required for the definition of _SC_PAGESIZE.
87751
87752 2003-08-16  Jim Meyering  <jim@meyering.net>
87753
87754         Merge from coreutils.
87755         * lib/xstrtoimax.c: #else #if -> #elif.
87756         * lib/xstrtoumax.c: Likewise.
87757
87758 2003-08-16  Jim Meyering  <jim@meyering.net>
87759
87760         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87761         * m4/utimes.m4: Removed.
87762         * m4/utimes-null.m4: Renamed from utimes.m4.
87763
87764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87765         to 1MB, so as not to render systems with no stack size limit (e.g.,
87766         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87767         Include <unistd.h>.  On some systems,
87768         it is required for the definition of _SC_PAGESIZE.
87769
87770 2003-08-16  Jim Meyering  <jim@meyering.net>
87771         and Paul Eggert  <eggert@cs.ucla.edu>
87772
87773         Merges from coreutils, etc.
87774
87775         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87776         using the latest version from cvs.  This avoids problems with #line
87777         directives using a vendor (Sun) compiler.
87778         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87779         Don't set GETGROUPS_LIB here; now it's
87780         done via getgroups.m4's wrapper function.
87781         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87782         rather than just in sh-util/configure.in, so that the
87783         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87784         same.
87785         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87786         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87787         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87788         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87789         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87790         Remove code that is now done by the newly-required macros.
87791         Append $(EXEEXT) to DF_PROG.
87792         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87793         Do not invoke or require the following here,
87794         since prereq.m4 or some gnulib .m4 now does this for us:
87795         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87796         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87797         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87798         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87799         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87800         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87801         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87802         AC_FUNC_OBSTACK.
87803         Do not replace the following functions, as this is now the job
87804         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87805         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87806         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87807         atexit getpass, strdup, getpagesize.
87808         Replace 'raise'.
87809         Do not check for the following functions, as this is now the job
87810         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87811         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87812         setregid.
87813         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87814         Check for sys/sysctl.h.
87815         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87816         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87817         of checking for ssize_t ourselves.
87818
87819         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87820         Require every macro that gnulib/modules/* suggests for us.
87821         (jm_PREREQ_ADDEXT): New macro.
87822         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87823         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87824
87825         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87826         (gl_PHYSMEM): Use it.
87827         Also check for `table' function.
87828         Check for new headers and functions.
87829         Add check for sys/sysmp.h.
87830         With suggestions from Kaveh Ghazi.
87831         Ignore headers that are present but cannot be compiled.  This
87832         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87833         C 5.4.
87834
87835 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87836
87837         Document merge from coreutils.
87838         * modules/userspec: Depend on posixver.
87839         * modules/strftime: Depend on tzset.
87840
87841 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87842
87843         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87844         rather than tab, after '#' in shell-script copyright notices.
87845         Suggested by Bruno Haible.
87846
87847 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87848
87849         * config/srclist-update: Use three spaces, rather than tab, after '#'
87850         in shell-script copyright notices.  Suggested by Bruno Haible.
87851         Remove unnecessary parenthesization in regular expression.
87852
87853 2003-08-15  Jim Meyering  <jim@meyering.net>
87854
87855         Merge from coreutils.
87856         * lib/xgethostname.c: Include <stdlib.h>.
87857         (xghostname): Don't exit for anything other than memory-related
87858         failure; just return NULL.
87859         * lib/userspec.c: Include "posixver.h".
87860         (parse_user_spec): Accept `.' as a separator only
87861         in pre-POSIX-200112 mode.
87862         * lib/strtoimax.c: Use #elif rather than #else #if.
87863         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87864         Remove function, now that we can rely on a working tzset function.
87865         [!_LIBC]: Ensure that the required autoconf test has been run.
87866         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87867         Use underlying_strftime for %r.
87868         * lib/sha.c: Merge in some clean-up and optimization changes from
87869         glibc.
87870         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87871         Ensure that it is a multiple of 64.
87872         Rearrange loop exit tests so as to avoid performing an
87873         additional fread after encountering an error or EOF.
87874         * lib/realloc.c: Update copyright date.
87875
87876 2003-08-15  Jim Meyering  <jim@meyering.net>
87877         and Paul Eggert  <eggert@twinsun.com>
87878
87879         Merge from coreutils.
87880         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87881         member but strut utmpx does not.  Needed for AIX 4.3.3.
87882         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87883
87884 2003-08-15  Jim Meyering  <jim@meyering.net>
87885         and Paul Eggert  <eggert@cs.ucla.edu>
87886
87887         Merges from coreutils, etc.
87888         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87889         Require gl_FUNC_TZSET_CLOBBER.
87890         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87891         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87892         members.
87893
87894 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87895
87896         Help the merge from coreutils.
87897         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87898         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87899         * m4/tzset.m4: Use it too.
87900
87901 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87902
87903         * modules/tzset: New file.
87904
87905 2003-08-14  Jim Meyering  <jim@meyering.net>
87906
87907         Merges from coreutils.
87908         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87909         variable names, rather than @FNMATCH_H@.
87910         * modules/alloca: Likewise for $(ALLOCA_H).
87911
87912         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87913         the three copies of the literal target, `fnmatch.h'.
87914         * modules/alloca (alloca.h): Likewise.
87915
87916 2003-08-14  Jim Meyering  <jim@meyering.net>
87917
87918         Merge from coreutils.
87919         * m4/tzset.m4: New file.
87920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87921         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87922         otherwise, AIX 5.1 systems would end up using the latter.
87923         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87924         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87925         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87926         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87927
87928 2003-08-14  Jim Meyering  <jim@meyering.net>
87929
87930         Merge from coreutils.
87931         * lib/obstack.h: Whitespace changes.
87932         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87933         and xcalloc return values.
87934         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87935         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87936         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87937         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87938         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87939         error from mntctl.
87940         Use mntctl's return value to drive the entry-processing loop, since
87941         we can't rely on the value of the vmt_length member in the last
87942         entry.  On some systems doing so could result in exhausting
87943         virtual memory.  Based in part on a patch from Mike Jetzer.
87944
87945 2003-08-14  Jim Meyering  <jim@meyering.net>
87946         and Paul Eggert  <eggert@twinsun.com>
87947
87948         Merges from coreutils, plus other fixes.
87949         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87950         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87951         for credits and details.  Thanks to Kaveh Ghazi for helping
87952         to keep these files in sync.
87953         (ARRAY_SIZE): Define it.
87954         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87955         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87956         (memcasecmp): Don't assume size_t fits in unsigned int.
87957         Remove casts and duplicate code.
87958         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87959         (memcpy): Remove definition.
87960         Merge in some clean-up and optimization changes from glibc.
87961         [BLOCKSIZE]: Move definition to top of file.
87962         Ensure that it is a multiple of 64.
87963         Rearrange loop exit tests so as to avoid performing an
87964         additional fread after encountering an error or EOF.
87965         * lib/md5.h (md5_uintptr): Define.
87966         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87967         return to the initial working directory.  Preserve errno
87968         for caller.
87969         * lib/idcache.c: Include "xalloc.h".
87970         (xmalloc, xrealloc): Remove decls.
87971         (getuser): Remove casts no longer required in C89.
87972         * lib/human.c: Include stdio.h, for sprintf.
87973         * lib/group-member.c: Include "xalloc.h".
87974         (xmalloc, xrealloc): Remove decls.
87975         (get_group_info): Remove casts no longer required in C89.
87976         * lib/getusershell.c (readname): Remove casts no longer required in
87977         C89.
87978         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87979         * lib/getline.c: Whitespace fix, from coreutils.
87980
87981 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87982
87983         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87984         Check for isascii.
87985
87986         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87987         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87988         Undo previous (whitespace-only) change.
87989
87990 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87991
87992         * lib/exclude.c: Include <ctype.h>
87993         (IN_CTYPE_DOMAIN): New macro.
87994         (is_space): New fn.
87995         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87996         and empty lines.
87997
87998         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87999         Undo previous (whitespace-only) change.
88000
88001 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88002
88003         * config/srclist-update: Change update back to the old behavior,
88004         leaving whitespace alone.  Use one 'sed' command rather than a
88005         pipeline.
88006         (fixlicense): Now a variable, not a function.
88007         (remove_trailing_blanks): Remove.
88008         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88009         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88010         Undo previous (whitespace-only) change.
88011
88012 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88013
88014         Merge from coreutils.
88015         * modules/euidaccess: Add lib_SOURCES, include for new
88016         file euidaccess.h
88017
88018 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88019
88020         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88021         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88022         Normalize leading white space and remove trailing white space.
88023
88024         Merge from coreutils
88025         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88026
88027         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88028         0.12.1.  These files are now being upgraded automatically by
88029         ../config/srclist-update.
88030
88031 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88032
88033         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88034         Normalize leading white space and remove trailing white space.
88035         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88036         notice, as per ../config/srclist-update.
88037
88038         Merge from coreutils.
88039         * lib/euidaccess.h: New file.
88040         * lib/euidaccess.c: Include it.
88041         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88042         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88043         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88044
88045 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88046
88047         * config/srclist-update: Add copyright notice.
88048         (remove_id_lines, remove_trailing_blanks): New constants.
88049         (fixfile): Use them to normalize spacing a bit in copied files.
88050         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88051         Normalize leading white space and remove trailing white space.
88052
88053         * config/texinfo.tex: Sync with texinfo.
88054
88055         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88056         strtoul.c from libc, to merge coreutils whitespace changes.
88057
88058         * config/srclist.txt: Get the following m4 files from gettext:
88059         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88060         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88061         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88062         wint_t.m4.
88063
88064 2003-08-12  Karl Berry  <karl@gnu.org>
88065
88066         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88067         been made.
88068
88069 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88070
88071         * modules/gnu-source, m4/gnu-source.m4:
88072         Remove; we're assuming Autoconf 2.54 or later now.
88073         Suggested by Bruno Haible.
88074         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88075
88076 2003-08-11  Bruno Haible  <bruno@clisp.org>
88077
88078         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88079
88080 2003-08-11  Bruno Haible  <bruno@clisp.org>
88081
88082         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88083         (vasnprintf): Use it instead of wcslen.
88084
88085 2003-08-11  Bruno Haible  <bruno@clisp.org>
88086
88087         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88088         value to ensure that _Bool promotes to int. Use #define for _Bool when
88089         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88090
88091 2003-08-10  Karl Berry  <karl@gnu.org>
88092
88093         * lib/regex.h: update from libc (whitespace fix).
88094
88095 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88096
88097         Merge some files from coreutils.  These changes were
88098         originally made by Jim Meyering.
88099         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88100         many older Unixes require this.
88101         * lib/alloca.c (alloca): Remove cast to argument of free;
88102         no longer needed in C89.
88103         * lib/alloca_.h, regex.h: Fix white space to match
88104         what GNU indent does.
88105
88106 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88107
88108         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88109         apparently Emacs's Unicode mode got confused before my 2003-08-05
88110         checkin.
88111
88112 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88113
88114         * m4/extensions.m4: New file.
88115         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88116         Require gl_USE_SYSTEM_EXTENSIONS.
88117         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88118         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88119
88120 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88121
88122         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88123         * modules/extensions, modules/gnu-source: New files.
88124         * modules/timespec, modules/unlocked-io: Depend on extensions.
88125
88126 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88127
88128         * modules/restrict: New file.
88129         * MODULES.html.sh (func_all_modules): Add restrict.
88130         * modules/regex: Depend on restrict.
88131
88132 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88133
88134         * m4/restrict.m4: New file.
88135         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88136
88137 2003-08-07  Bruno Haible  <bruno@clisp.org>
88138
88139         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88140         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88141
88142 2003-08-07  Bruno Haible  <bruno@clisp.org>
88143
88144         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88145         makes the module 'getndelim2' compatible with the module 'getline'.
88146
88147 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88148
88149         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88150         byte with "\201" to avoid glitches when editing that source file
88151         with multi-gnome-terminal.
88152
88153 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88154
88155         * lib/bumpalloc.h: Remove.
88156
88157 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88158
88159         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88160         * modules/bumpalloc: Remove.
88161
88162 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88163
88164         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88165         GNU coding style.
88166
88167         Merge from coreutils.
88168         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88169         1. From glibc.
88170         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88171         from Karl Berry, implemented by Jim Meyering.
88172         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88173         from Dmitry V. Levin.
88174         Remove anachronistic cast of xrealloc.
88175         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88176         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88177         type. Otherwise, it wouldn't compile with at least /bin/cc on
88178         ymp-cray-unicos9.0.2.X.
88179         Combine two mostly-identical uses of alloca into one.
88180         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88181
88182 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88183
88184         [From Emacs.]
88185
88186         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88187         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88188         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88189         obsolete NLIST_NAME_UNION.
88190         [__GNU__]: Undef BSD and FSCALE.
88191         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88192
88193 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88194
88195         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88196         an enum type, so that it's guaranteed to promote to int.  See:
88197         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88198
88199 2003-08-03  Karl Berry  <karl@gnu.org>
88200
88201         * config/depcomp: update from automake.
88202
88203 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88204
88205         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88206         (strerror): Don't assume that a printable int fits in 14 bytes.
88207
88208 2003-07-31  Bruno Haible  <bruno@clisp.org>
88209
88210         * modules/getpass-gnu: New file.
88211         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88212
88213 2003-07-31  Bruno Haible  <bruno@clisp.org>
88214
88215         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88216
88217 2003-07-24  Karl Berry  <karl@gnu.org>
88218
88219         * config/missing: update from automake.
88220
88221 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88222             Bruno Haible  <bruno@clisp.org>
88223
88224         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88225         * lib/getline.c (getline, getdelim): Likewise.
88226         Remove _GNU_SOURCE define; now it's defined in config.h through
88227         m4/getline.m4.
88228
88229 2003-07-23  Karl Berry  <karl@gnu.org>
88230
88231         * config/config.sub: update from prep.
88232
88233 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88234
88235         * modules/xalloc (Depends-on): Add exitfail.
88236         * modules/xmemcoll: Likewise.
88237
88238 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88239
88240         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88241         over-parenthesization in macros.
88242
88243         Sync with coreutils.
88244
88245         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88246         required by C99.
88247
88248         Use `exit_failure' for xalloc and xmemcoll instead of their own
88249         private exit-failure variables.
88250         * lib/xalloc.h (xalloc_exit_failure): Remove.
88251         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88252         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88253         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88254         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88255         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88256
88257 2003-07-20  Jim Meyering  <jim@meyering.net>
88258
88259         * modules/closeout (Depends-on): Add exitfail.
88260         Suggestion from Bruno Haible.
88261
88262 2003-07-19  Karl Berry  <karl@gnu.org>
88263
88264         * config/config.sub: update from prep.
88265
88266 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88267
88268         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88269         Remove.
88270         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88271         to test that it can stand by itself.  Include "exitfail.h".
88272         Clients should set exit_failure instead.
88273         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88274
88275 2003-07-18  Bruno Haible  <bruno@clisp.org>
88276
88277         * modules/getndelim2: New file.
88278         * modules/getline: Share files with module getndelim2.
88279         * modules/getnline: Depend on getndelim2 instead of sharing files with
88280         it. Add getnline.c to lib_SOURCES.
88281         * MODULES.html.sh (func_all_modules): Add getndelim2.
88282
88283 2003-07-18  Bruno Haible  <bruno@clisp.org>
88284
88285         * m4/getndelim2.m4: New file.
88286         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88287         invoke gl_PREREQ_GETNDELIM2.
88288         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88289         gl_PREREQ_GETNDELIM2.
88290         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88291         gl_GETNDELIM2.
88292
88293 2003-07-18  Bruno Haible  <bruno@clisp.org>
88294
88295         * lib/getndelim2.h: New file.
88296         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88297         getndelim2.h.
88298         (getndelim2): Make non-static. Change return type to ssize_t.
88299         * lib/getline.h: Change argument names.
88300         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88301         * lib/getnline.c: Include getndelim2.h.
88302
88303 2003-07-18  Andreas Schwab  <schwab@suse.de>
88304
88305         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88306
88307 2003-07-17  Karl Berry  <karl@gnu.org>
88308
88309         * config/config.sub: update from prep.
88310
88311 2003-07-17  Bruno Haible  <bruno@clisp.org>
88312
88313         * modules/getnline: New file.
88314         * modules/getline: Add lib/getndelim2.c to source file list.
88315         * MODULES.html.sh (func_all_modules): Add getnline.
88316
88317 2003-07-17  Bruno Haible  <bruno@clisp.org>
88318
88319         * m4/getnline.m4: New file.
88320
88321 2003-07-17  Bruno Haible  <bruno@clisp.org>
88322
88323         * m4/Makefile.am.in: Remove file.
88324         * m4/Makefile.am: Remove file.
88325         * m4/Makefile.in: Remove file.
88326
88327 2003-07-17  Bruno Haible  <bruno@clisp.org>
88328
88329         * lib/getnline.h: New file.
88330         * lib/getnline.c: New file.
88331         * lib/getndelim2.c: New file, extracted from getline.c.
88332         (getndelim2): Renamed from getdelim2, with added nmax argument.
88333         * lib/getline.c: Include getndelim2.c.
88334         (getdelim2): Moved out to getndelim2.c.
88335         (getline, getdelim): Update.
88336
88337 2003-07-17  Bruno Haible  <bruno@clisp.org>
88338
88339         * lib/Makefile.am: Remove file.
88340         * lib/Makefile.in: Remove file.
88341
88342 2003-07-17  Bruno Haible  <bruno@clisp.org>
88343
88344         * configure.in: Remove file.
88345         * Makefile.in: Remove file.
88346
88347 2003-07-17  Bruno Haible  <bruno@clisp.org>
88348
88349         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88350
88351 2003-07-16  Karl Berry  <karl@gnu.org>
88352
88353         * config/srclist-update: was running fixlicense twice, which caused
88354                 texinfo.tex to be nullified for some reason.  Simplify,
88355                 $gplsrc is no longer needed as far as I can see?
88356
88357 2003-07-16  Jim Meyering  <jim@meyering.net>
88358
88359         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88360
88361 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88362
88363         * config/srclist.txt: Get the following files from gettext-runtime/intl
88364         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88365         ref-del.sin.  From Bruno Haible.
88366         * config/srclist-update (fixfile): Change grep pattern again, since the
88367         previous fix didn't work (there was another trailing $).  Use
88368         '[$]' to escape the $s.
88369
88370 2003-07-15  Karl Berry  <karl@gnu.org>
88371
88372         * lib/vasnprintf.c: update from gettext.
88373
88374 2003-07-15  Karl Berry  <karl@gnu.org>
88375
88376         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88377         gets expanded when surrounded by '$'.
88378
88379 2003-07-15  Jim Meyering  <jim@meyering.net>
88380
88381         * modules/save-cwd: Don't depend on error.  From Derek Price.
88382
88383 2003-07-15  Jim Meyering  <jim@meyering.net>
88384
88385         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88386
88387 2003-07-14  Simon Josefsson  <jas@extundo.com>
88388
88389         * modules/mempcpy: New file.
88390         * MODULES.html.sh (func_all_modules): Add mempcpy.
88391
88392 2003-07-14  Simon Josefsson  <jas@extundo.com>
88393
88394         * m4/mempcpy.m4: New file.
88395
88396 2003-07-14  Simon Josefsson  <jas@extundo.com>
88397
88398         * lib/mempcpy.h: New file.
88399         * lib/mempcpy.c: New file.
88400
88401 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88402
88403         * modules/getdate, modules/posixtm: Depend on mktime.
88404
88405 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88406
88407         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88408         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88409         unicodeio.c, unicodeio.h, unlocked-io.h:
88410         Switch from LGPL to GPL.
88411
88412 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88413
88414         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88415         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88416         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88417         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88418         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88419         updated automatically by ../config/srclist-update.  This changes
88420         their license from LPGL to GPL.
88421
88422 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88423
88424         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88425         assumed to refer to the root of the most recent stable gettext version.
88426         * config/srclistvars.sh: Add defaults for eggert.
88427         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88428         Match "This program" as well as "The program".  This is needed
88429         for gettext.
88430
88431 2003-07-14  Jim Meyering  <jim@meyering.net>
88432
88433         Don't emit diagnostics.  Let callers do that.
88434         * lib/save-cwd.c: Don't include "error.h".
88435         (save_cwd): Don't call error.  Ensure that errno is valid
88436         when returning nonzero.
88437
88438         * lib/save-cwd.h (restore_cwd): Update prototype.
88439         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88440         Simplify.  Don't call error upon failure.  Let callers do that.
88441         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88442         when auditing is enabled.  But don't bother updating the #if.
88443
88444 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88445
88446         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88447         it breaks C++ compilation.
88448         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88449
88450 2003-07-10  Simon Josefsson  <jas@extundo.com>
88451
88452         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88453
88454 2003-07-10  Jim Meyering  <jim@meyering.net>
88455
88456         * m4/clock_time.m4: Remove trailing blank.
88457         * m4/intmax_t.m4: Likewise.
88458
88459 2003-07-10  Jim Meyering  <jim@meyering.net>
88460
88461         * lib/vasnprintf.c: Remove trailing blanks.
88462         Make cpp indentation consistent.
88463
88464 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88465
88466         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88467         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88468         Switch from LGPL to GPL.
88469
88470 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88471
88472         * config/srclist.txt: Sort sublists.  Add
88473         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88474         that differ from gnulib for one reason or another; we'd like this list
88475         to be smaller but for now let's document what we have.
88476
88477 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88478
88479         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88480         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88481         and sweeter "eval x=$x".
88482         * config/srclist.txt: Get lib/argp* from glibc.
88483
88484 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88485
88486         * lib/mktime.c: Fix some boundary cases and remove need for floating
88487         point.
88488
88489         Issue a compile-time diagnostic if time_t is floating point, or if
88490         two's complement arithmetic is not in effect, or if arithmetic
88491         right shift does not propagate the sign.  These assumptions were
88492         all in the original code but they weren't checked.
88493
88494         (TIME_T_MIDPOINT, verify): New macros.
88495         (__isleap): Remove; it has integer overflow problems.
88496         (leapyear): New function, without those problems.
88497         (ydhms_tm_diff): Remove; splitting into two parts.
88498         (ydhms_diff): New function, containing the arithmetic part of
88499         the old ydhms_tm_diff function.  Issue a compile-time
88500         diagnostic if we are not using C99 integer division.
88501         Avoid casts when possible.
88502         (guess_time_tm): New function, containing the checking part of
88503         the old ydhms_tm_diff function.  Return the new value, rather than
88504         the difference between it and the old.  Accept a new argument T
88505         so that *T specifies the old value.  Check for overflow in the result.
88506
88507         (__mktime_internal): Use a time_t offset, not a long int offset.
88508         This undoes the 2003-06-04 change, which is no longer needed now
88509         that we have better overflow checking.
88510         (localtime_offset): Likewise.
88511
88512         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88513         and long are 64-bit but int is only 32-bit.
88514         (ydhms_diff): Use long int to store year1 and yday1.
88515         Issue a compile-time diagnostic if long int is not wide enough.
88516
88517         (__mktime_internal): Use long int to store adjusted year and yday.
88518         Use plain C rather than preprocessor commands, if that doesn't
88519         affect efficiency.
88520         Check for overflow (and try to repair) after each probe
88521         rather than checking only at the very end.  This avoids some bugs
88522         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88523         does not equal GMT offset at maximum time).
88524         Use integer to check for overflow rather than floating point; this
88525         is more portable to non-IEEE hosts, and is a tad faster.
88526         When we detect that we are oscillating between two values,
88527         don't check whether tm_isdst has the requested value, since
88528         we already know the answer.  When tm_isdst has the wrong value,
88529         use a different heuristic to find the right one, based on the
88530         extreme values actually observed in practice in tz2003a,
88531         rather than the (overly optimistic) "previous 3 calendar quarters".
88532
88533         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88534         "T const" to accommodate glibc style.
88535         (check_result): Use less-confusing report format.  "long" -> "long int.
88536         (main): Likewise.
88537         Don't loop if the iteration overflows time_t.
88538         Allow a negative step in the iteration.
88539
88540 2003-07-06  Karl Berry  <karl@gnu.org>
88541
88542         * config/depcomp: update from automake.
88543         * config/config.sub: update from prep.
88544
88545 2003-07-03  Karl Berry  <karl@gnu.org>
88546
88547         * config/config.guess: update from prep.
88548
88549 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88550
88551         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88552         xreadlink.c now includes it unconditionally.
88553
88554 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88555
88556         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88557         having it depend on HAVE_SYS_TYPES_H.
88558
88559 2003-07-01  Bruno Haible  <bruno@clisp.org>
88560
88561         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88562         <sys/types.h> should be sufficient.
88563         Reported by Paul Eggert.
88564
88565 2003-06-26  Karl Berry  <karl@gnu.org>
88566
88567         * config/depcomp: update from automake.
88568
88569 2003-06-26  Bruno Haible  <bruno@clisp.org>
88570
88571         * modules/human: Depend on module stdbool.
88572
88573 2003-06-25  Bruno Haible  <bruno@clisp.org>
88574
88575         * modules/readlink: New file.
88576         * modules/xreadlink: Depend on it.
88577         * MODULES.html.sh (func_all_modules): Add readlink.
88578
88579 2003-06-25  Bruno Haible  <bruno@clisp.org>
88580
88581         * m4/readlink.m4: New file.
88582
88583 2003-06-25  Bruno Haible  <bruno@clisp.org>
88584
88585         * lib/readlink.c: New file.
88586
88587 2003-06-22  Karl Berry  <karl@gnu.org>
88588
88589         * config/srclist.txt: update mkinstalldirs from automake.
88590         * config/mkinstalldirs: update.
88591
88592 2003-06-22  Bruno Haible  <bruno@clisp.org>
88593
88594         Portability to mingw32.
88595         * m4/ssize_t.m4: New file, from GNU gettext.
88596         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88597         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88598
88599 2003-06-22  Bruno Haible  <bruno@clisp.org>
88600
88601         * modules/safe-read: Add m4/ssize_t.m4.
88602         * modules/xreadlink: Add m4/ssize_t.m4.
88603
88604 2003-06-20  Bruno Haible  <bruno@clisp.org>
88605
88606         Assume C89, so PARAMS isn't needed.
88607         * lib/unicodeio.h (PARAMS): Remove.
88608         * lib/unicodeio.c: Don't use PARAMS.
88609
88610 2003-06-18  Karl Berry  <karl@gnu.org>
88611
88612         * config/config.{guess,sub}: update from prep.
88613
88614 2003-06-18  Jim Meyering  <jim@meyering.net>
88615
88616         Merge changes from coreutils.
88617         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88618         Remove explicit declarations of xmalloc and realloc.
88619         Include xalloc.h.
88620         (read_utmp): Remove anachronistic cast of xmalloc.
88621
88622 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88623
88624         Assume C89, so PARAMS isn't needed.
88625         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88626         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88627         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88628         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88629         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88630         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88631         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88632         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88633         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88634         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88635         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88636         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88637         no longer needed. Anyway, config.h should always be included before any
88638         other file.
88639
88640 2003-06-11  Simon Josefsson  <jas@extundo.com>
88641
88642         * modules/sysexits: New file.
88643         * MODULES.html.sh (func_all_modules): Add sysexits.
88644
88645 2003-06-11  Simon Josefsson  <jas@extundo.com>
88646
88647         * lib/sysexit_.h: New file.
88648
88649 2003-06-11  Derek Price  <derek@ximbiot.com>
88650
88651         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88652         necessary.
88653
88654 2003-06-11  Bruno Haible  <bruno@clisp.org>
88655
88656         * m4/sysexits.m4: New file.
88657
88658 2003-06-10  Simon Josefsson  <jas@extundo.com>
88659
88660         * lib/argp.h: New file, from glibc.
88661         * lib/argp-ba.c: New file, from glibc.
88662         * lib/argp-eexst.c: New file, from glibc.
88663         * lib/argp-fmtstream.c: New file, from glibc.
88664         * lib/argp-fmtstream.h: New file, from glibc.
88665         * lib/argp-fs-xinl.c: New file, from glibc.
88666         * lib/argp-help.c: New file, from glibc.
88667         * lib/argp-namefrob.h: New file, from glibc.
88668         * lib/argp-parse.c: New file, from glibc.
88669         * lib/argp-pv.c: New file, from glibc.
88670         * lib/argp-pvh.c: New file, from glibc.
88671         * lib/argp-xinl.c: New file, from glibc.
88672
88673 2003-06-10  Simon Josefsson  <jas@extundo.com>
88674
88675         * modules/strchrnul: New file.
88676
88677 2003-06-10  Simon Josefsson  <jas@extundo.com>
88678
88679         * modules/argp: New file.
88680
88681 2003-06-10  Simon Josefsson  <jas@extundo.com>
88682
88683         * m4/strchrnul.m4: New file.
88684
88685 2003-06-10  Simon Josefsson  <jas@extundo.com>
88686
88687         * lib/strchrnul.h: New file.
88688         * lib/strchrnul.c: New file.
88689
88690 2003-06-10  Bruno Haible  <bruno@clisp.org>
88691
88692         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88693
88694 2003-06-07  Karl Berry  <karl@gnu.org>
88695
88696         * config/config.{guess,sub}: update from prep.
88697
88698 2003-06-07  Jim Meyering  <jim@meyering.net>
88699
88700         * modules/strtod: Use $(...) notation, not @...@ for
88701         AC_REPLACE'd variables.
88702         * modules/localcharset: Likewise.
88703
88704 2003-06-07  Jim Meyering  <jim@meyering.net>
88705
88706         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88707         in place of my name in the copyright comment.
88708         Remove definition and uses of __P.
88709
88710         From coreutils.
88711         * lib/stat.c: Don't declare xmalloc explicitly.
88712         Instead, include "xalloc.h".
88713         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88714         xrealloc, and xcalloc return values.
88715         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88716         Improve comment.
88717         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88718
88719 2003-06-07  Bruno Haible  <bruno@clisp.org>
88720
88721         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88722         avoid AC_CONFIG_LINKS.
88723         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88724         fnmatch.h, to avoid AC_CONFIG_LINKS.
88725         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88726
88727 2003-06-07  Bruno Haible  <bruno@clisp.org>
88728
88729         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88730         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88731         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88732         directory.
88733         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88734         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88735         directory.
88736
88737 2003-06-06  Jim Meyering  <jim@meyering.net>
88738
88739         Merge from coreutils.
88740         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88741         Consolidate declarations and initializations of *_base* locals.
88742
88743         Merge from coreutils.
88744         This avoids a core dump on systems without GNU putenv,
88745         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88746         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88747         (unsetenv): New static function, from GNU libc.
88748         (rpl_putenv): Use it.
88749
88750         * lib/modechange.c: Remove trailing blanks.
88751
88752         Merge from coreutils.
88753         * lib/fsusage.c: Remove declaration of statfs.
88754         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88755
88756         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88757
88758 2003-06-06  Jim Meyering  <jim@meyering.net>
88759
88760         * lib/stdbool_.h: Renamed from stdbool.h.in.
88761
88762 2003-06-06  Jim Meyering  <jim@meyering.net>
88763             Bruno Haible  <bruno@clisp.org>
88764
88765         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88766         Adjust Makefile.am snippet not to redirect directly to target.
88767         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88768
88769 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88770
88771         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88772         mismatch, look in future quarters as well as past.  This fixes a
88773         bug when processing fall-backwards gaps immediately after a long
88774         period of daylight-saving time.
88775
88776         * lib/mktime.c: Assume freestanding C89 or better.
88777         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88778         (__P): Remove; not used.
88779         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88780         (mktime, not_equal_tm, print_tm, check_result,
88781         main): Use prototypes.  Use const * where appropriate.
88782         (main): Fix typo in testing code that uncovered by above changes.
88783         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88784
88785 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88786
88787         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88788         locale.h, localeconv.  This merges changes from coreutils.
88789
88790         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88791         It can be removed after the next Autoconf is released.
88792         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88793         needed.
88794
88795 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88796
88797         * lib/mktime.c: Fix Debian bug 177940
88798         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88799         (localtime_offset): Now long int, not time_t, because we want it
88800         to be guaranteed to be signed.  All uses changed.
88801         (__mktime_internal): If overflow would occur when adding offset,
88802         don't add it.
88803
88804         Merge 'human' changes from coreutils.  Rewrite to support
88805         locale-specific notations like thousands separators.
88806         * lib/human.c: Simplify authorship notice.
88807         Include human.h immediately after config.h.
88808         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88809         <limits.h>: Do not include, since human.h does.
88810         (SIZE_MAX, UINTMAX_MAX): New macros.
88811         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88812         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88813         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88814         (power_letter): Renamed from suffixes.
88815         (generate_suffix_backwards): Remove.
88816         (adjust_value): Now takes int style (because of human.h changes)
88817         and long double value (for greater precision on some platforms).
88818         (group_number): New function.
88819         (human_readable): Use it.  Use integer options, not enum.
88820         Put the options before the sizes in the arg list.
88821         Support all the new options.
88822         The old human_readable function has been removed;
88823         use inttostr.h instead.
88824         (human_readable, default_block_size, humblock):
88825         Use uintmax_t, not int, for block sizes.
88826         (human_readable_inexact, block_size_types): Remove.
88827         (block_size_opts): New constant.
88828         (human_options): Renamed from human_block_size, with new signature
88829         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88830         * lib/human.h: Add copyright and authorship notice.
88831         Include <limits.h> and <stdbool.h> unconditionally.
88832         (PARAMS): Remove.  All uses removed.
88833         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88834         (enum human_inexact_style): Remove tag; now a nameless enum.
88835         (human_floor, human_ceiling, human_round_to_even): Now have
88836         values 2, 0, 1 rather than -1, 1, 0.
88837         (human_group_digits, human_suppress_point_zero, human_autoscale,
88838         human_base_1024, human_SI, human_B): New constants.
88839         (human_readable_inexact, human_block_size): Remove.
88840         (human_readable): Size args are now uintmax_t, not int.
88841         (human_options): New decl.
88842
88843         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88844         unnecessary now that we assume C89 or better.  This change
88845         imported from coreutils.
88846
88847         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88848         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88849         in the 2003-05-30 sync from glibc.
88850
88851         .h files should stand alone, but we shouldn't include <sys/types.h>
88852         if we can get away with just <stddef.h>.
88853
88854         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88855         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88856         rather than <sys/types.h>, as we merely need size_t.
88857         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88858         to get size_t.
88859         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88860         Include <stdio.h>, to get FILE.
88861         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88862         memcasecmp.h has included <stddef.h> and all we need is size_t.
88863         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88864         our interface, instead of including <sys/types.h>
88865
88866 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88867
88868         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88869         now, as glibc mktime is buggy on non-glibc systems.
88870
88871 2003-06-03  Karl Berry  <karl@gnu.org>
88872
88873         * config/config.sub: update from prep.
88874
88875 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88876
88877         [from coreutils]
88878         Fix some minor time-related bugs with POSIX time arguments.
88879         Some valid time stamps were being rejected (notably -1, and
88880         time stamps before 1900 on 64-bit hosts).  And some invalid
88881         time stamps were being accepted, e.g. September 31.
88882
88883         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88884         that we can return (time_t) -1 successfully.
88885         * lib/posixtm.c: Likewise.
88886         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88887         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88888         (t): Remove static var.
88889         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88890         of static var.  All uses changed.
88891         (year): Do not reject years before 1900; they can occur with
88892         64-bit time_t.
88893         (posix_time_parse): Do not check for out-of-range components;
88894         that is now the caller's responsibility, since our checks were
88895         only approximations.
88896         (posixtime): Use mktime to check for out-of-range components,
88897         since it knows them exactly.
88898         If mktime returns (time_t) -1, check whether an error actually occurred
88899         by invoking localtime on -1.
88900         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88901         posixtime failures better.
88902         Improve the test data (in comments only).
88903
88904 2003-06-02  Karl Berry  <karl@gnu.org>
88905
88906         * config/mkinstalldirs (version): new variable.
88907         (--version): new option.
88908         (usage): improve message.
88909
88910 2003-05-30  Karl Berry  <karl@gnu.org>
88911
88912         * lib/mktime.c: update from libc.
88913
88914 2003-05-30  Bruno Haible  <bruno@clisp.org>
88915
88916         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88917         * config/config.rpath: Upgrade to gettext-0.12.1.
88918
88919 2003-05-30  Bruno Haible  <bruno@clisp.org>
88920
88921         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88922         * m4/nls.m4: New file, from gettext-0.12.1.
88923         * m4/po.m4: New file, from gettext-0.12.1.
88924         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88925
88926 2003-05-30  Bruno Haible  <bruno@clisp.org>
88927
88928         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88929         * lib/localcharset.h: Likewise.
88930         * lib/localcharset.c: Likewise.
88931
88932 2003-05-29  Karl Berry  <karl@gnu.org>
88933
88934         * config/config.rpath: update from gettext.
88935
88936 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88937
88938         Assume the headers required for C89 freestanding compilers.
88939         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88940         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88941         * m4/human.m4 (gl_HUMAN): Likewise.
88942         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88943         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88944         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88945         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88947         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88948
88949 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88950
88951         Assume the headers required for C89 freestanding compilers.
88952         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88953         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88954         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88955         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88956         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88957         define, since <limits.h> is guaranteed to do that.
88958         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88959         * lib/exclude.c: Include <stdbool.h> unconditionally.
88960         * lib/tempname.c: Include <stddef.h> unconditionally.
88961         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88962         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88963         <stddef.h> does that.
88964         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88965         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88966         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88967         needed.
88968         * lib/xstrtol.c: Likewise.
88969         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88970         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88971
88972         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88973         warnings on some platforms.
88974
88975         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88976         arbitrarily.
88977
88978 2003-05-26  Jim Meyering  <jim@meyering.net>
88979
88980         Merge in a change from coreutils:
88981         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88982         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88983         that condition, rather than `-1' which is slightly misleading.
88984         Change the name of the cache variable to have the gl_ prefix.
88985         Prompted by a patch from Richard Dawe for DJGPP.
88986
88987 2003-05-24  Karl Berry  <karl@gnu.org>
88988
88989         * config/config.guess: update from prep.
88990
88991 2003-05-22  Karl Berry  <karl@gnu.org>
88992
88993         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88994
88995 2003-05-20  Karl Berry  <karl@gnu.org>
88996
88997         * config/config.guess: update from prep.
88998
88999 2003-05-18  Karl Berry  <karl@gnu.org>
89000
89001         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89002         might actually be set by the user.
89003
89004         * config/depcomp, install-sh, mdate-sh: update from automake.
89005
89006 2003-05-17  Bruno Haible  <bruno@clisp.org>
89007
89008         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89009         invalid expansion for AC_EGREP_CPP.
89010         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89011         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89012         Suggested by Akim Demaille <akim@epita.fr> in
89013         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89014
89015 2003-05-12  Jim Meyering  <jim@meyering.net>
89016
89017         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89018         the space-padded-by-default conversion specifiers, %e, %k, %l.
89019
89020 2003-05-12  Bruno Haible  <bruno@clisp.org>
89021
89022         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89023         the string is longer than 4 KB.
89024
89025 2003-05-11  Karl Berry  <karl@gnu.org>
89026
89027         * config/config.{guess,sub}: update from prep.
89028
89029 2003-05-09  Bruno Haible  <bruno@clisp.org>
89030
89031         * modules/error: Add m4/strerror_r.m4 to file list.
89032
89033 2003-05-03  Bruno Haible  <bruno@clisp.org>
89034
89035         Upgrade to Unicode-4.0.
89036         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89037         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89038         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89039         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89040         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89041         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89042         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89043         Change width of U+E0100..U+E01EF from 1 to 0.
89044
89045 2003-04-25  Jim Meyering  <jim@meyering.net>
89046
89047         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89048         of type size_t, not int.
89049
89050 2003-04-25  Bruno Haible  <bruno@clisp.org>
89051
89052         * lib/copy-file.c: Include <stddef.h>, for size_t.
89053
89054 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89055
89056         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89057         code which expansion is under static control.  Patch imported from
89058         Akim Demaille's patch to Bison; see
89059         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89060
89061 2003-04-14  Bruno Haible  <bruno@clisp.org>
89062
89063         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89064
89065 2003-04-11  Jim Meyering  <jim@meyering.net>
89066
89067         Merge changes from Coreutils.
89068
89069         2003-03-22  Jim Meyering  <jim@meyering.net>
89070
89071         * lib/strftime.c (widen): Cast alloca return value to proper type.
89072
89073         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89074
89075         From GNU libc.
89076         * lib/strftime.c (my_strftime): Handle very large width
89077         specifications for numeric values correctly.  Improve checks for
89078         overflow.
89079
89080         2003-01-19  Jim Meyering  <jim@meyering.net>
89081
89082         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89083         definitions.
89084         (nl_get_alt_digit) [! defined my_strftime]: Define.
89085         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89086         _nl_get_alt_digit and _nl_get_walt_digit.
89087
89088         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89089         libc. These changes have no effect outside of _LIBC.
89090
89091 2003-04-10  Bruno Haible  <bruno@clisp.org>
89092
89093         * modules/findprog: New file.
89094         * MODULES.html.sh (func_all_modules): Add it.
89095
89096 2003-04-10  Bruno Haible  <bruno@clisp.org>
89097
89098         * m4/findprog.m4: New file.
89099         * m4/eaccess.m4: New file.
89100
89101 2003-04-10  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/findprog.h: New file, from GNU gettext.
89104         * lib/findprog.c: New file, from GNU gettext.
89105
89106 2003-04-05  Jim Meyering  <jim@meyering.net>
89107
89108         Merge changes from Coreutils.
89109
89110         * lib/exclude.h (PARAMS): Remove definition and uses.
89111         * lib/exclude.c: Remove uses of `PARAMS'.
89112
89113         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89114         Add test-cases for DOS filenames. Declare program_name.
89115         (main): Set up program_name.  Patch by Rich Dawe.
89116
89117         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89118         error from mntctl.
89119         Use mntctl's return value to drive the entry-processing loop, since
89120         we can't rely on the value of the vmt_length member in the last
89121         entry.  On some systems doing so could result in exhausting
89122         virtual memory.  Based in part on a patch from Mike Jetzer.
89123
89124 2003-04-04  Bruno Haible  <bruno@clisp.org>
89125
89126         * modules/linebreak: New file.
89127         * MODULES.html.sh (func_all_modules): Add it.
89128
89129 2003-04-04  Bruno Haible  <bruno@clisp.org>
89130
89131         * m4/linebreak.m4: New file.
89132
89133 2003-04-04  Bruno Haible  <bruno@clisp.org>
89134
89135         * lib/linebreak.h: New file, from GNU gettext.
89136         * lib/linebreak.c: New file, from GNU gettext with slight
89137         modifications.
89138         * lib/lbrkprop.h: New file, from GNU gettext.
89139
89140 2003-04-03  Bruno Haible  <bruno@clisp.org>
89141
89142         * modules/utf8-ucs4: New file.
89143         * modules/utf16-ucs4: New file.
89144         * modules/ucs4-utf8: New file.
89145         * modules/ucs4-utf16: New file.
89146         * MODULES.html.sh (func_all_modules): Add them.
89147
89148 2003-04-03  Bruno Haible  <bruno@clisp.org>
89149
89150         * m4/utf-ucs4.m4: New file.
89151         * m4/ucs4-utf.m4: New file.
89152
89153 2003-04-03  Bruno Haible  <bruno@clisp.org>
89154
89155         * lib/utf8-ucs4.h: New file, from GNU gettext.
89156         * lib/utf16-ucs4.h: New file, from GNU gettext.
89157         * lib/ucs4-utf8.h: New file, from GNU gettext.
89158         * lib/ucs4-utf16.h: New file, from GNU gettext.
89159
89160 2003-04-02  Bruno Haible  <bruno@clisp.org>
89161
89162         * modules/binary-io: New file.
89163         * MODULES.html.sh (func_all_modules): Add it.
89164
89165 2003-04-02  Bruno Haible  <bruno@clisp.org>
89166
89167         * lib/binary-io.h: New file, from GNU gettext.
89168
89169 2003-04-01  Bruno Haible  <bruno@clisp.org>
89170
89171         * modules/pathname: New file.
89172         * MODULES.html.sh (func_all_modules): Add it.
89173
89174 2003-04-01  Bruno Haible  <bruno@clisp.org>
89175
89176         * lib/pathname.h: New file, from GNU gettext.
89177         * lib/concatpath.c: New file, from GNU gettext.
89178
89179 2003-03-30  Bruno Haible  <bruno@clisp.org>
89180
89181         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89182
89183 2003-03-30  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89186         function chown() doesn't exist.
89187
89188 2003-03-28  Bruno Haible  <bruno@clisp.org>
89189
89190         * modules/copy-file: New file.
89191         * MODULES.html.sh (func_all_modules): Add it.
89192
89193 2003-03-28  Bruno Haible  <bruno@clisp.org>
89194
89195         * m4/copy-file.m4: New file.
89196
89197 2003-03-28  Bruno Haible  <bruno@clisp.org>
89198
89199         * lib/copy-file.h: New file, from GNU gettext.
89200         * lib/copy-file.c: New file, from GNU gettext.
89201
89202 2003-03-18  Jim Meyering  <jim@meyering.net>
89203
89204         * lib/quote.c (quote_n): Fix typo in comment.
89205
89206 2003-03-18  Bruno Haible  <bruno@clisp.org>
89207
89208         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89209         checking.
89210         * m4/onceonly_2_57.m4: Likewise.
89211
89212 2003-03-17  Bruno Haible  <bruno@clisp.org>
89213
89214         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89215         (m4_quote): Remove macro.
89216         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89217
89218 2003-03-14  Jim Meyering  <jim@meyering.net>
89219
89220         Merge changes from Coreutils.
89221         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89222         to be const, in order to avoid warnings.
89223         (obstack_room): Likewise.
89224         (obstack_empty_p): Likewise.
89225
89226 2003-03-14  Bruno Haible  <bruno@clisp.org>
89227
89228         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89229         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89230
89231 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89232
89233         Merge changes from Bison.
89234         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89235         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89236         when compiling Bison 1.875's `bitset bset = obstack_alloc
89237         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89238         * lib/hash.c: Include <stdbool.h> unconditionally.
89239
89240 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89241
89242         * m4/onceonly.m4 (m4_quote): New macro.
89243         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89244         Quote AC_FOREACH variable-expansions properly.
89245
89246 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89247
89248         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89249
89250 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89251
89252         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89253         Reported by Bruce Becker; see:
89254         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89255
89256 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89257             Bruno Haible  <bruno@clisp.org>
89258
89259         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89260         Reported by John Hughes, see
89261         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89262
89263 2003-02-20  Bruno Haible  <bruno@clisp.org>
89264
89265         * MODULES.html.sh (func_all_modules): Add poll.
89266
89267 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89268
89269         * modules/poll: New file.
89270
89271 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89272
89273         * lib/poll_.h: New file.
89274         * lib/poll.c: New file.
89275
89276 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89277
89278         * m4/poll.m4: New file.
89279
89280 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89281
89282         * modules/mathl: New file.
89283
89284 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89285
89286         * lib/mathl.h: New file.
89287         * lib/acosl.c: New file.
89288         * lib/asinl.c: New file.
89289         * lib/atanl.c: New file.
89290         * lib/ceill.c: New file.
89291         * lib/cosl.c: New file.
89292         * lib/expl.c: New file.
89293         * lib/floorl.c: New file.
89294         * lib/frexpl.c: New file.
89295         * lib/ldexpl.c: New file.
89296         * lib/logl.c: New file.
89297         * lib/sincosl.c: New file.
89298         * lib/sinl.c: New file.
89299         * lib/sqrtl.c: New file.
89300         * lib/tanl.c: New file.
89301         * lib/trigl.c: New file.
89302         * lib/trigl.h: New file.
89303
89304 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89305
89306         * m4/mathl.m4: New file.
89307
89308 2003-02-18  Bruno Haible  <bruno@clisp.org>
89309
89310         * MODULES.html.sh (func_all_modules): Add mathl.
89311
89312 2003-02-17  Bruno Haible  <bruno@clisp.org>
89313
89314         * modules/mkdtemp: New module.
89315         * MODULES.html.sh (func_all_modules): Add it.
89316
89317 2003-02-17  Bruno Haible  <bruno@clisp.org>
89318
89319         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89320
89321 2003-02-17  Bruno Haible  <bruno@clisp.org>
89322
89323         * lib/mkdtemp.h: New file, from GNU gettext.
89324         * lib/mkdtemp.c: New file, from GNU gettext.
89325
89326 2003-02-02  Jim Meyering  <jim@meyering.net>
89327
89328         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89329         e.g. glibc-2.2.93.
89330
89331 2003-01-31  Bruno Haible  <bruno@clisp.org>
89332
89333         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89334         'rpl_rename'.
89335         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89336         'rpl_strnlen'.
89337         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89338         'rpl_strtod'.
89339         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89340         'rpl_utime'.
89341
89342 2003-01-31  Bruno Haible  <bruno@clisp.org>
89343
89344         * lib/rename.c: #undef rename before defining rpl_rename.
89345         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89346
89347 2003-01-30  Bruno Haible  <bruno@clisp.org>
89348
89349         * modules/vasnprintf, modules/vasprintf: New modules.
89350         * MODULES.html.sh (func_all_modules): Add them.
89351
89352 2003-01-30  Bruno Haible  <bruno@clisp.org>
89353
89354         * m4/signed.m4: New file, from GNU gettext.
89355         * m4/longdouble.m4: New file, from GNU gettext.
89356         * m4/wchar_t.m4: New file, from GNU gettext.
89357         * m4/wint_t.m4: New file, from GNU gettext.
89358         * m4/vasnprintf.m4: New file.
89359         * m4/vasprintf.m4: New file.
89360
89361 2003-01-30  Bruno Haible  <bruno@clisp.org>
89362
89363         * lib/printf-args.h: New file, from GNU gettext.
89364         * lib/printf-args.c: New file, from GNU gettext.
89365         * lib/printf-parse.h: New file, from GNU gettext.
89366         * lib/printf-parse.c: New file, from GNU gettext.
89367         * lib/vasnprintf.h: New file, from GNU gettext.
89368         * lib/vasnprintf.c: New file, from GNU gettext.
89369         * lib/asnprintf.c: New file, from GNU gettext.
89370         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89371         * lib/vasprintf.c: New file, from GNU gettext.
89372         * lib/asprintf.c: New file, from GNU gettext.
89373
89374 2003-01-29  Bruno Haible  <bruno@clisp.org>
89375
89376         * modules/stpncpy: New module.
89377         * MODULES.html.sh (func_all_modules): Add it.
89378
89379 2003-01-29  Bruno Haible  <bruno@clisp.org>
89380
89381         * m4/stpncpy.m4: New file.
89382
89383 2003-01-29  Bruno Haible  <bruno@clisp.org>
89384
89385         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89386         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89387
89388 2003-01-28  Bruno Haible  <bruno@clisp.org>
89389
89390         * modules/c-ctype: New module.
89391         * MODULES.html.sh (func_all_modules): Add it.
89392
89393 2003-01-28  Bruno Haible  <bruno@clisp.org>
89394
89395         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89396         Paul Eggert.
89397         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89398         Paul Eggert.
89399
89400 2003-01-27  Bruno Haible  <bruno@clisp.org>
89401
89402         * modules/xsetenv: New module.
89403         * MODULES.html.sh (func_all_modules): Add it.
89404
89405 2003-01-27  Bruno Haible  <bruno@clisp.org>
89406
89407         * lib/xsetenv.h: New file, from GNU gettext.
89408         * lib/xsetenv.c: New file, from GNU gettext.
89409
89410 2003-01-23  Jim Meyering  <jim@meyering.net>
89411
89412         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89413         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89414
89415 2003-01-23  Bruno Haible  <bruno@clisp.org>
89416
89417         * modules/minmax: New module.
89418         * MODULES.html.sh (func_all_modules): Add it.
89419
89420 2003-01-23  Bruno Haible  <bruno@clisp.org>
89421
89422         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89423         Eggert.
89424
89425 2003-01-22  Bruno Haible  <bruno@clisp.org>
89426
89427         * modules/exit: New module.
89428         * MODULES.html.sh (func_all_modules): Add it.
89429
89430 2003-01-22  Bruno Haible  <bruno@clisp.org>
89431
89432         * lib/exit.h: New file, from GNU gettext.
89433
89434 2003-01-19  Bruno Haible  <bruno@clisp.org>
89435
89436         * gnulib-tool: Recognize option --extract-maintainer.
89437         (func_get_maintainer): New function.
89438         * modules/*: Add Maintainer entry.
89439
89440 2003-01-16  Jim Meyering  <jim@meyering.net>
89441
89442         * m4/regex.m4: The `regex' struct is both input and output.
89443         Initialize it before each use.  Patch by Tim Waugh.
89444
89445 2003-01-16  Bruno Haible  <bruno@clisp.org>
89446
89447         * MODULES.html.sh: Add a table of contents. Add the module name as
89448         leftmost column. Add hyperlinks.
89449
89450 2003-01-15  Bruno Haible  <bruno@clisp.org>
89451
89452         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89453
89454 2003-01-15  Bruno Haible  <bruno@clisp.org>
89455
89456         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89457         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89458         suffix.
89459
89460 2003-01-15  Bruno Haible  <bruno@clisp.org>
89461
89462         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89463
89464 2003-01-15  Bruno Haible  <bruno@clisp.org>
89465
89466         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89467         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89468
89469 2003-01-14  Jim Meyering  <jim@meyering.net>
89470
89471         * lib/same.c (same_name): Tweak a comment.
89472
89473 2003-01-14  Bruno Haible  <bruno@clisp.org>
89474
89475         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89476         when a string comparison is sufficient.
89477
89478 2003-01-14  Bruno Haible  <bruno@clisp.org>
89479
89480         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89481         'unsigned int'.
89482
89483 2003-01-14  Bruno Haible  <bruno@clisp.org>
89484
89485         * lib/hash-pjw.c: Add comment about low quality of this function.
89486
89487 2003-01-13  Bruno Haible  <bruno@clisp.org>
89488
89489         * modules/stpcpy: Distribute lib/stpcpy.h.
89490         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89491
89492 2003-01-13  Bruno Haible  <bruno@clisp.org>
89493
89494         * modules/*: Add a description.
89495         * modules/strpbrk: Fix Makefile.am snippet.
89496         * modules/strtoimax: Fix dependencies.
89497         * modules/strtoumax: Likewise.
89498
89499 2003-01-13  Bruno Haible  <bruno@clisp.org>
89500
89501         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89502         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89503         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89504
89505 2003-01-13  Bruno Haible  <bruno@clisp.org>
89506
89507         * gnulib-tool (func_create_testdir): Store config/* files in the main
89508         directory.
89509         * config.rpath: Move to ...
89510         * config/config.rpath: ... here.
89511         * modules/gettext: Contains config/config.rpath, not config.rpath.
89512         * modules/iconv: Likewise.
89513
89514 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89515
89516         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89517         to avoid collisions with libcurses and libreadline.
89518
89519         * m4/getstr.m4: Remove.
89520         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89521
89522 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89523
89524         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89525         to avoid collisions with libcurses and libreadline.
89526
89527         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89528         * lib/getstr.h, getstr.c: Remove.
89529         * lib/getline.c: Include "getline.h", to check interface.
89530         Move body of old getstr.c here: this defines MIN_CHUNK and
89531         declares getdelim2, which is renamed from getstr.
89532         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89533
89534         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89535         All uses changed.
89536         * lib/linebuffer.h: Likewise.
89537         (readline): Remove backward-compatibility macro.
89538
89539 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89540
89541         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89542         to avoid collisions with libcurses and libreadline.
89543         * getstr: Remove.
89544         * MODULES.html.sh: Remove getstr.
89545         * modules/getline: Depend on unlocked-io, not getstr.
89546
89547 2003-01-12  Jim Meyering  <jim@meyering.net>
89548
89549         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89550
89551 2003-01-10  Bruno Haible  <bruno@clisp.org>
89552
89553         * modules/alloca: Change Makefile.am requirements. Simplify Include
89554         requirements. Add lib/alloca_.h to file list.
89555
89556 2003-01-10  Bruno Haible  <bruno@clisp.org>
89557
89558         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89559
89560 2003-01-10  Bruno Haible  <bruno@clisp.org>
89561
89562         * lib/alloca_.h: New file.
89563         * lib/getdate.y: Unconditionally include alloca.h.
89564         * lib/makepath.c: Likewise.
89565         * lib/setenv.c: Likewise.
89566         * lib/userspec.c: Likewise.
89567
89568 2003-01-09  Karl Berry  <karl@gnu.org>
89569
89570         * MODULES.html.sh: include `dirname $0` in PATH, to find
89571         gnulib-tool.
89572
89573 2003-01-09  Bruno Haible  <bruno@clisp.org>
89574
89575         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89576         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89577
89578 2003-01-09  Bruno Haible  <bruno@clisp.org>
89579
89580         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89581
89582 2003-01-09  Bruno Haible  <bruno@clisp.org>
89583
89584         * lib/stdbool.h.in: New file.
89585
89586 2003-01-09  Bruno Haible  <bruno@clisp.org>
89587
89588         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89589         * MODULES.html.sh: Likewise.
89590
89591 2003-01-08  Jim Meyering  <jim@meyering.net>
89592
89593         * lib/full-write.c: Undefine and define-away `const' after inclusion
89594         of errno.h, not before.  Suggestion from Bruno Haible.
89595
89596 2003-01-08  Bruno Haible  <bruno@clisp.org>
89597
89598         * modules/full-read: Depend on full-write.
89599
89600 2003-01-08  Bruno Haible  <bruno@clisp.org>
89601
89602         * lib/safe-read.c: Include specification header first, to ensure its
89603         selfcontainedness.
89604         * lib/full-write.c: Likewise.
89605
89606 2003-01-07  Jim Meyering  <jim@meyering.net>
89607
89608         * lib/full-write.c: Rework so that it may serve to define full_read,
89609         too.
89610         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89611
89612 2003-01-07  Bruno Haible  <bruno@clisp.org>
89613
89614         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89615         <inttypes.h>.
89616         * lib/xstrtol.h: Likewise.
89617         * lib/xstrtoimax.c: Likewise.
89618         * lib/xstrtoumax.c: Likewise.
89619         * lib/human.h: Likewise.
89620
89621         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89622         on systems that have <inttypes.h> but not <stdint.h>.
89623
89624 2003-01-07  Bruno Haible  <bruno@clisp.org>
89625
89626         * MODULES.html.sh: Add copyright notice.
89627         (missed_files): Omit CVS directory entries.
89628         (func_module): Make it work with sed-3.02.
89629         * MODULES.txt: Remove file.
89630
89631 2003-01-06  Jim Meyering  <jim@meyering.net>
89632
89633         * lib/version-etc.c: Update year in translatable copyright string.
89634
89635 2003-01-03  Karl Berry  <karl@gnu.org>
89636
89637         * config/config.{guess,sub}: update from prep.
89638
89639 2003-01-02  Karl Berry  <karl@gnu.org>
89640
89641         * doc/COPYING.DOC: belatedly updated to 1.2.
89642
89643 2003-01-01  Karl Berry  <karl@gnu.org>
89644
89645         * gnulib-tool (func_verify_module): report module name $module in
89646         error message, not $1.
89647         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89648         be created, only if it doesn't exist.
89649         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89650
89651 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89652
89653         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89654
89655 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89656
89657         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89658         memcmp if strcoll doesn't work.
89659
89660 2002-12-31  Bruno Haible  <bruno@clisp.org>
89661
89662         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89663         nonempty.
89664
89665 2002-12-31  Bruno Haible  <bruno@clisp.org>
89666
89667         * lib/memcoll.c (STRCOLL): New macro.
89668         (memcoll): Use it.
89669
89670 2002-12-31  Bruno Haible  <bruno@clisp.org>
89671
89672         * lib/localcharset.h: New file.
89673         * lib/localcharset.c: Include it.
89674         * lib/unicodeio.c: Likewise.
89675
89676 2002-12-31  Bruno Haible  <bruno@clisp.org>
89677
89678         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89679         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89680
89681 2002-12-31  Bruno Haible  <bruno@clisp.org>
89682
89683         * lib/getline.h: Include <stddef.h>, for size_t.
89684
89685         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89686         * lib/unicodeio.c: Don't include <stddef.h>.
89687
89688 2002-12-31  Bruno Haible  <bruno@clisp.org>
89689
89690         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89691         HAVE_TM_ZONE.
89692
89693 2002-12-24  Karl Berry  <karl@gnu.org>
89694
89695         * config/config.guess: update from prep.
89696
89697 2002-12-24  Bruno Haible  <bruno@clisp.org>
89698
89699         General infrasructure.
89700         * m4/README: Rewritten.
89701         * m4/onceonly.m4: New file.
89702         * m4/onceonly_2_57.m4: New file.
89703
89704         Module atexit.
89705         * m4/atexit.m4: New file.
89706
89707         Module strtod.
89708         * m4/strtod.m4: New file.
89709
89710         Module strtol.
89711         * m4/strtol.m4: New file.
89712
89713         Module strtoul.
89714         * m4/strtoul.m4: New file.
89715
89716         Module memchr.
89717         * m4/memchr.m4: New file.
89718
89719         Module memcmp.
89720         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89721         (jm_FUNC_MEMCMP): Invoke it.
89722
89723         Module memcpy.
89724         * m4/memcpy.m4: New file.
89725
89726         Module memmove.
89727         * m4/memmove.m4: New file.
89728
89729         Module memset.
89730         * m4/memset.m4: New file.
89731
89732         Module strcspn.
89733         * m4/strcspn.m4: New file.
89734
89735         Module strpbrk.
89736         * m4/strpbrk.m4: New file.
89737
89738         Module strstr.
89739         * m4/strstr.m4: New file.
89740
89741         Module strerror.
89742         * m4/strerror.m4: New file.
89743
89744         Module mktime.
89745         * m4/mktime.m4: Renamed from jm-mktime.m4.
89746         (gl_PREREQ_MKTIME): New macro.
89747         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89748
89749         Module malloc.
89750         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89751         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89752         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89753
89754         Module realloc.
89755         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89756         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89757         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89758
89759         Module strftime.
89760         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89761         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89762         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89763         gl_TM_GMTOFF.
89764         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89765
89766         Module xalloc.
89767         * m4/xalloc.m4: New file.
89768
89769         Module alloca.
89770         * m4/alloca.m4: New file.
89771
89772         Module putenv.
89773         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89774         (jm_FUNC_PUTENV): Invoke it.
89775
89776         Module setenv.
89777         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89778         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89779         when invoked twice.
89780         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89781         gt_FUNC_SETENV.
89782
89783         Module memrchr.
89784         * m4/memrchr.m4: New file.
89785
89786         Module stpcpy.
89787         * m4/stpcpy.m4: New file.
89788
89789         Module strcase.
89790         * m4/strcase.m4: New file.
89791
89792         Module strdup.
89793         * m4/strdup.m4: New file.
89794
89795         Module strnlen.
89796         * m4/strnlen.m4: New file.
89797
89798         Module strndup.
89799         * m4/strndup.m4: New file.
89800
89801         Module xstrtod.
89802         * m4/xstrtod.m4: New file.
89803
89804         Module xstrtol.
89805         * m4/xstrtol.m4: New file.
89806
89807         Module getdate.
89808         * m4/getdate.m4: New file.
89809
89810         Module unlocked-io.
89811         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89812         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89813         * m4/jm-glibc-io.m4n: Remove file.
89814
89815         Module long-options.
89816         * m4/long-options.m4: New file.
89817
89818         Module md5.
89819         * m4/md5.m4: New file.
89820
89821         Module sha.
89822         * m4/sha.m4: New file.
89823
89824         Module getstr.
89825         * m4/getstr.m4: New file.
89826
89827         Module getline.
89828         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89829         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89830         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89831         simply getline. Infoke gl_PREREQ_GETLINE.
89832
89833         Module obstack.
89834         * m4/obstack.m4: New file.
89835
89836         Module hash.
89837         * m4/hash.m4: New file.
89838
89839         Module readtokens.
89840         * m4/readtokens.m4: New file.
89841
89842         Module strverscmp.
89843         * m4/strverscmp.m4: New file.
89844
89845         Module stdbool.
89846         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89847         OSF/1.
89848
89849         Module strtoll.
89850         * m4/strtoll.m4: New file.
89851
89852         Module strtoull.
89853         * m4/strtoull.m4: New file.
89854
89855         Module strtoimax.
89856         * m4/strtoimax.m4: New file.
89857
89858         Module strtoumax.
89859         * m4/strtoumax.m4: New file.
89860
89861         Module xstrtoimax.
89862         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89863         jm_AC_PREREQ_XSTRTOIMAX.
89864         Moved the strtol prerequisites to strtol.m4.
89865         Moved the strtoll prerequisites to strtoll.m4.
89866         Moved the strtoimax prerequisites to strtoimax.m4.
89867
89868         Module xstrtoumax.
89869         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89870         jm_AC_PREREQ_XSTRTOUMAX.
89871         Moved the strtoul prerequisites to strtoul.m4.
89872         Moved the strtoull prerequisites to strtoull.m4.
89873         Moved the strtoumax prerequisites to strtoumax.m4.
89874
89875         Module chown.
89876         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89877         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89878
89879         Module dup2.
89880         * m4/dup2.m4: New file.
89881
89882         Module ftruncate.
89883         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89884         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89885
89886         Module getgroups.
89887         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89888         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89889
89890         Module gettimeofday.
89891         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89892         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89893         gl_PREREQ_GETTIMEOFDAY.
89894
89895         Module mkdir.
89896         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89897         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89898
89899         Module mkstemp.
89900         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89901         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89902         jm_AC_TYPE_UINTMAX_T.
89903         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89904
89905         Module stat.
89906         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89907         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89908
89909         Module lstat.
89910         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89911         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89912
89913         Module timespec.
89914         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89915         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89916         * m4/st_mtim.m4: Indentation.
89917
89918         Module nanosleep.
89919         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89920         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89921         gl_PREREQ_NANOSLEEP.
89922
89923         Module regex.
89924         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89925         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89926         (gl_REGEX): New macro.
89927
89928         Module rename.
89929         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89930         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89931
89932         Module rmdir.
89933         * m4/rmdir.m4: New file.
89934
89935         Module utime.
89936         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89937         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89938         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89939
89940         Module dirname.
89941         * m4/dirname.m4: New file.
89942
89943         Module getopt.
89944         * m4/getopt.m4: New file.
89945
89946         Module unistd-safer.
89947         * m4/unistd-safer.m4: New file.
89948
89949         Module fnmatch.
89950         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89951         declaration.
89952         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89953         (gl_FUNC_FNMATCH_POSIX): New macro.
89954         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89955         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89956         simply fnmatch.
89957
89958         Module exclude.
89959         * m4/exclude.m4: New file.
89960
89961         Module human.
89962         * m4/human.m4: New file.
89963
89964         Module acl.
89965         * m4/acl.m4: Nop.
89966
89967         Module backupfile.
89968         * m4/backupfile.m4: New file.
89969         * m4/d-ino.m4: Indentation.
89970
89971         Module fsusage.
89972         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89973         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89974         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89975
89976         Module dirfd.
89977         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89978         requirements.
89979
89980         Module euidaccess.
89981         * m4/euidaccess.m4: New file.
89982
89983         Module file-type.
89984         * m4/file-type.m4: New file.
89985
89986         Module fileblocks.
89987         * m4/fileblocks.m4: New file.
89988
89989         Module filemode.
89990         * m4/filemode.m4: New file.
89991
89992         Module isdir.
89993         * m4/isdir.m4: New file.
89994
89995         Module lchown.
89996         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89997         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89998
89999         Module makepath.
90000         * m4/makepath.m4: New file.
90001
90002         Module modechange.
90003         * m4/modechange.m4: New file.
90004
90005         Module mountlist.
90006         * m4/mountlist.m4: New file.
90007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90008         Indentation.
90009
90010         Module path-concat.
90011         * m4/path-concat.m4: New file.
90012
90013         Module pathmax.
90014         * m4/pathmax.m4: New file.
90015
90016         Module same.
90017         * m4/same.m4: New file.
90018
90019         Module save-cwd.
90020         * m4/save-cwd.m4: New file.
90021
90022         Module savedir.
90023         * m4/savedir.m4: New file.
90024
90025         Module xgetcwd.
90026         * m4/xgetcwd.m4: New file.
90027         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90028
90029         Module xreadlink.
90030         * m4/xreadlink.m4: New file.
90031
90032         Module safe-read.
90033         * m4/safe-read.m4: New file.
90034
90035         Module safe-write.
90036         * m4/safe-write.m4: New file.
90037
90038         Module closeout.
90039         * m4/closeout.m4: New file.
90040
90041         Module stdio-safer.
90042         * m4/stdio-safer.m4: New file.
90043
90044         Module getpass.
90045         * m4/getpass.m4: New file.
90046
90047         Module getugroups.
90048         * m4/getugroups.m4: New file.
90049
90050         Module group-member.
90051         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90052         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90053
90054         Module idcache.
90055         * m4/idcache.m4: New file.
90056
90057         Module userspec.
90058         * m4/userspec.m4: New file.
90059
90060         Module gettime.
90061         * m4/clock_time.m4: New file.
90062         * m4/gettime.m4: New file.
90063
90064         Module settime.
90065         * m4/settime.m4: New file.
90066
90067         Module posixtm.
90068         * m4/posixtm.m4: New file.
90069
90070         Module gethostname.
90071         * m4/gethostname.m4: New file.
90072
90073         Module canon-host.
90074         * m4/canon-host.m4: New file.
90075
90076         Module gettext.
90077         * m4/codeset.m4: New file, from gettext-0.11.5.
90078         * m4/gettext.m4: New file, from gettext-0.11.5.
90079         * m4/glibc21.m4: New file, from gettext-0.11.5.
90080         * m4/iconv.m4: New file, from gettext-0.11.5.
90081         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90082         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90083         * m4/inttypes.m4: New file, from gettext-0.11.5.
90084         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90085         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90086         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90087         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90088         * m4/lib-link.m4: New file, from gettext-0.11.5.
90089         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90090         * m4/progtest.m4: New file, from gettext-0.11.5.
90091         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90092         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90093         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90094
90095         Module localcharset.
90096         * m4/localcharset.m4: New file.
90097
90098         Module hard-locale.
90099         * m4/hard-locale.m4: New file.
90100
90101         Module mbswidth.
90102         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90103         onceonly macros.
90104         * m4/mbrtowc.m4: Add comment.
90105
90106         Module memcasecmp.
90107         * m4/memcasecmp.m4: New file.
90108
90109         Module memcoll.
90110         * m4/memcoll.m4: New file.
90111
90112         Module unicodeio.
90113         * m4/unicodeio.m4: New file.
90114
90115         Module rpmatch.
90116         * m4/rpmatch.m4: New file.
90117
90118         Module yesno.
90119         * m4/yesno.m4: New file.
90120
90121         Module exitfail.
90122         * m4/exitfail.m4: New file.
90123
90124         Module c-stack.
90125         * m4/c-stack.m4 (gl_C_STACK): New macro.
90126         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90127
90128         Module error.
90129         * m4/error.m4 (gl_ERROR): New macro.
90130         (jm_PREREQ_ERROR): Use onceonly macros.
90131
90132         Module fatal.
90133         * m4/fatal.m4: New file.
90134
90135         Module getloadavg.
90136         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90137         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90138
90139         Module getpagesize.
90140         * m4/getpagesize.m4: New file.
90141
90142         Module getusershell.
90143         * m4/getusershell.m4: New file.
90144
90145         Module physmem.
90146         * m4/physmem.m4: New file.
90147
90148         Module posixver.
90149         * m4/posixver.m4: New file.
90150
90151         Module quotearg.
90152         * m4/quotearg.m4: New file.
90153
90154         Module quote.
90155         * m4/quote.m4: New file.
90156
90157         Module readutmp.
90158         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90159
90160         Module sig2str.
90161         * m4/sig2str.m4: New file.
90162
90163         Other.
90164         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90165         ulonglong.m4.
90166         * m4/intmax_t.m4: New file.
90167         * m4/d-type.m4: Indentation.
90168         * m4/jm-macros.m4: Update.
90169         * m4/prereq.m4 (jm_PREREQ): Update.
90170         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90171         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90172         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90173         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90174         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90175         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90176         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90177         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90178         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90179         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90180         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90181         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90182         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90183         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90184         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90185         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90186         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90187         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90188         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90189
90190 2002-12-24  Bruno Haible  <bruno@clisp.org>
90191
90192         * MODULES.txt: Update according to m4/ changes.
90193
90194         Module gettext.
90195         * config.rpath: New file, from gettext-0.11.5.
90196
90197         * modules/*: New module descriptions.
90198         * gnulib-tool: New file.
90199         * MODULES.html.sh: New file.
90200
90201 2002-12-21  Karl Berry  <karl@gnu.org>
90202
90203         * doc/fdl.texi: update to version 1.2.
90204
90205 2002-12-19  Karl Berry  <karl@gnu.org>
90206
90207         * config/config.guess: update from prep.
90208
90209 2002-12-18  Bruno Haible  <bruno@clisp.org>
90210
90211         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90212         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90213
90214 2002-12-17  Bruno Haible  <bruno@clisp.org>
90215
90216         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90217         stdlib.h, string.h.
90218
90219 2002-12-17  Bruno Haible  <bruno@clisp.org>
90220
90221         * lib/canon-host.c (strdup): Remove unused declaration.
90222
90223         * lib/fsusage.c: Include full_read.h.
90224         (get_fs_usage): Use full_read instead of safe_read.
90225
90226         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90227
90228 2002-12-12  Karl Berry  <karl@gnu.org>
90229
90230         * config/config.guess: update from prep.
90231
90232 2002-12-11  Bruno Haible  <bruno@clisp.org>
90233
90234         * m4/setenv.m4: New file, from gettext-0.11.5.
90235
90236 2002-12-11  Bruno Haible  <bruno@clisp.org>
90237
90238         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90239         not unsetenv().
90240         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90241         modifications:
90242
90243         2002-12-11  Bruno Haible  <bruno@clisp.org>
90244
90245                 * setenv.c (alloca): Fall back to malloc.
90246                 (freea): New macro.
90247                 (setenv): Use freea() to free memory allocated with alloca().
90248
90249         2002-11-13  Bruno Haible  <bruno@clisp.org>
90250
90251                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90252                 function declarations.
90253                 * unsetenv.c (unsetenv): Likewise.
90254
90255         2002-03-04  Bruno Haible  <bruno@clisp.org>
90256
90257                 Portability to AIX 4.3.3.
90258                 * unsetenv.c: New file, extracted from setenv.c.
90259                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90260
90261         2001-12-20  Bruno Haible  <bruno@clisp.org>
90262
90263                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90264                 use malloc instead. For SunOS 4.
90265
90266         2001-12-11  Bruno Haible  <bruno@clisp.org>
90267
90268                 * setenv.c: Declare alloca.
90269                 (compar_fn_t): New typedef.
90270                 (KNOWN_VALUE, STORE_VALUE): Use it.
90271
90272         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90273         setenv.h.
90274
90275 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90276
90277         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90278         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90279         Choose values that are less likely to collide with system fnmatch
90280         options.
90281         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90282         defined (e.g., a pure POSIX system).
90283         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90284         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90285
90286 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90287
90288         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90289         a pain in practice to deal with generated m4 files.  This change
90290         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90291
90292         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90293         and jm-glibc-io.m4, as they are no longer a special case.
90294         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90295         kludge and the auto-generation stuff.  Check only whether the
90296         functions are declared, not whether they exist, since older hosts
90297         that don't declare the functions can't use the optimization anyway.
90298
90299 2002-12-06  Jim Meyering  <jim@meyering.net>
90300
90301         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90302
90303         Merge in changes from libc's misc/error.c, in preparation
90304         for the merge of gnulib's changes back into libc.
90305
90306         * lib/error.c (_): Define only if not already defined.
90307         Move definition to follow all #include directives.
90308         Include unlocked-io.h only if !_LIBC.
90309         [_LIBC]: Include <libio/libioP.h>.
90310         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90311         (fflush): Tweak definition to use INTUSE.
90312         (putc): Define.
90313
90314 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90315
90316         * lib/alloca.c [defined emacs]: Include "lisp.h".
90317         (xalloc_die) [defined emacs]: New macro.
90318         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90319         [! defined emacs]: Include <xalloc.h>.
90320         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90321         (pointer): Typedef to POINTER_TYPE *.
90322         (malloc): Remove decl; we now always use xmalloc.
90323         (alloca): Use old-style definition, since Emacs needs this.
90324         Check for arithmetic overflow when computing combined size.
90325
90326 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90327
90328         Do not generate unlocked-io.h automatically, since it's easier to
90329         maintain it by hand.
90330
90331         * lib/unlocked-io.h: New file, from GNU diffutils,
90332         but with proper copyright notice and attribution.
90333         * lib/gen-uio: Remove.
90334         * lib/Makefile.am: Add copyright notice.
90335         (libfetish_a_SOURCES): Add unlocked-io.h.
90336         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90337         (DISTCLEANFILES, io_functions): Remove macros.
90338         (EXTRA_DIST): Remove gen_uio.
90339         (unlocked-io.h): Remove rule.
90340
90341 2002-12-04  Jim Meyering  <jim@meyering.net>
90342
90343         Reflect the fact that stat.c and lstat.c are no longer generated.
90344         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90345         (DISTCLEANFILES): Likewise.
90346         (EXTRA_DIST): Likewise.
90347         (all_local): Don't depend on stat.c or lstat.c.
90348         (stat.c, lstat.c): Remove rules.
90349         (EXTRA_DIST): Remove xstat.in.
90350
90351         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90352         * lib/stat.c: New file.  Contents mostly from xstat.in.
90353         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90354         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90355
90356         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90357         too.
90358         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90359
90360 2002-12-03  Jim Meyering  <jim@meyering.net>
90361
90362         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90363         but not semantics, to minimize the differences between these two files.
90364         (safe_read): Change comment to mention SAFE_READ_ERROR.
90365
90366         * lib/safe-read.c (IS_EINTR): Define.
90367         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90368
90369 2002-12-02  Jim Meyering  <jim@meyering.net>
90370
90371         * lib/safe-read.c (EINTR): Define.
90372         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90373         (INT_MAX): Provide fallback.
90374         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90375
90376         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90377
90378 2002-12-02  Bruno Haible  <bruno@clisp.org>
90379
90380         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90381         Define, taken from safe-read.c.
90382         (INT_MAX): Provide fallback.
90383         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90384         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90385
90386         * lib/safe-read.c (EINTR): Remove definition.
90387         (safe_read): Don't use EINTR if it is absent.
90388
90389 2002-12-01  Jim Meyering  <jim@meyering.net>
90390
90391         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90392         zero.
90393         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90394
90395 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90396
90397         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90398         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90399         with `if (! (value < limit)) abort ();', for readability.
90400
90401 2002-11-26  Karl Berry  <karl@gnu.org>
90402
90403         * lib/strdup.c: copy from libc again, with jim's ok.
90404         * lib/.cppi-disable: re-add strdup.c
90405
90406 2002-11-25  Karl Berry  <karl@gnu.org>
90407
90408         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90409         instead of "strtol.c".
90410
90411 2002-11-25  Karl Berry  <karl@gnu.org>
90412
90413         * config/install-sh: update from automake for variable quoting, $0 in
90414         error msgs, etc.
90415
90416         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90417         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90418         entry.
90419
90420 2002-11-25  Jim Meyering  <jim@meyering.net>
90421
90422         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90423
90424 2002-11-24  Karl Berry  <karl@gnu.org>
90425
90426         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90427         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90428
90429 2002-11-24  Jim Meyering  <jim@meyering.net>
90430
90431         Update from coreutils:
90432
90433         * lib/mktime.c: Merge in changes from libc.
90434
90435         Avoid a link-time failure on some Linux systems.
90436         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90437         (otherwise).
90438         (__mon_yday): Declare with the STATIC attribute.
90439         (__mktime_internal): Likewise.
90440         Based on a report from Greg Schafer.
90441
90442 2002-11-23  Jim Meyering  <jim@meyering.net>
90443
90444         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90445         Use `unsigned', not `int', as type of index.
90446
90447         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90448
90449         * lib/fsusage.c: Remove unneeded parentheses around operands of
90450         `defined'.
90451
90452 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90453
90454         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90455         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90456         so that we can be included first.
90457         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90458         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90459         No need to include stddef.h or sys/types.h any more.
90460         Surround local include files with "", not "<>".
90461         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90462         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90463         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90464         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90465         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90466         (ISPRINT): Remove; no longer needed now that we assume C89.
90467
90468         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90469         Preserve errno.
90470
90471         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90472         quotearg_char): Use SIZE_MAX rather than
90473         (size_t) -1 when we are talking about "infinity".
90474
90475         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90476
90477 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90478
90479         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90480         hint that one should use `if (! x) abort ();' rather than `assert
90481         (x);', and anyway it's one less thing to worry about configuring.
90482         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90483         hash_rehash, hash_insert): Use abort rather than assert.
90484
90485 2002-11-22  Bruno Haible  <bruno@clisp.org>
90486
90487         * lib/safe-read.h: Assume C89. Add comments.
90488         (safe_read): Change return type to size_t.
90489         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90490         byte counts > SSIZE_MAX correctly.
90491         * lib/safe-write.h: New file.
90492         * lib/safe-write.c: New file.
90493         * lib/full-read.h: New file.
90494         * lib/full-read.c: New file.
90495         * lib/full-write.h: Assume C89. Add comments.
90496         * lib/full-write.c: Include safe-write.h.
90497         (full_write): Rewritten to use safe_write.
90498         Suggested by Jim Meyering and Paul Eggert.
90499
90500 2002-11-21  Jim Meyering  <jim@meyering.net>
90501
90502         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90503
90504         Merge in changes from the coreutils.
90505
90506         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90507         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90508         <stdint.h>.
90509         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90510         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90511         int.  Work more efficiently if X is the same width as uintmax_t.
90512         Do not compare X to -1, to avoid bogus compiler warning.
90513         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90514         Don't assume that f_frsize and f_bsize are the same type.
90515
90516         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90517         warning on FreeBSD.
90518
90519         * lib/makepath.c (make_path): Restore umask *before* creating the final
90520         component.
90521         (make_path): Minor reformatting.
90522
90523         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90524         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90525         HAVE_MALLOC/HAVE_REALLOC.
90526
90527         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90528         dummy ones.  At least on GNU/Linux systems, `auto' means something
90529         else.
90530         From Michael Stone.
90531
90532 2002-11-21  Bruno Haible  <bruno@clisp.org>
90533
90534         Remove case insensitive option matching.
90535         * lib/argmatch.h (argcasematch): Remove declaration.
90536         (ARGCASEMATCH): Remove macro.
90537         (__xargmatch_internal): Remove case_sensitive argument.
90538         (XARGMATCH): Update.
90539         (XARGCASEMATCH): Remove macro.
90540         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90541         case_sensitive argument.
90542         (argcasematch): Remove function.
90543         (__xargmatch_internal): Remove case_sensitive argument.
90544         (main): Use XARGMATCH instead of XARGCASEMATCH.
90545
90546         * lib/xmalloc.c: Change compile-time error message. Add comment about
90547         required autoconf version.
90548
90549 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90550
90551         Merge argmatch cleanups from Bison.  Assume C89.
90552
90553         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90554         Include stdlib.h, for EXIT_FAILURE.
90555         Always include <string.h>, since we assume C89.
90556         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90557         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90558         Include <stddef.h> instead, since it's all we need for size_t.
90559         (PARAMS): Remove.  All uses removed.
90560         (ARRAY_CARDINALITY): Do not bother to #undef.
90561         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90562         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90563         Remove unnecessary parentheses.
90564         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90565         Insert necessary parentheses.
90566         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90567         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90568
90569 2002-11-19  Bruno Haible  <bruno@clisp.org>
90570
90571         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90572         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90573
90574         * lib/mbswidth.h (PARAMS): Remove macro.
90575         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90576         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90577
90578         * lib/gcd.h (PARAMS): Remove macro.
90579         (gcd): Use ANSI C function declarations.
90580         * lib/gcd.c (gcd): Likewise.
90581
90582 2002-11-15  Bruno Haible  <bruno@clisp.org>
90583
90584         * lib/strcspn.c: Include <stddef.h>.
90585         (strcspn): Use ANSI C function declaration. Change return type to
90586         size_t. Use NULL.
90587         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90588         (strpbrk): Use NULL.
90589         * lib/strpbrk.h (PARAMS): Remove macro.
90590         (strpbrk): Use ANSI C function declaration.
90591         * lib/strstr.c: Don't include <sys/types.h>.
90592         * lib/strstr.h (PARAMS): Remove macro.
90593         (strstr): Use ANSI C function declarations.
90594
90595 2002-11-14  Karl Berry  <karl@gnu.org>
90596
90597         * config/mkinstalldirs: `do' on separate line, instead of
90598         `for var; do'.
90599
90600 2002-11-06  Bruno Haible  <bruno@clisp.org>
90601
90602         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90603         * lib/gcd.c (gcd): Likewise.
90604
90605 2002-11-05  Bruno Haible  <bruno@clisp.org>
90606
90607         * lib/gcd.h: New file, from gettext-0.11.5.
90608         * lib/gcd.c: New file, from gettext-0.11.5.
90609
90610 2002-11-05  Bruno Haible  <bruno@clisp.org>
90611
90612         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90613         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90614         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90615         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90616
90617         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90618         <libintl.h>.
90619         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90620         <libintl.h>.
90621
90622         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90623         * lib/human.c: Include gettext.h instead of <libintl.h>.
90624         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90625         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90626         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90627         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90628         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90629         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90630         (textdomain): Remove definition.
90631         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90632
90633         * lib/long-options.c: Remove include of <libintl.h> and definition of
90634         _.
90635         * lib/same.c: Remove include of <libintl.h> and definition of _.
90636
90637 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90638
90639         * lib/config.charset: A few additions for Solaris.
90640
90641 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90642
90643         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90644         * lib/localcharset.c (locale_charset): Declare as extern "C".
90645
90646 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90647
90648         * lib/config.charset: msdos in uk_UA uses CP1125.
90649
90650 2002-11-04  Bruno Haible  <bruno@clisp.org>
90651
90652         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90653         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90654         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90655         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90656         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90657
90658 2002-11-04  Bruno Haible  <bruno@clisp.org>
90659
90660         * lib/localcharset.c (locale_charset): Don't return an empty string.
90661
90662 2002-11-04  Bruno Haible  <bruno@clisp.org>
90663
90664         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90665         aliases.
90666
90667 2002-11-04  Bruno Haible  <bruno@clisp.org>
90668
90669         * lib/config.charset: Update for newest glibc. Add canonical names
90670         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90671
90672 2002-11-04  Bruno Haible  <bruno@clisp.org>
90673
90674         * lib/config.charset: Add support for NetBSD.
90675
90676 2002-11-04  Bruno Haible  <bruno@clisp.org>
90677
90678         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90679
90680 2002-11-01  Bruno Haible  <bruno@clisp.org>
90681
90682         * configure.in: Add AC_CONFIG_AUX_DIR call.
90683         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90684         test/Makefile.
90685         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90686
90687 2002-09-28  Karl Berry  <karl@gnu.org>
90688
90689         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90690         installed automake until the next release, since changes have been
90691         made.
90692
90693 2002-09-25  Karl Berry  <karl@gnu.org>
90694
90695         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90696         * lib/getopt*: copy from libc/posix.
90697         * lib/gettext.h: copy from gettext.
90698         * lib/.cppi-disable: add strdup.c, gettext.h.
90699
90700 2002-09-25  Karl Berry  <karl@gnu.org>
90701
90702         * config/srclist.txt: enable gettext.h check.
90703         * config/config.{guess,sub}: update from prep.
90704         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90705                 from automake 1.6.3.
90706         See srclist*.
90707
90708 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90709
90710         * regex.c (PATFETCH): Remove the translating fetch.
90711         (PATFETCH_RAW): Rename to PATFETCH.
90712         (set_image_of_range): New fun.
90713         (SET_RANGE_TABLE_WORK_AREA): Use it.
90714         (regex_compile): Don't translate the pattern chars so eagerly.
90715         Only do it when inserting an `exactn' bytecode or when handling
90716         a char-range.
90717         (mutually_exclusive_p): Avoid empty statement.
90718
90719 2002-07-06  Jim Meyering  <meyering@lucent.com>
90720
90721         * m4/README: Don't mention Makefile.am.in.
90722         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90723
90724 2002-07-01  Jim Meyering  <meyering@lucent.com>
90725
90726         * lib/c-stack.c: Include sys/time.h.
90727         From Volker Borchert.
90728
90729 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90730
90731         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90732
90733 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90734
90735         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90736         New macro.  Use it uniformly instead of
90737         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90738         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90739         reported by Vin Shelton.
90740
90741 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90742
90743         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90744         Do not assume SA_SIGINFO behavior.
90745         Bug reported by Jim Meyering on NetBSD 1.5.2.
90746
90747 2002-06-22  Jim Meyering  <meyering@lucent.com>
90748
90749         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90750         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90751
90752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90753         now that configure.ac uses AC_GNU_SOURCE.
90754         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90755         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90756
90757         Update to latest tools.  Suggestions from Paul Eggert.
90758         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90759         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90760         * m4/fnmatch.m4: Likewise.
90761         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90762         to AC_HEADER_STDBOOL
90763
90764 2002-06-22  Jim Meyering  <meyering@lucent.com>
90765
90766         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90767         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90768
90769 2002-06-22  Jim Meyering  <meyering@lucent.com>
90770
90771         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90772
90773         * lib/exitfail.c, exitfail.h: Likewise.
90774         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90775
90776         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90777         of fnmatch.h.
90778         (EXTRA_DIST): Add fnmatch_loop.c.
90779         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90780
90781         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90782         * lib/fnmatch.c: Update from diffutils-2.8.2.
90783         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90784         * lib/fnmatch.h: Remove file.
90785
90786 2002-06-21  Jim Meyering  <meyering@lucent.com>
90787
90788         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90789         * m4/mbrtowc.m4: Likewise.
90790
90791         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90792         * m4/mbswidth.m4: Reflect name change:
90793         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90794         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90795
90796         * m4/lib-link.m4: Update from gettext-0.11.2.
90797         * m4/gettext.m4: Likewise.
90798
90799         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90800         From Alfred M. Szmidt.
90801
90802 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90803
90804         * lib/file-type.h: Report an error if neither S_ISREG nor
90805         S_IFREG is defined, instead of using a test specific to glibc
90806         2.2.  This should be safe, since POSIX requires S_ISREG and
90807         Unix Version 7 had S_IFREG.  We don't need to check for
90808         <sys/types.h> since we don't use any symbols that it defines.
90809
90810 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90811
90812         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90813         $@-t, so that each temporary file name is unique and valid in the first
90814         8 characters, for operation under DOS.
90815
90816 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90817
90818         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90819
90820 2002-06-15  Jim Meyering  <meyering@lucent.com>
90821
90822         Work even with DJGPP 2.03, which lacks support for symlinks.
90823         From Richard Dawe.
90824         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90825         is defined.
90826         * lib/lchown.c (S_ISLNK): Likewise.
90827
90828 2002-06-15  Jim Meyering  <meyering@lucent.com>
90829
90830         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90831         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90832         have been included before this file.
90833
90834 2002-06-14  Jim Meyering  <meyering@lucent.com>
90835
90836         * lib/file-type.h: Use the version from diffutils-2.8.2.
90837         * lib/file-type.c: Likewise.
90838
90839 2002-06-07  Jim Meyering  <meyering@lucent.com>
90840
90841         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90842         They're needed at least for NetBSD 1.5.2.
90843         ($statxfs_includes): Include those same headers.
90844         ($statxfs_includes): Include sys/vfs.h if available.
90845         ($statxfs_includes): Likewise for sys/statvfs.h.
90846         Check for the following members in both structs statfs and statvfs:
90847         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90848
90849 2002-06-01  Jim Meyering  <meyering@lucent.com>
90850
90851         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90852         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90853
90854 2002-05-28  Jim Meyering  <meyering@lucent.com>
90855
90856         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90857         Reported by Volker Borchert.
90858
90859 2002-05-27  Jim Meyering  <meyering@lucent.com>
90860
90861         Fix a problem seen only on nonconforming systems whereby ls.c's
90862         use of localtime, and then of gettimeofday would cause trouble:
90863         the localtime call used to initialize rpl_gettimeofday's save
90864         mechanism would clobber ls's current local time information so
90865         that in any long listing the first file would always be listed
90866         with date 1970-01-01.  Analysis by Volker Borchert.
90867
90868         * lib/gettimeofday.c (localtime): Undefine.
90869         (rpl_localtime): New function.
90870
90871 2002-05-27  Jim Meyering  <meyering@lucent.com>
90872
90873         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90874         localtime.
90875
90876         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90877         use the replacement function; it wouldn't resolve at link time.
90878         Reported by Volker Borchert.
90879
90880 2002-05-22  Jim Meyering  <meyering@lucent.com>
90881
90882         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90883         file-type.h.
90884         * lib/file-type.h: New file.
90885         * lib/file-type.c (file_type): New file/function.  Extracted from
90886         diffutils.
90887
90888 2002-04-30  Jim Meyering  <meyering@lucent.com>
90889
90890         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90891
90892 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90893
90894         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90895
90896 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90897
90898         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90899         Do not check for alloca.h (no longer used) or stdbool.h (was never
90900         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90901
90902 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90903
90904         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90905
90906 2002-04-29  Jim Meyering  <meyering@lucent.com>
90907
90908         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90909         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90910         Use AC_FUNC_STRNLEN here instead.
90911
90912         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90913         With autoconf-2.53a, it's part of AC_PROG_CC.
90914
90915 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90916
90917         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90918         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90919
90920 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90921
90922         * lib/sig2str.h, lib/sig2str.c: New files.
90923         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90924
90925 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90926
90927         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90928         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90929         of 127, since 64 is the largest conceivable number for ancient
90930         nonstandard hosts.
90931         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90932
90933 2002-04-28  Jim Meyering  <meyering@lucent.com>
90934
90935         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90936
90937 2002-04-24  Jim Meyering  <meyering@lucent.com>
90938
90939         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90940         (jm_PREREQ): Use it.
90941
90942         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90943         mach/mach.h fcntl.h.
90944         Check for this function: setlocale.
90945
90946 2002-04-24  Jim Meyering  <meyering@lucent.com>
90947
90948         * lib/gettext.h: New file, from Gettext.
90949         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90950         (libfetish_a_SOURCES): Add gettext.h.
90951
90952 2002-04-16  Jim Meyering  <meyering@lucent.com>
90953
90954         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90955         ut_pid, ut_id, ut_exit.
90956
90957 2002-04-16  Jim Meyering  <meyering@lucent.com>
90958
90959         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90960         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90961         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90962
90963 2002-04-12  Jim Meyering  <meyering@lucent.com>
90964
90965         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90966         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90967         existence of the getmntinfo function.  Needed for Darwin 5.3.
90968
90969         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90970         This is necessary at least on Darwin 5.3.
90971
90972         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90973         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90974         strnlen.o in the library, and that makes some versions of ranlib
90975         object.
90976
90977 2002-04-12  Jim Meyering  <meyering@lucent.com>
90978
90979         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90980
90981 2002-04-09  Jim Meyering  <meyering@lucent.com>
90982
90983         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90984         to be more precise.  Rather than saying we're checking whether the
90985         function `works', say what we're testing.
90986         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90987         Reported by Bruno Haible.
90988
90989 2002-03-10  Jim Meyering  <meyering@lucent.com>
90990
90991         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90992         Suggestion from Santiago Vila.
90993
90994 2002-03-08  Jim Meyering  <meyering@lucent.com>
90995
90996         * lib/rename.c: Mention that this wrapper is needed also on
90997         mips-dec-ultrix4.4 systems.
90998
90999 2002-03-02  Jim Meyering  <meyering@lucent.com>
91000
91001         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91002         not HAVE_CLOCK_SETTIME.
91003
91004 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91005
91006         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91007         Check for clock_settime.
91008
91009 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91010
91011         * lib/nanosleep.h: Rename to....
91012         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91013
91014         * lib/gettime.c: New file.
91015         * lib/settime.c: New file.
91016         * lib/stime.c: Remove.
91017
91018         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91019         timespec.h.  Remove nanosleep.h.
91020
91021 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91022
91023         * m4/acl.m4: New file.
91024         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91025         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91026
91027 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91028
91029         * lib/acl.c, lib/acl.h: New files.
91030         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91031
91032 2002-02-24  Jim Meyering  <meyering@lucent.com>
91033
91034         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91035         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91036         cause trouble.  Reported by Nelson Beebe.
91037
91038 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91039
91040         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91041         compilers that don't know that xalloc_die never returns.
91042
91043 2002-02-20  Jim Meyering  <meyering@lucent.com>
91044
91045         * lib/getdate.c: Regenerate using bison-1.33.
91046
91047 2002-02-17  Jim Meyering  <meyering@lucent.com>
91048
91049         * config/config.guess (main): Don't use `head -1'; it's no longer
91050         portable. Use `sed 1q' instead.
91051
91052 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91053
91054         * m4/codeset.m4: Upgrade to gettext-0.11.
91055         * m4/gettext.m4: Upgrade to gettext-0.11.
91056         * m4/glibc21.m4: Upgrade to gettext-0.11.
91057         * m4/iconv.m4: Upgrade to gettext-0.11.
91058         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91059         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91060         * m4/lib-ld.m4: New file, from gettext-0.11.
91061         * m4/lib-link.m4: New file, from gettext-0.11.
91062         * m4/lib-prefix.m4: New file, from gettext-0.11.
91063         * m4/progtest.m4: Upgrade to gettext-0.11.
91064
91065 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91066
91067         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91068         (jm_PREREQ): Use it.
91069
91070 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91071
91072         * lib/posixver.c, lib/posixver.h: New files.
91073         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91074
91075 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91076             Bruno Haible  <bruno@clisp.org>
91077
91078         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91079         (fwrite_success_callback): New declaration.
91080         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91081         print_unicode_char. Call failure callback instead of error.
91082         (fwrite_success_callback): New function.
91083         (exit_failure_callback): New function.
91084         (fallback_failure_callback): New function.
91085         (print_unicode_char): Call unicode_to_mb.
91086
91087 2002-01-26  Jim Meyering  <meyering@lucent.com>
91088
91089         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91090         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91091
91092 2002-01-26  Jim Meyering  <meyering@lucent.com>
91093
91094         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91095
91096 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91097
91098         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91099
91100 2002-01-22  Jim Meyering  <meyering@lucent.com>
91101
91102         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91103         Otherwise, some versions of automake would omit the rule that makes
91104         Makefile from Makefile.in.
91105
91106 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91107
91108         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91109         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91110         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91111         (memcoll): Set errno to zero if there is no error.
91112
91113         * lib/quotearg.c (quotearg_buffer_restyled):
91114         Fix bug with quoting buffers containing NUL when backslashing escapes.
91115         This bug was exposed by the other changes in this patch.
91116         (quotearg_n_options): New arg ARGSIZE.
91117         All callers changed.
91118         (quoting_options_from_style): New function.
91119         (quotearg_n_style): Use it.
91120         (quotearg_n_style_mem): New function.
91121
91122         * lib/quotearg.h (quotearg_n_style_mem): New function.
91123
91124 2002-01-19  Jim Meyering  <meyering@lucent.com>
91125
91126         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91127         Remove useless quotes: DF_PROG="df".
91128         * m4/strnlen.m4: New file.
91129
91130 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91131
91132         * lib/backupfile.c (ISDIGIT): Comment fix.
91133         * lib/getdate.y (ISDIGIT): Likewise.
91134         * lib/posixtm.c (ISDIGIT, year): Likewise.
91135         * lib/strverscmp.c (ISDIGIT): Likewise.
91136         * lib/userspec.c (ISDIGIT): Likewise.
91137
91138 2002-01-16  Jim Meyering  <meyering@lucent.com>
91139
91140         * lib/getdate.y: Add three semicolons, each just before a closing
91141         brace. Bison (as of version 1.31) no longer papers over that mistake.
91142
91143 2002-01-05  Jim Meyering  <meyering@lucent.com>
91144
91145         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91146
91147 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91148
91149         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91150         not silently exit merely because the output buffer happens to
91151         have nothing pending.
91152
91153 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91154
91155         See the big note in ../ChangeLog.
91156         * lib/human.c (suffixes): Prefer K to k for 1024.
91157         (generate_suffix_backwards): New function.
91158         (human_readable_inexact): Use it.
91159         * lib/xstrtol.c (__xstrtol): If there is no number but there
91160         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91161         Accept 'K' as well as 'k'.
91162
91163 2001-12-15  Jim Meyering  <meyering@lucent.com>
91164
91165         * lib/regex.h (__restrict_arr): Update from libc.
91166
91167         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91168         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91169         (STREQ): Define.
91170
91171 2001-12-14  Jim Meyering  <meyering@lucent.com>
91172
91173         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91174         Suggestion from Bruno Haible.
91175
91176 2001-12-10  Jim Meyering  <meyering@lucent.com>
91177
91178         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91179         xrealloc, Instead, include "xalloc.h".
91180         (initbuffer): Don't cast xmalloc return value to char*.
91181         (readline): Reword comment.
91182         Don't cast xrealloc return value to char*
91183         Return NULL, not 0.
91184
91185 2001-12-09  Jim Meyering  <meyering@lucent.com>
91186
91187         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91188         about `signed and unsigned type in conditional expression'.
91189         * lib/posixtm.c (posix_time_parse): Likewise.
91190
91191         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91192
91193         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91194         to avoid a pedantic warning.
91195
91196         * lib/getstr.c: Don't include assert.h.
91197         (getstr): Remove warning-evoking assertions.
91198         Return -1 if offset parameter is out of bounds.
91199         Change the type of a local from int to size_t.
91200
91201         * lib/strftime.c (my_strftime_localtime_r): Include this function
91202         definition in the `#if ! HAVE_TM_GMTOFF' block.
91203
91204         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91205         Include xalloc.h instead.
91206
91207 2001-12-02  Jim Meyering  <meyering@lucent.com>
91208
91209         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91210         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91211         included.
91212
91213         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91214         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91215
91216 2001-11-30  Akim Demaille  <akim@epita.fr>
91217
91218         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91219         before being defined.
91220
91221 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91222
91223         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91224         First arg is int, not unsigned.
91225         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91226         (SIZE_MAX, UINT_MAX): New macros.
91227         (quotearg_n_options): Abort if N is negative.
91228         Avoid overflow check on hosts where size_t is 64 bits and int
91229         is 32 bits, as overflow is impossible there.
91230         Fix off-by-one typo that caused unnecessary reallocation.
91231
91232 2001-11-27  Jim Meyering  <meyering@lucent.com>
91233
91234         * lib/tempname.c: Merge with version from libc.
91235         * lib/regex.c: Likewise.
91236
91237         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91238         systems for which STDC_HEADERS is 0, it was not included, resulting in
91239         a warning about an integer-to-pointer conversion problem with getenv.
91240         Reported by Volker Borchert.
91241
91242 2001-11-26  Jim Meyering  <meyering@lucent.com>
91243
91244         * lib/gtod.h: Remove file.
91245         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91246         * lib/gettimeofday.c: Don't include gtod.h.
91247         (GTOD_init): Remove function.
91248         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91249         Suggestion from Volker Borchert.
91250
91251 2001-11-23  Jim Meyering  <meyering@lucent.com>
91252
91253         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91254         it.
91255         * lib/hash.c (struct hash_table): Define it here instead.
91256
91257 2001-11-22  Jim Meyering  <meyering@lucent.com>
91258
91259         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91260
91261 2001-11-20  Jim Meyering  <meyering@lucent.com>
91262
91263         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91264         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91265
91266 2001-11-19  Jim Meyering  <meyering@lucent.com>
91267
91268         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91269         directory.  Use "conftestXXXXXX" as the template.
91270         Suggestion from Paul Eggert.
91271
91272         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91273         immediately, so the test doesn't mistakenly hit the max-open-files
91274         limit.
91275
91276 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91277
91278         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91279         (TEMPORARIES): New macro.
91280         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91281         removes an artificial limitation (e.g. HP-UX 10.20, where
91282         TMP_MAX is 17576).
91283
91284 2001-11-18  Jim Meyering  <meyering@lucent.com>
91285
91286         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91287
91288 2001-11-18  Jim Meyering  <meyering@lucent.com>
91289
91290         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91291         on SunOS 4.
91292
91293         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91294         files will be created before anything else.
91295
91296 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91297
91298         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91299         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91300
91301 2001-11-17  Jim Meyering  <meyering@lucent.com>
91302
91303         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91304         Prompted by a report from Bob Proulx.
91305
91306         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91307         Instead, require UTILS_FUNC_MKSTEMP.
91308
91309 2001-11-17  Jim Meyering  <meyering@lucent.com>
91310
91311         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91312         Now, that's done as part of AC_FUNC_STRTOD.
91313
91314 2001-11-17  Jim Meyering  <meyering@lucent.com>
91315
91316         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91317         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91318         rather than group writable.  Patch by Juan F. Codagnone.
91319
91320         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91321         xrealloc, Instead, include "xalloc.h".
91322
91323         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91324         Remove explicit declarations of xmalloc, xrealloc,
91325         and xstrdup.  Instead, include "xalloc.h".
91326
91327         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91328         unlocked-io.h.
91329         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91330         Likewise.
91331         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91332
91333         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91334         Reported by Padraig Brady.
91335
91336         * lib/mkstemp.c: #undef mkstemp.
91337         Include config.h.
91338         (rpl_mkstemp): Rename from mkstemp.
91339         Protoize.
91340
91341 2001-11-16  Jim Meyering  <meyering@lucent.com>
91342
91343         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91344         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91345         determine the amount of total physical memory, use pstat_getstatic.
91346         HPUX-11 doesn't define _SC_PHYS_PAGES.
91347         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91348         If sysconf couldn't be used to determine the amount of available
91349         physical memory, use both pstat_getstatic and pstat_getdynamic.
91350         Based on a patch from Bob Proulx.
91351
91352 2001-11-10  Jim Meyering  <meyering@lucent.com>
91353
91354         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91355         (jm_PREREQ): Use it.
91356
91357 2001-11-09  Jim Meyering  <meyering@lucent.com>
91358
91359         * m4/jm-macros.m4: Require autoconf-2.52f.
91360         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91361         Use these AC_-prefixed names, not the AM_-prefixed ones.
91362
91363         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91364
91365 2001-11-05  Jim Meyering  <meyering@lucent.com>
91366
91367         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91368
91369 2001-11-04  Jim Meyering  <meyering@lucent.com>
91370
91371         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91372         $DEFS.
91373
91374 2001-11-03  Jim Meyering  <meyering@lucent.com>
91375
91376         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91377         of AC_DEFUN.
91378
91379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91380         know the name of the variable in the macro definition.
91381
91382 2001-11-03  Jim Meyering  <meyering@lucent.com>
91383
91384         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91385         in argmatch_to_argument call.
91386
91387         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91388         argument.
91389
91390         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91391         e.g., a fault due to an attempt to free a NULL pointer.
91392
91393 2001-11-01  Jim Meyering  <meyering@lucent.com>
91394
91395         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91396         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91397
91398 2001-11-01  Jim Meyering  <meyering@lucent.com>
91399
91400         * lib/dirfd.c, lib/dirfd.h: New files.
91401         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91402
91403         * lib/hash.c (hash_print) [TESTING]: Clean up.
91404
91405 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91406
91407         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91408         to avoid a warning if -Wall.
91409
91410 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91411
91412         * README: New file
91413         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91414         (per RMS's instructions, this is now the canonical source)
91415         * lgpl/, gpl/: New directories.
91416
91417 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91418
91419         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91420
91421 2001-10-21  Jim Meyering  <meyering@lucent.com>
91422
91423         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91424         this code would end up calling gettext even in packages built
91425         with --disable-nls.
91426         * lib/getopt.c (_): Likewise.
91427         * lib/regex.c (_): Likewise.
91428
91429 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91430
91431         * m4/error.m4 (jm_PREREQ_ERROR):
91432         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91433         AC_FUNC_STRERROR_R does that.
91434         Check for strerror declaration.
91435
91436         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91437         are supposed to have them these days.
91438         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91439         Merge changes from latest Autoconf CVS.
91440         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91441         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91442         POSIX decided to standardize on the int flavor of strerror_r.
91443
91444 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91447         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91448         Use strerror_r that is only a macro, even if it is not a function.
91449         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91450         (private_strerror): Use prototypes, not old-style function definition.
91451         (print_errno_message): New function.
91452         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91453         char*-flavored one.
91454         (error_tail, error, error_at_line): Use it.
91455
91456 2001-10-11  Jim Meyering  <meyering@lucent.com>
91457
91458         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91459         and quote_n (1, ... to avoid clobbering a buffer.
91460
91461 2001-10-05  Jim Meyering  <meyering@lucent.com>
91462
91463         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91464         hash-pjw.h.
91465         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91466         * lib/hash-pjw.h: New file.
91467
91468 2001-09-30  Jim Meyering  <meyering@lucent.com>
91469
91470         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91471         `struct fsstat' has the `f_fstypename' member.
91472         Use that to define FS_TYPE, which is now used to make
91473         the getfsstat link test tighter.
91474
91475 2001-09-30  Jim Meyering  <meyering@lucent.com>
91476
91477         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91478         Include <sys/ucred.h>, for Apple Darwin.
91479         Include sys/mount.h and sys/fs_types.h only if available.
91480         (FS_TYPE): Define.
91481         (read_filesystem_list): Use FS_TYPE.
91482
91483 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91484
91485         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91486         a boolean context.
91487
91488 2001-09-29  Jim Meyering  <meyering@lucent.com>
91489
91490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91491         [one-argument getmntent function]): Include stdio.h before mntent.h.
91492         SunOS 4.1.x needs it for the declaration of `FILE'.
91493         Patch by Volker Borchert.
91494
91495         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91496         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91497         sys/fs_types.h, and make the link-test for getfsstat guard #include
91498         directives with appropriate #if HAVE_*_H tests so that we can
91499         detect getfsstat on Apple Darwin1.3.7 systems.
91500         Reported by Nelson Beebe.
91501         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91502
91503 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91504
91505         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91506         #defines strtoimax.  Also treat the other strto* functions
91507         like strtoimax.
91508
91509         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91510         Check for strtoul and strtoumax,
91511         as those declarations are made even in the signed case.
91512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91513         Likewise, for strtol and strtoimax.
91514
91515 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91516
91517         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91518         #defines strtoimax.  Also treat the other strto* functions
91519         like strtoimax.
91520
91521         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91522         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91523         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91524
91525 2001-09-26  Jim Meyering  <meyering@lucent.com>
91526
91527         Most macros in unlocked-io.h had the wrong number of arguments.
91528         * lib/gen-uio: New script.
91529         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91530         * lib/unlocked-io.hin: Remove file.
91531         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91532         rather than trying to embed it here.
91533         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91534         Reported by Padraig Brady.
91535
91536 2001-09-25  Volker Borchert  <bt@teknon.de>
91537
91538         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91539         `result'.
91540
91541 2001-09-24  Jim Meyering  <meyering@lucent.com>
91542
91543         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91544
91545 2001-09-23  Jim Meyering  <meyering@lucent.com>
91546
91547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91548         instead of the mere test for existence of mntent.h.  The latter
91549         would get a false-positive on AIX 3.4 systems.
91550         In the outer getmntent if-block, don't die if neither of the getmntent
91551         tests succeeds.  Instead, just fall through and continue with the
91552         remaining tests.
91553
91554 2001-09-23  Jim Meyering  <meyering@lucent.com>
91555
91556         * lib/mountlist.c: Remove useless parentheses in #if directives.
91557         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91558         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91559
91560 2001-09-22  Jim Meyering  <meyering@lucent.com>
91561
91562         * m4/gettext.m4: New file.  From gettext.
91563         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91564         * m4/progtest.m4: Likewise
91565         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91566         * m4/glibc21.m4: Likewise.
91567
91568         * m4/libintl.m4: Remove.  No longer used.
91569
91570 2001-09-22  Jim Meyering  <meyering@lucent.com>
91571
91572         * lib/localcharset.c: Update from latest gettext.
91573         * lib/config.charset: Likewise.
91574
91575 2001-09-20  Jim Meyering  <meyering@lucent.com>
91576
91577         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91578         strtoimax.
91579         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91580         strtoumax.
91581
91582 2001-09-20  Jim Meyering  <meyering@lucent.com>
91583
91584         * lib/xstrtol.c (strtoimax): Guard declaration with
91585         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91586         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91587         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91588         (strtoumax): Likewise, for completeness (it wasn't necessary).
91589
91590 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91591
91592         * lib/strtoimax.c (HAVE_LONG_LONG):
91593         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91594         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91595         to work around bug in IBM C compiler.
91596
91597 2001-09-17  Jim Meyering  <meyering@lucent.com>
91598
91599         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91600         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91601         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91602         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91603         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91604         whenever the right hand side need not be expanded by the shell.
91605
91606 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91607
91608         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91609         library.  It's not correct, as some older glibcs are buggy.
91610         fnmatch wasn't fixed until glibc 2.2.
91611
91612         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91613         special shell magic here.
91614
91615 2001-09-16  Jim Meyering  <meyering@lucent.com>
91616
91617         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91618         * m4/jm-macros.m4: Require it.
91619
91620 2001-09-16  Jim Meyering  <meyering@lucent.com>
91621
91622         * lib/mkdir.c: New file.
91623
91624 2001-09-15  Jim Meyering  <meyering@lucent.com>
91625
91626         * m4/jm-macros.m4: Check for help2man.
91627
91628 2001-09-11  Jim Meyering  <meyering@lucent.com>
91629
91630         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91631         The body, by Paul Eggert, was moved here from configure.in.
91632         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91633
91634 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91635
91636         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91637         (jm_PREREQ): Use it.
91638
91639 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91640
91641         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91642         Use ssize_t, not int, to store result of readlink.
91643         Check for ssize_t overflow as well as size_t overflow,
91644         as POSIX says the result of readlink is implementation-defined
91645         when ssize_t overflows.
91646         Remove unnecessary cast to char*.
91647         Use free+malloc instead of realloc, as the storage doesn't need
91648         to be preserved and it's clearer and can be more efficient that way.
91649         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91650         * lib/xreadlink.h (xreadlink): Update prototype.
91651
91652 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91653
91654         * lib/xgetcwd.c: Revert some of the previous change; intead,
91655         fix the HAVE_GETCWD_NULL code to behave more like the
91656         !HAVE_GETCWD_NULL code used to.
91657
91658         Include "xalloc.h".
91659         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91660         invoke xalloc_die.
91661
91662 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91663
91664         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91665         sys/param.h, as pathmax.h includes them.
91666
91667 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91668
91669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91670         (jm_PREREQ_XGETCWD): New macro.
91671
91672         * m4/getcwd.m4: New file.
91673
91674 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91675
91676         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91677         like the HAVE_GETCWD_NULL code.
91678         Include pathmax.h if not HAVE_GETCWD.
91679         Do not include xalloc.h.
91680         (INITIAL_BUFFER_SIZE): New symbol.
91681         Do not use xmalloc / xrealloc, since the caller is responsible for
91682         handling errors.  Preserve errno around `free' during failure.
91683         Do not overrun buffer when using getwd.
91684
91685 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91686
91687         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91688         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91689         getcwd (NULL, 0).
91690
91691 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91692
91693         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91694         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91695         spotted by Jim Meyering.
91696
91697 2001-09-03  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91700         failure.
91701
91702 2001-09-02  Jim Meyering  <meyering@lucent.com>
91703
91704         * lib/error.c: Update from GNU libc.
91705
91706 2001-09-01  Jim Meyering  <meyering@lucent.com>
91707
91708         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91709         Used by df.
91710
91711 2001-09-01  Jim Meyering  <meyering@lucent.com>
91712
91713         * lib/xreadlink.c: New file.
91714         * lib/xreadlink.h: New file.
91715         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91716         xreadlink.h.
91717
91718         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91719         doesn't conflict with sparc Solaris 7's definition in
91720         /usr/include/sys/int_types.h.
91721
91722         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91723         files.
91724         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91725         and strncasecmp as r-values.  Unixware didn't have declarations.
91726
91727 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91728
91729         * lib/xstrtol.h: Add copyright notice.
91730         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91731         LONGINT_INVALID_SUFFIX_CHAR.
91732
91733 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91734
91735         * lib/xstrtol.c (strtoimax): New decl.
91736
91737 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91738
91739         * lib/xgetcwd.c: Don't include pathmax.h.
91740         Include stdlib.h and unistd.h if available.
91741         Include xalloc.h.
91742         (xmalloc, xstrdup, free): Remove decls.
91743         (xgetcwd): Don't assume sizes fit in unsigned.
91744         Check for overflow when computing sizes.
91745         Simplify reallocation code.
91746
91747 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91748
91749         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91750         a directory's st_size can have an arbitrary value, so the old
91751         usage could waste an arbitrary amount of memory.  All uses
91752         changed.
91753         * lib/savedir.h: Update prototype.
91754
91755 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91756
91757         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91758
91759         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91760         old strtoimax.c.
91761
91762         Also, make the following further changes to make this file's
91763         configuration more similar to that of strtol.c:
91764         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91765         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91766         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91767         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91768         changed to signed values.
91769
91770         And make the following changes as well:
91771         Fix copyright notice, as 1999 was missing.
91772         (verify): New macro.
91773         (strtoimax): Check sizes at compile-time, not run-time.
91774         Prefer strtol to strtoll if both work.
91775         (main): Remove; it was not that useful and was a pain to maintain.
91776
91777         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91778
91779 2001-08-31  Jim Meyering  <meyering@lucent.com>
91780
91781         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91782         Use an initial, malloc'd, buffer of length 128 rather than
91783         a statically allocated one of length 1024.
91784
91785 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91786
91787         Simplify code, partly by assuming autoconf 2.52 semantics.
91788
91789         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91790
91791         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91792         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91793         All uses removed.
91794         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91795         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91796         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91797         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91798         jm_AC_HEADER_INTTYPES_H.
91799         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91800
91801         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91802
91803         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91804         Quote first arg of AC_DEFUN.
91805         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91806         since they are needed to parse the include file even if we need
91807         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91808         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91809         but with opposite signedness.
91810
91811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91812
91813         Merge 'exclude' changes from tar 1.13.22.
91814         This fixes one or two unlikely storage allocation overflow bugs,
91815         but doesn't change user-visible behavior otherwise.
91816
91817 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91818
91819         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91820         (jm_PREREQ_EXCLUDE): New macro.
91821
91822 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91823
91824         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91825         tm to be declared.
91826
91827 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91828
91829         * lib/hash.c: Remove '2001' from copyright notice.
91830
91831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91832
91833         * lib/full-write.h: New file.
91834         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91835         * lib/full-write.c: Correct credits, as cccp.c no longer
91836         exists and anyway it was so heavily changed from the old cccp
91837         code as to be unrecognizable.  Include full-write.h.
91838         (full_write): Return size_t, with short writes meaning failure.
91839         All callers changed.  This fixes a bug with large buffers
91840         on 64-bit hosts.
91841         * lib/utime.c: Include full-write.h.
91842
91843 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91844
91845         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91846         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91847         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91848         Include if available.
91849         (<xalloc.h>): Include
91850         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91851         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91852         collide with FNM macros.
91853         (struct patopts): New struct.
91854         (struct exclude): Use it, as exclude patterns now come with options.
91855         (new_exclude): Support above changes.
91856         (new_exclude, add_exclude_file):
91857         Initial size must now be a power of two to simplify overflow checking.
91858         (free_exclude, fnmatch_no_wildcards): New function.
91859         (excluded_filename): No longer requires options arg, as the options
91860         are determined by add_exclude.  Now returns bool, not int.
91861         (excluded_filename, add_exclude):
91862         Add support for the fancy new exclusion options.
91863         (add_exclude, add_exclude_file): Now takes int options arg.
91864         Check for arithmetic overflow when computing sizes.
91865         (add_exclude_file): xrealloc might modify errno, so don't
91866         realloc until after errno might be used.
91867
91868         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91869         New macros.
91870         (free_exclude): New decl.
91871         (add_exclude, add_exclude_file): Now takes int options arg.
91872         (excluded_filename): No longer requires options arg, as the options
91873         are determined by add_exclude.  Now returns bool, not int.
91874
91875 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91876
91877         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91878
91879 2001-08-27  Jim Meyering  <meyering@lucent.com>
91880
91881         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91882
91883         * lib/version-etc.c (N_): Remove definition.
91884         Revert most of last change.
91885         Instead, simply don't mark the `Copyright...' string for translation.
91886         Based on advice from Paul Eggert.
91887
91888         * lib/strtoxmax.c: Tweak comment.
91889
91890 2001-08-26  Jim Meyering  <meyering@lucent.com>
91891
91892         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91893
91894         * m4/xstrtoimax.m4: New file.
91895         * m4/xstrtoumax.m4: Add comments explaining why we
91896         AC_REPLACE_FUNCS(strtol).
91897
91898 2001-08-26  Jim Meyering  <meyering@lucent.com>
91899
91900         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91901         of copyright with `%s' so translators don't get an untranslated
91902         message in 2002.
91903         (COPYRIGHT_YEAR): Define.
91904         (version_etc): Use fprintf rather than fputs.
91905         Suggestion from Ulrich Drepper.
91906
91907         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91908
91909         * lib/strtoll.c: New file, from GNU libc.
91910         * lib/xstrtoimax.c: New file.
91911
91912         * lib/xstrtol.h: Add xstrtoimax.
91913         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91914         * lib/strtoimax.c: New file.  Likewise, but first define
91915         STRTOUXMAX_SIGNED.
91916
91917         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91918         ...
91919         * lib/strtoxmax.c: ... then renamed to this.
91920
91921 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91922
91923         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91924         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91925         (jm_AC_TYPE_INTMAX_T): New macro.
91926         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91927
91928         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91929
91930         * m4/longlong.m4: Renamed from ulonglong.m4.
91931         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91932         * m4/uintmax_t.m4: Removed.
91933
91934 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91935
91936         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91937         Port to Solaris 8, where 'sed' requires a space after the 'r'
91938         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91939         Redirect output to $tmp just once.
91940
91941 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91942
91943         * lib/addext.c (<errno.h>): Include.
91944         (errno): Declare if not defined.
91945         (addext): Work correctly when pathconf returns -1 and leaves
91946         errno alone because there is no limit.  Also, work even if
91947         pathconf returns a value greater than SIZE_MAX.
91948
91949 2001-08-12  Jim Meyering  <meyering@lucent.com>
91950
91951         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91952         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91953         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91954         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91955         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91956         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91957         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91958         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91959         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91960         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91961         utime.m4, utimes.m4, xstrtoumax.m4:
91962         Quote the first argument in each use of AC_DEFUN.
91963
91964 2001-08-12  Jim Meyering  <meyering@lucent.com>
91965
91966         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91967         Simply `return getcwd (NULL, 0);'.
91968         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91969         Use 1300 as initial value for length, not PATH_MAX.
91970
91971         * lib/pathmax.h: Clean up cpp syntax.
91972
91973 2001-08-12  Jim Meyering  <meyering@lucent.com>
91974
91975         * lib/gettimeofday.c: New file.
91976         * lib/gtod.h: New file.
91977         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91978
91979 2001-08-05  Jim Meyering  <meyering@lucent.com>
91980
91981         * m4/jm-macros.m4: Require autoconf-2.52.
91982
91983 2001-08-04  Jim Meyering  <meyering@lucent.com>
91984
91985         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91986         stmt, to get in sync with glibc.
91987
91988 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91989
91990         The following changes are from gettext 0.10.39 as maintained by
91991         Bruno Haible.
91992
91993         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91994         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91995         with inverted sense.  All uses changed.
91996
91997         * lib/mbswidth.c: Don't include <limits.h>.
91998         Include <stdlib.h> and <string.h> unconditionally.
91999         (iswcntrl, mbsinit, ISCNTRL): New macros.
92000         (mbsnwidth): Use K&R style function declarations.
92001         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92002         can optimize it when MB_CUR_MAX == 1.
92003         The width of control characters is zero, not 1.
92004
92005 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92006
92007         The following changes are from gettext 0.10.39 as maintained by
92008         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92009
92010         * m4/codeset.m4: Upgrade to serial AM1.
92011         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92012         all uses changed.  Quote first arg of AC_DEFUN.
92013         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92014
92015         * m4/iconv.m4: Upgrade to serial AM2.
92016         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92017         Add --with-libconv-prefix.
92018         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92019         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92020         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92021         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92022         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92023
92024         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92025         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92026         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92027         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92028         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92029         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92030         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92031         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92032         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92033
92034         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92035         string.h any more.
92036
92037         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92038         not the default value.
92039
92040         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92041         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92042         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92043         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92044         Also check for iswcntrl, used for wcwidth fallback.
92045         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92046         to Autoconf 2.13.
92047
92048 2001-08-03  Jim Meyering  <meyering@lucent.com>
92049
92050         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92051         as it was in the original.  Reported by Paul Eggert.
92052
92053 2001-07-16  Jim Meyering  <meyering@lucent.com>
92054
92055         * m4/gettimeofday.m4: New file.
92056         Prompted by a report from Bernhard Baehr.
92057
92058 2001-07-15  Jim Meyering  <meyering@lucent.com>
92059
92060         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92061         stuff. Now it's in ../Makefile.cfg.
92062
92063 2001-07-15  Jim Meyering  <meyering@lucent.com>
92064
92065         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92066         (BUILT_SOURCES): Add unlocked-io.h.
92067         (io_functions): Define.
92068         (unlocked-io.h): New rule.
92069         (DISTCLEANFILES): Add unlocked-io.h.
92070         (all-local): Depend on unlocked-io.h, to ensure it is created.
92071
92072         * lib/unlocked-io.hin: New file
92073
92074         * lib/regex.c: Update from glibc.
92075
92076 2001-07-05  Jim Meyering  <meyering@lucent.com>
92077
92078         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92079         recommendation.
92080         (libfetish_a_SOURCES): Put all .h files here instead.
92081         Remove a thus-exposed (better checks in automake) duplicate and
92082         two unnecessary .h files.
92083
92084 2001-07-04  Jim Meyering  <meyering@lucent.com>
92085
92086         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92087         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92088         distcheck failure.
92089
92090 2001-07-02  Jim Meyering  <meyering@lucent.com>
92091
92092         The following changes were prompted by suggestions from Bruno Haible.
92093
92094         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92095         is now generated.
92096         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92097         definition of EXTRA_DIST.
92098         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92099         ensure that the generated file is created/updated whenever the list
92100         of $(unlocked_functions) is changed.
92101         (jm-glibc-io.m4): New rule.
92102         (unlocked-io.h): New rule -- currently unused.
92103
92104 2001-06-24  Jim Meyering  <meyering@lucent.com>
92105
92106         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92107         unmatched right bracket, rather than kludging it with an extra,
92108         falsely-matching quote in a comment.  Patch by Akim Demaille.
92109
92110 2001-06-11  Jim Meyering  <meyering@lucent.com>
92111
92112         * lib/regex.c: Update from GNU libc.
92113
92114 2001-05-27  Jim Meyering  <meyering@lucent.com>
92115
92116         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92117         Check for ut_type in struct utmp.
92118
92119 2001-05-27  Jim Meyering  <meyering@lucent.com>
92120
92121         * lib/readutmp.h (UT_TYPE): Define.
92122
92123 2001-05-24  Jim Meyering  <meyering@lucent.com>
92124
92125         * lib/argmatch.c: Include "quote.h".
92126         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92127         quote function.  Reported by Göran Uddeborg.
92128
92129 2001-05-22  Jim Meyering  <meyering@lucent.com>
92130
92131         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92132         now that we use the package-supplied version unconditionally.
92133         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92134
92135 2001-05-21  Jim Meyering  <meyering@lucent.com>
92136
92137         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92138         shell syntax errors.
92139
92140 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92141
92142         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92143
92144 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92145
92146         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92147         Don't bother to check library strftime, since
92148         we'll be using our own my_strftime function anyway.
92149         Define my_strftime instead of strftime.
92150
92151 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92152
92153         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92154         which is not yet declared.
92155
92156 2001-05-15  Jim Meyering  <meyering@lucent.com>
92157
92158         * m4/regex.m4: Use proper quoting so brackets appear in the test
92159         program.
92160         Reported by, and with help from, Bruno Haible.
92161
92162 2001-05-13  Jim Meyering  <meyering@lucent.com>
92163
92164         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92165         undefined.
92166
92167 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92168
92169         dirname code cleanup.  base_name now behaves more compatibly
92170         with POSIX basename when given file names that have trailing
92171         slashes, and similarly for dir_name.  Add new primitives
92172         base_len and dir_len.  Put the directory-name-related decls
92173         into dirname.h.
92174
92175         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92176         * lib/backupfile.c (base_name): Likewise.
92177         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92178         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92179         * lib/makepath.c (strip_trailing_slashes): Likewise.
92180         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92181         ISSLASH): Likewise.
92182         * lib/rename.c (strip_trailing_slashes): Likewise.
92183         * lib/same.c (base_name): Likewise.
92184         * lib/stripslash.c (ISSLASH): Likewise.
92185
92186         * lib/addext.c: Include <dirname.h> after size_t is defined.
92187         * lib/backupfile.c: Likewise.
92188
92189         * lib/addext.c (addext): Use base_len to trim redundant
92190         trailing slashes instead of doing it ourselves.
92191         But do not trim the last slash if it is not redundant.
92192
92193         * lib/backupfile.c (find_backup_file_name,
92194         max_backup_version): Use base_len instead of rolling it ourselves.
92195         Handle the case of "" and (on DOS) "C:" correctly.
92196
92197         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92198         needed. Include <string.h>, <dirname.h>.
92199         (base_name): Allow file names ending in slashes, other than names
92200         that are all slashes.  In this case, return the basename followed
92201         by the slashes.  This is more general, and can be used in places
92202         where the original base_name purposely had an assertion failure.
92203         (base_len): New function.
92204
92205         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92206         Do not include <assert.h>; no longer needed.
92207         Include xalloc.h.
92208         (memrchr): Remove decl.
92209         (dir_name_r): Remove.
92210         (dir_len): Renamed from dirlen.  All callers changed.
92211         Rewrite in terms of base_name, for simplicity and consistency.
92212         (dir_name): Never return NULL.  All callers changed.
92213         Do not include <stdlib.h> in test program; no longer needed.
92214         return 0; is fine for test program.
92215
92216         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92217         New macros.
92218         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92219
92220         * lib/path-concat.c (path_concat): Use base_len to compute
92221         base length, not strlen; this means we cannot rely on memcpy
92222         to null-terminate.
92223
92224         * lib/same.c (STREQ): Remove.
92225         (same_name): Handle the case where the basename ends in trailing '/'.
92226
92227         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92228         a slash was stripped.  Do not strip the last slash after a
92229         file system prefix.
92230
92231 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92232
92233         * lib/Makefile.am (libfetish_a_SOURCES):
92234         Add strftime.c, since we now compile it on all hosts.
92235
92236         * lib/strftime.c (my_strftime):
92237         Define to nstrftime if emacs, but only if my_strftime is not defined.
92238         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92239         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92240         Add one more extra argument: a nanoseconds value.
92241         All uses changed.
92242         (ns): New macro.
92243         (my_strftime function): Add %N format.
92244         (emacs_strftimeu): Renamed from emacs_strftime,
92245         with extra ut argument.
92246
92247 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92248
92249         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92250
92251 2001-04-21  Jim Meyering  <meyering@lucent.com>
92252
92253         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92254         doesn't interfere.
92255
92256 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92257
92258         * m4/ftruncate.m4: Check for chsize.
92259         Link with ftruncate.o unconditionally if ftruncate is missing.
92260         This was required when cross-compiling to i586-mingw32msvc.
92261
92262 2001-04-08  Jim Meyering  <meyering@lucent.com>
92263
92264         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92265         recomputed; that's necessary when the offset spans a DST transition.
92266         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92267
92268 2001-04-02  Jim Meyering  <meyering@lucent.com>
92269
92270         * lib/regex.h, regex.c: Update from GNU libc.
92271
92272 2001-03-24  Jim Meyering  <meyering@lucent.com>
92273
92274         * m4/jm-macros.m4: Require autoconf-2.49d.
92275
92276 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92277
92278         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92279
92280 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92281
92282         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92283
92284 2001-03-17  Jim Meyering  <meyering@lucent.com>
92285
92286         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92287         now that the version in autoconf is equivalent.
92288         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92289
92290         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92291         Suggestion from Akim Demaille.
92292
92293         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92294         (jm_PREREQ_TEMPNAME): New function.
92295
92296 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92297
92298         * lib/tempname.c (uint64_t): Define to uintmax_t if
92299         not defined, and if UINT64_MAX is not defined.
92300         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92301         Reported by John David Anglin.
92302
92303 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92304
92305         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92306         resolve alias if codeset is empty.
92307         * lib/config.charset (BeOS): Use wildcard syntax.
92308
92309 2001-03-13  Jim Meyering  <meyering@lucent.com>
92310
92311         * lib/path-concat.c (path_concat)
92312         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92313         concatenating e.g., `C:' and `foo'.
92314         From Bruno Haible.
92315
92316 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92317
92318         * lib/localcharset.c (locale_charset): Don't use
92319         setlocale(LC_CTYPE,NULL). Don't return NULL.
92320         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92321
92322 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92323
92324         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92325         support for DOS/DJGPP.
92326
92327 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92328
92329         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92330         lacks mkstemp.  Compile our own tempname.c if we compile our own
92331         mkstemp.c, as mkstemp relies on tempname.
92332
92333 2001-03-01  Jim Meyering  <meyering@lucent.com>
92334
92335         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92336         AH_VERBATIM really does output its argument verbatim.
92337
92338 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92339
92340         * lib/Makefile.am (libfetish_a_SOURCES):
92341         Add dup-safer.c, fopen-safer.c.
92342         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92343
92344         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92345         * lib/unistd-safer.h: New files.
92346
92347 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92348
92349         The mkstemp replacement is taken from glibc 2.2.2, with some
92350         portability fixes for use outside glibc, as follows:
92351
92352         * lib/tempname.c (struct_stat64): New macro.
92353         (direxists, __gen_tempname): Use it.
92354         This avoids a portability problem with Solaris 8.
92355
92356         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92357         (<stddef.h>, <stdint.h>, <string.h>):
92358         Include only if STDC_HEADERS || _LIBC.
92359         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92360         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92361         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92362         (__set_errno): Define this macro if <errno.h> doesn't.
92363         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92364         Define these macros if <stdio.h> doesn't.
92365         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92366         Define these macros if <sys/stat.h>
92367         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92368         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92369         __xstat64): Define if not _LIBC.
92370         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92371         (__gen_tempname): Invoke gettimeofday only if
92372         HAVE_GETTIMEOFDAY || _LIBC;
92373         otherwise, fall back on plain "time".
92374         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92375
92376         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92377
92378         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92379
92380 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92381
92382         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92383
92384 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92385
92386         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92387         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92388         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92389         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92390
92391 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92392
92393         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92394         Remove workaround macros for hosts that have mbrtowc but not
92395         mbstate_t, as we now insist on proper declarations for both
92396         before using mbrtowc.
92397
92398 2001-02-17  Jim Meyering  <meyering@lucent.com>
92399
92400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92401         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92402         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92403         UnixWare 7.1.1.
92404
92405         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92406         rather than AC_CACHE_VAL.
92407
92408 2001-02-17  Jim Meyering  <meyering@lucent.com>
92409
92410         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92411         around included file name.
92412
92413         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92414
92415         * lib/strftime.c: Update from GNU libc (the only changes were to
92416         comments).
92417
92418 2001-02-17  Jim Meyering  <meyering@lucent.com>
92419
92420         * lib/regex.c: Update from libc.
92421
92422 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92423
92424         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92425         clash.
92426
92427 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92428
92429         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92430         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92431         Reported by Mark Hounschell via Paul Eggert.
92432
92433 2001-02-07  Jim Meyering  <meyering@lucent.com>
92434
92435         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92436
92437 2001-02-05  Jim Meyering  <meyering@lucent.com>
92438
92439         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92440         it includes the patch required for `large file' support with at least
92441         HP-UX's 10.20 /bin/cc.
92442
92443 2001-02-03  Jim Meyering  <meyering@lucent.com>
92444
92445         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92446         AS_IF, now that it works once again (mysteriously).
92447         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92448
92449 2001-01-30  Jim Meyering  <meyering@lucent.com>
92450
92451         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92452         * m4/chown.m4: Rename conftestchown to conftest.chown.
92453         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92454         s/conftestdir2/conftest.d2/.
92455         * m4/utimes.m4: s/conftestdata/conftest.data/
92456         Inspired by Pavel Roskin's change in autoconf.
92457
92458 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92459
92460         * lib/config.charset: Update for FreeBSD 4.2.
92461
92462 2001-01-27  Jim Meyering  <meyering@lucent.com>
92463
92464         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92465         a use of AS_IF.
92466         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92467
92468 2001-01-26  Jim Meyering  <meyering@lucent.com>
92469
92470         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92471         quotearg.c includes it.
92472
92473 2001-01-26  Jim Meyering  <meyering@lucent.com>
92474
92475         * lib/quotearg.c: Include stddef.h.
92476         * lib/quote.c: Include stddef.h.
92477         Reported by Axel Kittenberger.
92478
92479         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92480         line in double quotes so that it evokes a better diagnostic.
92481         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92482         Reported by Axel Kittenberger.
92483
92484 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92485
92486         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92487         as if it was a `charset'.
92488
92489 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92490
92491         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92492         has const.
92493
92494 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92495
92496         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92497         to avoid a warning.  Add back 'const' to inptr.
92498
92499 2001-01-20  Jim Meyering  <meyering@lucent.com>
92500
92501         Be sure that headers are checked before used in code compiled
92502         for the type checks.
92503         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92504         In place of that, invoke jm_CHECK_ALL_TYPES.
92505         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92506         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92507         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92508         The check for ssize_t was mistakenly run before the test for unistd.h.
92509
92510         The configure-time check for stdbool.h was missing.
92511         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92512         (jm_PREREQ_HASH): New function.
92513
92514 2001-01-17  Jim Meyering  <meyering@lucent.com>
92515
92516         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92517         for autoconf-2.49c.
92518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92519
92520 2001-01-16  Jim Meyering  <meyering@lucent.com>
92521
92522         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92523         From Bruno Haible.
92524
92525 2001-01-14  Jim Meyering  <meyering@lucent.com>
92526
92527         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92528         foo and bar.  Create conftestdir/ in the script, not in the C code.
92529         Remove directories in the script, not in the C code.
92530         Remove conftestdir{,2} before trying to create the directory.
92531         Make the entire configure script fail if the mkdir fails.
92532
92533 2001-01-14  Jim Meyering  <meyering@lucent.com>
92534
92535         * lib/rename.c: New file.  From Volker Borchert.
92536         Include stdlib.h, string.h or strings.h, and xalloc.h.
92537         Use strip_trailing_slashes rather than open-coding it.
92538
92539 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92540
92541         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92542
92543 2001-01-03  Jim Meyering  <meyering@lucent.com>
92544
92545         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92546         of local `inptr' to avoid warning with some system declarations of
92547         iconv.
92548
92549 2001-01-02  Volker Borchert  <bt@teknon.de>
92550
92551         * m4/rename.m4: New file.
92552         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92553
92554 2001-01-01  Jim Meyering  <meyering@lucent.com>
92555
92556         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92557         even on systems with utmpx.h.  It's necessary for the declaration of
92558         utmp's ut_user member.  Reported by Andreas Jaeger.
92559
92560         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92561         available. They are required for the declarations of getgrgid and
92562         getpwuid resp.
92563         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92564         Reported by Andreas Jaeger.
92565
92566 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92567
92568         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92569         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92570         so `make install' also works in VPATH builds.
92571
92572 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92573
92574         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92575         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92576         can be used in subdirectories.
92577
92578 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92579
92580         * lib/modechange.c: Do not assume that mode_t uses the
92581         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92582         the other-execute bit of FOO even if S_IXOTH != 1.
92583
92584         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92585         WOTH, XOTH, ALLM): New macros.
92586         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92587          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92588         Use them.
92589         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92590         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92591         (mode_compile):
92592         No need to use uintmax_t; unsigned long is long enough.
92593         Don't bother to get suffix since we don't use it.
92594
92595 2000-12-26  Jim Meyering  <meyering@lucent.com>
92596
92597         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92598         better with autoheader.
92599
92600 2000-12-24  Jim Meyering  <meyering@lucent.com>
92601
92602         * lib/hash.c (is_prime): Return explicit boolean values.
92603         (hash_get_first): Return NULL to appease Irix5.6's 89.
92604         Reported by Nelson Beebe.
92605
92606 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92607
92608         * lib/localcharset.c (locale_charset): Add support for Win32.
92609
92610 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92611
92612         * lib/physmem.h, lib/physmem.c: New files.
92613
92614         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92615         (noinst_HEADERS): Add physmem.h.
92616
92617         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92618         't' for compatibility with Solaris 8 sort.
92619
92620 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92621
92622         * lib/config.charset: Add support for BeOS.
92623
92624 2000-12-17  Jim Meyering  <meyering@lucent.com>
92625
92626         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92627         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92628
92629 2000-12-16  Jim Meyering  <meyering@lucent.com>
92630
92631         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92632         N and M) would have treated it like `chown N:N FILE'.
92633
92634         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92635
92636 2000-12-16  Jim Meyering  <meyering@lucent.com>
92637
92638         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92639         SHELLS_FILE to a file name that's useful on djgpp systems.
92640         Include stdlib.h.
92641         (ADDITIONAL_DEFAULT_SHELLS): Define.
92642         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92643         Based mostly on a patch from Prashant TR.
92644
92645 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92646
92647         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92648         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92649         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92650
92651 2000-12-08  Andreas Schwab  <schwab@suse.de>
92652
92653         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92654         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92655
92656 2000-12-07  Jim Meyering  <meyering@lucent.com>
92657
92658         * lib/stripslash.c (ISSLASH): Define.
92659         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92660         `/'.
92661         From Prashant TR.
92662
92663         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92664         (dir_name_r): Declare this function as static.
92665         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92666         manifest itself on a name containing a mix of slashes and
92667         backslashes.
92668         Make this function work with names starting with a DOS-style
92669         drive letter and colon prefix.
92670         (dir_name): Append `.' if necessary.
92671         Based mostly on patches from Prashant TR and Eli Zaretskii.
92672
92673         * lib/dirname.h (dir_name_r): Remove prototype.
92674
92675 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92676
92677         * m4/off_t-format.m4: Remove this file.
92678         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92679
92680 2000-12-06  Jim Meyering  <meyering@lucent.com>
92681
92682         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92683         replacement strtoull, we may well need the replacement strtoul, too.
92684         Check for declarations of strtoul and strtoull.
92685         Check for strtol.  Mainly as a cue to cause automake to include
92686         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92687         Check for limits.h -- strtol.c needs it.
92688
92689 2000-12-05  Jim Meyering  <meyering@lucent.com>
92690
92691         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92692
92693 2000-12-04  Jim Meyering  <meyering@lucent.com>
92694
92695         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92696         Also include memory.h, stdlib.h, unistd.h if appropriate.
92697         Reported by Andreas Jaeger (conflicting declaration of malloc).
92698
92699 2000-12-02  Jim Meyering  <meyering@lucent.com>
92700
92701         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92702         * m4/jm-macros.m4 (jm_MACROS): require it.
92703
92704 2000-12-02  Jim Meyering  <meyering@lucent.com>
92705
92706         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92707
92708 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92709
92710         * lib/memrchr.c: Include <config.h> before any system include file.
92711
92712 2000-11-30  Jim Meyering  <meyering@lucent.com>
92713
92714         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92715
92716 2000-11-30  Jim Meyering  <meyering@lucent.com>
92717
92718         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92719
92720 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92721
92722         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92723
92724 2000-11-26  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92727
92728 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92729
92730         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92731         size of (size_t) -1; it's not portable.
92732
92733 2000-11-17  Jim Meyering  <meyering@lucent.com>
92734
92735         * lib/strstr.c: Update from GNU libc.
92736
92737 2000-11-17  Akim Demaille  <akim@epita.fr>
92738
92739         * lib/obstack.h: Formatting changes.
92740         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92741         prevent type checking.
92742         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92743         cast the value to (void *): assigning a `foo *' to a `void *'
92744         variable is valid.
92745         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92746
92747 2000-11-16  Jim Meyering  <meyering@lucent.com>
92748
92749         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92750
92751 2000-11-11  Jim Meyering  <meyering@lucent.com>
92752
92753         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92754
92755 2000-11-10  Jim Meyering  <meyering@lucent.com>
92756
92757         * lib/obstack.h: Update from GNU libc.
92758         * lib/obstack.c: Likewise.
92759
92760 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92761
92762         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92763
92764 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92765
92766         * lib/getusershell.c (setusershell): Use rewind rather than
92767         fseek/fseeko, to avoid configuration hassles with fseeko.
92768         Don't bother opening SHELLS_FILE if shellstream is NULL;
92769         it's not necessary.
92770
92771 2000-11-05  Jim Meyering  <meyering@lucent.com>
92772
92773         * lib/makepath.h (make_dir): Declare.
92774         * lib/makepath.c (make_dir): Remove `static' attribute.
92775         Tweak a comment.
92776
92777 2000-11-04  Jim Meyering  <meyering@lucent.com>
92778
92779         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92780
92781 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92782
92783         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92784         last one in a bucket, advance to the next bucket.
92785
92786 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92787
92788         * lib/fnmatch.c: Do not comment out all the code if we are using
92789         the GNU C library, because in some cases we are replacing buggy
92790         code in the GNU C library itself.
92791
92792 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92793
92794         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92795         (regex_compile): Catch bogus \(\1\).
92796
92797 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92798
92799         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92800         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92801         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92802
92803 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92804
92805         * lib/error.h, getline.h, modechange.h:
92806         Remove "2000" from Copyright line, as the file hasn't been
92807         changed this year other than in the copyright notice.
92808
92809         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92810         was changed this year.
92811
92812 2000-10-29  Jim Meyering  <meyering@lucent.com>
92813
92814         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92815         renaming.
92816         * m4/ls-mntd-fs.m4: Likewise
92817
92818 2000-10-29  Jim Meyering  <meyering@lucent.com>
92819
92820         * lib/xstat.in: Fix grammar in comment.
92821
92822 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92823
92824         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92825         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92826         doesn't define __restrict_arr.
92827
92828 2000-10-28  Jim Meyering  <meyering@lucent.com>
92829
92830         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92831         (jm_PREREQ_MEMCHR): New function.
92832
92833 2000-10-28  Jim Meyering  <meyering@lucent.com>
92834
92835         * lib/memchr.c: Update from libc.
92836         Adjust for portability:
92837         [HAVE_STDLIB_H]: Include stdlib.h.
92838         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92839         Undef __memchr, too.
92840         [!weak_alias]: Define __memchr to memchr.
92841
92842         * lib/regex.c: Update from libc.
92843         * lib/regex.h: Likewise.
92844         * lib/getopt1.c: Likewise.
92845         * lib/memcmp.c: Likewise.
92846
92847         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92848         Avoid using fseek, when possible -- it's broken by design.
92849         Patch by Ulrich Drepper.
92850
92851 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92852
92853         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92854         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92855         Giving in to popular pressure to shut up the compiler with casts.
92856
92857 2000-10-26  Jim Meyering  <meyering@lucent.com>
92858
92859         * lib/strftime.c: Update from libc.
92860
92861 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92862
92863         * regex.c: More `unsigned char' -> `re_char' changes.
92864         Also change several `int' into `re_wchar_t'.
92865         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92866         (PUSH_FAILURE_POINTER): Don't cast any more.
92867         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92868         We want GCC to complain, since this piece of code makes
92869         re_match non-reentrant, which *should* be fixed.
92870         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92871         (EXTEND_BUFFER): Use RETALLOC.
92872         (SET_LIST_BIT): Don't cast.
92873         (re_wchar_t): New type.
92874         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92875         that those two functions will always properly return.
92876         (IMMEDIATE_QUIT_CHECK): Cast to void.
92877         (analyse_first): Use recursion rather than an explicit stack.
92878         (re_compile_fastmap): Can't fail anymore.
92879         (re_search_2): Don't check re_compile_fastmap for failure.
92880         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92881         Now also sets the new value (passed in a new argument).
92882         (re_match_2_internal): Use it.
92883         Also, use a new var `reg' of type size_t when looping through regs
92884         rather than reuse the inappropriate `mcnt'.
92885
92886 2000-10-25  Jim Meyering  <meyering@lucent.com>
92887
92888         * lib/obstack.c: Update from libc.
92889
92890 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92891
92892         * regex.c (regex_compile): Change the way of handling a range from
92893         a char less than 256 to a char not less than 256.
92894
92895 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92896
92897         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92898         NT-Emacs only.
92899         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92900         so that re_search functions only quit when callers expect them to.
92901
92902 2000-10-23  Jim Meyering  <meyering@lucent.com>
92903
92904         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92905         wrong.  That set_locale call must not have any side effects.
92906         From Paul Eggert.
92907
92908 2000-10-22  Jim Meyering  <meyering@lucent.com>
92909
92910         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92911         [CYCLIC]: Remove now-unused definition.
92912
92913         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92914         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92915         Suggestion from Ulrich Drepper.
92916
92917 2000-10-21  Jim Meyering  <meyering@lucent.com>
92918
92919         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92920         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92921         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92922
92923 2000-10-21  Jim Meyering  <meyering@lucent.com>
92924
92925         * lib/dirname.c (memrchr): Declare if necessary.
92926         (dir_name): Remove the restriction that there be no
92927         trailing slashes.  Now, this code skips past them, effectively
92928         ignoring them.
92929         [TEST_DIRNAME] (main): New unit tests.
92930
92931         * lib/memrchr.c: New file from GNU libc.
92932         Undef __memrchr, too.
92933         [!weak_alias]: Define __memrchr to memrchr.
92934         Guard weak_alias use with `#ifdef weak_alias'.
92935
92936 2000-10-21  Jim Meyering  <meyering@lucent.com>
92937
92938         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92939         (dir_name): Use dir_name_r.
92940         * lib/dirname.h (dir_name_r): Declare it.
92941
92942 2000-10-17  Jim Meyering  <meyering@lucent.com>
92943
92944         * lib/quote.h (PARAMS): Define and use.
92945         Reported by Akim Demaille.
92946
92947         * lib/getopt.c: Update from libc.
92948
92949 2000-10-16  Jim Meyering  <meyering@lucent.com>
92950
92951         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92952         setlocale.
92953         From Jan Fedak.
92954
92955 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92956
92957         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92958
92959 2000-09-25  Jim Meyering  <meyering@lucent.com>
92960
92961         * lib/md5.h (rol): Define (from GnuPG).
92962
92963         * lib/sha.c: Give credit (GnuPG) where due.
92964         (M): Use rol rather than open-coding it.
92965         Add a FIXME comment.
92966
92967 2000-09-21  Jim Meyering  <meyering@lucent.com>
92968
92969         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92970         Reported by Michael Stone.
92971
92972 2000-09-20  Jim Meyering  <meyering@lucent.com>
92973
92974         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92975         (noinst_HEADERS): Add sha.h.
92976         Based on code from Scott G. Miller and from GnuPG.
92977
92978 2000-09-18  Jim Meyering  <meyering@lucent.com>
92979
92980         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92981         LIBS. Otherwise, everyone ends up linking with -lelf for some
92982         configurations.
92983         Reported by Mike Stone.
92984
92985 2000-09-15  Jim Meyering  <meyering@lucent.com>
92986
92987         * lib/regex.c: Update from libc.
92988
92989 2000-09-10  Jim Meyering  <meyering@lucent.com>
92990
92991         * lib/getopt.c (_getopt_internal): Update from glibc.
92992
92993 2000-09-09  Jim Meyering  <meyering@lucent.com>
92994
92995         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92996         think it should be used as a general replacement for isascii.
92997         * lib/fnmatch.c: Likewise.
92998         * lib/mbswidth.c: Likewise
92999         * lib/regex.c: Likewise.
93000
93001         Don't use atoi.
93002         * lib/userspec.c: Include sys/param.h and limits.h.
93003         Include xstrtol.h.
93004         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93005         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93006         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93007         UID, GID.  Check range.
93008
93009 2000-09-06  Jim Meyering  <meyering@lucent.com>
93010
93011         * lib/getopt.c (_getopt_internal): Update from glibc.
93012
93013 2000-08-30  Jim Meyering  <meyering@lucent.com>
93014
93015         * lib/strftime.c: Merge in changes from GNU libc.
93016
93017 2000-08-26  Jim Meyering  <meyering@lucent.com>
93018
93019         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93020         * m4/fpending.m4: New file.
93021
93022 2000-08-26  Jim Meyering  <meyering@lucent.com>
93023
93024         * lib/closeout.c: Include "__fpending.h".
93025         (close_stdout_status): Return right away if there's nothing to flush.
93026
93027         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93028         * lib/__fpending.c: New file.
93029         * lib/__fpending.h: New file.
93030
93031 2000-08-20  Jim Meyering  <meyering@lucent.com>
93032
93033         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93034         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93035         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93036
93037 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93038
93039         Improve fileutils installation on systems where running
93040         programs (like install) can't be unlinked.
93041         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93042         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93043
93044 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93045
93046         Standardize on "memory exhausted" instead of "Memory exhausted"
93047         or "virtual memory exhausted".
93048         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93049         "virtual memory exhausted".
93050         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93051         our own message.
93052         * lib/userspec.c (parse_user_spec): Likewise.
93053         * lib/bumpalloc.h: comment fix
93054         * lib/same.c, userspec.c: Include xalloc.h.
93055
93056         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93057         not char *const and pointing to a constant array.
93058         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93059         (xrealloc): Comment fix.
93060
93061         * lib/userspec.c (parse_user_spec):
93062         Don't translate a message until just before returning,
93063         to avoid unnecessary translation.
93064
93065 2000-08-07  Jim Meyering  <meyering@lucent.com>
93066
93067         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93068         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93069         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93070         getgroups.c, gethostname.c, getopt.h, group-member.c,
93071         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93072         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93073         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93074         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93075         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93076         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93077         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93078         yesno.c: Back out Copyright date changes for each file with no change
93079         this year.  This eases coordination with other programs using the same
93080         source code modules.  From Paul Eggert.
93081
93082 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93083
93084         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93085         not char, for compatibility with glibc 2.1.3 strftime.c.
93086
93087 2000-08-03  Greg McGary  <greg@mcgary.org>
93088
93089         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93090         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93091         (EXTEND_BUFFER): Use them.
93092
93093 2000-08-01  Jim Meyering  <meyering@lucent.com>
93094
93095         * lib/dirname.c (ISSLASH): Define.
93096         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93097         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93098         both `\' and `/' may be use as path separators.
93099         Based on a patch from Prashant TR.
93100
93101 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93102
93103         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93104         slot vector a constant, since it might get modified.
93105
93106 2000-07-31  Jim Meyering  <meyering@lucent.com>
93107
93108         * lib/xmalloc.c: Use `virtual memory exhausted', not
93109         `Memory exhausted'.
93110         * lib/obstack.c (print_and_abort): Likewise.
93111
93112 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93113
93114         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93115         buffer, so that the caller can always quote one small
93116         component of a "memory exhausted" message in slot 0.
93117         From a suggestion by Jim Meyering.
93118
93119 2000-07-30  Jim Meyering  <meyering@lucent.com>
93120
93121         * lib/makepath.c (make_path): Quote the other instance, too.
93122
93123         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93124         (STATIC_BUF_SIZE): Define.
93125         (quotearg_n_options): Use only statically allocated storage when
93126         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93127         than STATIC_BUF_SIZE.
93128
93129 2000-07-29  Jim Meyering  <meyering@lucent.com>
93130
93131         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93132         * lib/dirname.c (dir_name): Likewise.
93133
93134         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93135         `/'.
93136
93137         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93138         (dir_name): Assert that there are no trailing slashes.
93139
93140 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93141
93142         * lib/mbswidth.h (mbswidth): Add a flags argument.
93143         (mbswidth): New declaration.
93144         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93145         * lib/mbswidth.c (mbswidth): Add a flags argument.
93146         (mbsnwidth): New function.
93147
93148 2000-07-24  Jim Meyering  <meyering@lucent.com>
93149
93150         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93151
93152 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93153
93154         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93155
93156 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93157
93158         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93159         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93160         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93161         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93162         invoke multibyte primitives.
93163
93164 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93165
93166         * lib/quotearg.c:
93167         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93168         so that mbstate_t is always defined.
93169
93170         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93171         be 1 in at least one GCC installation, and this configuration
93172         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93173         performance on hosts that have mbrtowc but have only unibyte
93174         locales, but I assume these hosts are rare.
93175
93176 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93177
93178         * lib/mbswidth.c (_XOPEN_SOURCE):
93179         Don't define; this causes problems on Solaris 7.
93180         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93181
93182 2000-07-23  Jim Meyering  <meyering@lucent.com>
93183
93184         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93185         too: getgrgid, getpwuid, getuid.
93186
93187 2000-07-23  Jim Meyering  <meyering@lucent.com>
93188
93189         * lib/basename.c (base_name): Add an assertion.
93190
93191 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93192
93193         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93194         shadow its mbsinit function.
93195
93196 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93197
93198         * lib/mbswidth.h: New file.
93199         * lib/mbswidth.c: New file.
93200         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93201         (noinst_HEADERS): Add mbswidth.h.
93202
93203 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93204
93205         * lib/config.charset: Add support for FreeBSD. Improve support for
93206         HP-UX and IRIX 6.
93207
93208 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93209
93210         * m4/mbswidth.m4: New file.
93211         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93212
93213 2000-07-15  Jim Meyering  <meyering@lucent.com>
93214
93215         * lib/makepath.c: Include quote.h.
93216         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93217         corresponding argument in a `quote (...)' call.
93218         Give better diagnostics.
93219
93220         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93221         (noinst_HEADERS): Add quote.h.
93222
93223         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93224         from tar's src/misc.c.
93225         * lib/quote.h: New file.  Prototypes for same.
93226
93227 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93228
93229         From a suggestion by Bruno Haible.
93230         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93231         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93232         to decide whether to define the BeOS workaround macro;
93233         this adjusts to the change to AC_MBSTATE_T.
93234
93235 2000-07-14  Jim Meyering  <meyering@lucent.com>
93236
93237         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93238         jm_AC_TYPE_UINTMAX_T.
93239
93240 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93241
93242         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93243
93244         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93245         quotearg_buffer_restyled): Add support for
93246         clocale_quoting_style.  Undo previous change to
93247         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93248         and "{RIGHT QUOTATION MARK}" msgids.
93249
93250 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93251
93252         From a suggestion by Bruno Haible.
93253         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93254         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93255         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93256         and mbstate_t, to a single-part test that simply defines mbstate_t.
93257         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93258         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93259
93260 2000-07-10  Jim Meyering  <meyering@lucent.com>
93261
93262         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93263
93264         * m4/gnu-source.m4: Output to confdefs.h directly.
93265         Suggestion from Akim Demaille.
93266
93267 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93268
93269         The old behavior of quoting `like this' doesn't look good with
93270         newer, ISO-style fonts.  See:
93271         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93272
93273         Instead, quote "like this" by default.  Let the translator
93274         tailor the locale-specific quoting behavior by providing
93275         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93276
93277         * lib/quotearg.c (N_): New macro.
93278         (gettext_default): New function.
93279         (quotearg_buffer_restyled): Use
93280         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93281         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93282
93283 2000-07-09  Jim Meyering  <meyering@lucent.com>
93284
93285         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93286         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93287
93288         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93289         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93290
93291 2000-07-09  Jim Meyering  <meyering@lucent.com>
93292
93293         * lib/Most files: Update copyright dates to include 2000.
93294
93295 2000-07-08  Jim Meyering  <meyering@lucent.com>
93296
93297         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93298         if not defined.
93299         (xgethostname): Remove now-unnecessary #ifdef.
93300         Move declaration of `err' into loop where it's used.
93301
93302 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93303         and Bruno Haible  <haible@clisp.cons.org>
93304
93305         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93306         only if the test for an object-type mbstate_t fails.  This
93307         prevents us from mistakenly reporting that mbstate_t is a
93308         system object type after we "#define mbstate_t int" to work
93309         around its lack.
93310
93311 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93312         and Bruno Haible  <haible@clisp.cons.org>
93313
93314         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93315
93316 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93317
93318         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93319         to strerror_r.
93320         Include <ctype.h> for use of isalpha.
93321
93322 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93323
93324         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93325         by allocating a larger buffer. Test the gethostname return value for
93326         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93327         returns an error and ENAMETOOLONG isn't defined.
93328
93329 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93330
93331         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93332         dimension.
93333
93334 2000-07-04  Jim Meyering  <meyering@lucent.com>
93335
93336         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93337         of the deprecated AC_CHECKING.
93338
93339 2000-07-04  Jim Meyering  <meyering@lucent.com>
93340
93341         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93342         Reported by Bruno Haible.
93343
93344 2000-07-04  Jim Meyering  <meyering@lucent.com>
93345
93346         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93347         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93348         lacks mbrtowc.
93349
93350 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93351
93352         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93353         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93354
93355 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93356         and Bruno Haible  <haible@clisp.cons.org>
93357
93358         * lib/quotearg.c (mbrtowc):
93359         Assign to *pwc, and return 1 only if result is nonzero.
93360         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93361
93362 2000-07-03  Jim Meyering  <meyering@lucent.com>
93363
93364         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93365
93366 2000-07-03  Jim Meyering  <meyering@lucent.com>
93367
93368         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93369         This is necessary to get a definition of e.g., UTMP_FILE on
93370         HP-UX 10.20.
93371         From Bob Proulx.
93372
93373 2000-07-02  Jim Meyering  <meyering@lucent.com>
93374
93375         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93376
93377         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93378         AC_LIBOBJ(function_name).
93379         * m4/chown.m4: Likewise.
93380         * m4/fnmatch.m4: Likewise.
93381         * m4/ftruncate.m4: Likewise.
93382         * m4/getgroups.m4: Likewise.
93383         * m4/getline.m4: Likewise.
93384         * m4/group-member.m4: Likewise.
93385         * m4/jm-macros.m4: Likewise.
93386         * m4/lstat.m4: Likewise.
93387         * m4/malloc.m4: Likewise.
93388         * m4/memcmp.m4: Likewise.
93389         * m4/nanosleep.m4: Likewise.
93390         * m4/putenv.m4: Likewise.
93391         * m4/realloc.m4: Likewise.
93392         * m4/regex.m4: Likewise.
93393         * m4/stat.m4: Likewise.
93394         * m4/strftime.m4: Likewise.
93395
93396 2000-07-02  Jim Meyering  <meyering@lucent.com>
93397
93398         * lib/quotearg.c (mbstate_t): Don't define here.
93399
93400 2000-07-02  Jim Meyering  <meyering@lucent.com>
93401
93402         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93403
93404 2000-07-01  Jim Meyering  <meyering@lucent.com>
93405
93406         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93407
93408 2000-07-01  Jim Meyering  <meyering@lucent.com>
93409
93410         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93411         problem.
93412
93413 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93414
93415         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93416         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93417
93418 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93419
93420         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93421         per change in ../m4/ls-mntd-fs.m4.
93422         (read_filesystem_list): Ignore symbolic links.
93423
93424 2000-06-29  Jim Meyering  <meyering@lucent.com>
93425
93426         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93427         for declaration of strcmp.
93428
93429         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93430
93431         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93432         Avoid warning by casting result to `char *' to remove `const'.
93433
93434 2000-06-28  Jim Meyering  <meyering@lucent.com>
93435
93436         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93437         included by quotearg.c, for which we perform this test.  From
93438         Bruno Haible.
93439
93440 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93441
93442         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93443         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93444         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93445
93446 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93447
93448         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93449
93450 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93451
93452         savedir now sets errno on failure and invokes xmalloc to get memory.
93453         Fix a couple of other minor bugs while we're at it.
93454
93455         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93456         (NAMLEN): Remove macro.
93457         (malloc, realloc): Remove decls.
93458         (stpcpy): Likewise.
93459         ("xalloc.h"): Include.
93460         (NAME_SIZE_DEFAULT): New macro.
93461         (savedir): Use xmalloc / xrealloc to allocate memory.
93462         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93463         Skip "" directory entries.
93464         Use strlen to calculate directory entry length, since the old method
93465         is rarely used these days and isn't worth supporting.
93466         Don't use a pointer after freeing it.
93467         Check for integer overflow when calculating allocation size.
93468         Use memcpy to copy entries, instead of stpcpy.
93469         Set errno properly when returning NULL.
93470         Check for readdir error.
93471
93472 2000-06-26  Jim Meyering  <meyering@lucent.com>
93473
93474         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93475
93476 2000-06-25  Jim Meyering  <meyering@lucent.com>
93477
93478         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93479         Linux header bug when _XOPEN_SOURCE is defined to 500.
93480
93481 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93482
93483         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93484         deficiency.
93485
93486 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93487
93488         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93489         Include xalloc.h.
93490         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93491
93492 2000-06-24  Jim Meyering  <meyering@lucent.com>
93493
93494         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93495         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93496         for which strerror does return char*, but which lacks a conveniently
93497         accessible declaration of the function.  If the compile-test says
93498         strerror_r doesn't work, then resort to a `run'-test that works on
93499         BeOS and segfaults on DEC Unix.
93500
93501 2000-06-24  Jim Meyering  <meyering@lucent.com>
93502
93503         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93504
93505 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93506
93507         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93508         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93509
93510 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93511
93512         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93513         (mbrtowc, mbstate_t): Define substitutes if
93514         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93515         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93516         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93517
93518 2000-06-23  Jim Meyering  <meyering@lucent.com>
93519
93520         * m4/afs.m4: Add missing AC_MSG_RESULT.
93521         Reported by Bruno Haible.
93522
93523         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93524         Suggestion from Bruno Haible.
93525
93526 2000-06-23  Jim Meyering  <meyering@lucent.com>
93527
93528         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93529
93530 2000-06-21  Jim Meyering  <meyering@lucent.com>
93531
93532         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93533
93534 2000-06-21  Jim Meyering  <meyering@lucent.com>
93535
93536         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93537         (noinst_HEADERS): Add getstr.h.
93538
93539         * lib/getline.c (getstr): Move into a separate file.
93540         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93541         the following changes: new parameter, delim2; both delim[12]
93542         parameters have type `int', not `char'.  The latter would lose
93543         with 8-bit delimiters.
93544         * lib/getstr.h: New file.
93545
93546 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93547
93548         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93549         than 1024, return a memory chunk of least possible size, instead
93550         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93551         Use free/xmalloc instead of xrealloc to avoid copying for very long
93552         paths.
93553
93554 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93555
93556         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93557         the empty string.
93558
93559 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93560
93561         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93562         address, not strdup.  Include <stdlib.h> and don't declare free().
93563
93564 2000-06-19  Jim Meyering  <meyering@lucent.com>
93565
93566         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93567
93568 2000-06-18  Jim Meyering  <meyering@lucent.com>
93569
93570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93571
93572         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93573         `checking whether...' message to be consistent with that of the
93574         lstat test.
93575
93576 2000-06-18  Jim Meyering  <meyering@lucent.com>
93577
93578         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93579         Besides, these days every porting target provides a mkdir function.
93580
93581         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93582         needed. (this snippet comes from src/system.h).
93583
93584 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93585
93586         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93587
93588 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93589
93590         * lib/human.c (adjust_value): New function.
93591         (human_readable_inexact): Apply rounding style even when
93592         printing approximate values.
93593
93594 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93595
93596         * lib/human.c (human_readable_inexact): Allow an input block
93597         size that is not a multiple of the output block size, and vice versa.
93598         Reported by Piergiorgio Sartor.
93599
93600 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93601
93602         * lib/getdate.y (get_date): Apply relative times after time
93603         zone indicator, not before.  Reported by Todd A. Jacobs.
93604
93605 2000-06-13  Jim Meyering  <meyering@lucent.com>
93606
93607         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93608
93609         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93610
93611 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93612
93613         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93614
93615 2000-06-12  Jim Meyering  <meyering@lucent.com>
93616
93617         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93618         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93619         optional argument.
93620         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93621         the optional argument, `lib'.
93622
93623 2000-06-08  Jim Meyering  <meyering@lucent.com>
93624
93625         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93626
93627 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93628
93629         Rewrite largefile configuration so that we don't need to run
93630         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93631         AC_CANONICAL_HOST in configure.in -- jmm]
93632
93633         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93634         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93635         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93636         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93637         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93638         All uses changed.
93639         Instead of inspecting the output of getconf, try to compile the
93640         test program without and with the macro definition.
93641         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93642         for getconf.  Instead, check for the needed flags by compiling
93643         test programs.
93644
93645 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93646
93647         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93648
93649 2000-06-04  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93652         SunOS 4.1.4 for which gid_t is an unsigned type.
93653
93654 2000-06-03  Jim Meyering  <meyering@lucent.com>
93655
93656         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93657         now that autoconf requires that.
93658
93659         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93660         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93661         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93662
93663 2000-06-03  Jim Meyering  <meyering@lucent.com>
93664
93665         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93666
93667 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93668
93669         * m4/glibc21.m4: New file.
93670         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93671
93672 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93673
93674         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93675         newer, don't install charset.alias.
93676         * lib/config.charset: Change the Linux/glibc rules so they become empty
93677         on glibc-2.1 or newer.
93678
93679 2000-06-02  Jim Meyering  <meyering@lucent.com>
93680
93681         * lib/mountlist.c: Back out last change.  Instead, do this...
93682         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93683         me_dummy member using the same `ignore'-testing code.
93684         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93685         fs_type strings.
93686         From Mark D. Roth.
93687
93688 2000-05-29  Jim Meyering  <meyering@lucent.com>
93689
93690         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93691         mounts with the `ignore' attribute.  Based on a patch from
93692         Mark D. Roth.
93693
93694 2000-05-28  Jim Meyering  <meyering@lucent.com>
93695
93696         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93697         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93698         * m4/stat.m4: Likewise.
93699         * m4/lstat.m4: Likewise.
93700         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93701
93702         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93703         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93704
93705 2000-05-26  Jim Meyering  <meyering@lucent.com>
93706
93707         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93708
93709 2000-05-24  Jim Meyering  <meyering@lucent.com>
93710
93711         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93712         autoconf requires that.
93713         * m4/lib-check.m4: Likewise.
93714         * m4/jm-macros.m4: Likewise.
93715         * m4/strftime.m4: Likewise.
93716
93717         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93718         AC_CHECK_DECLS, now that autoconf requires that.
93719
93720 2000-05-22  Jim Meyering  <meyering@lucent.com>
93721
93722         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93723         * m4/lstat.m4: Likewise.
93724
93725 2000-05-22  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93728
93729 2000-05-20  Jim Meyering  <meyering@lucent.com>
93730
93731         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93732         (jm_PREREQ): Use it.
93733
93734 2000-05-18  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93737         back, too, since it may have been modified by allocate_entry.
93738         (hash_delete): Rewrite to use neither the assignment operator
93739         nor the comma operator in an if-expression.
93740
93741 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93742
93743         * lib/closeout.c:
93744         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93745         Remove; no longer needed.
93746         "quotearg.h": Add include.
93747         (file_name): Do not bother to explicitly initialize to NULL; it's less
93748         efficient on some hosts.
93749         (close_stdout_status): Remove test as to whether stdout was already
93750         closed; it breaks for the case "echo x | sort >&-".
93751         Quote file name colons.
93752         Do not assume that _("write error") lacks format strings.
93753
93754 2000-05-15  Jim Meyering  <meyering@lucent.com>
93755
93756         * lib/version-etc.c (version_etc_copyright): Update the copyright
93757         string used in all --version output.
93758
93759 2000-05-14  Jim Meyering  <meyering@lucent.com>
93760
93761         * lib/closeout.c (close_stdout_set_file_name): New function.
93762         (close_stdout_status): Use new file-scoped global.
93763         Return right away if fstat says the stdout file descriptor is invalid.
93764         * lib/closeout.h (close_stdout_set_file_name): Declare.
93765
93766 2000-05-10  Jim Meyering  <meyering@lucent.com>
93767
93768         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93769         (close_stdout_set_status): New function.
93770         * lib/closeout.h (close_stdout_set_status): Declare.
93771
93772 2000-05-09  Jim Meyering  <meyering@lucent.com>
93773
93774         * m4/gettext.m4: Rename this...
93775         * m4/libintl.m4: ...to this.
93776
93777 2000-05-08  Jim Meyering  <meyering@lucent.com>
93778
93779         * lib/long-options.c: Don't include closeout.h.
93780         (parse_long_options): Don't call close_stdout for --version.
93781
93782 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93783
93784         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93785         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93786         2.1.3 bug.  This avoids a clash when files like regex.c define
93787         _GNU_SOURCE.
93788
93789 2000-05-06  Jim Meyering  <meyering@lucent.com>
93790
93791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93792         (AC_REPLACE_FUNCS): Add strnlen.
93793
93794         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93795         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93796
93797         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93798         AC_SEARCH_LIBS call for nanosleep.
93799         (LIB_NANOSLEEP): Set and AC_SUBST.
93800
93801 2000-05-06  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/strnlen.c: Undefine __strnlen and strnlen.
93804         [!weak_alias]: Define __strnlen to strnlen.
93805
93806         * lib/atexit.c: New file, from libiberty.
93807
93808 2000-05-06  Jim Meyering  <meyering@lucent.com>
93809
93810         * lib/closeout.c (close_stdout_status): Also check for errors on the
93811         stderr stream.
93812
93813 2000-05-05  Jim Meyering  <meyering@lucent.com>
93814
93815         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93816         AC_SEARCH_LIBS call for clock_gettime.
93817         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93818
93819         * m4/search-libs.m4: Update from autoconf.
93820
93821         su doesn't work on Solaris 2.6.
93822         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93823         <shadow.h>.  Reported by Dragos Harabor.
93824
93825 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93826
93827         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93828         memcpy instead of xmalloc, xrealloc, path_concat.
93829         (locale_charset): Treat empty environment variables as absent.
93830         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93831
93832 2000-05-04  Jim Meyering  <meyering@lucent.com>
93833
93834         * lib/getopt.c: Update from glibc.
93835         * lib/obstack.c: Likewise.
93836         * lib/obstack.h: Likewise.
93837         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93838         file
93839
93840         * lib/regex.h: Likewise.
93841         * lib/strndup.c: Likewise.
93842         * lib/strnlen.c: New file, from glibc.
93843
93844 2000-05-03  Jim Meyering  <meyering@lucent.com>
93845
93846         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93847
93848 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93849
93850         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93851         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93852         compile-time test, rather than inspecting host and OS, to
93853         decide whether to define _LARGEFILE_SOURCE.
93854
93855 2000-05-01  Jim Meyering  <meyering@lucent.com>
93856
93857         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93858
93859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93860         Based on a patch from Bruno Haible.
93861
93862 2000-05-01  Jim Meyering  <meyering@lucent.com>
93863
93864         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93865
93866 2000-04-29  Jim Meyering  <meyering@lucent.com>
93867
93868         * lib/path-concat.c: Declare strdup only if it's not defined.
93869         * lib/canon-host.c: Likewise.
93870
93871 2000-04-28  Jim Meyering  <meyering@lucent.com>
93872
93873         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93874         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93875         is included first, then limits.h is included by locale.h by libintl.h.
93876         From John David Anglin.
93877
93878 2000-04-25  Jim Meyering  <meyering@lucent.com>
93879
93880         * lib/makepath.c (S_IRWXUGO): Define.
93881         (make_path): Always perform explicit chmod if MODE specifies any
93882         of the `special' permission bits.  Prompted by a bug report against
93883         install from Mate Wierdl and Joost van Baal.
93884
93885 2000-04-18  Jim Meyering  <meyering@lucent.com>
93886
93887         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93888         (jm_PREREQ): Use it.
93889
93890 2000-04-18  Jim Meyering  <meyering@lucent.com>
93891
93892         * lib/README: New file.
93893
93894         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93895         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93896
93897 2000-04-17  Jim Meyering  <meyering@lucent.com>
93898
93899         Get it right :-)
93900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93901         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93902         Suggestion from Akim Demaille.
93903
93904 2000-04-17  Jim Meyering  <meyering@lucent.com>
93905
93906         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93907         the definition of it to rpl_strftime also defined-away the system's
93908         declaration.
93909
93910 2000-04-15  Jim Meyering  <meyering@lucent.com>
93911
93912         Use `C' to denote so-called `contiguous' files, the same way
93913         that tar does.
93914         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93915         (ftypelet): Use S_ISCTG.
93916         From Michael Deutschmann.
93917
93918 2000-04-14  Jim Meyering  <meyering@lucent.com>
93919
93920         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93921         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93922         clobbered.
93923
93924 2000-04-14  Jim Meyering  <meyering@lucent.com>
93925
93926         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93927
93928 2000-04-13  Jim Meyering  <meyering@lucent.com>
93929
93930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93931         AH_VERBATIM to insert required #ifndef into config.h.in.
93932         Suggestion from Akim Demaille.
93933
93934 2000-04-12  Jim Meyering  <meyering@lucent.com>
93935
93936         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93937         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93938         Christian Krackowizer.
93939
93940         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93941         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93942         (AC_SYS_LARGEFILE): Require.
93943         (AM_C_PROTOTYPES): Require.
93944
93945 2000-04-08  Jim Meyering  <meyering@lucent.com>
93946
93947         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93948         names don't conflict.  Reported by Eli Zaretskii.
93949
93950 2000-04-07  Jim Meyering  <meyering@lucent.com>
93951
93952         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93953         sys/types.h, to work around system header problems on AIX 3.2.5.
93954         From Bruno Haible.
93955
93956 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93957
93958         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93959         bug.  Deal with the different error behavior of Irix iconv.
93960
93961 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93962
93963         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93964         IRIX if the installer said otherwise.
93965
93966 2000-04-05  Jim Meyering  <meyering@lucent.com>
93967
93968         Portability tweaks required for ultrix4.3.
93969         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93970         (jm_CHECK_DECLS): Add getutent to the list of functions.
93971         (_jm_DECL_HEADERS): Add utmpx.h.
93972         From John David Anglin.
93973
93974         * m4/strftime.m4: Back out the 2000-04-02 change.
93975         Instead of that change, simply undefine putenv in the test program.
93976
93977 2000-04-05  Jim Meyering  <meyering@lucent.com>
93978
93979         Portability tweaks required for ultrix4.3.
93980         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93981         getutent.
93982         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93983         * lib/canon-host.c: Declare strdup.
93984         * lib/path-concat.c: Likewise.
93985         From John David Anglin.
93986
93987 2000-04-04  Jim Meyering  <meyering@lucent.com>
93988
93989         Be more DOS 8.3-friendly.
93990         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93991         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93992         * lib/Makefile.am: Reflect renaming.
93993         Reported by Eli Zaretskii.
93994
93995         Use a temporary file name that won't clash with `charset.alias'
93996         in the DOS 8.3 name space.
93997         * lib/Makefile.am (charset_tmp): Define.
93998         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93999         (uninstall-local): Likewise.
94000         Reported by Eli Zaretskii.
94001
94002 2000-04-03  Jim Meyering  <meyering@lucent.com>
94003
94004         * m4/gettext.m4: Fix typo in comment.
94005
94006         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94007         textutils/configure.in).  Suggestion from Paul Eggert.
94008         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94009
94010 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94011
94012         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94013         variable in the shell rather than using putenv, which isn't
94014         portable.  This avoids the configure-time inter-test dependency
94015         on the potentially-renamed putenv function.
94016
94017 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94018
94019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94020         before checking struct stat.st_blksize, so that
94021         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94022
94023 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94024
94025         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94026         since strftime.c uses HAVE_STRFTIME to decide whether to use
94027         the underlying strftime.
94028
94029 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94030
94031         * lib/time/strftime.c (my_strftime): Make sure we call the system
94032         strftime, not ourselves, when invoking the underlying strftime.
94033
94034 2000-03-24  Jim Meyering  <meyering@lucent.com>
94035
94036         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94037         (charset_alias): Define.
94038         (install-exec-local): Factor out common code.
94039         (uninstall-local): Split lines longer than 80.
94040         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94041         (SUFFIXES): Define.
94042         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94043         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94044
94045 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94046
94047         * lib/config.charset: Output a line containing "Packages using this
94048         file".
94049         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94050         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94051         ref-del.sed): New rules.
94052
94053 2000-03-17  Jim Meyering  <meyering@lucent.com>
94054
94055         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94056         Otherwise, include <strings.h>
94057
94058 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94059
94060         * lib/unicodeio.c (utf8_wctomb): New function.
94061         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94062         format instead of in UCS-4 with platform dependent endianness.
94063
94064 2000-03-10  Jim Meyering  <meyering@lucent.com>
94065
94066         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94067         From Marco Franzen.
94068
94069 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94070
94071         * lib/savedir.c (savedir): Work even if directory size is
94072         negative; this can happen with some screwy NFS configurations.
94073
94074 2000-03-06  Jim Meyering  <meyering@lucent.com>
94075
94076         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94077         if it's NULL (because we ran out of memory).  From Bruno Haible.
94078
94079 2000-03-05  Jim Meyering  <meyering@lucent.com>
94080
94081         * lib/localcharset.c ("path-concat.h"): Include.
94082         (get_charset_aliases): Use path_concat instead of ANSI string
94083         concatenation.
94084
94085         * lib/unicodeio.h (PARAMS): Define.
94086         Use it to guard prototype.
94087
94088 2000-03-04  Jim Meyering  <meyering@lucent.com>
94089
94090         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94091         for lib/localcharset.c.
94092
94093 2000-03-04  Jim Meyering  <meyering@lucent.com>
94094
94095         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94096         installing into it.
94097         (uninstall-local): Uncomment this rule so `make distcheck' works
94098         once again.
94099
94100         * lib/unicodeio.c (<errno.h>): Include it.
94101         (errno): Declare if not defined.
94102
94103         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94104
94105         * lib/config.charset: New version, incorporating remarks from a linux
94106         i18n mailing list.  From Bruno Haible.
94107
94108 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94109
94110         * m4/codeset.m4: New file.
94111         * m4/iconv.m4: New file.
94112         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94113
94114 2000-03-03  Jim Meyering  <meyering@lucent.com>
94115
94116         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94117
94118 2000-03-02  Jim Meyering  <meyering@lucent.com>
94119
94120         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94121         the messages come out on separate lines.
94122
94123         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94124         rather than jm_CHECK_DECLARATIONS.
94125         * m4/decl.m4: Remove now-unused file.
94126
94127         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94128         geteuid.
94129
94130 2000-03-02  Jim Meyering  <meyering@lucent.com>
94131
94132         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94133
94134 2000-03-01  Jim Meyering  <meyering@lucent.com>
94135
94136         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94137         * lib/unicodeio.c: Likewise.
94138
94139 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94140
94141         * lib/config.charset: New file.
94142         * lib/localcharset.c: New file.
94143         * lib/unicodeio.h, lib/unicodeio.c: New files.
94144         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94145         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94146         (noinst_HEADERS): Add unicodeio.h.
94147         (all-local, install-exec-local, charset.alias): New targets.
94148
94149 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94150
94151         * lib/quotearg.c (ALERT_CHAR): New macro.
94152         (quotearg_buffer_restyled): Use it.
94153
94154 2000-02-27  Jim Meyering  <meyering@lucent.com>
94155
94156         * m4/check-decl.m4: Add getenv to the list.
94157
94158 2000-02-27  Jim Meyering  <meyering@lucent.com>
94159
94160         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94161         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94162
94163         * lib/backupfile.c: Guard inclusion of stdlib.h with
94164         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94165         Declare malloc if needed.
94166
94167         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94168         `#ifndef HAVE_DECL..'
94169         now that autoconf always defines the HAVE_DECL_ symbols.
94170         * lib/human.c: Likewise.
94171         * lib/same.c: Likewise.
94172         * lib/strtoumax.c: Likewise.
94173
94174         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94175         declaration check was not run.
94176         * lib/hash.c: Likewise.
94177         * lib/human.c: Likewise.
94178         * lib/same.c: Likewise.
94179         * lib/strtoumax.c: Likewise.
94180
94181         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94182         `.', then first look up the entire `.'-containing string as a login
94183         name.
94184
94185 2000-02-23  Jim Meyering  <meyering@lucent.com>
94186
94187         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94188         in place of my hack.
94189
94190 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94191
94192         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94193         (textint): New typedef.
94194         (parser_control): Member year changed from int to textint.
94195         All uses changed.
94196         (YYSTYPE): Removed; replaced by %union with int and textint members.
94197         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94198         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94199         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94200         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94201         (date, number, to_year): Use width of number in digits, not its value,
94202         to determine whether it's a 2-digit year, or a 2-digit time.
94203         (yylex): Store number of digits of numeric tokens.
94204         Reported by John Kendall.
94205
94206         (parser_control): Changed from struct parser_control to typedef (for
94207         consistency).  All uses changed.
94208
94209         (tID): Removed; not used.
94210         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94211
94212 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94213
94214         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94215         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94216
94217 2000-02-12  Jim Meyering  <meyering@lucent.com>
94218
94219         * lib/userspec.c (ISDIGIT): Define it.
94220         (isdigit): Remove definition.
94221         (is_number): Use ISDIGIT, not isdigit.
94222         <libintl.h>: Include.
94223         (_ and N_): Define.
94224         (parse_user_spec): Mark translatable strings.
94225
94226 2000-02-10  Jim Meyering  <meyering@lucent.com>
94227
94228         With these changes, nanosleep.[ch] are finally enough like the other
94229         lib/* replacement files to compile on a few more losing systems.
94230
94231         * lib/nanosleep.h: Don't include config.h.
94232         Remove prototype from declaration of nanosleep.
94233         (PARAMS): Remove now-unneeded definition.
94234         * lib/nanosleep.c: #undef nanosleep.
94235         (rpl_nanosleep): Rename from nanosleep.
94236
94237 2000-02-10  Jim Meyering  <meyering@lucent.com>
94238
94239         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94240         gnu_nanosleep to rpl_nanosleep.
94241
94242 2000-02-09  Jim Meyering  <meyering@lucent.com>
94243
94244         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94245         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94246
94247 2000-02-08  Akim Demaille  <akim@epita.fr>
94248
94249         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94250         `[' and `]' and remove uses of `changequote'.
94251         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94252         (AC_SYS_LARGEFILE): Likewise.
94253         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94254         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94255         of changequote.
94256         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94257         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94258         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94259         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94260
94261 2000-02-05  Jim Meyering  <meyering@lucent.com>
94262
94263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94264         Remove explicit use of AC_HEADER_TIME.  It is required by
94265         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94266         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94267         in autoconf whereby the expansion of the latter ended up preceding
94268         the expansion of its prerequisite, AC_HEADER_TIME.
94269         Reported by Volker Borchert.
94270
94271 2000-02-03  Jim Meyering  <meyering@lucent.com>
94272
94273         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94274
94275 2000-02-03  Jim Meyering  <meyering@lucent.com>
94276
94277         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94278         rather than with `#if HAVE_UTMPNAME'.
94279
94280 2000-02-02  Jim Meyering  <meyering@lucent.com>
94281
94282         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94283         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94284         Reported by Eli Zaretskii.
94285
94286 2000-02-01  Jim Meyering  <meyering@lucent.com>
94287
94288         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94289
94290 2000-01-31  Jim Meyering  <meyering@lucent.com>
94291
94292         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94293         functions.  Add the time.h and sys/time.h headers along with the
94294         AC_REQUIRE'ment of AC_HEADER_TIME.
94295
94296 2000-01-31  Jim Meyering  <meyering@lucent.com>
94297
94298         * lib/nanosleep.h (nanosleep): Guard declaration with
94299         `#if ! HAVE_DECL_NANOSLEEP'.
94300         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94301         the declaration in that vendor's sys/timers.h.
94302         Reported by Christian Krackowizer.
94303
94304         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94305         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94306         (ISPRINT): Likewise.
94307         Reported by Tom Tromey.
94308
94309 2000-01-30  Jim Meyering  <meyering@lucent.com>
94310
94311         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94312
94313         * m4/prereq.m4 (utmp_includes): Define.
94314         Check for ut_user and ut_name members in both struct utmpx
94315         and struct utmp.
94316
94317 2000-01-30  Jim Meyering  <meyering@lucent.com>
94318
94319         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94320         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94321         header files where only utmpx.ut_user is declared.
94322
94323         * lib/readutmp.h (UT_USER): Define.
94324
94325 2000-01-29  Jim Meyering  <meyering@lucent.com>
94326
94327         * m4/lib-check.m4: New file containing library-related checks from
94328         fileutils and sh-utils (textutils had none).
94329
94330 2000-01-28  Jim Meyering  <meyering@lucent.com>
94331
94332         * m4/perl.m4: Change format of warning message to look more like that
94333         from the missing script.  Suggestion from François Pinard.
94334
94335 2000-01-25  Jim Meyering  <meyering@lucent.com>
94336
94337         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94338         well as time.h in the compile check.
94339         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94340         Fix typo in cross-compiling case: s/yes/no/.
94341
94342 2000-01-23  Jim Meyering  <meyering@lucent.com>
94343
94344         * m4/jm-macros.m4: Move df-related tests here from
94345         fileutils/configure.in
94346
94347         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94348         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94349
94350         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94351         s/space/ac_fsusage_space/.
94352         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94353
94354         * m4/ftruncate.m4: New file (derived from part of
94355         fileutils/configure.in).
94356         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94357         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94358
94359         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94360         AC_SUBST these here, rather than just in sh-util/configure.in, so
94361         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94362         all the same.
94363         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94364         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94365         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94366         (AC_SUBST(POW_LIBM)): Likewise.
94367         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94368
94369 2000-01-23  Jim Meyering  <meyering@lucent.com>
94370
94371         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94372         obstack.c.
94373
94374 2000-01-22  Jim Meyering  <meyering@lucent.com>
94375
94376         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94377
94378         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94379
94380         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94381         configure.in
94382         (AC_CHECK_HEADERS): Likewise for sh-utils.
94383         (AC_CHECK_HEADERS): Likewise for textutils.
94384         Merge the three lists of headers.
94385
94386         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94387         from fileutils' configure.in.
94388
94389         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94390         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94391         check-decl.m4.
94392
94393         * m4/check-decl.m4: Use #if rather than #ifdef.
94394         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94395         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94396         (_jm_DECL_HEADERS): Define new function.
94397         (jm_CHECK_DECLARATIONS): Require it.
94398
94399 2000-01-22  Jim Meyering  <meyering@lucent.com>
94400
94401         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94402         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94403         Required for some AIX systems.  Reported by Christian Krackowizer.
94404         [TESTING] (main): New function.
94405
94406         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94407         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94408         letters.
94409
94410         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94411         iswprint.
94412
94413         * lib/strverscmp.c (ISDIGIT): Define.
94414         (strverscmp): Use ISDIGIT, not isdigit.
94415
94416 2000-01-19  Jim Meyering  <meyering@lucent.com>
94417
94418         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94419         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94420         defines `struct timespec' in <sys/time.h>
94421
94422         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94423         Thanks to Akim for explaining.
94424
94425 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94426
94427         * lib/nanosleep.c (nanosleep):
94428         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94429         POSIX.1 doesn't require SA_INTERRUPT and some systems
94430         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94431         it's been part of POSIX.1 since day 1 (in 1988).
94432
94433 2000-01-17  Jim Meyering  <meyering@lucent.com>
94434
94435         * lib/interlock: Remove unused file.  Reported by François Pinard.
94436
94437 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94438
94439         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94440         alert, backslash, formfeed, and vertical tab unnecessarily in
94441         shell quoting style.
94442
94443 2000-01-16  Jim Meyering  <meyering@lucent.com>
94444
94445         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94446         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94447         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94448         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94449
94450 2000-01-16  Jim Meyering  <meyering@lucent.com>
94451
94452         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94453         because the latter didn't work.
94454
94455 2000-01-15  Jim Meyering  <meyering@lucent.com>
94456
94457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94458         (AC_REPLACE_FUNCS): Add memcpy and memset.
94459         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94460         Add strpbrk.
94461         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94462
94463 2000-01-12  Jim Meyering  <meyering@lucent.com>
94464
94465         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94466         (jm_PREREQ): Use it.
94467         (jm_PREREQ_READUTMP): New macro.
94468         (jm_PREREQ): Use it.
94469
94470 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94471
94472         Quote multibyte characters correctly.
94473         * m4/c-bs-a.m4: New file.
94474         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94475         (jm_PREREQ): Use it.
94476
94477 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94478
94479         * m4/uintmax_t.m4: Port to autoconf 2.13.
94480
94481 2000-01-08  Jim Meyering  <meyering@ascend.com>
94482
94483         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94484         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94485
94486 2000-01-04  Jim Meyering  <meyering@ascend.com>
94487
94488         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94489         jm_STRUCT_DIRENT_D_TYPE.
94490         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94491         jm_STRUCT_DIRENT_D_INO.
94492         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94493         jm_STRUCT_UTIMBUF.
94494         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94495         renamings.
94496         * m4/utime.m4: Likewise.
94497
94498         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94499         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94500
94501 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94502
94503         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94504         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94505
94506 2000-01-02  Jim Meyering  <meyering@ascend.com>
94507
94508         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94509         remember if this is necessary.
94510
94511 1999-12-26  Jim Meyering  <meyering@ascend.com>
94512
94513         * m4/jm-macros.m4: Use it here.
94514         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94515
94516 1999-12-23  Jim Meyering  <meyering@ascend.com>
94517
94518         * m4/jm-macros.m4: Check for clock_gettime (moved from
94519         fileutils/configure.in)
94520         Check for gettimeofday.
94521
94522 1999-12-20  Jim Meyering  <meyering@ascend.com>
94523
94524         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94525         autoconf-2.14a-1999-12-20.
94526
94527 1999-12-19  Jim Meyering  <meyering@ascend.com>
94528
94529         * m4/lstat-slash.m4: New file.
94530         * m4/jm-macros.m4: Use the new macro:
94531         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94532
94533 1999-12-07  Jim Meyering  <meyering@ascend.com>
94534
94535         * m4/perl.m4: Require that File::Compare be available, too.
94536         Too many systems seem to lack it.
94537
94538         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94539         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94540
94541 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94542
94543         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94544         problem with the QNX 4.25 shell, which doesn't propagate exit
94545         status of failed commands inside shell assignments.
94546
94547 1999-11-17  Jim Meyering  <meyering@ascend.com>
94548
94549         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94550
94551 1999-11-07  Jim Meyering  <meyering@ascend.com>
94552
94553         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94554
94555 1999-11-06  Jim Meyering  <meyering@ascend.com>
94556
94557         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94558         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94559
94560 1999-11-05  Jim Meyering  <meyering@ascend.com>
94561
94562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94563         configure.in of textutils, fileutils, and sh-utils into this one
94564         (shared between those packages) file.
94565         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94566         AC_STRUCT_ST_BLKSIZE.
94567
94568 1999-11-03  Jim Meyering  <meyering@ascend.com>
94569
94570         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94571         of AC_CHECK_TYPE checks includes unistd.h.
94572         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94573         Suggestion from Akim Demaille.
94574
94575 1999-10-30  Jim Meyering  <meyering@ascend.com>
94576
94577         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94578         m4-quoted string.
94579         * m4/ls-mntd-fs.m4: Likewise.
94580         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94581         * m4/jm-winsz1.m4: Likewise.
94582
94583         * m4/const.m4: Remove file, since the fix made it into the experimental
94584         version of autoconf.
94585         * m4/mktime.m4: Likewise.
94586
94587         * m4/check-type.m4: Remove file, now that the latest version of
94588         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94589
94590         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94591         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94592         AC_CHECK_TYPE.
94593
94594 1999-10-04  Jim Meyering  <meyering@ascend.com>
94595
94596         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94597
94598 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94599
94600         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94601         2.95.1 bug with HP-UX 10.20.
94602
94603 1999-09-17  Jim Meyering  <meyering@ascend.com>
94604
94605         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94606         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94607         due to missing strdup (against sh-utils-2.0).
94608
94609 1999-08-29  Jim Meyering  <meyering@ascend.com>
94610
94611         * m4/jm-macros.m4: Require jm_BISON.
94612         * m4/bison.m4: New file.
94613
94614 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94615
94616         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94617         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94618
94619 1999-08-05  Jim Meyering  <meyering@ascend.com>
94620
94621         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94622         to avoid conflicts with `conftest' on 8+3 filesystems.
94623         Suggestion from Eli Zaretskii.
94624
94625 1999-08-04  Jim Meyering  <meyering@ascend.com>
94626
94627         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94628         fileutils and sh-utils (textutils's getline test was inadequate).
94629         (AM_FUNC_GETLINE): Run this test.
94630         (AC_CHECK_FUNCS): Check for getdelim.
94631         Reported by Bob Proulx.
94632
94633 1999-08-02  Jim Meyering  <meyering@ascend.com>
94634
94635         * m4/jm-macros.m4: Add a comment.
94636
94637 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94638
94639         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94640         <inttypes.h> defines strtoumax as a macro (and not as a
94641         function).
94642
94643 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94644
94645         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94646         that we can shift, multiply and divide unsigned long long
94647         values; Ultrix cc can't do it.
94648
94649 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94650
94651         * m4/mktime.m4: New file, which is a preview of what should appear
94652         in the next public autoconf release.
94653
94654 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94655
94656         * m4/lfs.m4: Remove this file.
94657         * m4/largefile.m4: New file.  It contains the old contents of
94658         lfs.m4, except that all names with prefix AC_LFS have been
94659         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94660         compatible with future autoconf versions.  Also, some minor m4
94661         quoting problems have been fixed.
94662
94663 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94664
94665         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94666         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94667         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94668         and simplify the shell code.
94669
94670 1999-08-01  Jim Meyering  <meyering@ascend.com>
94671
94672         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94673         m4.
94674
94675 1999-07-20  Jim Meyering  <meyering@ascend.com>
94676
94677         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94678
94679 1999-07-15  Jim Meyering  <meyering@ascend.com>
94680
94681         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94682
94683 1999-05-22  Jim Meyering  <meyering@ascend.com>
94684
94685         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94686
94687 1999-05-20  Jim Meyering  <meyering@ascend.com>
94688
94689         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94690         Add a colon after each `then' in case $4 is empty.
94691
94692 1999-05-16  Jim Meyering  <meyering@ascend.com>
94693
94694         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94695
94696 1999-05-10  Jim Meyering  <meyering@ascend.com>
94697
94698         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94699
94700         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94701         AC_FUNC_MKTIME.
94702
94703 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94704
94705         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94706
94707 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94708
94709         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94710         not CPPFLAGS, so that linking works correctly in IRIX.
94711
94712 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94713
94714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94715
94716 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94717
94718         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94719         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94721         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94722         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94723
94724         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94725
94726 1999-04-20  Jim Meyering  <meyering@ascend.com>
94727
94728         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94729         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94730         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94731
94732 1999-04-18  Jim Meyering  <meyering@ascend.com>
94733
94734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94735         * m4/jm-macros.m4: Use it.
94736
94737 1999-04-06  Jim Meyering  <meyering@ascend.com>
94738
94739         * m4/strftime.m4: Remove test for %f.
94740
94741 1999-03-29  Jim Meyering  <meyering@ascend.com>
94742
94743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94744         superset of the AC_TYPE_* checks in the textutils, fileutils,
94745         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94746         AC_TYPE_PID_T.
94747
94748 1999-03-28  Jim Meyering  <meyering@ascend.com>
94749
94750         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94751         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94752         replaced e.g., in the *.sh files of the sh-utils.
94753
94754 1999-03-20  Jim Meyering  <meyering@ascend.com>
94755
94756         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94757         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94758         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94759
94760 1999-03-19  Jim Meyering  <meyering@ascend.com>
94761
94762         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94763
94764 1999-03-12  Jim Meyering  <meyering@ascend.com>
94765
94766         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94767
94768 1999-03-07  Jim Meyering  <meyering@ascend.com>
94769
94770         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94771         declared.
94772
94773 1999-02-17  Jim Meyering  <meyering@ascend.com>
94774
94775         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94776         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94777
94778 1999-02-07  Jim Meyering  <meyering@ascend.com>
94779
94780         * m4/group-member.m4: New file -- extracted from sh-utils'
94781         configure.in.
94782
94783         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94784         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94785
94786 1999-02-06  Jim Meyering  <meyering@ascend.com>
94787
94788         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94789         * m4/fnmatch.m4: Likewise.
94790         * m4/getgroups.m4: Likewise.
94791         * m4/lstat.m4: Likewise.
94792         * m4/malloc.m4: Likewise.
94793         * m4/putenv.m4: Likewise.
94794         * m4/realloc.m4: Likewise.
94795         * m4/regex.m4: Likewise.
94796         * m4/stat.m4: Likewise.
94797         * m4/strftime.m4: Likewise.
94798         Suggestion from Alain Magloire.
94799
94800         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94801         * m4/fnmatch.m4: Likewise.
94802         * m4/getgroups.m4: Likewise.
94803         * m4/getline.m4: Likewise.
94804         * m4/lstat.m4: Likewise.
94805         * m4/malloc.m4: Likewise.
94806         * m4/memcmp.m4: Likewise.
94807         * m4/putenv.m4: Likewise.
94808         * m4/realloc.m4: Likewise.
94809         * m4/regex.m4: Likewise.
94810         * m4/stat.m4: Likewise.
94811         * m4/strftime.m4: Likewise.
94812         Suggestion from Alain Magloire.
94813
94814         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94815         an argument.
94816
94817         * m4/regex.m4: Add a run-time Test for proper operation of
94818         re_compile_pattern.
94819
94820 1999-01-31  Jim Meyering  <meyering@ascend.com>
94821
94822         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94823
94824 1999-01-30  Jim Meyering  <meyering@ascend.com>
94825
94826         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94827
94828         * m4/jm-mktime.m4: Make this a wrapper around the official
94829         AM_FUNC_MKTIME rather than my private copy, now that the official one
94830         is up to date.
94831         * m4/mktime.m4: Remove file.
94832
94833         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94834         * m4/uptime.m4: Likewise.
94835         * m4/uintmax_t.m4: Likewise.
94836
94837 1999-01-28  Jim Meyering  <meyering@ascend.com>
94838
94839         * m4/jm-macros.m4: Use jm_AFS.
94840         * m4/afs.m4: New file (from fileutils' configure.in).
94841
94842         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94843         * m4/chown.m4: Likewise.
94844         * m4/d-ino.m4: Likewise.
94845         * m4/d-type.m4: Likewise.
94846         * m4/fnmatch.m4: Likewise.
94847         * m4/getgroups.m4: Likewise.
94848         * m4/gettext.m4: Likewise.
94849         * m4/jm-mktime.m4: Likewise.
94850         * m4/jm-winsz2.m4: Likewise.
94851         * m4/lcmessage.m4: Likewise.
94852         * m4/ls-mntd-fs.m4: Likewise.
94853         * m4/malloc.m4: Likewise.
94854         * m4/memcmp.m4: Likewise.
94855         * m4/putenv.m4: Likewise.
94856         * m4/realloc.m4: Likewise.
94857         * m4/st_mtim.m4: Likewise.
94858         * m4/strftime.m4: Likewise.
94859
94860 1999-01-16  Jim Meyering  <meyering@ascend.com>
94861
94862         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94863         (ARGMATCH_DIE_DECL): Define.
94864
94865 1999-01-12  Jim Meyering  <meyering@ascend.com>
94866
94867         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94868         Reported by Lars Hecking.
94869
94870 1999-01-10  Jim Meyering  <meyering@ascend.com>
94871
94872         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94873         gross kludge.
94874         * m4/inttypes_h.m4: Likewise.
94875         * m4/lstat.m4: Likewise.
94876         * m4/malloc.m4: Likewise.
94877         * m4/readdir.m4: Likewise.
94878         * m4/realloc.m4: Likewise.
94879         * m4/st_dm_mode.m4: Likewise.
94880         * m4/stat.m4: Likewise.
94881         * m4/utimbuf.m4: Likewise.
94882         * m4/utimes.m4: Likewise.
94883
94884         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94885         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94886         comments in config.h.in are meaningful.
94887
94888         * m4/jm-macros.m4: Require autoconf-2.13 here.
94889
94890         * m4/regex.m4: By default, don't use the included regex.c on systems
94891         with glibc 2.  Suggestion from Uli Drepper.
94892
94893 1999-01-02  Jim Meyering  <meyering@ascend.com>
94894
94895         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94896
94897 1998-12-18  Jim Meyering  <meyering@ascend.com>
94898
94899         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94900         Based on a suggestion from Lars Hecking.
94901
94902 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94903
94904         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94905
94906 1998-11-16  Jim Meyering  <meyering@ascend.com>
94907
94908         * m4/lfs.m4: Double-quote the `uname...` expression.
94909
94910 1998-11-14  Jim Meyering  <meyering@ascend.com>
94911
94912         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94913         * m4/stat.m4: Likewise.
94914
94915 1998-11-03  Jim Meyering  <meyering@ascend.com>
94916
94917         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94918         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94919
94920 1998-10-18  Jim Meyering  <meyering@ascend.com>
94921
94922         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94923
94924 1998-10-17  Jim Meyering  <meyering@ascend.com>
94925
94926         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94927         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94928         calls for those previously hard-coded headers.  Instead, take a new
94929         parameter.
94930         (jm_CHECK_DECLARATIONS): Reflect interface change.
94931         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94932         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94933
94934         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94935
94936 1998-10-14  Jim Meyering  <meyering@ascend.com>
94937
94938         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94939         instead of "TZ=America/Vancouver".  From Paul Eggert.
94940
94941 1998-10-11  Jim Meyering  <meyering@ascend.com>
94942
94943         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94944         This adds a test for a recently added compatibility fix for mktime.c.
94945         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94946
94947 1998-09-27  Jim Meyering  <meyering@ascend.com>
94948
94949         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94950
94951         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94952         ../configure.in, including a change from Gordon Matzigkeit to allow
94953         cross-compiling for the Hurd.
94954
94955         * m4/glibc.m4: New file/macro to test for the GNU C Library
94956         versions 1 and 2.  From Gordon Matzigkeit.
94957         Indent.
94958
94959 1998-09-21  Jim Meyering  <meyering@ascend.com>
94960
94961         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94962
94963 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94964
94965         Port nanosecond-resolution times to UnixWare 2.1.2 and
94966         pedantic Solaris 2.6.
94967
94968         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94969         AC_STRUCT_ST_MTIM.
94970         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94971         Generate name of ns member, instead of just 1 or undef.
94972         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94973
94974 1998-08-15  Jim Meyering  <meyering@ascend.com>
94975
94976         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94977         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94978         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94979         instead of jm_TYPE_SSIZE_T.
94980
94981 1998-08-12  Jim Meyering  <meyering@ascend.com>
94982
94983         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94984
94985 1998-08-02  Jim Meyering  <meyering@ascend.com>
94986
94987         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94988         in acconfig.h manually.
94989
94990 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94991
94992         * m4/st_mtim.m4: New file.
94993
94994 1998-07-28  Jim Meyering  <meyering@ascend.com>
94995
94996         * m4/utimes.m4: Undef stat.
94997
94998 1998-07-25  Jim Meyering  <meyering@ascend.com>
94999
95000         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95001         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95002
95003 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95004
95005         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95006         uid and gid actually remain unchanged.
95007
95008 1998-07-07  Jim Meyering  <meyering@ascend.com>
95009
95010         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95011
95012 1998-07-04  Jim Meyering  <meyering@ascend.com>
95013
95014         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95015         to prove that this macro can be used in packages without regex.c.
95016
95017 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95018
95019         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95020         is to be used.
95021
95022 1998-07-03  Jim Meyering  <meyering@ascend.com>
95023
95024         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95025
95026         * m4/gettext.m4: New file -- from gettext-0.10.35.
95027         * m4/lcmessage.m4: Likewise.
95028         * m4/progtest.m4: Likewise.
95029
95030         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95031         * m4/jm-macros.m4: Require the new macro.
95032
95033 1998-06-29  Jim Meyering  <meyering@ascend.com>
95034
95035         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95036         for the definition of NGROUPS (used in a system header included
95037         by sys/mount.h).
95038
95039 1998-06-28  Jim Meyering  <meyering@ascend.com>
95040
95041         * m4/ls-mntd-fs.m4: New file.
95042         * m4/fstypename.m4: New file.
95043
95044         * m4/jm-macros.m4: Require the new macro.
95045         * m4/jm-glibc-io.m4: New file.
95046
95047 1998-05-19  Jim Meyering  <meyering@ascend.com>
95048
95049         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95050         * m4/lchown.m4: New file.
95051
95052         * m4/Makefile.am.in: New file.
95053         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95054
95055 1998-05-14  Jim Meyering  <meyering@ascend.com>
95056
95057         * m4/Makefile.am (EXTRA_DIST): Add them.
95058         * m4/jm-macros.m4: New file.
95059         * m4/utimbuf.m4: New file.
95060
95061 1998-05-12  Jim Meyering  <meyering@ascend.com>
95062
95063         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95064
95065 1998-05-11  Jim Meyering  <meyering@ascend.com>
95066
95067         * m4/isc-posix.m4: New file.
95068
95069 1998-05-10  Jim Meyering  <meyering@ascend.com>
95070
95071         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95072
95073 1998-05-09  Jim Meyering  <meyering@ascend.com>
95074
95075         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95076         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95077         with automake.
95078
95079         * m4/ssize_t.m4: New file.
95080         * m4/mktime.m4: Remove file -- the new automake has this now.
95081
95082 1998-04-26  Jim Meyering  <meyering@ascend.com>
95083
95084         * m4/assert.m4: New file.
95085         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95086
95087 1998-04-05  Jim Meyering  <meyering@ascend.com>
95088
95089         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95090         (jm_PREREQ): Use it here.
95091
95092 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95093
95094         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95095         in acconfig.h.
95096
95097 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95098
95099         * m4/prereq.m4: New file.
95100         * m4/error.m4: New file.
95101         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95102
95103 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95104
95105         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95106         cache-check for the same variable -- that defeated the purpose of
95107         the test; the test program was never run.  This was a problem only
95108         on systems with losing getline functions -- HP-UX 10.20 is one.
95109         Reported by Bjorn Helgaas.
95110
95111 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95112
95113         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95114
95115 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95116
95117         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95118
95119         * m4/const.m4: New file.  Use an initializer in this declaration
95120         typedef int charset[2]; const charset x;
95121         Reported by Bob Glickstein.
95122
95123 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95124
95125         * m4/chown.m4: Fix reversed types on -1 args to chown.
95126         From Kaveh Ghazi.
95127
95128 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95129
95130         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95131         Add lseek and memchr.
95132
95133         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95134         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95135         have a 20-character limit on names.
95136
95137 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95138
95139         * m4/inttypes_h.m4: New file.
95140         * m4/uintmax_t.m4: New file.
95141         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95142
95143
95144         -----
95145
95146         Local Variables:
95147         coding: utf-8
95148         End:
95149
95150         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95151
95152         Copying and distribution of this file, with or without
95153         modification, are permitted provided the copyright notice
95154         and this notice are preserved.